PageSourceSearch

https://kf-exapp-srv.kuwait-fund.org/essportal/main.c6045d196afe6f57.js

js kuwait-fund.org collected 2026-09-24 09:36:56 UTC 1,875,035 bytes, 1 lines download raw bytes

vendor: 10,413 bytes, line 1
1(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([[792],{57:(yt,rn,ve)=>{var S=ve(6589);function g(X,ne){S.cipher.registerAlgorithm(X,function(){return new S.aes.Algorithm(X,ne)})}ve(5855),ve(6199),ve(812),yt.exports=S.aes=S.aes||{},S.aes.startEncrypting=function(X,ne,z,q){var x=ee({key:X,output:z,decrypt:!1,mode:q});return x.start(ne),x},S.aes.createEncryptionCipher=function(X,ne){return ee({key:X,output:null,decrypt:!1,mode:ne})},S.aes.startDecrypting=function(X,ne,z,q){var x=ee({key:X,output:z,decrypt:!0,mode:q});return x.start(ne),x},S.aes.createDecryptionCipher=function(X,ne){return ee({key:X,output:null,decrypt:!0,mode:ne})},S.aes.Algorithm=function(X,ne){I||V();var z=this;z.name=X,z.mode=new ne({blockSize:16,cipher:{encrypt:function(q,x){return Se(z._w,q,x,!1)},decrypt:function(q,x){return Se(z._w,q,x,!0)}}}),z._init=!1},S.aes.Algorithm.prototype.initialize=function(X){if(!this._init){var z,ne=X.key;if("string"!=typeof ne||16!==ne.length&&24!==ne.length&&32!==ne.length){if(S.util.isArray(ne)&&(16===ne.length||24===ne.length||32===ne.length)){z=ne,ne=S.util.createBuffer();for(var q=0;q<z.length;++q)ne.putByte(z[q])}}else ne=S.util.createBuffer(ne);if(!S.util.isArray(ne)){z=ne,ne=[];var x=z.length();if(16===x||24===x||32===x)for(x>>>=2,q=0;q<x;++q)ne.push(z.getInt32())}if(!S.util.isArray(ne)||4!==ne.length&&6!==ne.length&&8!==ne.length)throw new Error("Invalid key parameter.");var Y=-1!==["CFB","OFB","CTR","GCM"].indexOf(this.mode.name);this._w=re(ne,X.decrypt&&!Y),this._init=!0}},S.aes._expandKey=function(X,ne){return I||V(),re(X,ne)},S.aes._updateBlock=Se,g("AES-ECB",S.cipher.modes.ecb),g("AES-CBC",S.cipher.modes.cbc),g("AES-CFB",S.cipher.modes.cfb),g("AES-OFB",S.cipher.modes.ofb),g("AES-CTR",S.cipher.modes.ctr),g("AES-GCM",S.cipher.modes.gcm);var te,J,H,O,D,I=!1,K=4;function V(){I=!0,H=[0,1,2,4,8,16,32,64,128,27,54];for(var X=new Array(256),ne=0;ne<128;++ne)X[ne]=ne<<1,X[ne+128]=ne+128<<1^283;for(te=new Array(256),J=new Array(256),O=new Array(4),D=new Array(4),ne=0;ne<4;++ne)O[ne]=new Array(256),D[ne]=new Array(256);var x,F,Y,se,pe,Te,j,z=0,q=0;for(ne=0;ne<256;++ne){te[z]=se=(se=q^q<<1^q<<2^q<<3^q<<4)>>8^255&se^99,J[se]=z,Te=(pe=X[se])<<24^se<<16^se<<8^se^pe,j=((x=X[z])^(F=X[x])^(Y=X[F]))<<24^(z^Y)<<16^(z^F^Y)<<8^z^x^Y;for(var Z=0;Z<4;++Z)O[Z][z]=Te,D[Z][se]=j,Te=Te<<24|Te>>>8,j=j<<24|j>>>8;0===z?z=q=1:(z=x^X[X[X[x^Y]]],q^=X[X[q]])}}function re(X,ne){for(var q,z=X.slice(0),x=1,F=z.length,se=K*(F+6+1),pe=F;pe<se;++pe)q=z[pe-1],pe%F==0?(q=te[q>>>16&255]<<24^te[q>>>8&255]<<16^te[255&q]<<8^te[q>>>24]^H[x]<<24,x++):F>6&&pe%F==4&&(q=te[q>>>24]<<24^te[q>>>16&255]<<16^te[q>>>8&255]<<8^te[255&q]),z[pe]=z[pe-F]^q;if(ne){for(var Te,j=D[0],Z=D[1],ce=D[2],w=D[3],me=z.slice(0),Ee=(pe=0,(se=z.length)-K);pe<se;pe+=K,Ee-=K)if(0===pe||pe===se-K)me[pe]=z[Ee],me[pe+1]=z[Ee+3],me[pe+2]=z[Ee+2],me[pe+3]=z[Ee+1];else for(var ge=0;ge<K;++ge)me[pe+(3&-ge)]=j[te[(Te=z[Ee+ge])>>>24]]^Z[te[Te>>>16&255]]^ce[te[Te>>>8&255]]^w[te[255&Te]];z=me}return z}function Se(X,ne,z,q){var F,Y,se,pe,Te,j,Z,ce,w,me,Ee,ge,x=X.length/4-1;q?(F=D[0],Y=D[1],se=D[2],pe=D[3],Te=J):(F=O[0],Y=O[1],se=O[2],pe=O[3],Te=te),j=ne[0]^X[0],Z=ne[q?3:1]^X[1],ce=ne[2]^X[2],w=ne[q?1:3]^X[3];for(var Oe=3,Ie=1;Ie<x;++Ie)me=F[j>>>24]^Y[Z>>>16&255]^se[ce>>>8&255]^pe[255&w]^X[++Oe],Ee=F[Z>>>24]^Y[ce>>>16&255]^se[w>>>8&255]^pe[255&j]^X[++Oe],ge=F[ce>>>24]^Y[w>>>16&255]^se[j>>>8&255]^pe[255&Z]^X[++Oe],w=F[w>>>24]^Y[j>>>16&255]^se[Z>>>8&255]^pe[255&ce]^X[++Oe],j=me,Z=Ee,ce=ge;z[0]=Te[j>>>24]<<24^Te[Z>>>16&255]<<16^Te[ce>>>8&255]<<8^Te[255&w]^X[++Oe],z[q?3:1]=Te[Z>>>24]<<24^Te[ce>>>16&255]<<16^Te[w>>>8&255]<<8^Te[255&j]^X[++Oe],z[2]=Te[ce>>>24]<<24^Te[w>>>16&255]<<16^Te[j>>>8&255]<<8^Te[255&Z]^X[++Oe],z[q?1:3]=Te[w>>>24]<<24^Te[j>>>16&255]<<16^Te[Z>>>8&255]<<8^Te[255&ce]^X[++Oe]}function ee(X){var q,z="AES-"+((X=X||{}).mode||"CBC").toUpperCase(),x=(q=X.decrypt?S.cipher.createDecipher(z,X.key):S.cipher.createCipher(z,X.key)).start;return q.start=function(F,Y){var se=null;Y instanceof S.util.ByteBuffer&&(se=Y,Y={}),(Y=Y||{}).output=se,Y.iv=F,x.call(q,Y)},q}},310:()=>{},409:(yt,rn,ve)=>{var S=ve(6589);ve(812);var g=null;S.util.isNodejs&&!S.options.usePureJavaScript&&!process.versions["node-webkit"]&&(g=ve(310)),(yt.exports=S.prng=S.prng||{}).create=function(K){for(var te={plugin:K,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},J=K.md,H=new Array(32),O=0;O<32;++O)H[O]=J.create();function V(){if(te.pools[0].messageLength>=32)return re();te.collect(te.seedFileSync(32-te.pools[0].messageLength<<5)),re()}function re(){te.reseeds=4294967295===te.reseeds?0:te.reseeds+1;var ee=te.plugin.md.create();ee.update(te.keyBytes);for(var X=1,ne=0;ne<32;++ne)te.reseeds%X==0&&(ee.update(te.pools[ne].digest().getBytes()),te.pools[ne].start()),X<<=1;te.keyBytes=ee.digest().getBytes(),ee.start(),ee.update(te.keyBytes);var z=ee.digest().getBytes();te.key=te.plugin.formatKey(te.keyBytes),te.seed=te.plugin.formatSeed(z),te.generated=0}function Se(ee){var X=null,ne=S.util.globalScope,z=ne.crypto||ne.msCrypto;z&&z.getRandomValues&&(X=function(Z){return z.getRandomValues(Z)});var q=S.util.createBuffer();if(X)for(;q.length()<ee;){var x=Math.max(1,Math.min(ee-q.length(),65536)/4),F=new Uint32Array(Math.floor(x));try{X(F);for(var Y=0;Y<F.length;++Y)q.putInt32(F[Y])}catch(Z){if(!(typeof QuotaExceededError<"u"&&Z instanceof QuotaExceededError))throw Z}}if(q.length()<ee)for(var se,pe,Te,j=Math.floor(65536*Math.random());q.length()<ee;)for(pe=16807*(65535&j),pe+=(32767&(se=16807*(j>>16)))<<16,j=4294967295&(pe=(2147483647&(pe+=se>>15))+(pe>>31)),Y=0;Y<3;++Y)Te=j>>>(Y<<3),Te^=Math.floor(256*Math.random()),q.putByte(255&Te);return q.getBytes(ee)}return te.pools=H,te.pool=0,te.generate=function(ee,X){if(!X)return te.generateSync(ee);var ne=te.plugin.cipher,z=te.plugin.increment,q=te.plugin.formatKey,x=te.plugin.formatSeed,F=S.util.createBuffer();te.key=null,function Y(se){if(se)return X(se);if(F.length()>=ee)return X(null,F.getBytes(ee));if(te.generated>1048575&&(te.key=null),null===te.key)return S.util.nextTick(function(){!function D(ee){if(te.pools[0].messageLength>=32)return re(),ee();te.seedFile(32-te.pools[0].messageLength<<5,function(ne,z){if(ne)return ee(ne);te.collect(z),re(),ee()})}(Y)});var pe=ne(te.key,te.seed);te.generated+=pe.length,F.putBytes(pe),te.key=q(ne(te.key,z(te.seed))),te.seed=x(ne(te.key,te.seed)),S.util.setImmediate(Y)}()},te.generateSync=function(ee){var X=te.plugin.cipher,ne=te.plugin.increment,z=te.plugin.formatKey,q=te.plugin.formatSeed;te.key=null;for(var x=S.util.createBuffer();x.length()<ee;){te.generated>1048575&&(te.key=null),null===te.key&&V();var F=X(te.key,te.seed);te.generated+=F.length,x.putBytes(F),te.key=z(X(te.key,ne(te.seed))),te.seed=q(X(te.key,te.seed))}return x.getBytes(ee)},g?(te.seedFile=function(ee,X){g.randomBytes(ee,function(ne,z){if(ne)return X(ne);X(null,z.toString())})},te.seedFileSync=function(ee){return g.randomBytes(ee).toString()}):(te.seedFile=function(ee,X){try{X(null,Se(ee))}catch(ne){X(ne)}},te.seedFileSync=Se),te.collect=function(ee){for(var X=ee.length,ne=0;ne<X;++ne)te.pools[te.pool].update(ee.substr(ne,1)),te.pool=31===te.pool?0:te.pool+1},te.collectInt=function(ee,X){for(var ne="",z=0;z<X;z+=8)ne+=String.fromCharCode(ee>>z&255);te.collect(ne)},te.registerWorker=function(ee){ee===self?te.seedFile=function(ne,z){self.addEventListener("message",function q(x){var F=x.data;F.forge&&F.forge.prng&&(self.removeEventListener("message",q),z(F.forge.prng.err,F.forge.prng.bytes))}),self.postMessage({forge:{prng:{needed:ne}}})}:ee.addEventListener("message",function(ne){var z=ne.data;z.forge&&z.forge.prng&&te.seedFile(z.forge.prng.needed,function(q,x){ee.postMessage({forge:{prng:{err:q,bytes:x}}})})})},te}},651:(yt,rn,ve)=>{var S=ve(6589);ve(983),ve(1675),ve(1290),ve(812);var g=ve(2758),I=g.publicKeyValidator,K=g.privateKeyValidator;if(typeof te>"u")var te=S.jsbn.BigInteger;var J=S.util.ByteBuffer,H=typeof Buffer>"u"?Uint8Array:Buffer;S.pki=S.pki||{},yt.exports=S.pki.ed25519=S.ed25519=S.ed25519||{};var O=S.ed25519;function D(je){var He=je.message;if(He instanceof Uint8Array||He instanceof H)return He;var R=je.encoding;if(void 0===He){if(!je.md)throw new TypeError('"options.message" or "options.md" not specified.');He=je.md.digest().getBytes(),R="binary"}if("string"==typeof He&&!R)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if("string"==typeof He){if(typeof Buffer<"u")return Buffer.from(He,R);He=new J(He,R)}else if(!(He instanceof J))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var N=new H(He.length()),ie=0;ie<N.length;++ie)N[ie]=He.at(ie);return N}O.constants={},O.constants.PUBLIC_KEY_BYTE_LENGTH=32,O.constants.PRIVATE_KEY_BYTE_LENGTH=64,O.constants.SEED_BYTE_LENGTH=32,O.constants.SIGN_BYTE_LENGTH=64,O.constants.HASH_BYTE_LENGTH=64,O.generateKeyPair=function(je){var He=(je=je||{}).seed;if(void 0===He)He=S.random.getBytesSync(O.constants.SEED_BYTE_LENGTH);else if("string"==typeof He){if(He.length!==O.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+O.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(He instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');He=D({message:He,encoding:"binary"});for(var R=new H(O.constants.PUBLIC_KEY_BYTE_LENGTH),N=new H(O.constants.PRIVATE_KEY_BYTE_LENGTH),ie=0;ie<32;++ie)N[ie]=He[ie];return function F(je,He){var N,R=[st(),st(),st(),st()],ie=x(He,32);for(ie[0]&=248,ie[31]&=127,ie[31]|=64,it(R,ie),ce(je,R),N=0;N<32;++N)He[N+32]=je[N]}(R,N),{publicKey:R,privateKey:N}},O.privateKeyFromAsn1=function(je){var He={},R=[];if(!S.asn1.validate(je,K,He,R)){var ie=new Error("Invalid Key.");throw ie.errors=R,ie}var xe=S.asn1.derToOid(He.privateKeyOid),Re=S.oids.EdDSA25519;if(xe!==Re)throw new Error('Invalid OID "'+xe+'"; OID must be "'+Re+'".');return{privateKeyBytes:D({message:S.asn1.fromDer(He.privateKey).value,encoding:"binary"})}},O.publicKeyFromAsn1=function(je){var He={},R=[];if(!S.asn1.validate(je,I,He,R)){var ie=new Error("Invalid Key.");throw ie.errors=R,ie}var xe=S.asn1.derToOid(He.publicKeyOid),Re=S.oids.EdDSA25519;if(xe!==Re)throw new Error('Invalid OID "'+xe+'"; OID must be "'+Re+'".');var ze=He.ed25519PublicKey;if(ze.length!==O.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Ke
1y length is invalid.");return D({message:ze,encoding:"binary"})},O.publicKeyFromPrivateKey=function(je){var He=D({message:(je=je||{}).privateKey,encoding:"binary"});if(He.length!==O.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+O.constants.PRIVATE_KEY_BYTE_LENGTH);for(var R=new H(O.constants.PUBLIC_KEY_BYTE_LENGTH),N=0;N<R.length;++N)R[N]=He[32+N];return R},O.sign=function(je){var He=D(je=je||{}),R=D({message:je.privateKey,encoding:"binary"});if(R.length===O.constants.SEED_BYTE_LENGTH)R=O.generateKeyPair({seed:R}).privateKey;else if(R.length!==O.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+O.constants.SEED_BYTE_LENGTH+" or "+O.constants.PRIVATE_KEY_BYTE_LENGTH);var ie=new H(O.constants.SIGN_BYTE_LENGTH+He.length);!function Y(je,He,R,N){var ie,xe,Re=new Float64Array(64),ze=[st(),st(),st(),st()],Ne=x(N,32);Ne[0]&=248,Ne[31]&=127,Ne[31]|=64;var ct=R+64;for(ie=0;ie<R;++ie)je[64+ie]=He[ie];for(ie=0;ie<32;++ie)je[32+ie]=Ne[32+ie];var Nt=x(je.subarray(32),R+32);for(Te(Nt),it(ze,Nt),ce(je,ze),ie=32;ie<64;++ie)je[ie]=N[ie];var Ht=x(je,R+64);for(Te(Ht),ie=32;ie<64;++ie)Re[ie]=0;for(ie=0;ie<32;++ie)Re[ie]=Nt[ie];for(ie=0;ie<32;++ie)for(xe=0;xe<32;xe++)Re[ie+xe]+=Ht[ie]*Ne[xe];pe(je.subarray(32),Re)}(ie,He,He.length,R);for(var xe=new H(O.constants.SIGN_BYTE_LENGTH),Re=0;Re<xe.length;++Re)xe[Re]=ie[Re];return xe},O.verify=function(je){var He=D(je=je||{});if(void 0===je.signature)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var R=D({message:je.signature,encoding:"binary"});if(R.length!==O.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+O.constants.SIGN_BYTE_LENGTH);var N=D({message:je.publicKey,encoding:"binary"});if(N.length!==O.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+O.constants.PUBLIC_KEY_BYTE_LENGTH);var Re,ie=new H(O.constants.SIGN_BYTE_LENGTH+He.length),xe=new H(O.constants.SIGN_BYTE_LENGTH+He.length);for(Re=0;Re<O.constants.SIGN_BYTE_LENGTH;++Re)ie[Re]=R[Re];for(Re=0;Re<He.length;++Re)ie[Re+O.constants.SIGN_BYTE_LENGTH]=He[Re];return function se(je,He,R,N){var ie,Re=new H(32),ze=[st(),st(),st(),st()],Ne=[st(),st(),st(),st()];if(R<64||function me(je,He){var R=st(),N=st(),ie=st(),xe=st(),Re=st(),ze=st(),Ne=st();return ot(je[2],re),function Ee(je,He){var R;for(R=0;R<16;++R)je[R]=He[2*R]+(He[2*R+1]<<8);je[15]&=32767}(je[1],He),jn(ie,je[1]),mn(xe,ie,Se),It(ie,ie,je[2]),_n(xe,je[2],xe),jn(Re,xe),jn(ze,Re),mn(Ne,ze,Re),mn(R,Ne,ie),mn(R,R,xe),function ge(je,He){var N,R=st();for(N=0;N<16;++N)R[N]=He[N];for(N=250;N>=0;--N)jn(R,R),1!==N&&mn(R,R,He);for(N=0;N<16;++N)je[N]=R[N]}(R,R),mn(R,R,ie),mn(R,R,xe),mn(R,R,xe),mn(je[0],R,xe),jn(N,je[0]),mn(N,N,xe),Oe(N,ie)&&mn(je[0],je[0],q),jn(N,je[0]),mn(N,N,xe),Oe(N,ie)?-1:(Ue(je[0])===He[31]>>7&&It(je[0],V,je[0]),mn(je[3],je[0],je[1]),0)}(Ne,N))return-1;for(ie=0;ie<R;++ie)je[ie]=He[ie];for(ie=0;ie<32;++ie)je[ie+32]=N[ie];var ct=x(je,R);if(Te(ct),Ge(ze,Ne,ct),it(Ne,He.subarray(32)),j(ze,Ne),ce(Re,ze),R-=64,Ie(He,0,Re,0)){for(ie=0;ie<R;++ie)je[ie]=0;return-1}for(ie=0;ie<R;++ie)je[ie]=He[ie+64];return R}(xe,ie,ie.length,N)>=0};var V=st(),re=st([1]),Se=st([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),ee=st([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),X=st([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),ne=st([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),z=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),q=st([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function x(je,He){var R=S.md.sha512.create(),N=new J(je);R.update(N.getBytes(He),"binary");var ie=R.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(ie,"binary");for(var xe=new H(O.constants.HASH_BYTE_LENGTH),Re=0;Re<64;++Re)xe[Re]=ie.charCodeAt(Re);return xe}function pe(je,He){var R,N,ie,xe;for(N=63;N>=32;--N){for(R=0,ie=N-32,xe=N-12;ie<xe;++ie)He[ie]+=R-16*He[N]*z[ie-(N-32)],He[ie]-=256*(R=He[ie]+128>>8);He[ie]+=R,He[N]=0}for(R=0,ie=0;ie<32;++ie)He[ie]+=R-(He[31]>>
vendor: 26,179 bytes, line 1
14)*z[ie],R=He[ie]>>8,He[ie]&=255;for(ie=0;ie<32;++ie)He[ie]-=R*z[ie];for(N=0;N<32;++N)He[N+1]+=He[N]>>8,je[N]=255&He[N]}function Te(je){for(var He=new Float64Array(64),R=0;R<64;++R)He[R]=je[R],je[R]=0;pe(je,He)}function j(je,He){var R=st(),N=st(),ie=st(),xe=st(),Re=st(),ze=st(),Ne=st(),ct=st(),Nt=st();It(R,je[1],je[0]),It(Nt,He[1],He[0]),mn(R,R,Nt),_n(N,je[0],je[1]),_n(Nt,He[0],He[1]),mn(N,N,Nt),mn(ie,je[3],He[3]),mn(ie,ie,ee),mn(xe,je[2],He[2]),_n(xe,xe,xe),It(Re,N,R),It(ze,xe,ie),_n(Ne,xe,ie),_n(ct,N,R),mn(je[0],Re,ze),mn(je[1],ct,Ne),mn(je[2],Ne,ze),mn(je[3],Re,ct)}function Z(je,He,R){for(var N=0;N<4;++N)Et(je[N],He[N],R)}function ce(je,He){var R=st(),N=st(),ie=st();(function St(je,He){var N,R=st();for(N=0;N<16;++N)R[N]=He[N];for(N=253;N>=0;--N)jn(R,R),2!==N&&4!==N&&mn(R,R,He);for(N=0;N<16;++N)je[N]=R[N]})(ie,He[2]),mn(R,He[0],ie),mn(N,He[1],ie),w(je,N),je[31]^=Ue(R)<<7}function w(je,He){var R,N,ie,xe=st(),Re=st();for(R=0;R<16;++R)Re[R]=He[R];for(Tt(Re),Tt(Re),Tt(Re),N=0;N<2;++N){for(xe[0]=Re[0]-65517,R=1;R<15;++R)xe[R]=Re[R]-65535-(xe[R-1]>>16&1),xe[R-1]&=65535;xe[15]=Re[15]-32767-(xe[14]>>16&1),ie=xe[15]>>16&1,xe[14]&=65535,Et(Re,xe,1-ie)}for(R=0;R<16;R++)je[2*R]=255&Re[R],je[2*R+1]=Re[R]>>8}function Oe(je,He){var R=new H(32),N=new H(32);return w(R,je),w(N,He),Ie(R,0,N,0)}function Ie(je,He,R,N){return function Be(je,He,R,N,ie){var xe,Re=0;for(xe=0;xe<ie;++xe)Re|=je[He+xe]^R[N+xe];return(1&Re-1>>>8)-1}(je,He,R,N,32)}function Ue(je){var He=new H(32);return w(He,je),1&He[0]}function Ge(je,He,R){var N,ie;for(ot(je[0],V),ot(je[1],re),ot(je[2],re),ot(je[3],V),ie=255;ie>=0;--ie)Z(je,He,N=R[ie/8|0]>>(7&ie)&1),j(He,je),j(je,je),Z(je,He,N)}function it(je,He){var R=[st(),st(),st(),st()];ot(R[0],X),ot(R[1],ne),ot(R[2],re),mn(R[3],X,ne),Ge(je,R,He)}function ot(je,He){var R;for(R=0;R<16;R++)je[R]=0|He[R]}function Tt(je){var He,R,N=1;for(He=0;He<16;++He)R=je[He]+N+65535,N=Math.floor(R/65536),je[He]=R-65536*N;je[0]+=N-1+37*(N-1)}function Et(je,He,R){for(var N,ie=~(R-1),xe=0;xe<16;++xe)je[xe]^=N=ie&(je[xe]^He[xe]),He[xe]^=N}function st(je){var He,R=new Float64Array(16);if(je)for(He=0;He<je.length;++He)R[He]=je[He];return R}function _n(je,He,R){for(var N=0;N<16;++N)je[N]=He[N]+R[N]}function It(je,He,R){for(var N=0;N<16;++N)je[N]=He[N]-R[N]}function jn(je,He){mn(je,He,He)}function mn(je,He,R){var N,ie,xe=0,Re=0,ze=0,Ne=0,ct=0,Nt=0,Ht=0,rt=0,ft=0,Gt=0,Mn=0,tn=0,jt=0,ki=0,xi=0,Ni=0,Mi=0,ji=0,sr=0,Dr=0,Sr=0,Va=0,Ua=0,ka=0,Yr=0,Ha=0,Do=0,Js=0,Hl=0,ll=0,Td=0,zi=R[0],Li=R[1],Er=R[2],or=R[3],Ir=R[4],lr=R[5],Fn=R[6],xt=R[7],cr=R[8],Jt=R[9],dr=R[10],Tr=R[11],ur=R[12],xr=R[13],nt=R[14],Ki=R[15];xe+=(N=He[0])*zi,Re+=N*Li,ze+=N*Er,Ne+=N*or,ct+=N*Ir,Nt+=N*lr,Ht+=N*Fn,rt+=N*xt,ft+=N*cr,Gt+=N*Jt,Mn+=N*dr,tn+=N*Tr,jt+=N*ur,ki+=N*xr,xi+=N*nt,Ni+=N*Ki,Re+=(N=He[1])*zi,ze+=N*Li,Ne+=N*Er,ct+=N*or,Nt+=N*Ir,Ht+=N*lr,rt+=N*Fn,ft+=N*xt,Gt+=N*cr,Mn+=N*Jt,tn+=N*dr,jt+=N*Tr,ki+=N*ur,xi+=N*xr,Ni+=N*nt,Mi+=N*Ki,ze+=(N=He[2])*zi,Ne+=N*Li,ct+=N*Er,Nt+=N*or,Ht+=N*Ir,rt+=N*lr,ft+=N*Fn,Gt+=N*xt,Mn+=N*cr,tn+=N*Jt,jt+=N*dr,ki+=N*Tr,xi+=N*ur,Ni+=N*xr,Mi+=N*nt,ji+=N*Ki,Ne+=(N=He[3])*zi,ct+=N*Li,Nt+=N*Er,Ht+=N*or,rt+=N*Ir,ft+=N*lr,Gt+=N*Fn,Mn+=N*xt,tn+=N*cr,jt+=N*Jt,ki+=N*dr,xi+=N*Tr,Ni+=N*ur,Mi+=N*xr,ji+=N*nt,sr+=N*Ki,ct+=(N=He[4])*zi,Nt+=N*Li,Ht+=N*Er,rt+=N*or,ft+=N*Ir,Gt+=N*lr,Mn+=N*Fn,tn+=N*xt,jt+=N*cr,ki+=N*Jt,xi+=N*dr,Ni+=N*Tr,Mi+=N*ur,ji+=N*xr,sr+=N*nt,Dr+=N*Ki,Nt+=(N=He[5])*zi,Ht+=N*Li,rt+=N*Er,ft+=N*or,Gt+=N*Ir,Mn+=N*lr,tn+=N*Fn,jt+=N*xt,ki+=N*cr,xi+=N*Jt,Ni+=N*dr,Mi+=N*Tr,ji+=N*ur,sr+=N*xr,Dr+=N*nt,Sr+=N*Ki,Ht+=(N=He[6])*zi,rt+=N*Li,ft+=N*Er,Gt+=N*or,Mn+=N*Ir,tn+=N*lr,jt+=N*Fn,ki+=N*xt,xi+=N*cr,Ni+=N*Jt,Mi+=N*dr,ji+=N*Tr,sr+=N*ur,Dr+=N*xr,Sr+=N*nt,Va+=N*Ki,rt+=(N=He[7])*zi,ft+=N*Li,Gt+=N*Er,Mn+=N*or,tn+=N*Ir,jt+=N*lr,ki+=N*Fn,xi+=N*xt,Ni+=N*cr,Mi+=N*Jt,ji+=N*dr,sr+=N*Tr,Dr+=N*ur,Sr+=N*xr,Va+=N*nt,Ua+=N*Ki,ft+=(N=He[8])*zi,Gt+=N*Li,Mn+=N*Er,tn+=N*or,jt+=N*Ir,ki+=N*lr,xi+=N*Fn,Ni+=N*xt,Mi+=N*cr,ji+=N*Jt,sr+=N*dr,Dr+=N*Tr,Sr+=N*ur,Va+=N*xr,Ua+=N*nt,ka+=N*Ki,Gt+=(N=He[9])*zi,Mn+=N*Li,tn+=N*Er,jt+=N*or,ki+=N*Ir,xi+=N*lr,Ni+=N*Fn,Mi+=N*xt,ji+=N*cr,sr+=N*Jt,Dr+=N*dr,Sr+=N*Tr,Va+=N*ur,Ua+=N*xr,ka+=N*nt,Yr+=N*Ki,Mn+=(N=He[10])*zi,tn+=N*Li,jt+=N*Er,ki+=N*or,xi+=N*Ir,Ni+=N*lr,Mi+=N*Fn,ji+=N*xt,sr+=N*cr,Dr+=N*Jt,Sr+=N*dr,Va+=N*Tr,Ua+=N*ur,ka+=N*xr,Yr+=N*nt,Ha+=N*Ki,tn+=(N=He[11])*zi,jt+=N*Li,ki+=N*Er,xi+=N*or,Ni+=N*Ir,Mi+=N*lr,ji+=N*Fn,sr+=N*xt,Dr+=N*cr,Sr+=N*Jt,Va+=N*dr,Ua+=N*Tr,ka+=N*ur,Yr+=N*xr,Ha+=N*nt,Do+=N*Ki,jt+=(N=He[12])*zi,ki+=N*Li,xi+=N*Er,Ni+=N*or,Mi+=N*Ir,ji+=N*lr,sr+=N*Fn,Dr+=N*xt,Sr+=N*cr,Va+=N*Jt,Ua+=N*dr,ka+=N*Tr,Yr+=N*ur,Ha+=N*xr,Do+=N*nt,Js+=N*Ki,ki+=(N=He[13])*zi,xi+=N*Li,Ni+=N*Er,Mi+=N*or,ji+=N*Ir,sr+=N*lr,Dr+=N*Fn,Sr+=N*xt,Va+=N*cr,Ua+=N*Jt,ka+=N*dr,Yr+=N*Tr,Ha+=N*ur,Do+=N*xr,Js+=N*nt,Hl+=N*Ki,xi+=(N=He[14])*zi,Ni+=N*Li,Mi+=N*Er,ji+=N*or,sr+=N*Ir,Dr+=N*lr,Sr+=N*Fn,Va+=N*xt,Ua+=N*cr,ka+=N*Jt,Yr+=N*dr,Ha+=N*Tr,Do+=N*ur,Js+=N*xr,Hl+=N*nt,ll+=N*Ki,Ni+=(N=He[15])*zi,Re+=38*(ji+=N*Er),ze+=38*(sr+=N*or),Ne+=38*(Dr+=N*Ir),ct+=38*(Sr+=N*lr),Nt+=38*(Va+=N*Fn),Ht+=38*(Ua+=N*xt),rt+=38*(ka+=N*cr),ft+=38*(Yr+=N*Jt),Gt+=38*(Ha+=N*dr),Mn+=38*(Do+=N*Tr),tn+=38*(Js+=N*ur),jt+=38*(Hl+=N*xr),ki+=38*(ll+=N*nt),xi+=38*(Td+=N*Ki),xe=(N=(xe+=38*(Mi+=N*Li))+(ie=1)+65535)-65536*(ie=Math.floor(N/65536)),Re=(N=Re+ie+65535)-65536*(ie=Math.floor(N/65536)),ze=(N=ze+ie+65535)-65536*(ie=Math.floor(N/65536)),Ne=(N=Ne+ie+65535)-65536*(ie=Math.floor(N/65536)),ct=(N=ct+ie+65535)-65536*(ie=Math.floor(N/65536)),Nt=(N=Nt+ie+65535)-65536*(ie=Math.floor(N/65536)),Ht=(N=Ht+ie+65535)-65536*(ie=Math.floor(N/65536)),rt=(N=rt+ie+65535)-65536*(ie=Math.floor(N/65536)),ft=(N=ft+ie+65535)-65536*(ie=Math.floor(N/65536)),Gt=(N=Gt+ie+65535)-65536*(ie=Math.floor(N/65536)),Mn=(N=Mn+ie+65535)-65536*(ie=Math.floor(N/65536)),tn=(N=tn+ie+65535)-65536*(ie=Math.floor(N/65536)),jt=(N=jt+ie+65535)-65536*(ie=Math.floor(N/65536)),ki=(N=ki+ie+65535)-65536*(ie=Math.floor(N/65536)),xi=(N=xi+ie+65535)-65536*(ie=Math.floor(N/65536)),Ni=(N=Ni+ie+65535)-65536*(ie=Math.floor(N/65536)),xe=(N=(xe+=ie-1+37*(ie-1))+(ie=1)+65535)-65536*(ie=Math.floor(N/65536)),Re=(N=Re+ie+65535)-65536*(ie=Math.floor(N/65536)),ze=(N=ze+ie+65535)-65536*(ie=Math.floor(N/65536)),Ne=(N=Ne+ie+65535)-65536*(ie=Math.floor(N/65536)),ct=(N=ct+ie+65535)-65536*(ie=Math.floor(N/65536)),Nt=(N=Nt+ie+65535)-65536*(ie=Math.floor(N/65536)),Ht=(N=Ht+ie+65535)-65536*(ie=Math.floor(N/65536)),rt=(N=rt+ie+65535)-65536*(ie=Math.floor(N/65536)),ft=(N=ft+ie+65535)-65536*(ie=Math.floor(N/65536)),Gt=(N=Gt+ie+65535)-65536*(ie=Math.floor(N/65536)),Mn=(N=Mn+ie+65535)-65536*(ie=Math.floor(N/65536)),tn=(N=tn+ie+65535)-65536*(ie=Math.floor(N/65536)),jt=(N=jt+ie+65535)-65536*(ie=Math.floor(N/65536)),ki=(N=ki+ie+65535)-65536*(ie=Math.floor(N/65536)),xi=(N=xi+ie+65535)-65536*(ie=Math.floor(N/65536)),Ni=(N=Ni+ie+65535)-65536*(ie=Math.floor(N/65536)),je[0]=xe+=ie-1+37*(ie-1),je[1]=Re,je[2]=ze,je[3]=Ne,je[4]=ct,je[5]=Nt,je[6]=Ht,je[7]=rt,je[8]=ft,je[9]=Gt,je[10]=Mn,je[11]=tn,je[12]=jt,je[13]=ki,je[14]=xi,je[15]=Ni}},812:(yt,rn,ve)=>{var S=ve(6589),g=ve(3175),I=yt.exports=S.util=S.util||{};function K(x){if(8!==x&&16!==x&&24!==x&&32!==x)throw new Error("Only 8, 16, 24, or 32 bits supported: "+x)}function te(x){if(this.data="",this.read=0,"string"==typeof x)this.data=x;else if(I.isArrayBuffer(x)||I.isArrayBufferView(x))if(typeof Buffer<"u"&&x instanceof Buffer)this.data=x.toString("binary");else{var F=new Uint8Array(x);try{this.data=String.fromCharCode.apply(null,F)}catch{for(var Y=0;Y<F.length;++Y)this.putByte(F[Y])}}else(x instanceof te||"object"==typeof x&&"string"==typeof x.data&&"number"==typeof x.read)&&(this.data=x.data,this.read=x.read);this._constructedStringLength=0}(function(){if(typeof process<"u"&&process.nextTick&&!process.browser)return I.nextTick=process.nextTick,void(I.setImmediate="function"==typeof setImmediate?setImmediate:I.nextTick);if("function"==typeof setImmediate)return I.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(I.nextTick=function(Z){return setImmediate(Z)});if(I.setImmediate=function(Z){setTimeout(Z,0)},typeof window<"u"&&"function"==typeof window.postMessage){let Z=function(ce){if(ce.source===window&&ce.data===x){ce.stopPropagation();var w=F.slice();F.length=0,w.forEach(function(me){me()})}};var x="forge.setImmediate",F=[];I.setImmediate=function(ce){F.push(ce),1===F.length&&window.postMessage(x,"*")},window.addEventListener("message",Z,!0)}if(typeof MutationObserver<"u"){var Y=Date.now(),se=!0,pe=document.createElement("div");F=[],new MutationObserver(function(){var ce=F.slice();F.length=0,ce.forEach(function(w){w()})}).observe(pe,{attributes:!0});var Te=I.setImmediate;I.setImmediate=function(ce){Date.now()-Y>15?(Y=Date.now(),Te(ce)):(F.push(ce),1===F.length&&pe.setAttribute("a",se=!se))}}I.nextTick=I.setImmediate})(),I.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,I.globalScope=I.isNodejs?global:typeof self>"u"?window:self,I.isArray=Array.isArray||function(x){return"[object Array]"===Object.prototype.toString.call(x)},I.isArrayBuffer=function(x){return typeof ArrayBuffer<"u"&&x instanceof ArrayBuffer},I.isArrayBufferView=function(x){return x&&I.isArrayBuffer(x.buffer)&&void 0!==x.byteLength},I.ByteBuffer=te,I.ByteStringBuffer=te,I.ByteStringBuffer.prototype._optimizeConstructedString=function(x){this._constructedStringLength+=x,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},I.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},I.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},I.ByteStringBuffer.prototype.putByte=function(x){return this.putBytes(String.fromCharCode(x))},I.ByteStringBuffer.prototype.fillWithByte=function(x,F){x=String.fromCharCode(x);for(var Y=this.data;F>0;)1&F&&(Y+=x),(F>>>=1)>0&&(x+=x);return this.data=Y,this._optimizeConstructedString(F),this},I.ByteStringBuffer.prototype.putBytes=function(x){return this.data+=x,this._optimizeConstructedString(x.length),this},I.ByteStringBuffer.prototype.putString=function(x){return this.putBytes(I.encodeUtf8(x))},I.ByteStringBuffer.prototype.putInt16=function(x){return this.putBytes(String.fromCharCode(x>>8&255)+String.fromCharCode(255&x))},I.ByteStringBuffer.prototype.putInt24=function(x){return this.putBytes(String.fromCharCode(x>>16&255)+String.fromCharCode(x>>8&255)+String.fromCharCode(255&x))},I.ByteStringBuffer.prototype.putInt32=function(x){return this.putBytes(String.fromCharCode(x>>24&255)+String.fromCharCode(x>>16&255)+String.fromCharCode(x>>8&255)+String.fromCharCode(255&x))},I.ByteStringBuffer.prototype.putInt16Le=function(x){return this.putBytes(String.fromCharCode(255&x)+String.fromCharCode(x>>8&255))},I.ByteStringBuffer.prototype.putInt24Le=function(x){return this.putBytes(String.fromCharCode(255&x)+String.fromCharCode(x>>8&255)+String.fromCharCode(x>>16&255))},I.ByteStringBuffer.prototype.putInt32Le=function(x){return this.putBytes(String.fromCharCode(255&x)+String.fromCharCode(x>>8&255)+String.fromCharCode(x>>16&255)+String.fromCharCode(x>>24&255))},I.ByteStringBuffer.prototype.putInt=function(x,F){K(F);var Y="";do{F-=8,Y+=String.fromCharCode(x>>F&255)}while(F>0);return this.putBytes(Y)},I.ByteStringBuffer.prototype.putSignedInt=function(x,F){return x<0&&(x+=2<<F-1),this.putInt(x,F)},I.ByteStringBuffer.prototype.putBuffer=function(x){return this.putBytes(x.getBytes())},I.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},I.ByteStringBuffer.prototype.getInt16=function(){var x=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,x},I.ByteStringBuffer.prototype.getInt24=function(){var x=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,x},I.ByteStringBuffer.prototype.getInt32=function(){var x=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,x},I.ByteStringBuffer.prototype.getInt16Le=function(){var x=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,x},I.ByteStringBuffer.prototype.getInt24Le=function(){var x=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,x},I.ByteStringBuffer.prototype.getInt32Le=function(){var x=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,x},I.ByteStringBuffer.prototype.getInt=function(x){K(x);var F=0;do{F=(F<<8)+this.data.charCodeAt(this.read++),x-=8}while(x>0);return F},I.ByteStringBuffer.prototype.getSignedInt=function(x){var F=this.getInt(x),Y=2<<x-2;return F>=Y&&(F-=Y<<1),F},I.ByteStringBuffer.prototype.getBytes=function(x){var F;return x?(x=Math.min(this.length(),x),F=this.data.slice(this.read,this.read+x),this.read+=x):0===x?F="":(F=0===this.read?this.data:this.data.slice(this.read),this.clear()),F},I.ByteStringBuffer.prototype.bytes=function(x){return typeof x>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+x)},I.ByteStringBuffer.prototype.at=function(x){return this.data.charCodeAt(this.read+x)},I.ByteStringBuffer.prototype.setAt=function(x,F){return this.data=this.data.substr(0,this.read+x)+String.fromCharCode(F)+this.data.substr(this.read+x+1),this},I.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},I.ByteStringBuffer.prototype.copy=function(){var x=I.createBuffer(this.data);return x.read=this.read,x},I.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},I.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},I.ByteStringBuffer.prototype.truncate=function(x){var F=Math.max(0,this.length()-x);return this.data=this.data.substr(this.read,F),this.read=0,this},I.ByteStringBuffer.prototype.toHex=function(){for(var x="",F=this.read;F<this.data.length;++F){var Y=this.data.charCodeAt(F);Y<16&&(x+="0"),x+=Y.toString(16)}return x},I.ByteStringBuffer.prototype.toString=function(){return I.decodeUtf8(this.bytes())},I.DataBuffer=function H(x,F){this.read=(F=F||{}).readOffset||0,this.growSize=F.growSize||1024;var Y=I.isArrayBuffer(x),se=I.isArrayBufferView(x);if(Y||se)return this.data=Y?new DataView(x):new DataView(x.buffer,x.byteOffset,x.byteLength),void(this.write="writeOffset"in F?F.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=x&&this.putBytes(x),"writeOffset"in F&&(this.write=F.writeOffset)},I.DataBuffer.prototype.length=function(){return this.write-this.read},I.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},I.DataBuffer.prototype.accommodate=function(x,F){if(this.length()>=x)return this;F=Math.max(F||this.growSize,x);var Y=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),se=new Uint8Array(this.length()+F);return se.set(Y),this.data=new DataView(se.buffer),this},I.DataBuffer.prototype.putByte=function(x){return this.accommodate(1),this.data.setUint8(this.write++,x),this},I.DataBuffer.prototype.fillWithByte=function(x,F){this.accommodate(F);for(var Y=0;Y<F;++Y)this.data.setUint8(x);return this},I.DataBuffer.prototype.putBytes=function(x,F){if(I.isArrayBufferView(x)){var se=(Y=new Uint8Array(x.buffer,x.byteOffset,x.byteLength)).byteLength-Y.byteOffset;return this.accommodate(se),new Uint8Array(this.data.buffer,this.write).set(Y),this.write+=se,this}if(I.isArrayBuffer(x)){var Y=new Uint8Array(x);return this.accommodate(Y.byteLength),new Uint8Array(this.data.buffer).set(Y,this.write),this.write+=Y.byteLength,this}if(x instanceof I.DataBuffer||"object"==typeof x&&"number"==typeof x.read&&"number"==typeof x.write&&I.isArrayBufferView(x.data))return Y=new Uint8Array(x.data.byteLength,x.read,x.length()),this.accommodate(Y.byteLength),new Uint8Array(x.data.byteLength,this.write).set(Y),this.write+=Y.byteLength,this;if(x instanceof I.ByteStringBuffer&&(x=x.data,F="binary"),F=F||"binary","string"==typeof x){var Te;if("hex"===F)return this.accommodate(Math.ceil(x.length/2)),Te=new Uint8Array(this.data.buffer,this.write),this.write+=I.binary.hex.decode(x,Te,this.write),this;if("base64"===F)return this.accommodate(3*Math.ceil(x.length/4)),Te=new Uint8Array(this.data.buffer,this.write),this.write+=I.binary.base64.decode(x,Te,this.write),this;if("utf8"===F&&(x=I.encodeUtf8(x),F="binary"),"binary"===F||"raw"===F)return this.accommodate(x.length),Te=new Uint8Array(this.data.buffer,this.write),this.write+=I.binary.raw.decode(Te),this;if("utf16"===F)return this.accommodate(2*x.length),Te=new Uint16Array(this.data.buffer,this.write),this.write+=I.text.utf16.encode(Te),this;throw new Error("Invalid encoding: "+F)}throw Error("Invalid parameter: "+x)},I.DataBuffer.prototype.putBuffer=function(x){return this.putBytes(x),x.clear(),this},I.DataBuffer.prototype.putString=function(x){return this.putBytes(x,"utf16")},I.DataBuffer.prototype.putInt16=function(x){return this.accommodate(2),this.data.setInt16(this.write,x),this.write+=2,this},I.DataBuffer.prototype.putInt24=function(x){return this.accommodate(3),this.data.setInt16(this.write,x>>8&65535),this.data.setInt8(this.write,x>>16&255),this.write+=3,this},I.DataBuffer.prototype.putInt32=function(x){return this.accommodate(4),this.data.setInt32(this.write,x),this.write+=4,this},I.DataBuffer.prototype.putInt16Le=function(x){return this.accommodate(2),this.data.setInt16(this.write,x,!0),this.write+=2,this},I.DataBuffer.prototype.putInt24Le=function(x){return this.accommodate(3),this.data.setInt8(this.write,x>>16&255),this.data.setInt16(this.write,x>>8&65535,!0),this.write+=3,this},I.DataBuffer.prototype.putInt32Le=function(x){return this.accommodate(4),this.data.setInt32(this.write,x,!0),this.write+=4,this},I.DataBuffer.prototype.putInt=function(x,F){K(F),this.accommodate(F/8);do{F-=8,this.data.setInt8(this.write++,x>>F&255)}while(F>0);return this},I.DataBuffer.prototype.putSignedInt=function(x,F){return K(F),this.accommodate(F/8),x<0&&(x+=2<<F-1),this.putInt(x,F)},I.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},I.DataBuffer.prototype.getInt16=function(){var x=this.data.getInt16(this.read);return this.read+=2,x},I.DataBuffer.prototype.getInt24=function(){var x=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,x},I.DataBuffer.prototype.getInt32=function(){var x=this.data.getInt32(this.read);return this.read+=4,x},I.DataBuffer.prototype.getInt16Le=function(){var x=this.data.getInt16(this.read,!0);return this.read+=2,x},I.DataBuffer.prototype.getInt24Le=function(){var x=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,x},I.DataBuffer.prototype.getInt32Le=function(){var x=this.data.getInt32(this.read,!0);return this.read+=4,x},I.DataBuffer.prototype.getInt=function(x){K(x);var F=0;do{F=(F<<8)+this.data.getInt8(this.read++),x-=8}while(x>0);return F},I.DataBuffer.prototype.getSignedInt=function(x){var F=this.getInt(x),Y=2<<x-2;return F>=Y&&(F-=Y<<1),F},I.DataBuffer.prototype.getBytes=function(x){var F;return x?(x=Math.min(this.length(),x),F=this.data.slice(this.read,this.read+x),this.read+=x):0===x?F="":(F=0===this.read?this.data:this.data.slice(this.read),this.clear()),F},I.DataBuffer.prototype.bytes=function(x){return typeof x>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+x)},I.DataBuffer.prototype.at=function(x){return this.data.getUint8(this.read+x)},I.DataBuffer.prototype.setAt=function(x,F){return this.data.setUint8(x,F),this},I.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},I.DataBuffer.prototype.copy=function(){return new I.DataBuffer(this)},I.DataBuffer.prototype.compact=function(){if(this.read>0){var x=new Uint8Array(this.data.buffer,this.read),F=new Uint8Array(x.byteLength);F.set(x),this.data=new DataView(F),this.write-=this.read,this.read=0}return this},I.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},I.DataBuffer.prototype.truncate=function(x){return this.write=Math.max(0,this.length()-x),this.read=Math.min(this.read,this.write),this},I.DataBuffer.prototype.toHex=function(){for(var x="",F=this.read;F<this.data.byteLength;++F){var Y=this.data.getUint8(F);Y<16&&(x+="0"),x+=Y.toString(16)}return x},I.DataBuffer.prototype.toString=function(x){var F=new Uint8Array(this.data,this.read,this.length());if("binary"===(x=x||"utf8")||"raw"===x)return I.binary.raw.encode(F);if("hex"===x)return I.binary.hex.encode(F);if("base64"===x)return I.binary.base64.encode(F);if("utf8"===x)return I.text.utf8.decode(F);if("utf16"===x)return I.text.utf16.decode(F);throw new Error("Invalid encoding: "+x)},I.createBuffer=function(x,F){return F=F||"raw",void 0!==x&&"utf8"===F&&(x=I.encodeUtf8(x)),new I.ByteBuffer(x)},I.fillString=function(x,F){for(var Y="";F>0;)1&F&&(Y+=x),(F>>>=1)>0&&(x+=x);return Y},I.xorBytes=function(x,F,Y){for(var se="",pe="",Te="",j=0,Z=0;Y>0;--Y,++j)pe=x.charCodeAt(j)^F.charCodeAt(j),Z>=10&&(se+=Te,Te="",Z=0),Te+=String.fromCharCode(pe),++Z;return se+Te},I.hexToBytes=function(x){var F="",Y=0;for(!0&x.length&&(Y=1,F+=String.fromCharCode(parseInt(x[0],16)));Y<x.length;Y+=2)F+=String.fromCharCode(parseInt(x.substr(Y,2),16));return F},I.bytesToHex=function(x){return I.createBuffer(x).toHex()},I.int32ToBytes=function(x){return String.fromCharCode(x>>24&255)+String.fromCharCode(x>>16&255)+String.fromCharCode(x>>8&255)+String.fromCharCode(255&x)};var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",D=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],V="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";I.encode64=function(x,F){for(var pe,Te,j,Y="",se="",Z=0;Z<x.length;)pe=x.charCodeAt(Z++),Te=x.charCodeAt(Z++),j=x.charCodeAt(Z++),Y+=O.charAt(pe>>2),Y+=O.charAt((3&pe)<<4|Te>>4),isNaN(Te)?Y+="==":(Y+=O.charAt((15&Te)<<2|j>>6),Y+=isNaN(j)?"=":O.charAt(63&j)),F&&Y.length>F&&(se+=Y.substr(0,F)+"\r\n",Y=Y.substr(F));return se+Y},I.decode64=function(x){x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var Y,se,pe,Te,F="",j=0;j<x.length;)Y=D[x.charCodeAt(j++)-43],se=D[x.charCodeAt(j++)-43],pe=D[x.charCodeAt(j++)-43],Te=D[x.charCodeAt(j++)-43],F+=String.fromCharCode(Y<<2|se>>4),64!==pe&&(F+=String.fromCharCode((15&se)<<4|pe>>2),64!==Te&&(F+=String.fromCharCode((3&pe)<<6|Te)));return F},I.encodeUtf8=function(x){return unescape(encodeURIComponent(x))},I.decodeUtf8=function(x){return decodeURIComponent(escape(x))},I.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:g.encode,decode:g.decode}},I.binary.raw.encode=function(x){return String.fromCharCode.apply(null,x)},I.binary.raw.decode=function(x,F,Y){var se=F;se||(se=new Uint8Array(x.length));for(var pe=Y=Y||0,Te=0;Te<x.length;++Te)se[pe++]=x.charCodeAt(Te);return F?pe-Y:se},I.binary.hex.encode=I.bytesToHex,I.binary.hex.decode=function(x,F,Y){var se=F;se||(se=new Uint8Array(Math.ceil(x.length/2)));var pe=0,Te=Y=Y||0;for(1&x.length&&(pe=1,se[Te++]=parseInt(x[0],16));pe<x.length;pe+=2)se[Te++]=parseInt(x.substr(pe,2),16);return F?Te-Y:se},I.binary.base64.encode=function(x,F){for(var pe,Te,j,Y="",se="",Z=0;Z<x.byteLength;)pe=x[Z++],Te=x[Z++],j=x[Z++],Y+=O.charAt(pe>>2),Y+=O.charAt((3&pe)<<4|Te>>4),isNaN(Te)?Y+="==":(Y+=O.charAt((15&Te)<<2|j>>6),Y+=isNaN(j)?"=":O.charAt(63&j)),F&&Y.length>F&&(se+=Y.substr(0,F)+"\r\n",Y=Y.substr(F));return se+Y},I.binary.base64.decode=function(x,F,Y){var se=F;se||(se=new Uint8Array(3*Math.ceil(x.length/4))),x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var pe,Te,j,Z,ce=0,w=Y=Y||0;ce<x.length;)pe=D[x.charCodeAt(ce++)-43],Te=D[x.charCodeAt(ce++)-43],j=D[x.charCodeAt(ce++)-43],Z=D[x.charCodeAt(ce++)-43],se[w++]=pe<<2|Te>>4,64!==j&&(se[w++]=(15&Te)<<4|j>>2,64!==Z&&(se[w++]=(3&j)<<6|Z));return F?w-Y:se.subarray(0,w)},I.binary.base58.encode=function(x,F){return I.binary.baseN.encode(x,V,F)},I.binary.base58.decode=function(x,F){return I.binary.baseN.decode(x,V,F)},I.text={utf8:{},utf16:{}},I.text.utf8.encode=function(x,F,Y){x=I.encodeUtf8(x);var se=F;se||(se=new Uint8Array(x.length));for(var pe=Y=Y||0,Te=0;Te<x.length;++Te)se[pe++]=x.charCodeAt(Te);return F?pe-Y:se},I.text.utf8.decode=function(x){return I.decodeUtf8(String.fromCharCode.apply(null,x))},I.text.utf16.encode=function(x,F,Y){var se=F;se||(se=new Uint8Array(2*x.length));for(var pe=new Uint16Array(se.buffer),Te=Y=Y||0,j=Y,Z=0;Z<x.length;++Z)pe[j++]=x.charCodeAt(Z),Te+=2;return F?Te-Y:se},I.text.utf16.decode=function(x){return String.fromCharCode.apply(null,new Uint16Array(x.buffer))},I.deflate=function(x,F,Y){if(F=I.decode64(x.deflate(I.encode64(F)).rval),Y){var se=2;32&F.charCodeAt(1)&&(se=6),F=F.substring(se,F.length-4)}return F},I.inflate=function(x,F,Y){var se=x.inflate(I.encode64(F)).rval;return null===se?null:I.decode64(se)};var re=function(x,F,Y){if(!x)throw new Error("WebStorage not available.");var se;if(null===Y?se=x.removeItem(F):(Y=I.encode64(JSON.stringify(Y)),se=x.setItem(F,Y)),typeof se<"u"&&!0!==se.rval){var pe=new Error(se.error.message);throw pe.id=se.error.id,pe.name=se.error.name,pe}},Se=function(x,F){if(!x)throw new Error("WebStorage not available.");var Y=x.getItem(F);if(x.init)if(null===Y.rval){if(Y.error){var se=new Error(Y.error.message);throw se.id=Y.error.id,se.name=Y.error.name,se}Y=null}else Y=Y.rval;return null!==Y&&(Y=JSON.parse(I.decode64(Y))),Y},ee=function(x,F,Y,se){var pe=Se(x,F);null===pe&&(pe={}),pe[Y]=se,re(x,F,pe)},X=function(x,F,Y){var se=Se(x,F);return null!==se&&(se=Y in se?se[Y]:null),se},ne=function(x,F,Y){var se=Se(x,F);if(null!==se&&Y in se){delete se[Y];var pe=!0;for(var Te in se){pe=!1;break}pe&&(se=null),re(x,F,se)}},z=function(x,F){re(x,F,null)},q=function(x,F,Y){var se=null;typeof Y>"u"&&(Y=["web","flash"]);var pe,Te=!1,j=null;for(var Z in Y){pe=Y[Z];try{if("flash"===pe||"both"===pe){if(null===F[0])throw new Error("Flas
1h local storage not available.");se=x.apply(this,F),Te="flash"===pe}("web"===pe||"both"===pe)&&(F[0]=localStorage,se=x.apply(this,F),Te=!0)}catch(ce){j=ce}if(Te)break}if(!Te)throw j;return se};I.setItem=function(x,F,Y,se,pe){q(ee,arguments,pe)},I.getItem=function(x,F,Y,se){return q(X,arguments,se)},I.removeItem=function(x,F,Y,se){q(ne,arguments,se)},I.clearItems=function(x,F,Y){q(z,arguments,Y)},I.isEmpty=function(x){for(var F in x)if(x.hasOwnProperty(F))return!1;return!0},I.format=function(x){for(var Y,se,F=/%./g,pe=0,Te=[],j=0;Y=F.exec(x);){(se=x.substring(j,F.lastIndex-2)).length>0&&Te.push(se),j=F.lastIndex;var Z=Y[0][1];switch(Z){case"s":case"o":Te.push(pe<arguments.length?arguments[1+pe++]:"<?>");break;case"%":Te.push("%");break;default:Te.push("<%"+Z+"?>")}}return Te.push(x.substring(j)),Te.join("")},I.formatNumber=function(x,F,Y,se){var pe=x,Te=isNaN(F=Math.abs(F))?2:F,j=void 0===Y?",":Y,Z=void 0===se?".":se,ce=pe<0?"-":"",w=parseInt(pe=Math.abs(+pe||0).toFixed(Te),10)+"",me=w.length>3?w.length%3:0;return ce+(me?w.substr(0,me)+Z:"")+w.substr(me).replace(/(\d{3})(?=\d)/g,"$1"+Z)+(Te?j+Math.abs(pe-w).toFixed(Te).slice(2):"")},I.formatSize=function(x){return x>=1073741824?I.formatNumber(x/1073741824,2,".","")+" GiB":x>=1048576?I.formatNumber(x/1048576,2,".","")+" MiB":x>=1024?I.formatNumber(x/1024,0)+" KiB":I.formatNumber(x,0)+" bytes"},I.bytesFromIP=function(x){return-1!==x.indexOf(".")?I.bytesFromIPv4(x):-1!==x.indexOf(":")?I.bytesFromIPv6(x):null},I.bytesFromIPv4=function(x){if(4!==(x=x.split(".")).length)return null;for(var F=I.createBuffer(),Y=0;Y<x.length;++Y){var se=parseInt(x[Y],10);if(isNaN(se))return null;F.putByte(se)}return F.getBytes()},I.bytesFromIPv6=function(x){for(var F=0,Y=2*(8-(x=x.split(":").filter(function(j){return 0===j.length&&++F,!0})).length+F),se=I.createBuffer(),pe=0;pe<8;++pe)if(x[pe]&&0!==x[pe].length){var Te=I.hexToBytes(x[pe]);Te.length<2&&se.putByte(0),se.putBytes(Te)}else se.fillWithByte(0,Y),Y=0;return se.getBytes()},I.bytesToIP=function(x){return 4===x.length?I.bytesToIPv4(x):16===x.length?I.bytesToIPv6(x):null},I.bytesToIPv4=function(x){if(4!==x.length)return null;for(var F=[],Y=0;Y<x.length;++Y)F.push(x.charCodeAt(Y));return F.join(".")},I.bytesToIPv6=function(x){if(16!==x.length)return null;for(var F=[],Y=[],se=0,pe=0;pe<x.length;pe+=2){for(var Te=I.bytesToHex(x[pe]+x[pe+1]);"0"===Te[0]&&"0"!==Te;)Te=Te.substr(1);if("0"===Te){var j=Y[Y.length-1],Z=F.length;j&&Z===j.end+1?(j.end=Z,j.end-j.start>Y[se].end-Y[se].start&&(se=Y.length-1)):Y.push({start:Z,end:Z})}F.push(Te)}if(Y.length>0){var ce=Y[se];ce.end-ce.start>0&&(F.splice(ce.start,ce.end-ce.start+1,""),0===ce.start&&F.unshift(""),7===ce.end&&F.push(""))}return F.join(":")},I.estimateCores=function(x,F){if("function"==typeof x&&(F=x,x={}),x=x||{},"cores"in I&&!x.update)return F(null,I.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return I.cores=navigator.hardwareConcurrency,F(null,I.cores);if(typeof Worker>"u")return I.cores=1,F(null,I.cores);if(typeof Blob>"u")return I.cores=2,F(null,I.cores);var Y=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(j){for(var Z=Date.now(),ce=Z+4;Date.now()<ce;);self.postMessage({st:Z,et:ce})})}.toString(),")()"],{type:"application/javascript"}));!function se(j,Z,ce){if(0===Z){var w=Math.floor(j.reduce(function(me,Ee){return me+Ee},0)/j.length);return I.cores=Math.max(1,w),URL.revokeObjectURL(Y),F(null,I.cores)}!function pe(j,Z){for(var ce=[],w=[],me=0;me<j;++me){var Ee=new Worker(Y);Ee.addEventListener("message",function(ge){if(w.push(ge.data),w.length===j){for(var Oe=0;Oe<j;++Oe)ce[Oe].terminate();Z(null,w)}}),ce.push(Ee)}for(me=0;me<j;++me)ce[me].postMessage(me)}(ce,function(me,Ee){j.push(function Te(j,Z){for(var ce=[],w=0;w<j;++w)for(var me=Z[w],Ee=ce[w]=[],ge=0;ge<j;++ge)if(w!==ge){var Oe=Z[ge];(me.st>Oe.st&&me.st<Oe.et||Oe.st>me.st&&Oe.st<me.et)&&Ee.push(ge)}return ce.reduce(function(Ie,Be){return Math.max(Ie,Be.length)},0)}(ce,Ee)),se(j,Z-1,ce)})}([],5,16)}},872:(yt,rn,ve)=>{var S=ve(6589);ve(812),yt.exports=S.log=S.log||{},S.log.levels=["none","error","warning","info","debug","verbose","max"];var g={},I=[],K=null;S.log.LEVEL_LOCKED=2,S.log.NO_LEVEL_CHECK=4,S.log.INTERPOLATE=8;for(var te=0;te<S.log.levels.length;++te){var J=S.log.levels[te];g[J]={index:te,name:J.toUpperCase()}}S.log.logMessage=function(ee){for(var X=g[ee.level].index,ne=0;ne<I.length;++ne){var z=I[ne];z.flags&S.log.NO_LEVEL_CHECK?z.f(ee):X<=g[z.level].index&&z.f(z,ee)}},S.log.prepareStandard=function(ee){"standard"in ee||(ee.standard=g[ee.level].name+" ["+ee.category+"] "+ee.message)},S.log.prepareFull=function(ee){if(!("full"in ee)){var X=[ee.message];X=X.concat([]),ee.full=S.util.format.apply(this,X)}},S.log.prepareStandardFull=function(ee){"standardFull"in ee||(S.log.prepareStandard(ee),ee.standardFull=ee.standard)};var H=["error","warning","info","debug","verbose"];for(te=0;te<H.length;++te)!function(X){S.log[X]=function(ne,z){var q=Array.prototype.slice.call(arguments).slice(2);S.log.logMessage({timestamp:new Date,level:X,category:ne,message:z,arguments:q})}}(H[te]);if(S.log.makeLogger=function(ee){var X={flags:0,f:ee};return S.log.setLevel(X,"none"),X},S.log.setLevel=function(ee,X){var ne=!1;if(ee&&!(ee.flags&S.log.LEVEL_LOCKED))for(var z=0;z<S.log.levels.length;++z)if(X==S.log.levels[z]){ee.level=X,ne=!0;break}return ne},S.log.lock=function(ee,X){typeof X>"u"||X?ee.flags|=S.log.LEVEL_LOCKED:ee.flags&=~S.log.LEVEL_LOCKED},S.log.addLogger=function(ee){I.push(ee)},typeof console<"u"&&"log"in console){var O;if(console.error&&console.warn&&console.info&&console.debug){var D={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},V=function(ee,X){S.log.prepareStandard(X);var ne=D[X.level],z=[X.standard];z=z.concat(X.arguments.slice()),ne.apply(console,z)};O=S.log.makeLogger(V)}else V=function(X,ne){S.log.prepareStandardFull(ne),console.log(ne.standardFull)},O=S.log.makeLogger(V);S.log.setLevel(O,"debug"),S.log.addLogger(O),K=O}else console={log:function(){}};if(null!==K&&typeof window<"u"&&window.location){var re=new URL(window.location.href).searchParams;re.has("console.level")&&S.log.setLevel(K,re.get("console.level").slice(-1)[0]),re.has("console.lock")&&"true"==re.get("console.lock").slice(-1)[0]&&S.log.lock(K)}S.log.consoleLogger=K},983:(yt,rn,ve)=>{var g,S=ve(6589);function te(ae,le,De){this.data=[],null!=ae&&("number"==typeof ae?this.fromNumber(ae,le,De):this.fromString(ae,null==le&&"string"!=typeof ae?256:le))}function J(){return new te(null)}function D(ae,le,De,Me,tt,ut){for(var ht=16383&le,bt=le>>14;--ut>=0;){var sn=16383&this.data[ae],Bi=this.data[ae++]>>14,Ar=bt*sn+Bi*ht;tt=((sn=ht*sn+((16383&Ar)<<14)+De.data[Me]+tt)>>28)+(Ar>>14)+bt*Bi,De.data[Me++]=268435455&sn}return tt}yt.exports=S.jsbn=S.jsbn||{},S.jsbn.BigInteger=te,typeof navigator>"u"?(te.prototype.am=D,g=28):"Microsoft Internet Explorer"==navigator.appName?(te.prototype.am=function O(ae,le,De,Me,tt,ut){for(var ht=32767&le,bt=le>>15;--ut>=0;){var sn=32767&this.data[ae],Bi=this.data[ae++]>>15,Ar=bt*sn+Bi*ht;tt=((sn=ht*sn+((32767&Ar)<<15)+De.data[Me]+(1073741823&tt))>>>30)+(Ar>>>15)+bt*Bi+(tt>>>30),De.data[Me++]=1073741823&sn}return tt},g=30):"Netscape"!=navigator.appName?(te.prototype.am=function H(ae,le,De,Me,tt,ut){for(;--ut>=0;){var ht=le*this.data[ae++]+De.data[Me]+tt;tt=Math.floor(ht/67108864),De.data[Me++]=67108863&ht}return tt},g=26):(te.prototype.am=D,g=28),te.prototype.DB=g,te.prototype.DM=(1<<g)-1,te.prototype.DV=1<<g,te.prototype.FV=Math.pow(2,52),te.prototype.F1=52-g,te.prototype.F2=2*g-52;var ee,X,Se=new Array;for(ee=48,X=0;X<=9;++X)Se[ee++]=X;for(ee=97,X=10;X<36;++X)Se[ee++]=X;for(ee=65,X=10;X<36;++X)Se[ee++]=X;function ne(ae){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(ae)}function z(ae,le){return Se[ae.charCodeAt(le)]??-1}function F(ae){var le=J();return le.fromInt(ae),le}function ce(ae){var De,le=1;return 0!=(De=ae>>>16)&&(ae=De,le+=16),0!=(De=ae>>8)&&(ae=De,le+=8),0!=(De=ae>>4)&&(ae=De,le+=4),0!=(De=ae>>2)&&(ae=De,le+=2),0!=(De=ae>>1)&&(ae=De,le+=1),le}function ot(ae){this.m=ae}function jn(ae){this.m=ae,this.mp=ae.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>
vendor: 38,114 bytes, line 1
1>15,this.um=(1<<ae.DB-15)-1,this.mt2=2*ae.t}function Mi(ae,le){return ae&le}function sr(ae,le){return ae|le}function Sr(ae,le){return ae^le}function Ua(ae,le){return ae&~le}function Js(ae){if(0==ae)return-1;var le=0;return!(65535&ae)&&(ae>>=16,le+=16),!(255&ae)&&(ae>>=8,le+=8),!(15&ae)&&(ae>>=4,le+=4),!(3&ae)&&(ae>>=2,le+=2),!(1&ae)&&++le,le}function ll(ae){for(var le=0;0!=ae;)ae&=ae-1,++le;return le}function nt(){}function Ki(ae){return ae}function Ot(ae){this.r2=J(),this.q3=J(),te.ONE.dlShiftTo(2*ae.t,this.r2),this.mu=this.r2.divide(ae),this.m=ae}ot.prototype.convert=function St(ae){return ae.s<0||ae.compareTo(this.m)>=0?ae.mod(this.m):ae},ot.prototype.revert=function Tt(ae){return ae},ot.prototype.reduce=function Et(ae){ae.divRemTo(this.m,null,ae)},ot.prototype.mulTo=function st(ae,le,De){ae.multiplyTo(le,De),this.reduce(De)},ot.prototype.sqrTo=function _n(ae,le){ae.squareTo(le),this.reduce(le)},jn.prototype.convert=function mn(ae){var le=J();return ae.abs().dlShiftTo(this.m.t,le),le.divRemTo(this.m,null,le),ae.s<0&&le.compareTo(te.ZERO)>0&&this.m.subTo(le,le),le},jn.prototype.revert=function je(ae){var le=J();return ae.copyTo(le),this.reduce(le),le},jn.prototype.reduce=function He(ae){for(;ae.t<=this.mt2;)ae.data[ae.t++]=0;for(var le=0;le<this.m.t;++le){var De=32767&ae.data[le],Me=De*this.mpl+((De*this.mph+(ae.data[le]>>15)*this.mpl&this.um)<<15)&ae.DM;for(ae.data[De=le+this.m.t]+=this.m.am(0,Me,ae,le,0,this.m.t);ae.data[De]>=ae.DV;)ae.data[De]-=ae.DV,ae.data[++De]++}ae.clamp(),ae.drShiftTo(this.m.t,ae),ae.compareTo(this.m)>=0&&ae.subTo(this.m,ae)},jn.prototype.mulTo=function N(ae,le,De){ae.multiplyTo(le,De),this.reduce(De)},jn.prototype.sqrTo=function R(ae,le){ae.squareTo(le),this.reduce(le)},te.prototype.copyTo=function q(ae){for(var le=this.t-1;le>=0;--le)ae.data[le]=this.data[le];ae.t=this.t,ae.s=this.s},te.prototype.fromInt=function x(ae){this.t=1,this.s=ae<0?-1:0,ae>0?this.data[0]=ae:ae<-1?this.data[0]=ae+this.DV:this.t=0},te.prototype.fromString=function Y(ae,le){var De;if(16==le)De=4;else if(8==le)De=3;else if(256==le)De=8;else if(2==le)De=1;else if(32==le)De=5;else{if(4!=le)return void this.fromRadix(ae,le);De=2}this.t=0,this.s=0;for(var Me=ae.length,tt=!1,ut=0;--Me>=0;){var ht=8==De?255&ae[Me]:z(ae,Me);ht<0?"-"==ae.charAt(Me)&&(tt=!0):(tt=!1,0==ut?this.data[this.t++]=ht:ut+De>this.DB?(this.data[this.t-1]|=(ht&(1<<this.DB-ut)-1)<<ut,this.data[this.t++]=ht>>this.DB-ut):this.data[this.t-1]|=ht<<ut,(ut+=De)>=this.DB&&(ut-=this.DB))}8==De&&!!(128&ae[0])&&(this.s=-1,ut>0&&(this.data[this.t-1]|=(1<<this.DB-ut)-1<<ut)),this.clamp(),tt&&te.ZERO.subTo(this,this)},te.prototype.clamp=function se(){for(var ae=this.s&this.DM;this.t>0&&this.data[this.t-1]==ae;)--this.t},te.prototype.dlShiftTo=function me(ae,le){var De;for(De=this.t-1;De>=0;--De)le.data[De+ae]=this.data[De];for(De=ae-1;De>=0;--De)le.data[De]=0;le.t=this.t+ae,le.s=this.s},te.prototype.drShiftTo=function Ee(ae,le){for(var De=ae;De<this.t;++De)le.data[De-ae]=this.data[De];le.t=Math.max(this.t-ae,0),le.s=this.s},te.prototype.lShiftTo=function ge(ae,le){var bt,De=ae%this.DB,Me=this.DB-De,tt=(1<<Me)-1,ut=Math.floor(ae/this.DB),ht=this.s<<De&this.DM;for(bt=this.t-1;bt>=0;--bt)le.data[bt+ut+1]=this.data[bt]>>Me|ht,ht=(this.data[bt]&tt)<<De;for(bt=ut-1;bt>=0;--bt)le.data[bt]=0;le.data[ut]=ht,le.t=this.t+ut+1,le.s=this.s,le.clamp()},te.prototype.rShiftTo=function Oe(ae,le){le.s=this.s;var De=Math.floor(ae/this.DB);if(De>=this.t)le.t=0;else{var Me=ae%this.DB,tt=this.DB-Me,ut=(1<<Me)-1;le.data[0]=this.data[De]>>Me;for(var ht=De+1;ht<this.t;++ht)le.data[ht-De-1]|=(this.data[ht]&ut)<<tt,le.data[ht-De]=this.data[ht]>>Me;Me>0&&(le.data[this.t-De-1]|=(this.s&ut)<<tt),le.t=this.t-De,le.clamp()}},te.prototype.subTo=function Ie(ae,le){for(var De=0,Me=0,tt=Math.min(ae.t,this.t);De<tt;)Me+=this.data[De]-ae.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;if(ae.t<this.t){for(Me-=ae.s;De<this.t;)Me+=this.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;Me+=this.s}else{for(Me+=this.s;De<ae.t;)Me-=ae.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;Me-=ae.s}le.s=Me<0?-1:0,Me<-1?le.data[De++]=this.DV+Me:Me>0&&(le.data[De++]=Me),le.t=De,le.clamp()},te.prototype.multiplyTo=function Be(ae,le){var De=this.abs(),Me=ae.abs(),tt=De.t;for(le.t=tt+Me.t;--tt>=0;)le.data[tt]=0;for(tt=0;tt<Me.t;++tt)le.data[tt+De.t]=De.am(0,Me.data[tt],le,tt,0,De.t);le.s=0,le.clamp(),this.s!=ae.s&&te.ZERO.subTo(le,le)},te.prototype.squareTo=function Ue(ae){for(var le=this.abs(),De=ae.t=2*le.t;--De>=0;)ae.data[De]=0;for(De=0;De<le.t-1;++De){var Me=le.am(De,le.data[De],ae,2*De,0,1);(ae.data[De+le.t]+=le.am(De+1,2*le.data[De],ae,2*De+1,Me,le.t-De-1))>=le.DV&&(ae.data[De+le.t]-=le.DV,ae.data[De+le.t+1]=1)}ae.t>0&&(ae.data[ae.t-1]+=le.am(De,le.data[De],ae,2*De,0,1)),ae.s=0,ae.clamp()},te.prototype.divRemTo=function Ge(ae,le,De){var Me=ae.abs();if(!(Me.t<=0)){var tt=this.abs();if(tt.t<Me.t)return le?.fromInt(0),void(null!=De&&this.copyTo(De));null==De&&(De=J());var ut=J(),ht=this.s,bt=ae.s,sn=this.DB-ce(Me.data[Me.t-1]);sn>0?(Me.lShiftTo(sn,ut),tt.lShiftTo(sn,De)):(Me.copyTo(ut),tt.copyTo(De));var Bi=ut.t,Ar=ut.data[Bi-1];if(0!=Ar){var ei=Ar*(1<<this.F1)+(Bi>1?ut.data[Bi-2]>>this.F2:0),qt=this.FV/ei,Yt=(1<<this.F1)/ei,kr=1<<this.F2,Ei=De.t,cl=Ei-Bi,Os=le??J();for(ut.dlShiftTo(cl,Os),De.compareTo(Os)>=0&&(De.data[De.t++]=1,De.subTo(Os,De)),te.ONE.dlShiftTo(Bi,Os),Os.subTo(ut,ut);ut.t<Bi;)ut.data[ut.t++]=0;for(;--cl>=0;){var Id=De.data[--Ei]==Ar?this.DM:Math.floor(De.data[Ei]*qt+(De.data[Ei-1]+kr)*Yt);if((De.data[Ei]+=ut.am(0,Id,De,cl,0,Bi))<Id)for(ut.dlShiftTo(cl,Os),De.subTo(Os,De);De.data[Ei]<--Id;)De.subTo(Os,De)}null!=le&&(De.drShiftTo(Bi,le),ht!=bt&&te.ZERO.subTo(le,le)),De.t=Bi,De.clamp(),sn>0&&De.rShiftTo(sn,De),ht<0&&te.ZERO.subTo(De,De)}}},te.prototype.invDigit=function It(){if(this.t<1)return 0;var ae=this.data[0];if(!(1&ae))return 0;var le=3&ae;return(le=(le=(le=(le=le*(2-(15&ae)*le)&15)*(2-(255&ae)*le)&255)*(2-((65535&ae)*le&65535))&65535)*(2-ae*le%this.DV)%this.DV)>0?this.DV-le:-le},te.prototype.isEven=function ie(){return 0==(this.t>0?1&this.data[0]:this.s)},te.prototype.exp=function xe(ae,le){if(ae>4294967295||ae<1)return te.ONE;var De=J(),Me=J(),tt=le.convert(this),ut=ce(ae)-1;for(tt.copyTo(De);--ut>=0;)if(le.sqrTo(De,Me),(ae&1<<ut)>0)le.mulTo(Me,tt,De);else{var ht=De;De=Me,Me=ht}return le.revert(De)},te.prototype.toString=function pe(ae){if(this.s<0)return"-"+this.negate().toString(ae);var le;if(16==ae)le=4;else if(8==ae)le=3;else if(2==ae)le=1;else if(32==ae)le=5;else{if(4!=ae)return this.toRadix(ae);le=2}var Me,De=(1<<le)-1,tt=!1,ut="",ht=this.t,bt=this.DB-ht*this.DB%le;if(ht-- >0)for(bt<this.DB&&(Me=this.data[ht]>>bt)>0&&(tt=!0,ut=ne(Me));ht>=0;)bt<le?(Me=(this.data[ht]&(1<<bt)-1)<<le-bt,Me|=this.data[--ht]>>(bt+=this.DB-le)):(Me=this.data[ht]>>(bt-=le)&De,bt<=0&&(bt+=this.DB,--ht)),Me>0&&(tt=!0),tt&&(ut+=ne(Me));return tt?ut:"0"},te.prototype.negate=function Te(){var ae=J();return te.ZERO.subTo(this,ae),ae},te.prototype.abs=function j(){return this.s<0?this.negate():this},te.prototype.compareTo=function Z(ae){var le=this.s-ae.s;if(0!=le)return le;var De=this.t;if(0!=(le=De-ae.t))return this.s<0?-le:le;for(;--De>=0;)if(0!=(le=this.data[De]-ae.data[De]))return le;return 0},te.prototype.bitLength=function w(){return this.t<=0?0:this.DB*(this.t-1)+ce(this.data[this.t-1]^this.s&this.DM)},te.prototype.mod=function it(ae){var le=J();return this.abs().divRemTo(ae,null,le),this.s<0&&le.compareTo(te.ZERO)>0&&ae.subTo(le,le),le},te.prototype.modPowInt=function Re(ae,le){var De;return De=ae<256||le.isEven()?new ot(le):new jn(le),this.exp(ae,De)},te.ZERO=F(0),te.ONE=F(1),nt.prototype.convert=Ki,nt.prototype.revert=Ki,nt.prototype.mulTo=function an(ae,le,De){ae.multiplyTo(le,De)},nt.prototype.sqrTo=function kf(ae,le){ae.squareTo(le)},Ot.prototype.convert=function Nu(ae){if(ae.s<0||ae.t>2*this.m.t)return ae.mod(this.m);if(ae.compareTo(this.m)<0)return ae;var le=J();return ae.copyTo(le),this.reduce(le),le},Ot.prototype.revert=function Rf(ae){return ae},Ot.prototype.reduce=function Ye(ae){for(ae.drShiftTo(this.m.t-1,this.r2),ae.t>this.m.t+1&&(ae.t=this.m.t+1,ae.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);ae.compareTo(this.r2)<0;)ae.dAddOffset(1,this.m.t+1);for(ae.subTo(this.r2,ae);ae.compareTo(this.m)>=0;)ae.subTo(this.m,ae)},Ot.prototype.mulTo=function ds(ae,le,De){ae.multiplyTo(le,De),this.reduce(De)},Ot.prototype.sqrTo=function tg(ae,le){ae.squareTo(le),this.reduce(le)};var hr=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],Ps=(1<<26)/hr[hr.length-1];te.prototype.chunkSize=function Ht(ae){return Math.floor(Math.LN2*this.DB/Math.log(ae))},te.prototype.toRadix=function ft(ae){if(null==ae&&(ae=10),0==this.signum()||ae<2||ae>36)return"0";var le=this.chunkSize(ae),De=Math.pow(ae,le),Me=F(De),tt=J(),ut=J(),ht="";for(this.divRemTo(Me,tt,ut);tt.signum()>0;)ht=(De+ut.intValue()).toString(ae).substr(1)+ht,tt.divRemTo(Me,tt,ut);return ut.intValue().toString(ae)+ht},te.prototype.fromRadix=function Gt(ae,le){this.fromInt(0),null==le&&(le=10);for(var De=this.chunkSize(le),Me=Math.pow(le,De),tt=!1,ut=0,ht=0,bt=0;bt<ae.length;++bt){var sn=z(ae,bt);sn<0?"-"==ae.charAt(bt)&&0==this.signum()&&(tt=!0):(ht=le*ht+sn,++ut>=De&&(this.dMultiply(Me),this.dAddOffset(ht,0),ut=0,ht=0))}ut>0&&(this.dMultiply(Math.pow(le,ut)),this.dAddOffset(ht,0)),tt&&te.ZERO.subTo(this,this)},te.prototype.fromNumber=function Mn(ae,le,De){if("number"==typeof le)if(ae<2)this.fromInt(1);else for(this.fromNumber(ae,De),this.testBit(ae-1)||this.bitwiseTo(te.ONE.shiftLeft(ae-1),sr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(le);)this.dAddOffset(2,0),this.bitLength()>ae&&this.subTo(te.ONE.shiftLeft(ae-1),this);else{var Me=new Array,tt=7&ae;Me.length=1+(ae>>3),le.nextBytes(Me),tt>0?Me[0]&=(1<<tt)-1:Me[0]=0,this.fromString(Me,256)}},te.prototype.bitwiseTo=function Ni(ae,le,De){var Me,tt,ut=Math.min(ae.t,this.t);for(Me=0;Me<ut;++Me)De.data[Me]=le(this.data[Me],ae.data[Me]);if(ae.t<this.t){for(tt=ae.s&this.DM,Me=ut;Me<this.t;++Me)De.data[Me]=le(this.data[Me],tt);De.t=this.t}else{for(tt=this.s&this.DM,Me=ut;Me<ae.t;++Me)De.data[Me]=le(tt,ae.data[Me]);De.t=ae.t}De.s=le(this.s,ae.s),De.clamp()},te.prototype.changeBit=function Li(ae,le){var De=te.ONE.shiftLeft(ae);return this.bitwiseTo(De,le,De),De},te.prototype.addTo=function lr(ae,le){for(var De=0,Me=0,tt=Math.min(ae.t,this.t);De<tt;)Me+=this.data[De]+ae.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;if(ae.t<this.t){for(Me+=ae.s;De<this.t;)Me+=this.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;Me+=this.s}else{for(Me+=this.s;De<ae.t;)Me+=ae.data[De],le.data[De++]=Me&this.DM,Me>>=this.DB;Me+=ae.s}le.s=Me<0?-1:0,Me>0?le.data[De++]=Me:Me<-1&&(le.data[De++]=this.DV+Me),le.t=De,le.clamp()},te.prototype.dMultiply=function ur(ae){this.data[this.t]=this.am(0,ae-1,this,0,0,this.t),++this.t,this.clamp()},te.prototype.dAddOffset=function xr(ae,le){if(0!=ae){for(;this.t<=le;)this.data[this.t++]=0;for(this.data[le]+=ae;this.data[le]>=this.DV;)this.data[le]-=this.DV,++le>=this.t&&(this.data[this.t++]=0),++this.data[le]}},te.prototype.multiplyLowerTo=function mi(ae,le,De){var tt,Me=Math.min(this.t+ae.t,le);for(De.s=0,De.t=Me;Me>0;)De.data[--Me]=0;for(tt=De.t-this.t;Me<tt;++Me)De.data[Me+this.t]=this.am(0,ae.data[Me],De,Me,0,this.t);for(tt=Math.min(ae.t,le);Me<tt;++Me)this.am(0,ae.data[Me],De,Me,0,le-Me);De.clamp()},te.prototype.multiplyUpperTo=function Nf(ae,le,De){--le;var Me=De.t=this.t+ae.t-le;for(De.s=0;--Me>=0;)De.data[Me]=0;for(Me=Math.max(le-this.t,0);Me<ae.t;++Me)De.data[this.t+Me-le]=this.am(le-Me,ae.data[Me],De,0,0,this.t+Me-le);De.clamp(),De.drShiftTo(1,De)},te.prototype.modInt=function Ed(ae){if(ae<=0)return 0;var le=this.DV%ae,De=this.s<0?ae-1:0;if(this.t>0)if(0==le)De=this.data[0]%ae;else for(var Me=this.t-1;Me>=0;--Me)De=(le*De+this.data[Me])%ae;return De},te.prototype.millerRabin=function gi(ae){var le=this.subtract(te.ONE),De=le.getLowestSetBit();if(De<=0)return!1;for(var ut,Me=le.shiftRight(De),tt=function Ec(){return{nextBytes:function(ae){for(var le=0;le<ae.length;++le)ae[le]=Math.floor(256*Math.random())}}}(),ht=0;ht<ae;++ht){do{ut=new te(this.bitLength(),tt)}while(ut.compareTo(te.ONE)<=0||ut.compareTo(le)>=0);var bt=ut.modPow(Me,this);if(0!=bt.compareTo(te.ONE)&&0!=bt.compareTo(le)){for(var sn=1;sn++<De&&0!=bt.compareTo(le);)if(0==(bt=bt.modPowInt(2,this)).compareTo(te.ONE))return!1;if(0!=bt.compareTo(le))return!1}}return!0},te.prototype.clone=function ze(){var ae=J();return this.copyTo(ae),ae},te.prototype.intValue=function Ne(){if(this.s<0){if(1==this.t)return this.data[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this.data[0];if(0==this.t)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]},te.prototype.byteValue=function ct(){return 0==this.t?this.s:this.data[0]<<24>>24},te.prototype.shortValue=function Nt(){return 0==this.t?this.s:this.data[0]<<16>>16},te.prototype.signum=function rt(){return this.s<0?-1:this.t<=0||1==this.t&&this.data[0]<=0?0:1},te.prototype.toByteArray=function tn(){var ae=this.t,le=new Array;le[0]=this.s;var Me,De=this.DB-ae*this.DB%8,tt=0;if(ae-- >0)for(De<this.DB&&(Me=this.data[ae]>>De)!=(this.s&this.DM)>>De&&(le[tt++]=Me|this.s<<this.DB-De);ae>=0;)De<8?(Me=(this.data[ae]&(1<<De)-1)<<8-De,Me|=this.data[--ae]>>(De+=this.DB-8)):(Me=this.data[ae]>>(De-=8)&255,De<=0&&(De+=this.DB,--ae)),!!(128&Me)&&(Me|=-256),0==tt&&(128&this.s)!=(128&Me)&&++tt,(tt>0||Me!=this.s)&&(le[tt++]=Me);return le},te.prototype.equals=function jt(ae){return 0==this.compareTo(ae)},te.prototype.min=function ki(ae){return this.compareTo(ae)<0?this:ae},te.prototype.max=function xi(ae){return this.compareTo(ae)>0?this:ae},te.prototype.and=function ji(ae){var le=J();return this.bitwiseTo(ae,Mi,le),le},te.prototype.or=function Dr(ae){var le=J();return this.bitwiseTo(ae,sr,le),le},te.prototype.xor=function Va(ae){var le=J();return this.bitwiseTo(ae,Sr,le),le},te.prototype.andNot=function ka(ae){var le=J();return this.bitwiseTo(ae,Ua,le),le},te.prototype.not=function Yr(){for(var ae=J(),le=0;le<this.t;++le)ae.data[le]=this.DM&~this.data[le];return ae.t=this.t,ae.s=~this.s,ae},te.prototype.shiftLeft=function Ha(ae){var le=J();return ae<0?this.rShiftTo(-ae,le):this.lShiftTo(ae,le),le},te.prototype.shiftRight=function Do(ae){var le=J();return ae<0?this.lShiftTo(-ae,le):this.rShiftTo(ae,le),le},te.prototype.getLowestSetBit=function Hl(){for(var ae=0;ae<this.t;++ae)if(0!=this.data[ae])return ae*this.DB+Js(this.data[ae]);return this.s<0?this.t*this.DB:-1},te.prototype.bitCount=function Td(){for(var ae=0,le=this.s&this.DM,De=0;De<this.t;++De)ae+=ll(this.data[De]^le);return ae},te.prototype.testBit=function zi(ae){var le=Math.floor(ae/this.DB);return le>=this.t?0!=this.s:!!(this.data[le]&1<<ae%this.DB)},te.prototype.setBit=function Er(ae){return this.changeBit(ae,sr)},te.prototype.clearBit=function or(ae){return this.changeBit(ae,Ua)},te.prototype.flipBit=function Ir(ae){return this.changeBit(ae,Sr)},te.prototype.add=function Fn(ae){var le=J();return this.addTo(ae,le),le},te.prototype.subtract=function xt(ae){var le=J();return this.subTo(ae,le),le},te.prototype.multiply=function cr(ae){var le=J();return this.multiplyTo(ae,le),le},te.prototype.divide=function Jt(ae){var le=J();return this.divRemTo(ae,le,null),le},te.prototype.remainder=function dr(ae){var le=J();return this.divRemTo(ae,null,le),le},te.prototype.divideAndRemainder=function Tr(ae){var le=J(),De=J();return this.divRemTo(ae,le,De),new Array(le,De)},te.prototype.modPow=function xd(ae,le){var Me,ut,De=ae.bitLength(),tt=F(1);if(De<=0)return tt;Me=De<18?1:De<48?3:De<144?4:De<768?5:6,ut=De<8?new ot(le):le.isEven()?new Ot(le):new jn(le);var ht=new Array,bt=3,sn=Me-1,Bi=(1<<Me)-1;if(ht[1]=ut.convert(this),Me>1){var Ar=J();for(ut.sqrTo(ht[1],Ar);bt<=Bi;)ht[bt]=J(),ut.mulTo(Ar,ht[bt-2],ht[bt]),bt+=2}var qt,Ei,ei=ae.t-1,Yt=!0,kr=J();for(De=ce(ae.data[ei])-1;ei>=0;){for(De>=sn?qt=ae.data[ei]>>De-sn&Bi:(qt=(ae.data[ei]&(1<<De+1)-1)<<sn-De,ei>0&&(qt|=ae.data[ei-1]>>this.DB+De-sn)),bt=Me;!(1&qt);)qt>>=1,--bt;if((De-=bt)<0&&(De+=this.DB,--ei),Yt)ht[qt].copyTo(tt),Yt=!1;else{for(;bt>1;)ut.sqrTo(tt,kr),ut.sqrTo(kr,tt),bt-=2;bt>0?ut.sqrTo(tt,kr):(Ei=tt,tt=kr,kr=Ei),ut.mulTo(kr,ht[qt],tt)}for(;ei>=0&&!(ae.data[ei]&1<<De);)ut.sqrTo(tt,kr),Ei=tt,tt=kr,kr=Ei,--De<0&&(De=this.DB-1,--ei)}return ut.revert(tt)},te.prototype.modInverse=function Ru(ae){var le=ae.isEven();if(this.isEven()&&le||0==ae.signum())return te.ZERO;for(var De=ae.clone(),Me=this.clone(),tt=F(1),ut=F(0),ht=F(0),bt=F(1);0!=De.signum();){for(;De.isEven();)De.rShiftTo(1,De),le?((!tt.isEven()||!ut.isEven())&&(tt.addTo(this,tt),ut.subTo(ae,ut)),tt.rShiftTo(1,tt)):ut.isEven()||ut.subTo(ae,ut),ut.rShiftTo(1,ut);for(;Me.isEven();)Me.rShiftTo(1,Me),le?((!ht.isEven()||!bt.isEven())&&(ht.addTo(this,ht),bt.subTo(ae,bt)),ht.rShiftTo(1,ht)):bt.isEven()||bt.subTo(ae,bt),bt.rShiftTo(1,bt);De.compareTo(Me)>=0?(De.subTo(Me,De),le&&tt.subTo(ht,tt),ut.subTo(bt,ut)):(Me.subTo(De,Me),le&&ht.subTo(tt,ht),bt.subTo(ut,bt))}return 0!=Me.compareTo(te.ONE)?te.ZERO:bt.compareTo(ae)>=0?bt.subtract(ae):bt.signum()<0?(bt.addTo(ae,bt),bt.signum()<0?bt.add(ae):bt):bt},te.prototype.pow=function Fi(ae){return this.exp(ae,new nt)},te.prototype.gcd=function Md(ae){var le=this.s<0?this.negate():this.clone(),De=ae.s<0?ae.negate():ae.clone();if(le.compareTo(De)<0){var Me=le;le=De,De=Me}var tt=le.getLowestSetBit(),ut=De.getLowestSetBit();if(ut<0)return le;for(tt<ut&&(ut=tt),ut>0&&(le.rShiftTo(ut,le),De.rShiftTo(ut,De));le.signum()>0;)(tt=le.getLowestSetBit())>0&&le.rShiftTo(tt,le),(tt=De.getLowestSetBit())>0&&De.rShiftTo(tt,De),le.compareTo(De)>=0?(le.subTo(De,le),le.rShiftTo(1,le)):(De.subTo(le,De),De.rShiftTo(1,De));return ut>0&&De.lShiftTo(ut,De),De},te.prototype.isProbablePrime=function Nn(ae){var le,De=this.abs();if(1==De.t&&De.data[0]<=hr[hr.length-1]){for(le=0;le<hr.length;++le)if(De.data[0]==hr[le])return!0;return!1}if(De.isEven())return!1;for(le=1;le<hr.length;){for(var Me=hr[le],tt=le+1;tt<hr.length&&Me<Ps;)Me*=hr[tt++];for(Me=De.modInt(Me);le<tt;)if(Me%hr[le++]==0)return!1}return De.millerRabin(ae)}},1026:(yt,rn,ve)=>{var S=ve(6589);ve(57),ve(7097),ve(3674),ve(1817),ve(9368),ve(8291),ve(1675),ve(812),ve(9436);var g=S.asn1,I=yt.exports=S.pkcs7=S.pkcs7||{};function K(z){var q={},x=[];if(!g.validate(z,I.asn1.recipientInfoValidator,q,x)){var F=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw F.errors=x,F}return{version:q.version.charCodeAt(0),issuer:S.pki.RDNAttributesAsArray(q.issuer),serialNumber:S.util.createBuffer(q.serial).toHex(),encryptedContent:{algorithm:g.derToOid(q.encAlgorithm),parameter:q.encParameter?q.encParameter.value:void 0,content:q.encKey}}}function te(z){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(z.version).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[S.pki.distinguishedNameToAsn1({attributes:z.issuer}),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,S.util.hexToBytes(z.serialNumber))]),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.encryptedContent.algorithm).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")]),g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,z.encryptedContent.content)])}function H(z){for(var q=[],x=0;x<z.length;++x)q.push(te(z[x]));return q}function D(z){var q=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(z.version).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[S.pki.distinguishedNameToAsn1({attributes:z.issuer}),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,S.util.hexToBytes(z.serialNumber))]),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.digestAlgorithm).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")])]);if(z.authenticatedAttributesAsn1&&q.value.push(z.authenticatedAttributesAsn1),q.value.push(g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.signatureAlgorithm).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")])),q.value.push(g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,z.signature)),z.unauthenticatedAttributes.length>0){for(var x=g.create(g.Class.CONTEXT_SPECIFIC,1,!0,[]),F=0;F<z.unauthenticatedAttributes.length;++F)x.values.push(Se(z.unauthenticatedAttributes[F]));q.value.push(x)}return q}function Se(z){var q;if(z.type===S.pki.oids.contentType)q=g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.value).getBytes());else if(z.type===S.pki.oids.messageDigest)q=g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,z.value.bytes());else if(z.type===S.pki.oids.signingTime){var x=new Date("1950-01-01T00:00:00Z"),F=new Date("2050-01-01T00:00:00Z"),Y=z.value;if("string"==typeof Y){var se=Date.parse(Y);Y=isNaN(se)?13===Y.length?g.utcTimeToDate(Y):g.generalizedTimeToDate(Y):new Date(se)}q=Y>=x&&Y<F?g.create(g.Class.UNIVERSAL,g.Type.UTCTIME,!1,g.dateToUtcTime(Y)):g.create(g.Class.UNIVERSAL,g.Type.GENERALIZEDTIME,!1,g.dateToGeneralizedTime(Y))}return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.type).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[q])])}function ee(z){return[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(S.pki.oids.data).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.algorithm).getBytes()),z.parameter?g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,z.parameter.getBytes()):void 0]),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,z.content.getBytes())])]}function X(z,q,x){var F={};if(!g.validate(q,x,F,[])){var se=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw se.errors=se,se}if(g.derToOid(F.contentType)!==S.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(F.encryptedContent){var Te="";if(S.util.isArray(F.encryptedContent))for(var j=0;j<F.encryptedContent.length;++j){if(F.encryptedContent[j].type!==g.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");Te+=F.encryptedContent[j].value}else Te=F.encryptedContent;z.encryptedContent={algorithm:g.derToOid(F.encAlgorithm),parameter:S.util.createBuffer(F.encParameter.value),content:S.util.createBuffer(Te)}}if(F.content){if(Te="",S.util.isArray(F.content))for(j=0;j<F.content.length;++j){if(F.content[j].type!==g.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");Te+=F.content[j].value}else Te=F.content;z.content=S.util.createBuffer(Te)}return z.version=F.version.charCodeAt(0),z.rawCapture=F,F}function ne(z){if(void 0===z.encryptedContent.key)throw new Error("Symmetric key not available.");if(void 0===z.content){var q;switch(z.encryptedContent.algorithm){case S.pki.oids["aes128-CBC"]:case S.pki.oids["aes192-CBC"]:case S.pki.oids["aes256-CBC"]:q=S.aes.createDecryptionCipher(z.encryptedContent.key);break;case S.pki.oids.desCBC:case S.pki.oids["des-EDE3-CBC"]:q=S.des.createDecryptionCipher(z.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+z.encryptedContent.algorithm)}if(q.start(z.encryptedContent.parameter),q.update(z.encryptedContent.content),!q.finish())throw new Error("Symmetric decryption failed.");z.content=q.output}}I.messageFromPem=function(z){var q=S.pem.decode(z)[0];if("PKCS7"!==q.type){var x=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw x.headerType=q.type,x}if(q.procType&&"ENCRYPTED"===q.procType.type)throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var F=g.fromDer(q.body);return I.messageFromAsn1(F)},I.messageToPem=function(z,q){var x={type:"PKCS7",body:g.toDer(z.toAsn1()).getBytes()};return S.pem.encode(x,{maxline:q})},I.messageFromAsn1=function(z){var q={},x=[];if(!g.validate(z,I.asn1.contentInfoValidator,q,x)){var F=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw F.errors=x,F}var se,Y=g.derToOid(q.contentType);switch(Y){case S.pki.oids.envelopedData:se=I.createEnvelopedData();break;case S.pki.oids.encryptedData:se=I.createEncryptedData();break;case S.pki.oids.signedData:se=I.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+Y+" is not (yet) supported.")}return se.fromAsn1(q.content.value[0]),se},I.createSignedData=function(){var z=null;return z={type:S.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(F){if(X(z,F,I.asn1.signedDataValidator),z.certificates=[],z.crls=[],z.digestAlgorithmIdentifiers=[],z.contentInfo=null,z.signerInfos=[],z.rawCapture.certificates)for(var Y=z.rawCapture.certificates.value,se=0;se<Y.length;++se)z.certificates.push(S.pki.certificateFromAsn1(Y[se]))},toAsn1:function(){z.contentInfo||z.sign();for(var F=[],Y=0;Y<z.certificates.length;++Y)F.push(S.pki.certificateToAsn1(z.certificates[Y]));var se=[],pe=g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(z.version).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,z.digestAlgorithmIdentifiers),z.contentInfo])]);return F.length>0&&pe.value[0].value.push(g.create(g.Class.CONTEXT_SPECIFIC,0,!0,F)),se.length>0&&pe.value[0].value.push(g.create(g.Class.CONTEXT_SPECIFIC,1,!0,se)),pe.value[0].value.push(g.create(g.Class.UNIVERSAL,g.Type.SET,!0,z.signerInfos)),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.type).getBytes()),pe])},addSigner:function(F){var Y=F.issuer,se=F.serialNumber;if(F.certificate){var pe=F.certificate;"string"==typeof pe&&(pe=S.pki.certificateFromPem(pe)),Y=pe.issuer.attributes,se=pe.serialNumber}var Te=F.key;if(!Te)throw new Error("Could not add PKCS#7 signer; no private key specified.");"string"==typeof Te&&(Te=S.pki.privateKeyFromPem(Te));var j=F.digestAlgorithm||S.pki.oids.sha1;switch(j){case S.pki.oids.sha1:case S.pki.oids.sha256:case S.pki.oids.sha384:case S.pki.oids.sha512:case S.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+j)}var Z=F.authenticatedAttributes||[];if(Z.length>0){for(var ce=!1,w=!1,me=0;me<Z.length;++me){var Ee=Z[me];if(ce||Ee.type!==S.pki.oids.contentType){if(w||Ee.type!==S.pki.oids.messageDigest);else if(w=!0,ce)break}else if(ce=!0,w)break}if(!ce||!w)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}z.signers.push({key:Te,version:1,issuer:Y,serialNumber:se,digestAlgorithm:j,signatureAlgorithm:S.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:Z,unauthenticatedAttributes:[]})},sign:function(F){var Y;if(F=F||{},"object"==typeof z.content&&null!==z.contentInfo||(z.contentInfo=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(S.pki.oids.data).getBytes())]),!("content"in z))||(z.content instanceof S.util.ByteBuffer?Y=z.content.bytes():"string"==typeof z.content&&(Y=S.util.encodeUtf8(z.content)),F.detached?z.detachedContent=g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,Y):z.contentInfo.value.push(g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,Y)]))),0!==z.signers.length){var se=function q(){for(var F={},Y=0;Y<z.signers.length;++Y){var se=z.signers[Y];(pe=se.digestAlgorithm)in F||(F[pe]=S.md[S.pki.oids[pe]].create()),se.md=0===se.authenticatedAttributes.length?F[pe]:S.md[S.pki.oids[pe]].create()}for(var pe in z.digestAlgorithmIdentifiers=[],F)z.digestAlgorithmIdentifiers.push(g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(pe).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")]));return F}();!function x(F){var Y;if(z.detachedContent?Y=z.detachedContent:Y=(Y=z.contentInfo.value[1]).value[0],!Y)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var se=g.derToOid(z.contentInfo.value[0].value),pe=g.toDer(Y);for(var Te in pe.getByte(),g.getBerValueLength(pe),pe=pe.getBytes(),F)F[Te].start().update(pe);for(var j=new Date,Z=0;Z<z.signers.length;++Z){var ce=z.signers[Z];if(0===ce.authenticatedAttributes.length){if(se!==S.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{ce.authenticatedAttributesAsn1=g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var w=g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[]),me=0;me<ce.authenticatedAttributes.length;++me){var Ee=ce.authenticatedAttributes[me];Ee.type===S.pki.oids.messageDigest?Ee.value=F[ce.digestAlgorithm].digest():Ee.type===S.pki.oids.signingTime&&(Ee.value||(Ee.value=j)),w.value.push(Se(Ee)),ce.authenticatedAttributesAsn1.value.push(Se(Ee))}pe=g.toDer(w).getBytes(),ce.md.start().update(pe)}ce.signature=ce.key.sign(ce.md,"RSASSA-PKCS1-V1_5")}z.signerInfos=function re(z){for(var q=[],x=0;x<z.length;++x)q.push(D(z[x]));return q}(z.signers)}(se)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(F){"string"==typeof F&&(F=S.pki.certificateFromPem(F)),z.certificates.push(F)},addCertificateRevokationList:function(F){throw new Error("PKCS#7 CRL support not yet implemented.")}}},I.createEncryptedData=function(){var z=null;return z={type:S.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:S.pki.oids["aes256-CBC"]},fromAsn1:function(q){X(z,q,I.asn1.encryptedDataValidator)},decrypt:function(q){void 0!==q&&(z.encryptedContent.key=q),ne(z)}}},I.createEnvelopedData=function(){var z=null;return z={type:S.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:S.pki.oids["aes256-CBC"]},fromAsn1:function(q){var x=X(z,q,I.asn1.envelopedDataValidator);z.recipients=function J(z){for(var q=[],x=0;x<z.length;++x)q.push(K(z[x]));return q}(x.recipientInfos.value)},toAsn1:function(){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(z.type).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(z.version).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,H(z.recipients)),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,ee(z.encryptedContent))])])])},findRecipient:function(q){for(var x=q.issuer.attributes,F=0;F<z.recipients.length;++F){var Y=z.recipients[F],se=Y.issuer;if(Y.serialNumber===q.serialNumber&&se.length===x.length){for(var pe=!0,Te=0;Te<x.length;++Te)if(se[Te].type!==x[Te].type||se[Te].value!==x[Te].value){pe=!1;break}if(pe)return Y}}return null},decrypt:function(q,x){if(void 0===z.encryptedContent.key&&void 0!==q&&void 0!==x)switch(q.encryptedContent.algorithm){case S.pki.oids.rsaEncryption:case S.pki.oids.desCBC:var F=x.decrypt(q.encryptedContent.content);z.encryptedContent.key=S.util.createBuffer(F);break;default:throw new Error("Unsupported asymmetric cipher, OID "+q.encryptedContent.algorithm)}ne(z)},addRecipient:function(q){z.recipients.push({version:0,issuer:q.issuer.attributes,serialNumber:q.serialNumber,encryptedContent:{algorithm:S.pki.oids.rsaEncryption,key:q.publicKey}})},encrypt:function(q,x){if(void 0===z.encryptedContent.content){var F,Y,se;switch(q=q||z.encryptedContent.key,x=x||z.encryptedContent.algorithm){case S.pki.oids["aes128-CBC"]:F=16,Y=16,se=S.aes.createEncryptionCipher;break;case S.pki.oids["aes192-CBC"]:F=24,Y=16,se=S.aes.createEncryptionCipher;break;case S.pki.oids["aes256-CBC"]:F=32,Y=16,se=S.aes.createEncryptionCipher;break;case S.pki.oids["des-EDE3-CBC"]:F=24,Y=8,se=S.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+x)}if(void 0===q)q=S.util.createBuffer(S.random.getBytes(F));else if(q.length()!=F)throw new Error("Symmetric key has wrong length; got "+q.length()+" bytes, expected "+F+".");z.encryptedContent.algorithm=x,z.encryptedContent.key=q,z.encryptedContent.parameter=S.util.createBuffer(S.random.getBytes(Y));var pe=se(q);if(pe.start(z.encryptedContent.parameter.copy()),pe.update(z.content),!pe.finish())throw new Error("Symmetric encryption failed.");z.encryptedContent.content=pe.output}for(var Te=0;Te<z.recipients.length;++Te){var j=z.recipients[Te];if(void 0===j.encryptedContent.content){if(j.encryptedContent.algorithm!==S.pki.oids.rsaEncryption)throw new Error("Unsupported asymmetric cipher, OID "+j.encryptedContent.algorithm);j.encryptedContent.content=j.encryptedContent.key.encrypt(z.encryptedContent.key.data)}}}}}},1097:(yt,rn,ve)=>{var S=ve(6589);ve(4579),ve(5437),ve(812);var I,g=S.pkcs5=S.pkcs5||{};S.util.isNodejs&&!S.options.usePureJavaScript&&(I=ve(310)),yt.exports=S.pbkdf2=g.pbkdf2=function(K,te,J,H,O,D){if("function"==typeof O&&(D=O,O=null),S.util.isNodejs&&!S.options.usePureJavaScript&&I.pbkdf2&&(null===O||"object"!=typeof O)&&(I.pbkdf2Sync.length>4||!O||"sha1"===O))return"string"!=typeof O&&(O="sha1"),K=Buffer.from(K,"binary"),te=Buffer.from(te,"binary"),D?4===I.pbkdf2Sync.length?I.pbkdf2(K,te,J,H,function(Te,j){if(Te)return D(Te);D(null,j.toString("binary"))}):I.pbkdf2(K,te,J,H,O,function(Te,j){if(Te)return D(Te);D(null,j.toString("binary"))}):4===I.pbkdf2Sync.length?I.pbkdf2Sync(K,te,J,H).toString("binary"):I.pbkdf2Sync(K,te,J,H,O).toString("binary");if((typeof O>"u"||null===O)&&(O="sha1"),"string"==typeof O){if(!(O in S.md.algorithms))throw new Error("Unknown hash algorithm: "+O);O=S.md[O].create()}var V=O.digestLength;if(H>4294967295*V){var re=new Error("Derived key is too long.");if(D)return D(re);throw re}var Se=Math.ceil(H/V),ee=H-(Se-1)*V,X=S.hmac.create();X.start(O,K);var z,q,x,ne="";if(!D){for(var F=1;F<=Se;++F){X.start(null,null),X.update(te),X.update(S.util.int32ToBytes(F)),z=x=X.digest().getBytes();for(var Y=2;Y<=J;++Y)X.start(null,null),X.update(x),q=X.digest().getBytes(),z=S.util.xorBytes(z,q,V),x=q;ne+=F<Se?z:z.substr(0,ee)}return ne}function se(){if(F>Se)return D(null,ne);X.start(null,null),X.update(te),X.update(S.util.int32ToBytes(F)),z=x=X.digest().getBytes(),Y=2,pe()}function pe(){if(Y<=J)return X.start(null,null),X.update(x),q=X.digest().getBytes(),z=S.util.xorBytes(z,q,V),x=q,++Y,S.util.setImmediate(pe);ne+=F<Se?z:z.substr(0,ee),++F,se()}F=1,se()}},1290:(yt,rn,ve)=>{var S=ve(6589);ve(5437),ve(812);var g=yt.exports=S.sha512=S.sha512||{};S.md.sha512=S.md.algorithms.sha512=g;var I=S.sha384=S.sha512.sha384=S.sha512.sha384||{};I.create=function(){return g.create("SHA-384")},S.md.sha384=S.md.algorithms.sha384=I,S.sha512.sha256=S.sha512.sha256||{create:function(){return g.create("SHA-512/256")}},S.md["sha512/256"]=S.md.algorithms["sha512/256"]=S.sha512.sha256,S.sha512.sha224=S.sha512.sha224||{create:function(){return g.create("SHA-512/224")}},S.md["sha512/224"]=S.md.algorithms["sha512/224"]=S.sha512.sha224,g.create=function(V){if(te||function O(){K="\x80",K+=S.util.fillString("\0",128),J=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],(H={})["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],H["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],H["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,28279439
107],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],H["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],te=!0}(),typeof V>"u"&&(V="SHA-512"),!(V in H))throw new Error("Invalid SHA-512 algorithm: "+V);for(var re=H[V],Se=null,ee=S.util.createBuffer(),X=new Array(80),ne=0;ne<80;++ne)X[ne]=new Array(2);var z=64;switch(V){case"SHA-384":z=48;break;case"SHA-512/256":z=32;break;case"SHA-512/224":z=28}var q={algorithm:V.replace("-","").toLowerCase(),blockLength:128,digestLength:z,messageLength:0,fullMessageLength:null,messageLengthSize:16,start:function(){q.messageLength=0,q.fullMessageLength=q.messageLength128=[];for(var x=q.messageLengthSize/4,F=0;F<x;++F)q.fullMessageLength.push(0);for(ee=S.util.createBuffer(),Se=new Array(re.length),F=0;F<re.length;++F)Se[F]=re[F].slice(0);return q}};return q.start(),q.update=function(x,F){"utf8"===F&&(x=S.util.encodeUtf8(x));var Y=x.length;q.messageLength+=Y,Y=[Y/4294967296>>>0,Y>>>0];for(var se=q.fullMessageLength.length-1;se>=0;--se)q.fullMessageLength[se]+=Y[1],Y[1]=Y[0]+(q.fullMessageLength[se]/4294967296>>>0),q.fullMessageLength[se]=q.fullMessageLength[se]>>>0,Y[0]=Y[1]/4294967296>>>0;return ee.putBytes(x),D(Se,X,ee),(ee.read>2048||0===ee.length())&&ee.compact(),q},q.digest=function(){var x=S.util.createBuffer();x.putBytes(ee.bytes()),x.putBytes(K.substr(0,q.blockLength-(q.fullMessageLength[q.fullMessageLength.length-1]+q.messageLengthSize&q.blockLength-1)));for(var se,Te=8*q.fullMessageLength[0],j=0;j<q.fullMessageLength.length-1;++j)x.putInt32((Te+=(se=8*q.fullMessageLength[j+1])/4294967296>>>0)>>>0),Te=se>>>0;x.putInt32(Te);var Z=new Array(Se.length);for(j=0;j<Se.length;++j)Z[j]=Se[j].slice(0);D(Z,X,x);var w,ce=S.util.createBuffer();for(w="SHA-512"===V?Z.length:"SHA-384"===V?Z.length-2:Z.length-4,j=0;j<w;++j)ce.putInt32(Z[j][0]),(j!==w-1||"SHA-512/224"!==V)&&ce.putInt32(Z[j][1]);return ce},q};var K=null,te=!1,J=null,H=null;function D(V,re,Se){for(var ee,X,ne,z,Z,ce,w,me,Ee,ge,Oe,Ie,Be,Ue,Ge,it,ot,St,Tt,Et,st,_n,It,jn,mn,je,He,R=Se.length();R>=128;){for(st=0;st<16;++st)re[st][0]=Se.getInt32()>>>0,re[st][1]=Se.getInt32()>>>0;for(;st<80;++st)X=(((_n=(jn=re[st-2])[0])<<13|(It=jn[1])>>>19)^(It<<3|_n>>>29)^(_n<<26|It>>>6))>>>0,re[st][0]=(ee=((_n>>>19|It<<13)^(It>>>29|_n<<3)^_n>>>6)>>>0)+(mn=re[st-7])[0]+(ne=(((_n=(je=re[st-15])[0])>>>1|(It=je[1])<<31)^(_n>>>8|It<<24)^_n>>>7)>>>0)+(He=re[st-16])[0]+((It=X+mn[1]+(z=((_n<<31|It>>>1)^(_n<<24|It>>>8)^(_n<<25|It>>>7))>>>0)+He[1])/4294967296>>>0)>>>0,re[st][1]=It>>>0;for(Z=V[0][0],ce=V[0][1],w=V[1][0],me=V[1][1],Ee=V[2][0],ge=V[2][1],Oe=V[3][0],Ie=V[3][1],Be=V[4][0],Ue=V[4][1],Ge=V[5][0],it=V[5][1],ot=V[6][0],St=V[6][1],Tt=V[7][0],Et=V[7][1],st=0;st<80;++st)ee=Tt+(((Be>>>14|Ue<<18)^(Be>>>18|Ue<<14)^(Ue>>>9|Be<<23))>>>0)+((ot^Be&(Ge^ot))>>>0)+J[st][0]+re[st][0]+((It=Et+(((Be<<18|Ue>>>14)^(Be<<14|Ue>>>18)^(Ue<<23|Be>>>9))>>>0)+((St^Ue&(it^St))>>>0)+J[st][1]+re[st][1])/4294967296>>>0)>>>0,X=It>>>0,ne=(((Z>>>28|ce<<4)^(ce>>>2|Z<<30)^(ce>>>7|Z<<25))>>>0)+((Z&w|Ee&(Z^w))>>>0)+((It=(((Z<<4|ce>>>28)^(ce<<30|Z>>>2)^(ce<<25|Z>>>7))>>>0)+((ce&me|ge&(ce^me))>>>0))/4294967296>>>0)>>>0,z=It>>>0,Tt=ot,Et=St,ot=Ge,St=it,Ge=Be,it=Ue,Be=Oe+ee+((It=Ie+X)/4294967296>>>0)>>>0,Ue=It>>>0,Oe=Ee,Ie=ge,Ee=w,ge=me,w=Z,me=ce,Z=ee+ne+((It=X+z)/4294967296>>>0)>>>0,ce=It>>>0;V[0][0]=V[0][0]+Z+((It=V[0][1]+ce)/4294967296>>>0)>>>0,V[0][1]=It>>>0,V[1][0]=V[1][0]+w+((It=V[1][1]+me)/4294967296>>>0)>>>0,V[1][1]=It>>>0,V[2][0]=V[2][0]+Ee+((It=V[2][1]+ge)/4294967296>>>0)>>>0,V[2][1]=It>>>0,V[3][0]=V[3][0]+Oe+((It=V[3][1]+Ie)/4294967296>>>0)>>>0,V[3][1]=It>>>0,V[4][0]=V[4][0]+Be+((It=V[4][1]+Ue)/4294967296>>>0)>>>0,V[4][1]=It>>>0,V[5][0]=V[5][0]+Ge+((It=V[5][1]+it)/4294967296>>>0)>>>0,V[5][1]=It>>>0,V[6][0]=V[6][0]+ot+((It=V[6][1]+St)/4294967296>>>0)>>>0,V[6][1]=It>>>0,V[7][0]=V[7][0]+Tt+((It=V[7][1]+Et)/4294967296>>>0)>>>0,V[7][1]=It>>>0,R-=128}}},1347:(yt,rn,ve)=>{var S=ve(6589);if(ve(57),ve(7097),ve(3674),ve(5437),ve(1817),ve(1097),ve(9368),ve(1675),ve(1881),ve(2880),ve(812),typeof g>"u")var g=S.jsbn.BigInteger;var I=S.asn1,K=S.pki=S.pki||{};yt.exports=K.pbe=S.pbe=S.pbe||{};var te=K.oids,J={name:"EncryptedPrivateKeyInfo",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},H={name:"PBES2Algorithms",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,c
vendor: 13,869 bytes, line 1
1onstructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:I.Class.UNIVERSAL,type:I.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},O={name:"pkcs-12PbeParams",tagClass:I.Class.UNIVERSAL,type:I.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:I.Class.UNIVERSAL,type:I.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:I.Class.UNIVERSAL,type:I.Type.INTEGER,constructed:!1,capture:"iterations"}]};function D(ee,X){return ee.start().update(X).digest().getBytes()}function V(ee){var X;if(ee){if(!(X=K.oids[I.derToOid(ee)])){var ne=new Error("Unsupported PRF OID.");throw ne.oid=ee,ne.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],ne}}else X="hmacWithSHA1";return re(X)}function re(ee){var X=S.md;switch(ee){case"hmacWithSHA224":X=S.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":ee=ee.substr(8).toLowerCase();break;default:var ne=new Error("Unsupported PRF algorithm.");throw ne.algorithm=ee,ne.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],ne}if(!X||!(ee in X))throw new Error("Unknown hash algorithm: "+ee);return X[ee].create()}K.encryptPrivateKeyInfo=function(ee,X,ne){(ne=ne||{}).saltSize=ne.saltSize||8,ne.count=ne.count||2048,ne.algorithm=ne.algorithm||"aes128",ne.prfAlgorithm=ne.prfAlgorithm||"sha1";var F,Y,se,z=S.random.getBytesSync(ne.saltSize),q=ne.count,x=I.integerToDer(q);if(0===ne.algorithm.indexOf("aes")||"des"===ne.algorithm){var pe,Te,j;switch(ne.algorithm){case"aes128":F=16,pe=16,Te=te["aes128-CBC"],j=S.aes.createEncryptionCipher;break;case"aes192":F=24,pe=16,Te=te["aes192-CBC"],j=S.aes.createEncryptionCipher;break;case"aes256":F=32,pe=16,Te=te["aes256-CBC"],j=S.aes.createEncryptionCipher;break;case"des":F=8,pe=8,Te=te.desCBC,j=S.des.createEncryptionCipher;break;default:throw(Z=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=ne.algorithm,Z}var ce="hmacWith"+ne.prfAlgorithm.toUpperCase(),w=re(ce),me=S.pkcs5.pbkdf2(X,z,q,F,w),Ee=S.random.getBytesSync(pe);(ge=j(me)).start(Ee),ge.update(I.toDer(ee)),ge.finish(),se=ge.output.getBytes();var Oe=function Se(ee,X,ne,z){var q=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,ee),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,X.getBytes())]);return"hmacWithSHA1"!==z&&q.value.push(I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,S.util.hexToBytes(ne.toString(16))),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(K.oids[z]).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.NULL,!1,"")])),q}(z,x,F,ce);Y=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(te.pkcs5PBES2).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(te.pkcs5PBKDF2).getBytes()),Oe]),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(Te).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,Ee)])])])}else{var Z;if("3des"!==ne.algorithm)throw(Z=new Error("Cannot encrypt private key. Unknown encryption algorithm.")).algorithm=ne.algorithm,Z;F=24;var ge,Ie=new S.util.ByteBuffer(z);me=K.pbe.generatePkcs12Key(X,Ie,1,q,F),Ee=K.pbe.generatePkcs12Key(X,Ie,2,q,F),(ge=S.des.createEncryptionCipher(me)).start(Ee),ge.update(I.toDer(ee)),ge.finish(),se=ge.output.getBytes(),Y=I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OID,!1,I.oidToDer(te["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,z),I.create(I.Class.UNIVERSAL,I.Type.INTEGER,!1,x.getBytes())])])}return I.create(I.Class.UNIVERSAL,I.Type.SEQUENCE,!0,[Y,I.create(I.Class.UNIVERSAL,I.Type.OCTETSTRING,!1,se)])},K.decryptPrivateKeyInfo=function(ee,X){var ne=null,z={},q=[];if(!I.validate(ee,J,z,q)){var x=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw x.errors=q,x}var F=I.derToOid(z.encryptionOid),Y=K.pbe.getCipher(F,z.encryptionParams,X),se=S.util.createBuffer(z.encryptedData);return Y.update(se),Y.finish()&&(ne=I.fromDer(Y.output)),ne},K.encryptedPrivateKeyToPem=function(ee,X){var ne={type:"ENCRYPTED PRIVATE KEY",body:I.toDer(ee).getBytes()};return S.pem.encode(ne,{maxline:X})},K.encryptedPrivateKeyFromPem=function(ee){var X=S.pem.decode(ee)[0];if("ENCRYPTED PRIVATE KEY"!==X.type){var ne=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw ne.headerType=X.type,ne}if(X.procType&&"ENCRYPTED"===X.procType.type)throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return I.fromDer(X.body)},K.encryptRsaPrivateKey=function(ee,X,ne){if(!(ne=ne||{}).legacy){var z=K.wrapRsaPrivateKey(K.privateKeyToAsn1(ee));return z=K.encryptPrivateKeyInfo(z,X,ne),K.encryptedPrivateKeyToPem(z)}var q,x,F,Y;switch(ne.algorithm){case"aes128":q="AES-128-CBC",F=16,x=S.random.getBytesSync(16),Y=S.aes.createEncryptionCipher;break;case"aes192":q="AES-192-CBC",F=24,x=S.random.getBytesSync(16),Y=S.aes.createEncryptionCipher;break;case"aes256":q="AES-256-CBC",F=32,x=S.random.getBytesSync(16),Y=S.aes.createEncryptionCipher;break;case"3des":q="DES-EDE3-CBC",F=24,x=S.random.getBytesSync(8),Y=S.des.createEncryptionCipher;break;case"des":q="DES-CBC",F=8,x=S.random.getBytesSync(8),Y=S.des.createEncryptionCipher;break;default:var se=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+ne.algorithm+'".');throw se.algorithm=ne.algorithm,se}var Te=Y(S.pbe.opensslDeriveBytes(X,x.substr(0,8),F));Te.start(x),Te.update(I.toDer(K.privateKeyToAsn1(ee))),Te.finish();var j={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:q,parameters:S.util.bytesToHex(x).toUpperCase()},body:Te.output.getBytes()};return S.pem.encode(j)},K.decryptRsaPrivateKey=function(ee,X){var ne=null,z=S.pem.decode(ee)[0];if("ENCRYPTED PRIVATE KEY"!==z.type&&"PRIVATE KEY"!==z.type&&"RSA PRIVATE KEY"!==z.type)throw(q=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".')).headerType=q,q;if(z.procType&&"ENCRYPTED"===z.procType.type){var x,F;switch(z.dekInfo.algorithm){case"DES-CBC":x=8,F=S.des.createDecryptionCipher;break;case"DES-EDE3-CBC":x=24,F=S.des.createDecryptionCipher;break;case"AES-128-CBC":x=16,F=S.aes.createDecryptionCipher;break;case"AES-192-CBC":x=24,F=S.aes.createDecryptionCipher;break;case"AES-256-CBC":x=32,F=S.aes.createDecryptionCipher;break;case"RC2-40-CBC":x=5,F=function(j){return S.rc2.createDecryptionCipher(j,40)};break;case"RC2-64-CBC":x=8,F=function(j){return S.rc2.createDecryptionCipher(j,64)};break;case"RC2-128-CBC":x=16,F=function(j){return S.rc2.createDecryptionCipher(j,128)};break;default:var q;throw(q=new Error('Could not decrypt private key; unsupported encryption algorithm "'+z.dekInfo.algorithm+'".')).algorithm=z.dekInfo.algorithm,q}var Y=S.util.hexToBytes(z.dekInfo.parameters),pe=F(S.pbe.opensslDeriveBytes(X,Y.substr(0,8),x));if(pe.start(Y),pe.update(S.util.createBuffer(z.body)),!pe.finish())return ne;ne=pe.output.getBytes()}else ne=z.body;return null!==(ne="ENCRYPTED PRIVATE KEY"===z.type?K.decryptPrivateKeyInfo(I.fromDer(ne),X):I.fromDer(ne))&&(ne=K.privateKeyFromAsn1(ne)),ne},K.pbe.generatePkcs12Key=function(ee,X,ne,z,q,x){var F,Y;if(typeof x>"u"||null===x){if(!("sha1"in S.md))throw new Error('"sha1" hash algorithm unavailable.');x=S.md.sha1.create()}var se=x.digestLength,pe=x.blockLength,Te=new S.util.ByteBuffer,j=new S.util.ByteBuffer;if(null!=ee){for(Y=0;Y<ee.length;Y++)j.putInt16(ee.charCodeAt(Y));j.putInt16(0)}var Z=j.length(),ce=X.length(),w=new S.util.ByteBuffer;w.fillWithByte(ne,pe);var me=pe*Math.ceil(ce/pe),Ee=new S.util.ByteBuffer;for(Y=0;Y<me;Y++)Ee.putByte(X.at(Y%ce));var ge=pe*Math.ceil(Z/pe),Oe=new S.util.ByteBuffer;for(Y=0;Y<ge;Y++)Oe.putByte(j.at(Y%Z));var Ie=Ee;Ie.putBuffer(Oe);for(var Be=Math.ceil(q/se),Ue=1;Ue<=Be;Ue++){var Ge=new S.util.ByteBuffer;Ge.putBytes(w.bytes()),Ge.putBytes(Ie.bytes());for(var it=0;it<z;it++)x.start(),x.update(Ge.getBytes()),Ge=x.digest();var ot=new S.util.ByteBuffer;for(Y=0;Y<pe;Y++)ot.putByte(Ge.at(Y%se));var St=Math.ceil(ce/pe)+Math.ceil(Z/pe),Tt=new S.util.ByteBuffer;for(F=0;F<St;F++){var Et=new S.util.ByteBuffer(Ie.getBytes(pe)),st=511;for(Y=ot.length()-1;Y>=0;Y--)st>>=8,st+=ot.at(Y)+Et.at(Y),Et.setAt(Y,255&st);Tt.putBuffer(Et)}Ie=Tt,Te.putBuffer(Ge)}return Te.truncate(Te.length()-q),Te},K.pbe.getCipher=function(ee,X,ne){switch(ee){case K.oids.pkcs5PBES2:return K.pbe.getCipherForPBES2(ee,X,ne);case K.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case K.oids["pbewithSHAAnd40BitRC2-CBC"]:return K.pbe.getCipherForPKCS12PBE(ee,X,ne);default:var z=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw z.oid=ee,z.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],z}},K.pbe.getCipherForPBES2=function(ee,X,ne){var x,z={},q=[];if(!I.validate(X,H,z,q))throw(x=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=q,x;if((ee=I.derToOid(z.kdfOid))!==K.oids.pkcs5PBKDF2)throw(x=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.")).oid=ee,x.supportedOids=["pkcs5PBKDF2"],x;if((ee=I.derToOid(z.encOid))!==K.oids["aes128-CBC"]&&ee!==K.oids["aes192-CBC"]&&ee!==K.oids["aes256-CBC"]&&ee!==K.oids["des-EDE3-CBC"]&&ee!==K.oids.desCBC)throw(x=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.")).oid=ee,x.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],x;var se,pe,F=z.kdfSalt,Y=S.util.createBuffer(z.kdfIterationCount);switch(Y=Y.getInt(Y.length()<<3),K.oids[ee]){case"aes128-CBC":se=16,pe=S.aes.createDecryptionCipher;break;case"aes192-CBC":se=24,pe=S.aes.createDecryptionCipher;break;case"aes256-CBC":se=32,pe=S.aes.createDecryptionCipher;break;case"des-EDE3-CBC":se=24,pe=S.des.createDecryptionCipher;break;case"desCBC":se=8,pe=S.des.createDecryptionCipher}var Te=V(z.prfOid),j=S.pkcs5.pbkdf2(ne,F,Y,se,Te),Z=z.encIv,ce=pe(j);return ce.start(Z),ce},K.pbe.getCipherForPKCS12PBE=function(ee,X,ne){var z={},q=[];if(!I.validate(X,O,z,q))throw(x=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.")).errors=q,x;var se,pe,Te,F=S.util.createBuffer(z.salt),Y=S.util.createBuffer(z.iterations);switch(Y=Y.getInt(Y.length()<<3),ee){case K.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:se=24,pe=8,Te=S.des.startDecrypting;break;case K.oids["pbewithSHAAnd40BitRC2-CBC"]:se=5,pe=8,Te=function(me,Ee){var ge=S.rc2.createDecryptionCipher(me,40);return ge.start(Ee,null),ge};break;default:var x;throw(x=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.")).oid=ee,x}var j=V(z.prfOid),Z=K.pbe.generatePkcs12Key(ne,F,1,Y,se,j);return j.start(),Te(Z,K.pbe.generatePkcs12Key(ne,F,2,Y,pe,j))},K.pbe.opensslDeriveBytes=function(ee,X,ne,z){if(typeof z>"u"||null===z){if(!("md5"in S.md))throw new Error('"md5" hash algorithm unavailable.');z=S.md.md5.create()}null===X&&(X="");for(var q=[D(z,ee+X)],x=16,F=1;x<ne;++F,x+=16)q.push(D(z,q[F-1]+ee+X));return q.join("").substr(0,ne)}},1675:(yt,rn,ve)=>{var S=ve(6589);ve(57),ve(2507),ve(409),ve(812),S.random&&S.random.getBytes?yt.exports=S.random:function(g){var I={},K=new Array(4),te=S.util.createBuffer();function J(){var ee=S.prng.create(I);return ee.getBytes=function(X,ne){return ee.generate(X,ne)},ee.getBytesSync=function(X){return ee.generate(X)},ee}I.formatKey=function(ee){var X=S.util.createBuffer(ee);return(ee=new Array(4))[0]=X.getInt32(),ee[1]=X.getInt32(),ee[2]=X.getInt32(),ee[3]=X.getInt32(),S.aes._expandKey(ee,!1)},I.formatSeed=function(ee){var X=S.util.createBuffer(ee);return(ee=new Array(4))[0]=X.getInt32(),ee[1]=X.getInt32(),ee[2]=X.getInt32(),ee[3]=X.getInt32(),ee},I.cipher=function(ee,X){return S.aes._updateBlock(ee,X,K,!1),te.putInt32(K[0]),te.putInt32(K[1]),te.putInt32(K[2]),te.putInt32(K[3]),te.getBytes()},I.increment=function(ee){return++ee[3],ee},I.md=S.md.sha256;var H=J(),O=null,D=S.util.globalScope,V=D.crypto||D.msCrypto;if(V&&V.getRandomValues&&(O=function(ee){return V.getRandomValues(ee)}),S.options.usePureJavaScript||!S.util.isNodejs&&!O){if(typeof window>"u"||window,H.collectInt(+new Date,32),typeof navigator<"u"){var re="";for(var Se in navigator)try{"string"==typeof navigator[Se]&&(re+=navigator[Se])}catch{}H.collect(re),re=null}g&&(g().mousemove(function(ee){H.collectInt(ee.clientX,16),H.collectInt(ee.clientY,16)}),g().keypress(function(ee){H.collectInt(ee.charCode,8)}))}if(S.random)for(var Se in H)S.random[Se]=H[Se];else S.random=H;S.random.createInstance=J,yt.exports=S.random}(typeof jQuery<"u"?jQuery:null)},1817:(yt,rn,ve)=>{var S=ve(6589);S.pki=S.pki||{};var g=yt.exports=S.pki.oids=S.oids=S.oids||{};function I(te,J){g[te]=J,g[J]=te}function K(te,J){g[te]=J}
1I("1.2.840.113549.1.1.1","rsaEncryption"),I("1.2.840.113549.1.1.4","md5WithRSAEncryption"),I("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),I("1.2.840.113549.1.1.7","RSAES-OAEP"),I("1.2.840.113549.1.1.8","mgf1"),I("1.2.840.113549.1.1.9","pSpecified"),I("1.2.840.113549.1.1.10","RSASSA-PSS"),I("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),I("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),I("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),I("1.3.101.112","EdDSA25519"),I("1.2.840.10040.4.3","dsa-with-sha1"),I("1.3.14.3.2.7","desCBC"),I("1.3.14.3.2.26","sha1"),I("1.3.14.3.2.29","sha1WithRSASignature"),I("2.16.840.1.101.3.4.2.1","sha256"),I("2.16.840.1.101.3.4.2.2","sha384"),I("2.16.840.1.101.3.4.2.3","sha512"),I("2.16.840.1.101.3.4.2.4","sha224"),I("2.16.840.1.101.3.4.2.5","sha512-224"),I("2.16.840.1.101.3.4.2.6","sha512-256"),I("1.2.840.113549.2.2","md2"),I("1.2.840.113549.2.5","md5"),I("1.2.840.113549.1.7.1","data"),I("1.2.840.113549.1.7.2","signedData"),I("1.2.840.113549.1.7.3","envelopedData"),I("1.2.840.113549.1.7.4","signedAndEnvelopedData"),I("1.2.840.113549.1.7.5","digestedData"),I("1.2.840.113549.1.7.6","encryptedData"),I("1.2.840.113549.1.9.1","emailAddress"),I("1.2.840.113549.1.9.2","unstructuredName"),I("1.2.840.113549.1.9.3","contentType"),I("1.2.840.113549.1.9.4","messageDigest"),I("1.2.840.113549.1.9.5","signingTime"),I("1.2.840.113549.1.9.6","counterSignature"),I("1.2.840.113549.1.9.7","challengePassword"),I("1.2.840.113549.1.9.8","unstructuredAddress"),I("1.2.840.113549.1.9.14","extensionRequest"),I("1.2.840.113549.1.9.20","friendlyName"),I("1.2.840.113549.1.9.21","localKeyId"),I("1.2.840.113549.1.9.22.1","x509Certificate"),I("1.2.840.113549.1.12.10.1.1","keyBag"),I("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),I("1.2.840.113549.1.12.10.1.3","certBag"),I("1.2.840.113549.1.12.10.1.4","crlBag"),I("1.2.840.113549.1.12.10.1.5","secretBag"),I("1.2.840.113549.1.12.10.1.6","safeContentsBag"),I("1.2.840.113549.1.5.13","pkcs5PBES2"),I("1.2.840.113549.1.5.12","pkcs5PBKDF2"),I("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),I("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),I("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),I("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),I("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),I("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),I("1.2.840.113549.2.7","hmacWithSHA1"),I("1.2.840.113549.2.8","hmacWithSHA224"),I("1.2.840.113549.2.9","hmacWithSHA256"),I("1.2.840.113549.2.10","hmacWithSHA384"),I("1.2.840.113549.2.11","hmacWithSHA512"),I("1.2.840.113549.3.7","des-EDE3-CBC"),I("2.16.840.1.101.3.4.1.2","aes128-CBC"),I("2.16.840.1.101.3.4.1.22","aes192-CBC"),I("2.16.840.1.101.3.4.1.42","ae
1s256-CBC"),I("2.5.4.3","commonName"),I("2.5.4.4","surname"),I("2.5.4.5","serialNumber"),I("2.5.4.6","countryName"),I("2.5.4.7","localityName"),I("2.5.4.8","stateOrProvinceName"),I("2.5.4.9","streetAddress"),I("2.5.4.10","organizationName"),I("2.5.4.11","organizationalUnitName"),I("2.5.4.12","title"),I("2.5.4.13","description"),I("2.5.4.15","businessCategory"),I("2.5.4.17","postalCode"),I("2.5.4.42","givenName"),I("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),I("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),I("2.16.840.1.113730.1.1","nsCertType"),I("2.16.840.1.113730.1.13","nsComment"),K("2.5.29.1","authorityKeyIdentifier"),K("2.5.29.2","keyAttributes"),K("2.5.29.3","certificatePolicies"),K("2.5.29.4","keyUsageRestriction"),K("2.5.29.5","policyMapping"),K("2.5.29.6","subtreesConstraint"),K("2.5.29.7","subjectAltName"),K("2.5.29.8","issuerAltName"),K("2.5.29.9","subjectDirectoryAttributes"),K("2.5.29.10","basicConstraints"),K("2.5.29.11","nameConstraints"),K("2.5.29.12","policyConstraints"),K("2.5.29.13","basicConstraints"),I("2.5.29.14","subjectKeyIdentifier"),I("2.5.29.15","keyUsage"),K("2.5.29.16","privateKeyUsagePeriod"),I("2.5.29.17","subjectAltName"),I("2.5.29.18","issuerAltName"),I("2.5.29.19","basicConstraints"),K("2.5.29.20","cRLNumber"),K("2.5.29.21","cRLReason"),K("2.5.29.22","expirationDate"),K("2.5.29.23","instructionCode"),K("2.5.29.24","invali
1dityDate"),K("2.5.29.25","cRLDistributionPoints"),K("2.5.29.26","issuingDistributionPoint"),K("2.5.29.27","deltaCRLIndicator"),K("2.5.29.28","issuingDistributionPoint"),K("2.5.29.29","certificateIssuer"),K("2.5.29.30","nameConstraints"),I("2.5.29.31","cRLDistributionPoints"),I("2.5.29.32","certificatePolicies"),K("2.5.29.33","policyMappings"),K("2.5.29.34","policyConstraints"),I("2.5.29.35","authorityKeyIdentifier"),K("2.5.29.36","policyConstraints"),I("2.5.29.37","extKeyUsage"),K("2.5.29.46","freshestCRL"),K("2.5.29.54","inhibitAnyPolicy"),I("1.3.6.1.4.1.11129.2.4.2","timestampList"),I("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),I("1.3.6.1.5.5.7.3.1","serverAuth"),I("1.3.6.1.5.5.7.3.2","clientAuth"),I("1.3.6.1.5.5.7.3.3","codeSigning"),I("1.3.6.1.5.5.7.3.4","emailProtection"),I("1.3.6.1.5.5.7.3.8","timeStamping")},1881:(yt,rn,ve)=>{var S=ve(6589);ve(812);var g=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],I=[1,2,3,5],K=function(H,O){return H<<O&65535|(65535&H)>>16-O},te=function(H,O){return(65535&H)>>O|H<<16-O&65535};yt.exports=S.rc2=S.rc2||{},S.rc2.expandKey=function(H,O){"string"==typeof H&&(H=S.util.createBuffer(H)),O=O||128;var X,D=H,V=H.length(),re=O,Se=Math.ceil(re/8),ee=255>>(7&re);for(X=V;X<128;X++)D.putByte(g[D.at(X-1)+D.at(X-V)&255]);for(D.setAt(128-Se,g[D.at(128-Se)&ee]),X=127-Se;X>=0;X--)D.setAt(X,g[D.at(X+1)^D.at(X+Se)]);return D};var J=function(H,O,D){var X,ne,z,q,V=!1,re=null,Se=null,ee=null,x=[];for(H=S.rc2.expandKey(H,O),z=0;z<64;z++)x.push(H.getInt16Le());D?(X=function(se){for(z=0;z<4;z++)se[z]+=x[q]+(se[(z+3)%4]&se[(z+2)%4])+(~se[(z+3)%4]&se[(z+1)%4]),se[z]=K(se[z],I[z]),q++},ne=function(se){for(z=0;z<4;z++)se[z]+=x[63&se[(z+3)%4]]}):(X=function(se){for(z=3;z>=0;z--)se[z]=te(se[z],I[z]),se[z]-=x[q]+(se[(z+3)%4]&se[(z+2)%4])+(~se[(z+3)%4]&se[(z+1)%4]),q--},ne=function(se){for(z=3;z>=0;z--)se[z]-=x[63&se[(z+3)%4]]});var F=function(se){var pe=[];for(z=0;z<4;z++){var Te=re.getInt16Le();null!==ee&&(D?Te^=ee.getInt16Le():ee.putInt16Le(Te)),pe.push(65535&Te)}q=D?0:63;for(var j=0;j<se.length;j++)for(var Z=0;Z<se[j][0];Z++)se[j][1](pe);for(z=0;z<4;z++)null!==ee&&(D?ee.putInt16Le(pe[z]):pe[z]^=ee.getInt16Le()),Se.putInt16Le(pe[z])},Y=null;return Y={start:function(se,pe){se&&"string"==typeof se&&(se=S.util.createBuffer(se)),V=!1,re=S.util.createBuffer(),Se=pe||new S.util.createBuffer,ee=se,Y.output=Se},update:function(se){for(V||re.putBuffer(se);re.length()>=8;)F([[5,X],[1,ne],[6,X],[1,ne],[5,X]])},finish:function(se){var pe=!0;if(D)if(se)pe=se(8,re,!D);else{var Te=8===re.length()?8:8-re.length();re.fillWithByte(Te,Te)}if(pe&&(V=!0,Y.update()),!D&&(pe=0===re.length()))if(se)pe=se(8,Se,!D);else{var j=Se.length(),Z=Se.at(j-1);Z>j?pe=!1:Se.truncate(Z)}return pe}}};S.rc2.startEncrypting=function(H,O,D){var V=S.rc2.createEncryptionCipher(H,128);return V.start(O,D),V},S.rc2.createEncryptionCipher=function(H,O){return J(H,O,!0)},S.rc2.startDecrypting=function(H,O,D){var V=S.rc2.createDecryptionCipher(H,128);return V.start(O,D),V},S.rc2.createDecryptionCipher=function(H,O){return J(H,O,!1)}},2114:(yt,rn,ve)=>{yt.exports=ve(6589),ve(57),ve(3707),ve(7097),ve(5855),ve(3674),ve(651),ve(4579),ve(8321),ve(872),ve(9228),ve(5833),ve(1097),ve(9368),ve(8788),ve(4724),ve(1026),ve(9622),ve(3697),ve(409),ve(8588),ve(1675),ve(1881),ve(3120),ve(9807),ve(812)},2507:(yt,rn,ve)=>{var S=ve(6589);ve(5437),ve(812);var g=yt.exports=S.sha256=S.sha256||{};S.md.sha256=S.md.algorithms.sha256=g,g.create=function(){K||function J(){I="\x80",I+=S.util.fillString("\0",64),te=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298],K=!0}();var O=null,D=S.util.createBuffer(),V=new Array(64),re={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){re.messageLength=0,re.fullMessageLength=re.messageLength64=[];for(var Se=re.messageLengthSize/4,ee=0;ee<Se;++ee)re.fullMessageLength.push(0);return D=S.util.createBuffer(),O={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},re}};return re.start(),re.update=function(Se,ee){"utf8"===ee&&(Se=S.util.encodeUtf8(Se));var X=Se.length;re.messageLength+=X,X=[X/4294967296>>>0,X>>>0];for(var ne=re.fullMessageLength.length-1;ne>=0;--ne)re.fullMessageLength[ne]+=X[1],X[1]=X[0]+(re.fullMessageLength[ne]/4294967296>>>0),re.fullMessageLength[ne]=re.fullMessageLength[ne]>>>0,X[0]=X[1]/4294967296>>>0;return D.putBytes(Se),H(O,V,D),(D.read>2048||0===D.length())&&D.compact(),re},re.digest=function(){var Se=S.util.createBuffer();Se.putBytes(D.bytes()),Se.putBytes(I.substr(0,re.blockLength-(re.fullMessageLength[re.fullMessageLength.length-1]+re.messageLengthSize&re.blockLength-1)));for(var ne,q=8*re.fullMessageLength[0],x=0;x<re.fullMessageLength.length-1;++x)Se.putInt32((q+=(ne=8*re.fullMessageLength[x+1])/4294967296>>>0)>>>0),q=ne>>>0;Se.putInt32(q);var F={h0:O.h0,h1:O.h1,h2:O.h2,h3:O.h3,h4:O.h4,h5:O.h5,h6:O.h6,h7:O.h7};H(F,V,Se);var Y=S.util.createBuffer();return Y.putInt32(F.h0),Y.putInt32(F.h1),Y.putInt32(F.h2),Y.putInt32(F.h3),Y.putInt32(F.h4),Y.putInt32(F.h5),Y.putInt32(F.h6),Y.putInt32(F.h7),Y},re};var I=null,K=!1,te=null;function H(O,D,V){for(var re,Se,z,q,x,F,Y,se,pe,Te,j,Z,ce=V.length();ce>=64;){for(q=0;q<16;++q)D[q]=V.getInt32();for(;q<64;++q)D[q]=(re=((re=D[q-2])>>>17|re<<15)^(re>>>19|re<<13)^re>>>10)+D[q-7]+(Se=((Se=D[q-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+D[q-16]|0;for(x=O.h0,F=O.h1,Y=O.h2,se=O.h3,pe=O.h4,Te=O.h5,j=O.h6,Z=O.h7,q=0;q<64;++q)z=x&F|Y&(x^F),re=Z+((pe>>>6|pe<<26)^(pe>>>11|pe<<21)^(pe>>>25|pe<<7))+(j^pe&(Te^j))+te[q]+D[q],Z=j,j=Te,Te=pe,pe=se+re>>>0,se=Y,Y=F,F=x,x=re+(Se=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+z)>>>0;O.h0=O.h0+x|0,O.h1=O.h1+F|0,O.h2=O.h2+Y|0,O.h3=O.h3+se|0,O.h4=O.h4+pe|0,O.h5=O.h5+Te|0,O.h6=O.h6+j|0,O.h7=O.h7+Z|0,ce-=64}}},2758:(yt,rn,ve)=>{var S=ve(6589);ve(7097);var g=S.asn1;rn.privateKeyValidator={name:"PrivateKeyInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},rn.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:g.Class.UNIVERSAL,type:g.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}},2880:(yt,rn,ve)=>{var S=ve(6589);if(ve(7097),ve(983),ve(1817),ve(8788),ve(3697),ve(1675),ve(812),typeof g>"u")var g=S.jsbn.BigInteger;var I=S.util.isNodejs?ve(310):null,K=S.asn1,te=S.util;S.pki=S.pki||{},yt.exports=S.pki.rsa=S.rsa=S.rsa||{};var J=S.pki,H=[6,4,2,4,2,4,6,2],O={name:"PrivateKeyInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},D={name:"RSAPrivateKey",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,c
vendor: 31,765 bytes, line 1
1onstructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},V={name:"RSAPublicKey",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:K.Class.UNIVERSAL,type:K.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},re=S.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:K.Class.UNIVERSAL,type:K.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},Se={name:"DigestInfo",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:K.Class.UNIVERSAL,type:K.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:K.Class.UNIVERSAL,type:K.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:K.Class.UNIVERSAL,type:K.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:K.Class.UNIVERSAL,type:K.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},ee=function(w){if(!(w.algorithm in J.oids)){var Ee=new Error("Unknown message digest algorithm.");throw Ee.algorithm=w.algorithm,Ee}var ge=K.oidToDer(J.oids[w.algorithm]).getBytes(),Oe=K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[]),Ie=K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[]);Ie.value.push(K.create(K.Class.UNIVERSAL,K.Type.OID,!1,ge)),Ie.value.push(K.create(K.Class.UNIVERSAL,K.Type.NULL,!1,""));var Be=K.create(K.Class.UNIVERSAL,K.Type.OCTETSTRING,!1,w.digest().getBytes());return Oe.value.push(Ie),Oe.value.push(Be),K.toDer(Oe).getBytes()},X=function(w,me,Ee){if(Ee)return w.modPow(me.e,me.n);if(!me.p||!me.q)return w.modPow(me.d,me.n);var ge;me.dP||(me.dP=me.d.mod(me.p.subtract(g.ONE))),me.dQ||(me.dQ=me.d.mod(me.q.subtract(g.ONE))),me.qInv||(me.qInv=me.q.modInverse(me.p));do{ge=new g(S.util.bytesToHex(S.random.getBytes(me.n.bitLength()/8)),16)}while(ge.compareTo(me.n)>=0||!ge.gcd(me.n).equals(g.ONE));for(var Oe=(w=w.multiply(ge.modPow(me.e,me.n)).mod(me.n)).mod(me.p).modPow(me.dP,me.p),Ie=w.mod(me.q).modPow(me.dQ,me.q);Oe.compareTo(Ie)<0;)Oe=Oe.add(me.p);var Be=Oe.subtract(Ie).multiply(me.qInv).mod(me.p).multiply(me.q).add(Ie);return Be.multiply(ge.modInverse(me.n)).mod(me.n)};function ne(w,me,Ee){var ge=S.util.createBuffer(),Oe=Math.ceil(me.n.bitLength()/8);if(w.length>Oe-11){var Ie=new Error("Message is too long for PKCS#1 v1.5 padding.");throw Ie.length=w.length,Ie.max=Oe-11,Ie}ge.putByte(0),ge.putByte(Ee);var Ue,Be=Oe-3-w.length;if(0===Ee||1===Ee){Ue=0===Ee?0:255;for(var Ge=0;Ge<Be;++Ge)ge.putByte(Ue)}else for(;Be>0;){var it=0,ot=S.random.getBytes(Be);for(Ge=0;Ge<Be;++Ge)0===(Ue=ot.charCodeAt(Ge))?++it:ge.putByte(Ue);Be=it}return ge.putByte(0),ge.putBytes(w),ge}function z(w,me,Ee,ge){var Oe=Math.ceil(me.n.bitLength()/8),Ie=S.util.createBuffer(w),Be=Ie.getByte(),Ue=Ie.getByte();if(0!==Be||Ee&&0!==Ue&&1!==Ue||!Ee&&2!=Ue||Ee&&0===Ue&&typeof ge>"u")throw new Error("Encryption block is invalid.");var Ge=0;if(0===Ue){Ge=Oe-3-ge;for(var it=0;it<Ge;++it)if(0!==Ie.getByte())throw new Error("Encryption block is invalid.")}else if(1===Ue)for(Ge=0;Ie.length()>1;){if(255!==Ie.getByte()){--Ie.read;break}++Ge}else if(2===Ue)for(Ge=0;Ie.length()>1;){if(0===Ie.getByte()){--Ie.read;break}++Ge}if(0!==Ie.getByte()||Ge!==Oe-3-Ie.length())throw new Error("Encryption block is invalid.");return Ie.getBytes()}function x(w){var me=w.toString(16);me[0]>="8"&&(me="00"+me);var Ee=S.util.hexToBytes(me);return!(Ee.length>1)||(0!==Ee.charCodeAt(0)||128&Ee.charCodeAt(1))&&(255!==Ee.charCodeAt(0)||128&~Ee.charCodeAt(1))?Ee:Ee.substr(1)}function F(w){return w<=100?27:w<=150?18:w<=200?15:w<=250?12:w<=300?9:w<=350?8:w<=400?7:w<=500?6:w<=600?5:w<=800?4:w<=1250?3:2}function Y(w){return S.util.isNodejs&&"function"==typeof I[w]}function se(w){return typeof te.globalScope<"u"&&"object"==typeof te.globalScope.crypto&&"object"==typeof te.globalScope.crypto.subtle&&"function"==typeof te.globalScope.crypto.subtle[w]}function pe(w){return typeof te.globalScope<"u"&&"object"==typeof te.globalScope.msCrypto&&"object"==typeof te.globalScope.msCrypto.subtle&&"function"==typeof te.globalScope.msCrypto.subtle[w]}function Te(w){for(var me=S.util.hexToBytes(w.toString(16)),Ee=new Uint8Array(me.length),ge=0;ge<me.length;++ge)Ee[ge]=me.charCodeAt(ge);return Ee}J.rsa.encrypt=function(w,me,Ee){var Oe,ge=Ee,Ie=Math.ceil(me.n.bitLength()/8);!1!==Ee&&!0!==Ee?(ge=2===Ee,Oe=ne(w,me,Ee)):(Oe=S.util.createBuffer()).putBytes(w);for(var Be=new g(Oe.toHex(),16),Ge=X(Be,me,ge).toString(16),it=S.util.createBuffer(),ot=Ie-Math.ceil(Ge.length/2);ot>0;)it.putByte(0),--ot;return it.putBytes(S.util.hexToBytes(Ge)),it.getBytes()},J.rsa.decrypt=function(w,me,Ee,ge){var Oe=Math.ceil(me.n.bitLength()/8);if(w.length!==Oe){var Ie=new Error("Encrypted message length is invalid.");throw Ie.length=w.length,Ie.expected=Oe,Ie}var Be=new g(S.util.createBuffer(w).toHex(),16);if(Be.compareTo(me.n)>=0)throw new Error("Encrypted message is invalid.");for(var Ge=X(Be,me,Ee).toString(16),it=S.util.createBuffer(),ot=Oe-Math.ceil(Ge.length/2);ot>0;)it.putByte(0),--ot;return it.putBytes(S.util.hexToBytes(Ge)),!1!==ge?z(it.getBytes(),me,Ee):it.getBytes()},J.rsa.createKeyPairGenerationState=function(w,me,Ee){"string"==typeof w&&(w=parseInt(w,10)),w=w||2048;var Be,ge=(Ee=Ee||{}).prng||S.random,Oe={nextBytes:function(Ue){for(var Ge=ge.getBytesSync(Ue.length),it=0;it<Ue.length;++it)Ue[it]=Ge.charCodeAt(it)}},Ie=Ee.algorithm||"PRIMEINC";if("PRIMEINC"!==Ie)throw new Error("Invalid key generation algorithm: "+Ie);return(Be={algorithm:Ie,state:0,bits:w,rng:Oe,eInt:me||65537,e:new g(null),p:null,q:null,qBits:w>>1,pBits:w-(w>>1),pqState:0,num:null,keys:null}).e.fromInt(Be.eInt),Be},J.rsa.stepKeyPairGenerationState=function(w,me){"algorithm"in w||(w.algorithm="PRIMEINC");var Ee=new g(null);Ee.fromInt(30);for(var Be,ge=0,Oe=function(St,Tt){return St|Tt},Ie=+new Date,Ue=0;null===w.keys&&(me<=0||Ue<me);){if(0===w.state){var Ge=null===w.p?w.pBits:w.qBits,it=Ge-1;0===w.pqState?(w.num=new g(Ge,w.rng),w.num.testBit(it)||w.num.bitwiseTo(g.ONE.shiftLeft(it),Oe,w.num),w.num.dAddOffset(31-w.num.mod(Ee).byteValue(),0),ge=0,++w.pqState):1===w.pqState?w.num.bitLength()>Ge?w.pqState=0:w.num.isProbablePrime(F(w.num.bitLength()))?++w.pqState:w.num.dAddOffset(H[ge++%8],0):2===w.pqState?w.pqState=0===w.num.subtract(g.ONE).gcd(w.e).compareTo(g.ONE)?3:0:3===w.pqState&&(w.pqState=0,null===w.p?w.p=w.num:w.q=w.num,null!==w.p&&null!==w.q&&++w.state,w.num=null)}else if(1===w.state)w.p.compareTo(w.q)<0&&(w.num=w.p,w.p=w.q,w.q=w.num),++w.state;else if(2===w.state)w.p1=w.p.subtract(g.ONE),w.q1=w.q.subtract(g.ONE),w.phi=w.p1.multiply(w.q1),++w.state;else if(3===w.state)0===w.phi.gcd(w.e).compareTo(g.ONE)?++w.state:(w.p=null,w.q=null,w.state=0);else if(4===w.state)w.n=w.p.multiply(w.q),w.n.bitLength()===w.bits?++w.state:(w.q=null,w.state=0);else if(5===w.state){var ot=w.e.modInverse(w.phi);w.keys={privateKey:J.rsa.setPrivateKey(w.n,w.e,ot,w.p,w.q,ot.mod(w.p1),ot.mod(w.q1),w.q.modInverse(w.p)),publicKey:J.rsa.setPublicKey(w.n,w.e)}}Ue+=(Be=+new Date)-Ie,Ie=Be}return null!==w.keys},J.rsa.generateKeyPair=function(w,me,Ee,ge){if(1===arguments.length?"object"==typeof w?(Ee=w,w=void 0):"function"==typeof w&&(ge=w,w=void 0):2===arguments.length?"number"==typeof w?"function"==typeof me?(ge=me,me=void 0):"number"!=typeof me&&(Ee=me,me=void 0):(Ee=w,ge=me,w=void 0,me=void 0):3===arguments.length&&("number"==typeof me?"function"==typeof Ee&&(ge=Ee,Ee=void 0):(ge=Ee,Ee=me,me=void 0)),Ee=Ee||{},void 0===w&&(w=Ee.bits||2048),void 0===me&&(me=Ee.e||65537),!S.options.usePureJavaScript&&!Ee.prng&&w>=256&&w<=16384&&(65537===me||3===me))if(ge){if(Y("generateKeyPair"))return I.generateKeyPair("rsa",{modulusLength:w,publicExponent:me,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(Ue,Ge,it){if(Ue)return ge(Ue);ge(null,{privateKey:J.privateKeyFromPem(it),publicKey:J.publicKeyFromPem(Ge)})});if(se("generateKey")&&se("exportKey"))return te.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:w,publicExponent:Te(me),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(Ue){return te.globalScope.crypto.subtle.exportKey("pkcs8",Ue.privateKey)}).then(void 0,function(Ue){ge(Ue)}).then(function(Ue){if(Ue){var Ge=J.privateKeyFromAsn1(K.fromDer(S.util.createBuffer(Ue)));ge(null,{privateKey:Ge,publicKey:J.setRsaPublicKey(Ge.n,Ge.e)})}});if(pe("generateKey")&&pe("exportKey")){var Oe=te.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:w,publicExponent:Te(me),hash:{name:"SHA-256"}},!0,["sign","verify"]);return Oe.oncomplete=function(Ue){var it=te.globalScope.msCrypto.subtle.exportKey("pkcs8",Ue.target.result.privateKey);it.oncomplete=function(ot){var Tt=J.privateKeyFromAsn1(K.fromDer(S.util.createBuffer(ot.target.result)));ge(null,{privateKey:Tt,publicKey:J.setRsaPublicKey(Tt.n,Tt.e)})},it.onerror=function(ot){ge(ot)}},void(Oe.onerror=function(Ue){ge(Ue)})}}else if(Y("generateKeyPairSync")){var Ie=I.generateKeyPairSync("rsa",{modulusLength:w,publicExponent:me,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:J.privateKeyFromPem(Ie.privateKey),publicKey:J.publicKeyFromPem(Ie.publicKey)}}var Be=J.rsa.createKeyPairGenerationState(w,me,Ee);if(!ge)return J.rsa.stepKeyPairGenerationState(Be,0),Be.keys;!function q(w,me,Ee){"function"==typeof me&&(Ee=me,me={});var ge={algorithm:{name:(me=me||{}).algorithm||"PRIMEINC",options:{workers:me.workers||2,workLoad:me.workLoad||100,workerScript:me.workerScript}}};function Oe(){Ie(w.pBits,function(Ue,Ge){return Ue?Ee(Ue):(w.p=Ge,null!==w.q?Be(Ue,w.q):void Ie(w.qBits,Be))})}function Ie(Ue,Ge){S.prime.generateProbablePrime(Ue,ge,Ge)}function Be(Ue,Ge){if(Ue)return Ee(Ue);if(w.q=Ge,w.p.compareTo(w.q)<0){var it=w.p;w.p=w.q,w.q=it}if(0!==w.p.subtract(g.ONE).gcd(w.e).compareTo(g.ONE))return w.p=null,void Oe();if(0!==w.q.subtract(g.ONE).gcd(w.e).compareTo(g.ONE))return w.q=null,void Ie(w.qBits,Be);if(w.p1=w.p.subtract(g.ONE),w.q1=w.q.subtract(g.ONE),w.phi=w.p1.multiply(w.q1),0!==w.phi.gcd(w.e).compareTo(g.ONE))return w.p=w.q=null,void Oe();if(w.n=w.p.multiply(w.q),w.n.bitLength()!==w.bits)return w.q=null,void Ie(w.qBits,Be);var ot=w.e.modInverse(w.phi);w.keys={privateKey:J.rsa.setPrivateKey(w.n,w.e,ot,w.p,w.q,ot.mod(w.p1),ot.mod(w.q1),w.q.modInverse(w.p)),publicKey:J.rsa.setPublicKey(w.n,w.e)},Ee(null,w.keys)}"prng"in me&&(ge.prng=me.prng),Oe()}(Be,Ee,ge)},J.setRsaPublicKey=J.rsa.setPublicKey=function(w,me){var Ee={n:w,e:me,encrypt:function(ge,Oe,Ie){if("string"==typeof Oe?Oe=Oe.toUpperCase():void 0===Oe&&(Oe="RSAES-PKCS1-V1_5"),"RSAES-PKCS1-V1_5"===Oe)Oe={encode:function(Ue,Ge,it){return ne(Ue,Ge,2).getBytes()}};else if("RSA-OAEP"===Oe||"RSAES-OAEP"===Oe)Oe={encode:function(Ue,Ge){return S.pkcs1.encode_rsa_oaep(Ge,Ue,Ie)}};else if(-1!==["RAW","NONE","NULL",null].indexOf(Oe))Oe={encode:function(Ue){return Ue}};else if("string"==typeof Oe)throw new Error('Unsupported encryption scheme: "'+Oe+'".');var Be=Oe.encode(ge,Ee,!0);return J.rsa.encrypt(Be,Ee,!0)},verify:function(ge,Oe,Ie,Be){"string"==typeof Ie?Ie=Ie.toUpperCase():void 0===Ie&&(Ie="RSASSA-PKCS1-V1_5"),void 0===Be&&(Be={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in Be||(Be._parseAllDigestBytes=!0),"RSASSA-PKCS1-V1_5"===Ie?Ie={verify:function(Ge,it){it=z(it,Ee,!0);var ot=K.fromDer(it,{parseAllBytes:Be._parseAllDigestBytes}),St={},Tt=[];if(!K.validate(ot,Se,St,Tt))throw(Et=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.")).errors=Tt,Et;var Et,st=K.derToOid(St.algorithmIdentifier);if(st!==S.oids.md2&&st!==S.oids.md5&&st!==S.oids.sha1&&st!==S.oids.sha224&&st!==S.oids.sha256&&st!==S.oids.sha384&&st!==S.oids.sha512&&st!==S.oids["sha512-224"]&&st!==S.oids["sha512-256"])throw(Et=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.")).oid=st,Et;if((st===S.oids.md2||st===S.oids.md5)&&!("parameters"in St))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return Ge===St.digest}}:("NONE"===Ie||"NULL"===Ie||null===Ie)&&(Ie={verify:function(Ge,it){return Ge===z(it,Ee,!0)}});var Ue=J.rsa.decrypt(Oe,Ee,!0,!1);return Ie.verify(ge,Ue,Ee.n.bitLength())}};return Ee},J.setRsaPrivateKey=J.rsa.setPrivateKey=function(w,me,Ee,ge,Oe,Ie,Be,Ue){var Ge={n:w,e:me,d:Ee,p:ge,q:Oe,dP:Ie,dQ:Be,qInv:Ue,decrypt:function(it,ot,St){"string"==typeof ot?ot=ot.toUpperCase():void 0===ot&&(ot="RSAES-PKCS1-V1_5");var Tt=J.rsa.decrypt(it,Ge,!1,!1);if("RSAES-PKCS1-V1_5"===ot)ot={decode:z};else if("RSA-OAEP"===ot||"RSAES-OAEP"===ot)ot={decode:function(Et,st){return S.pkcs1.decode_rsa_oaep(st,Et,St)}};else{if(-1===["RAW","NONE","NULL",null].indexOf(ot))throw new Error('Unsupported encryption scheme: "'+ot+'".');ot={decode:function(Et){return Et}}}return ot.decode(Tt,Ge,!1)},sign:function(it,ot){var St=!1;"string"==typeof ot&&(ot=ot.toUpperCase()),void 0===ot||"RSASSA-PKCS1-V1_5"===ot?(ot={encode:ee},St=1):("NONE"===ot||"NULL"===ot||null===ot)&&(ot={encode:function(){return it}},St=1);var Tt=ot.encode(it,Ge.n.bitLength());return J.rsa.encrypt(Tt,Ge,St)}};return Ge},J.wrapRsaPrivateKey=function(w){return K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,K.integerToDer(0).getBytes()),K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.OID,!1,K.oidToDer(J.oids.rsaEncryption).getBytes()),K.create(K.Class.UNIVERSAL,K.Type.NULL,!1,"")]),K.create(K.Class.UNIVERSAL,K.Type.OCTETSTRING,!1,K.toDer(w).getBytes())])},J.privateKeyFromAsn1=function(w){var Oe,Ie,Be,Ue,Ge,it,ot,St,me={},Ee=[];if(K.validate(w,O,me,Ee)&&(w=K.fromDer(S.util.createBuffer(me.privateKey))),!K.validate(w,D,me={},Ee=[])){var ge=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw ge.errors=Ee,ge}return Oe=S.util.createBuffer(me.privateKeyModulus).toHex(),Ie=S.util.createBuffer(me.privateKeyPublicExponent).toHex(),Be=S.util.createBuffer(me.privateKeyPrivateExponent).toHex(),Ue=S.util.createBuffer(me.privateKeyPrime1).toHex(),Ge=S.util.createBuffer(me.privateKeyPrime2).toHex(),it=S.util.createBuffer(me.privateKeyExponent1).toHex(),ot=S.util.createBuffer(me.privateKeyExponent2).toHex(),St=S.util.createBuffer(me.privateKeyCoefficient).toHex(),J.setRsaPrivateKey(new g(Oe,16),new g(Ie,16),new g(Be,16),new g(Ue,16),new g(Ge,16),new g(it,16),new g(ot,16),new g(St,16))},J.privateKeyToAsn1=J.privateKeyToRSAPrivateKey=function(w){return K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,K.integerToDer(0).getBytes()),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.n)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.e)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.d)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.p)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.q)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.dP)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.dQ)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.qInv))])},J.publicKeyFromAsn1=function(w){var me={},Ee=[];if(K.validate(w,re,me,Ee)){var Oe,ge=K.derToOid(me.publicKeyOid);if(ge!==J.oids.rsaEncryption)throw(Oe=new Error("Cannot read public key. Unknown OID.")).oid=ge,Oe;w=me.rsaPublicKey}if(!K.validate(w,V,me,Ee=[]))throw(Oe=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.")).errors=Ee,Oe;var Ie=S.util.createBuffer(me.publicKeyModulus).toHex(),Be=S.util.createBuffer(me.publicKeyExponent).toHex();return J.setRsaPublicKey(new g(Ie,16),new g(Be,16))},J.publicKeyToAsn1=J.publicKeyToSubjectPublicKeyInfo=function(w){return K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.OID,!1,K.oidToDer(J.oids.rsaEncryption).getBytes()),K.create(K.Class.UNIVERSAL,K.Type.NULL,!1,"")]),K.create(K.Class.UNIVERSAL,K.Type.BITSTRING,!1,[J.publicKeyToRSAPublicKey(w)])])},J.publicKeyToRSAPublicKey=function(w){return K.create(K.Class.UNIVERSAL,K.Type.SEQUENCE,!0,[K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.n)),K.create(K.Class.UNIVERSAL,K.Type.INTEGER,!1,x(w.e))])}},3120:(yt,rn,ve)=>{var S=ve(6589);ve(57),ve(4579),ve(4846),ve(8825),ve(812);var g=yt.exports=S.ssh=S.ssh||{};function I(J,H){var O=H.toString(16);O[0]>="8"&&(O="00"+O);var D=S.util.hexToBytes(O);J.putInt32(D.length),J.putBytes(D)}function K(J,H){J.putInt32(H.length),J.putString(H)}function te(){for(var J=S.md.sha1.create(),H=arguments.length,O=0;O<H;++O)J.update(arguments[O]);return J.digest()}g.privateKeyToPutty=function(J,H,O){var D="ssh-rsa",V=""===(H=H||"")?"none":"aes256-cbc",re="PuTTY-User-Key-File-2: "+D+"\r\n";re+="Encryption: "+V+"\r\n",re+="Comment: "+(O=O||"")+"\r\n";var Se=S.util.createBuffer();K(Se,D),I(Se,J.e),I(Se,J.n);var ee=S.util.encode64(Se.bytes(),64),X=Math.floor(ee.length/66)+1;re+="Public-Lines: "+X+"\r\n",re+=ee;var z,ne=S.util.createBuffer();if(I(ne,J.d),I(ne,J.p),I(ne,J.q),I(ne,J.qInv),H){var q=ne.length()+16-1;q-=q%16;var x=te(ne.bytes());x.truncate(x.length()-q+ne.length()),ne.putBuffer(x);var F=S.util.createBuffer();F.putBuffer(te("\0\0\0\0",H)),F.putBuffer(te("\0\0\0\x01",H));var Y=S.aes.createEncryptionCipher(F.truncate(8),"CBC");Y.start(S.util.createBuffer().fillWithByte(0,16)),Y.update(ne.copy()),Y.finish();var se=Y.output;se.truncate(16),z=S.util.encode64(se.bytes(),64)}else z=S.util.encode64(ne.bytes(),64);re+="\r\nPrivate-Lines: "+(X=Math.floor(z.length/66)+1)+"\r\n",re+=z;var pe=te("putty-private-key-file-mac-key",H),Te=S.util.createBuffer();K(Te,D),K(Te,V),K(Te,O),Te.putInt32(Se.length()),Te.putBuffer(Se),Te.putInt32(ne.length()),Te.putBuffer(ne);var j=S.hmac.create();return j.start("sha1",pe),j.update(Te.bytes()),re+"\r\nPrivate-MAC: "+j.digest().toHex()+"\r\n"},g.publicKeyToOpenSSH=function(J,H){var O="ssh-rsa";H=H||"";var D=S.util.createBuffer();return K(D,O),I(D,J.e),I(D,J.n),O+" "+S.util.encode64(D.bytes())+" "+H},g.privateKeyToOpenSSH=function(J,H){return H?S.pki.encryptRsaPrivateKey(J,H,{legacy:!0,algorithm:"aes128"}):S.pki.privateKeyToPem(J)},g.getPublicKeyFingerprint=function(J,H){var O=(H=H||{}).md||S.md.md5.create(),V=S.util.createBuffer();K(V,"ssh-rsa"),I(V,J.e),I(V,J.n),O.start(),O.update(V.getBytes());var re=O.digest();if("hex"===H.encoding){var Se=re.toHex();return H.delimiter?Se.match(/.{2}/g).join(H.delimiter):Se}if("binary"===H.encoding)return re.getBytes();if(H.encoding)throw new Error('Unknown encoding "'+H.encoding+'".');return re}},3175:yt=>{var rn={};yt.exports=rn;var ve={};rn.encode=function(g,I,K){if("string"!=typeof I)throw new TypeError('"alphabet" must be a string.');if(void 0!==K&&"number"!=typeof K)throw new TypeError('"maxline" must be a number.');var te="";if(g instanceof Uint8Array){var J=0,H=I.length,O=I.charAt(0),D=[0];for(J=0;J<g.length;++J){for(var V=0,re=g[J];V<D.length;++V)D[V]=(re+=D[V]<<8)%H,re=re/H|0;for(;re>0;)D.push(re%H),re=re/H|0}for(J=0;0===g[J]&&J<g.length-1;++J)te+=O;for(J=D.length-1;J>=0;--J)te+=I[D[J]]}else te=function S(g,I){var K=0,te=I.length,J=I.charAt(0),H=[0];for(K=0;K<g.length();++K){for(var O=0,D=g.at(K);O<H.length;++O)H[O]=(D+=H[O]<<8)%te,D=D/te|0;for(;D>0;)H.push(D%te),D=D/te|0}var V="";for(K=0;0===g.at(K)&&K<g.length()-1;++K)V+=J;for(K=H.length-1;K>=0;--K)V+=I[H[K]];return V}(g,I);if(K){var Se=new RegExp(".{1,"+K+"}","g");te=te.match(Se).join("\r\n")}return te},rn.decode=function(g,I){if("string"!=typeof g)throw new TypeError('"input" must be a string.');if("string"!=typeof I)throw new TypeError('"alphabet" must be a string.');var K=ve[I];if(!K){K=ve[I]=[];for(var te=0;te<I.length;++te)K[I.charCodeAt(te)]=te}g=g.replace(/\s/g,"");var J=I.length,H=I.charAt(0),O=[0];for(te=0;te<g.length;te++){var D=K[g.charCodeAt(te)];if(void 0===D)return;for(var V=0,re=D;V<O.length;++V)O[V]=255&(re+=O[V]*J),re>>=8;for(;re>0;)O.push(255&re),re>>=8}for(var Se=0;g[Se]===H&&Se<g.length-1;++Se)O.push(0);return typeof Buffer<"u"?Buffer.from(O.reverse()):new Uint8Array(O.reverse())}},3674:(yt,rn,ve)=>{var S=ve(6589);function g(X,ne){S.cipher.registerAlgorithm(X,function(){return new S.des.Algorithm(X,ne)})}ve(5855),ve(6199),ve(812),yt.exports=S.des=S.des||{},S.des.startEncrypting=function(X,ne,z,q){var x=ee({key:X,output:z,decrypt:!1,mode:q||(null===ne?"ECB":"CBC")});return x.start(ne),x},S.des.createEncryptionCipher=function(X,ne){return ee({key:X,output:null,decrypt:!1,mode:ne})},S.des.startDecrypting=function(X,ne,z,q){var x=ee({key:X,output:z,decrypt:!0,mode:q||(null===ne?"ECB":"CBC")});return x.start(ne),x},S.des.createDecryptionCipher=function(X,ne){return ee({key:X,output:null,decrypt:!0,mode:ne})},S.des.Algorithm=function(X,ne){var z=this;z.name=X,z.mode=new ne({blockSize:8,cipher:{encrypt:function(q,x){return Se(z._keys,q,x,!1)},decrypt:function(q,x){return Se(z._keys,q,x,!0)}}}),z._init=!1},S.des.Algorithm.prototype.initialize=function(X){if(!this._init){var ne=S.util.createBuffer(X.key);if(0===this.name.indexOf("3DES")&&24!==ne.length())throw new Error("Invalid Triple-DES key size: "+8*ne.length());this._keys=function re(X){for(var Be,ne=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],z=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],q=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],x=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],F=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],Y=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],se=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],pe=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],Te=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],j=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],Z=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],ce=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],w=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],me=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],Ee=X.length()>8?3:1,ge=[],Oe=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],Ie=0,Ue=0;Ue<Ee;Ue++){var Ge=X.getInt32(),it=X.getInt32();Ge^=(Be=252645135&(Ge>>>4^it))<<4,Ge^=Be=65535&((it^=Be)>>>-16^Ge),Ge^=(Be=858993459&(Ge>>>2^(it^=Be<<-16)))<<2,Ge^=Be=65535&((it^=Be)>>>-16^Ge),Ge^=(Be=1431655765&(Ge>>>1^(it^=Be<<-16)))<<1,Ge^=Be=16711935&((it^=Be)>>>8^Ge),Be=(Ge^=(Be=1431655765&(Ge>>>1^(it^=Be<<8)))<<1)<<8|(it^=Be)>>>20&240,Ge=it<<24|it<<8&16711680|it>>>8&65280|it>>>24&240,it=Be;for(var ot=0;ot<Oe.length;++ot){Oe[ot]?(Ge=Ge<<2|Ge>>>26,it=it<<2|it>>>26):(Ge=Ge<<1|Ge>>>27,it=it<<1|it>>>27);var St=ne[(Ge&=-15)>>>28]|z[Ge>>>24&15]|q[Ge>>>20&15]|x[Ge>>>16&15]|F[Ge>>>12&15]|Y[Ge>>>8&15]|se[Ge>>>4&15],Tt=pe[(it&=-15)>>>28]|Te[it>>>24&15]|j[it>>>20&15]|Z[it>>>16&15]|ce[it>>>12&15]|w[it>>>8&15]|me[it>>>4&15];ge[Ie++]=St^(Be=65535&(Tt>>>16^St)),ge[Ie++]=Tt^Be<<16}}return ge}(ne),this._init=!0}},g("DES-ECB",S.cipher.modes.ecb),g("DES-CBC",S.cipher.modes.cbc),g("DES-CFB",S.cipher.modes.cfb),g("DES-OFB",S.cipher.modes.ofb),g("DES-CTR",S.cipher.modes.ctr),g("3DES-ECB",S.cipher.modes.ecb),g("3DES-CBC",S.cipher.modes.cbc),g("3DES-CFB",S.cipher.modes.cfb),g("3DES-OFB",S.cipher.modes.ofb),g("3DES-CTR",S.cipher.modes.ctr);var I=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],K=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],te=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],J=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],H=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],O=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],D=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],V=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function Se(X,ne,z,q){var F,x=32===X.length?3:9;F=3===x?q?[30,-2,-2]:[0,32,2]:q?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var Y,se=ne[0],pe=ne[1];se^=(Y=252645135&(se>>>4^pe))<<4,se^=(Y=65535&(se>>>16^(pe^=Y)))<<16,se^=Y=858993459&((pe^=Y)>>>2^se),se^=Y=16711935&((pe^=Y<<2)>>>8^se),se=(se^=(Y=1431655765&(se>>>1^(pe^=Y<<8)))<<1)<<1|se>>>31,pe=(pe^=Y)<<1|pe>>>31;for(var Te=0;Te<x;Te+=3){for(var j=F[Te+1],Z=F[Te+2],ce=F[Te];ce!=j;ce+=Z){var w=pe^X[ce],me=(pe>>>4|pe<<28)^X[ce+1];Y=se,se=pe,pe=Y^(K[w>>>24&63]|J[w>>>16&63]|O[w>>>8&63]|V[63&w]|I[me>>>24&63]|te[me>>>16&63]|H[me>>>8&63]|D[63&me])}Y=se,se=pe,pe=Y}pe=pe>>>1|pe<<31,pe^=Y=1431655765&((se=se>>>1|se<<31)>>>1^pe),pe^=(Y=16711935&(pe>>>8^(se^=Y<<1)))<<8,pe^=(Y=858993459&(pe>>>2^(se^=Y)))<<2,pe^=Y=65535&((se^=Y)>>>16^pe),pe^=Y=252645135&((se^=Y<<16)>>>4^pe),z[0]=se^=Y<<4,z[1]=pe}function ee(X){var q,z="DES-"+((X=X||{}).mode||"CBC").toUpperCase(),x=(q=X.decrypt?S.cipher.createDecipher(z,X.key):S.cipher.createCipher(z,X.key)).start;return q.start=function(F,Y){var se=null;Y instanceof S.util.ByteBuffer&&(se=Y,Y={}),(Y=Y||{}).output=se,Y.iv=F,x.call(q,Y)},q}},3697:(yt,rn,ve)=>{var S=ve(6589);ve(812),ve(983),ve(1675),function(){if(S.prime)yt.exports=S.prime;else{var g=yt.exports=S.prime=S.prime||{},I=S.jsbn.BigInteger,K=[6,4,2,4,2,4,6,2],te=new I(null);te.fromInt(30);var J=function(ee,X){return ee|X};g.generateProbablePrime=function(ee,X,ne){"function"==typeof X&&(ne=X,X={});var z=(X=X||{}).algorithm||"PRIMEINC";"string"==typeof z&&(z={name:z}),z.options=z.options||{};var q=X.prng||S.random;if("PRIMEINC"===z.name)return function H(ee,X,ne,z){return"workers"in ne?function V(ee,X,ne,z){if(typeof Worker>"u")return O(ee,X,ne,z);var q=re(ee,X),x=ne.workers,F=ne.workLoad||100,Y=30*F/8,se=ne.workerScript||"forge/prime.worker.js";if(-1===x)return S.util.estimateCores(function(Te,j){Te&&(j=2),x=j-1,pe()});function pe(){x=Math.max(1,x);for(var Te=[],j=0;j<x;++j)Te[j]=new Worker(se);for(j=0;j<x;++j)Te[j].addEventListener("message",w);var ce=!1;function w(me){if(!ce){var Ee=me.data;if(Ee.found){for(var ge=0;ge<Te.length;++ge)Te[ge].terminate();return ce=!0,z(null,new I(Ee.prime,16))}q.bitLength()>ee&&(q=re(ee,X));var Oe=q.toString(16);
1me.target.postMessage({hex:Oe,workLoad:F}),q.dAddOffset(Y,0)}}}pe()}(ee,X,ne,z):O(ee,X,ne,z)}(ee,{nextBytes:function(F){for(var Y=q.getBytesSync(F.length),se=0;se<F.length;++se)F[se]=Y.charCodeAt(se)}},z.options,ne);throw new Error("Invalid prime generation algorithm: "+z.name)}}function O(ee,X,ne,z){var q=re(ee,X),F=function Se(ee){return ee<=100?27:ee<=150?18:ee<=200?15:ee<=250?12:ee<=300?9:ee<=350?8:ee<=400?7:ee<=500?6:ee<=600?5:ee<=800?4:ee<=1250?3:2}(q.bitLength());"millerRabinTests"in ne&&(F=ne.millerRabinTests);var Y=10;"maxBlockTime"in ne&&(Y=ne.maxBlockTime),D(q,ee,X,0,F,Y,z)}function D(ee,X,ne,z,q,x,F){var Y=+new Date;do{if(ee.bitLength()>X&&(ee=re(X,ne)),ee.isProbablePrime(q))return F(null,ee);ee.dAddOffset(K[z++%8],0)}while(x<0||+new Date-Y<x);S.util.setImmediate(function(){D(ee,X,ne,z,q,x,F)})}function re(ee,X){var ne=new I(ee,X),z=ee-1;return ne.testBit(z)||ne.bitwiseTo(I.ONE.shiftLeft(z),J,ne),ne.dAddOffset(31-ne.mod(te).byteValue(),0),ne}}()},3707:(yt,rn,ve)=>{var S=ve(6589);ve(57),ve(9807);var g=yt.exports=S.tls;function I(D,V,re){var Se=V.entity===S.tls.ConnectionEnd.client;D.read.cipherState={init:!1,cipher:S.cipher.createDecipher("AES-CBC",Se?re.keys.server_write_key:re.keys.client_write_key),iv:Se?re.keys.server_write_IV:re.keys.client_write_IV},D.write.cipherState={init:!1,cipher:S.cipher.createCipher("AES-CBC",Se?re.keys.client_write_key:re.keys.server_write_key),iv:Se?re.keys.client_write_IV:re.keys.server_write_IV},D.read.cipherFunction=H,D.write.cipherFunction=K,D.read.macLength=D.write.macLength=re.mac_length,D.read.mac
1Function=D.write.macFunction=g.hmac_sha1}function K(D,V){var ee,re=!1,Se=V.macFunction(V.macKey,V.sequenceNumber,D);D.fragment.putBytes(Se),V.updateSequenceNumber(),ee=D.version.minor===g.Versions.TLS_1_0.minor?V.cipherState.init?null:V.cipherState.iv:S.random.getBytesSync(16),V.cipherState.init=!0;var X=V.cipherState.cipher;return X.start({iv:ee}),D.version.minor>=g.Versions.TLS_1_1.minor&&X.output.putBytes(ee),X.update(D.fragment),X.finish(te)&&(D.fragment=X.output,D.length=D.fragment.length(),re=!0),re}function te(D,V,re){if(!re){var Se=D-V.length()%D;V.fillWithByte(Se-1,Se)}return!0}function J(D,V,re){var Se=!0;if(re){for(var ee=V.length(),X=V.last(),ne=ee-1-X;ne<ee-1;++ne)Se=Se&&V.at(ne)==X;Se&&V.truncate(X+1)}return Se}function H(D,V){var Se,re=!1;Se=D.version.minor===g.Versions.TLS_1_0.minor?V.cipherState.init?null:V.cipherState.iv:D.fragment.getBytes(16),V.cipherState.init=!0;var ee=V.cipherState.cipher;ee.start({iv:Se}),ee.update(D.fragment),re=ee.finish(J);var X=V.macLength,ne=S.random.getBytesSync(X),z=ee.output.length();z>=X?(D.fragment=ee.output.getBytes(z-X),ne=ee.output.getBytes(X)):D.fragment=ee.output.getBytes(),D.fragment=S.util.createBuffer(D.fragment),D.length=D.fragment.length();var q=V.macFunction(V.macKey,V.sequenceNumber,D);return V.updateSequenceNumber(),re=function O(D,V,re){var Se=S.hmac.create();return Se.start("SHA1",D),Se.update(V),V=Se.digest().getBytes(),Se.start(null,null),Se.update(re),V===(re=Se.digest().getBytes())}(V.macKey,ne,q)&&re,re}g.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(D){D.bulk_cipher_algorithm=g.BulkCipherAlgorithm.aes,D.cipher_type=g.CipherType.block,D.enc_key_length=16,D.block_length=16,D.fixed_iv_length=16,D.record_iv_length=16,D.mac_algorithm=g.MACAlgorithm.hmac_sha1,D.mac_length=20,D.mac_key_length=20},initConnectionState:I},g.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(D){D.bulk_cipher_algorithm=g.BulkCipherAlgorithm.aes,D.cipher_type=g.CipherType.block,D.enc_key_length=32,D.block_length=16,D.fixed_iv_length=16,D.record_iv_length=16,D.mac_algorithm=g.MACAlgorithm.hmac_sha1,D.mac_length=20,D.mac_key_length=20},initConnectionState:I}},3975:(yt,rn,ve)=>{"use strict";function S(t,n,e,i,r,a,s){try{var o=t[a](s),l=o.value}catch(d){return void e(d)}o.done?n(l):Promise.resolve(l).then(i,r)}function g(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var a=t.apply(n,e);function s(l){S(a,i,r,s,o,"next",l)}function o(l){S(a,i,r,s,o,"throw",l)}s(void 0)})}}function I(t,n){return Object.is(t,n)}let K=null,te=!1,J=1;const H=Symbol("SIGNAL");function O(t){const n=K;return K=t,n}const Se={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ee(t){if(te)throw new Error("");if(null===K)return;K.consumerOnSignalRead(t);const n=K.nextProducerIndex++;w(K),n<K.producerNode.length&&K.producerNode[n]!==t&&ce(K)&&Z(K.producerNode[n],K.producerIndexOfThis[n]),K.producerNode[n]!==t&&(K.producerNode[n]=t,K.producerIndexOfThis[n]=ce(K)?j(t,K,n):0),K.producerLastReadVersion[n]=t.version}function ne(t){if((!ce(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==J)){if(!t.producerMustRecompute(t)&&!pe(t))return void F(t);t.producerRecomputeValue(t),F(t)}}function z(t){if(void 0===t.liveConsumerNode)return;const n=te;te=!0;try{for(const e of t.liveConsumerNode)e.dirty||x(e)}finally{te=n}}function q(){return!1!==K?.consumerAllowSignalWrites}function x(t){t.dirty=!0,z(t),t.consumerMarkedDirty?.(t)}function F(t){t.dirty=!1,t.lastCleanEpoch=J}function Y(t){return t&&(t.nextProducerIndex=0),O(t)}function se(t,n){if(O(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(ce(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Z(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function pe(t){w(t);for(let n=0;n<t.producerNode.length;n++){const e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(ne(e),i!==e.version))return!0}return!1}function Te(t){if(w(t),ce(t))for(let n=0;n<t.producerNode.length;n++)Z(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function j(t,n,e){if(me(t),0===t.liveConsumerNode.length&&Ee(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=j(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(n)-1}function Z(t,n){if(me(t),1===t.liveConsumerNode.length&&Ee(t))for(let i=0;i<t.producerNode.length;i++)Z(t.producerNode[i],t.producerIndexOfThis[i]);const e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];w(r),r.producerIndexOfThis[i]=n}}function ce(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function w(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function me(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ee(t){return void 0!==t.producerNode}const Oe=Symbol("UNSET"),Ie=Symbol("COMPUTING"),Be=Symbol("ERRORED"),Ue={...Se,value:Oe,dirty:!0,error:null,equal:I,kind:"computed",producerMustRecompute:t=>t.value===Oe||t.value===Ie,producerRecomputeValue(t){if(t.value===Ie)throw new Error("Detected cycle in computations.");const n=t.value;t.value=Ie;const e=Y(t);let i,r=!1;try{i=t.computation(),O(null),r=n!==Oe&&n!==Be&&i!==Be&&t.equal(n,i)}catch(a){i=Be,t.error=a}finally{se(t,e)}r?t.value=n:(t.value=i,t.version++)}};let it=function Ge(){throw new Error};function ot(t){it(t)}function _n(t,n){q()||ot(t),t.equal(t.value,n)||(t.value=n,function je(t){t.version++,function X(){J++}(),z(t)}(t))}const mn={...Se,equal:I,value:void 0,kind:"signal"};let ze;function Ne(){return ze}function ct(t){const n=ze;return ze=t,n}const Nt=Symbol("NotFound");function ft(t){return"function"==typeof t}function Gt(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Error;const Mn=Gt(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e});function tn(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class jt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}
1unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const a of e)a.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ft(i))try{i()}catch(a){n=a instanceof Mn?a.errors:[a]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const a of r)try{Ni(a)}catch(s){n=n??[],s instanceof Mn?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Mn(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Ni(n);else{if(n instanceof jt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&tn(e,n)}remove(n){const{_finalizers:e}=this;e&&tn(e,n),n instanceof jt&&n._removeParent(this)}}jt.EMPTY=(()=>{const t=new jt;return t.closed=!0,t})();const ki=jt.EMPTY;function xi(t){return t instanceof jt||t&&"closed"in t&&ft(t.remove)&&ft(t.add)&&ft(t.unsubscribe)}function Ni(t){ft(t)?t():t.unsubscribe()}const Mi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ji={setTimeout(t,n,...e){const{delegate:i}=ji;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=ji;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function sr(t){ji.setTimeout(()=>{const{onUnhandledError:n}=Mi;if(!n)throw t;n(t)})}function Dr(){}const Sr=ka("C",void 0,void 0);function ka(t,n,e){return{kind:t,value:n,error:e}}let Yr=null;function Ha(t){if(Mi.useDeprecatedSynchronousErrorHandling){const n=!Yr;if(n&&(Yr={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Yr;if(Yr=null,e)throw i}}else t()}class Js extends jt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,xi(n)&&n.add(this)):this.destination=Ir}static create(n,e,i){return new zi(n,e,i)}next(n){this.isStopped?or(function Ua(t){return ka("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?or(function Va(t){return ka("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?or(Sr,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Hl=Function.prototype.bind;function ll(t,n){return Hl.call(t,n)}class Td{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Li(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Li(i)}else Li(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Li(e)}}}class zi extends Js{constructor(n,e,i){let r;if(super(),ft(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let a;this&&Mi.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&ll(n.next,a),error:n.error&&ll(n.error,a),complete:n.complete&&ll(n.complete,a)}):r=n}this.destination=new Td(r)}}function Li(t){Mi.useDeprecatedSynchronousErrorHandling?function Do(t){Mi.useDeprecatedSynchronousErrorHandling&&Yr&&(Yr.errorThrown=!0,Yr.error=t)}(t):sr(t)}function or(t,n){const{onStoppedNotification:e}=Mi;e&&ji.setTimeout(()=>e(t,n))}const Ir={closed:!0,next:Dr,error:function Er(t){throw t},complete:Dr},lr="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fn(t){return t}function cr(t){return 0===t.length?Fn:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Jt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const a=function ur(t){return t&&t instanceof Js||function Tr(t){return t&&ft(t.next)&&ft(t.error)&&ft(t.complete)}(t)&&xi(t)}(e)?e:new zi(e,i,r);return Ha(()=>{const{operator:s,source:o}=this;a.add(s?s.call(a,o):o?this._subscribe(a):this._trySubscribe(a))}),a}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=dr(i))((r,a)=>{const s=new zi({next:o=>{try{e(o)}catch(l){a(l),s.unsubscribe()}},error:a,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[lr](){return this}pipe(...e){return cr(e)(this)}toPromise(e){return new(e=dr(e))((i,r)=>{let a;this.subscribe(s=>a=s,s=>r(s),()=>i(a))})}}return t.create=n=>new t(n),t})();function dr(t){var n;return null!==(n=t??Mi.Promise)&&void 0!==n?n:Promise}const xr=Gt(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let nt=(()=>{class t extends Jt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ki(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new xr}next(e){Ha(()=>
1{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ha(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ha(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:a}=this;return i||r?ki:(this.currentObservers=null,a.push(e),new jt(()=>{this.currentObservers=null,tn(a,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:a}=this;i?e.error(r):a&&e.complete()}asObservable(){const e=new Jt;return e.source=this,e}}return t.create=(n,e)=>new Ki(n,e),t})();class Ki extends nt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:ki}}class an extends nt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function kf(t){return ft(t?.lift)}function Fi(t){return n=>{if(kf(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function mi(t,n,e,i,r){return new Nf(t,n,e,i,r)}class Nf extends Js{constructor(n,e,i,r,a,s){super(n),this.onFinalize=a,this.shouldUnsubscribe=s,this._next=e?function(o){try{e(o)}catch(l){n.error(l)}}:super._next,this._error=r?function(o){try{r(o)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(o){n.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Ot(t,n){return Fi((e,i)=>{let r=0;e.subscribe(mi(i,a=>{i.next(t.call(n,a,r++))}))})}const Rf="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class Ye extends Error{code;constructor(n,e){super(function ds(t,n){return`${function tg(t){return`NG0${Math.abs(t)}`}(t)}${n?": "+n:""}`}(n,e)),this.code=n}}const xd=Symbol("InputSignalNode#UNSET"),Md={...mn,transformFn:void 0,applyValueToInputSignal(t,n){_n(t,n)}};function Ru(t,n){const e=Object.create(Md);function i(){if(ee(e),e.value===xd)throw new Ye(-950,null);return e.value}return e.value=t,e.transformFn=n?.transform,i[H]=e,i}function hr(t){return{toString:t}.toString()}const Nn="__parameters__";function le(t,n,e){return hr(()=>{const i=function ae(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...a){if(this instanceof r)return i.apply(this,a),this;const s=new r(...a);return o.annotation=s,o;function o(l,d,h){const _=l.hasOwnProperty(Nn)?l[Nn]:Object.defineProperty(l,Nn,{value:[]})[Nn];for(;_.length<=h;)_.push(null);return(_[h]=_[h]||[]).push(s),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const Me=globalThis;function ht(t){for(let n in t)if(t[n]===ht)return n;throw Error("Could not find renamed property on target object.")}function bt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function sn(t){if("string"==typeof t)return t;if(Array.isArray(t))return`[${t.map(sn).join(", ")}]`;if(null==t)return""+t;const n=t.overriddenName||t.name;if(n)return`${n}`;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return i>=0?e.slice(0,i):e}function Bi(t,n){return t?n?`${t} ${n}`:t:n||""}const ei=ht({__forward_ref__:ht});function qt(t){return t.__forward_ref__=qt,t.toString=function(){return sn(this())},t}function Yt(t){return kr(t)?t():t}function kr(t){return"function"==typeof t&&t.hasOwnProperty(ei)&&t.__forward_ref__===qt}function We(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function To(t){return rg(t,kd)||rg(t,sg)}function rg(t,n){return t.hasOwnProperty(n)?t[n]:null}function Pu(t){return t&&(t.hasOwnProperty(ag)||t.hasOwnProperty(ti)
1)?t[ag]:null}const kd=ht({\u0275prov:ht}),ag=ht({\u0275inj:ht}),sg=ht({ngInjectableDef:ht}),ti=ht({ngInjectorDef:ht});class Qe{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=We({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ls(t){return t&&!!t.\u0275providers}const Nd=ht({\u0275cmp:ht}),Lf=ht({\u0275dir:ht}),xo=ht({\u0275pipe:ht}),dg=ht({\u0275mod:ht}),Mo=ht({\u0275fac:ht}),Ic=ht({__NG_ELEMENT_ID__:ht}),Oy=ht({__NG_ENV_ID__:ht});function ln(t){return"string"==typeof t?t:null==t?"":String(t)}function Ff(t,n){throw new Ye(-200,t)}function Bf(t,n){throw new Ye(-201,!1)}var vn=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(vn||{});let dl;function Fy(){return dl}function na(t){const n=dl;return dl=t,n}function hs(t,n,e){const i=To(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&vn.Optional?null:void 0!==n?n:void Bf()}const Ac={},Ou="__NG_DI_FLAG__";class Vf{injector;constructor(n){this.injector=n}retrieve(n,e){return this.injector.get(n,e.optional?Nt:Ac,e)}}const Uf="ngTempTokenPath",By=/\n/gm,Fs="__source";function Rd(t,n=vn.Default){if(void 0===Ne())throw new Ye(-203,!1);if(null===Ne())return hs(t,void 0,n);{const e=Ne();let i;return i=e instanceof Vf?e.injector:e,i.get(t,n&vn.Optional?null:void 0,n)}}function Fe(t,n=vn.Default){return(Fy()||Rd)(Yt(t),n)}function ye(t,n=vn.Default){return Fe(t,ul(n))}function ul(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function ug(t){const n=[];for(let e=0;e<t.length;e++){const i=Yt(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Ye(900,!1);let r,a=vn.Default;for(let s=0;s<i.length;s++){const o=i[s],l=Vy(o);"number"==typeof l?-1===l?r=o.token:a|=l:r=o}n.push(Fe(r,a))}else n.push(Fe(i))}return n}function hl(t,n){return t[Ou]=n,t.prototype[Ou]=n,t}function Vy(t){return t[Ou]}const fl=hl(le("Optional"),8),Yl=hl(le("SkipSelf"),4);function ja(t,n){return t.hasOwnProperty(Mo)?t[Mo]:null}function Pd(t,n){t.forEach(e=>Array.isArray(e)?Pd(e,n):n(e))}function Io(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function kc(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function za(t,n,e){let i=Ao(t,n);return i>=0?t[1|i]=e:(i=~i,function Fu(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Od(t,n){const e=Ao(t,n);if(e>=0)return t[1|e]}function Ao(t,n){return function zf(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const a=i+(r-i>>1),s=t[a<<e];if(n===s)return a<<e;s>n?r=a:i=a+1}return~(r<<e)}(t,n,1)}const fs={},si=[],ps=new Qe(""),Bu=new Qe("",-1),hg=new Qe("");class Vu{get(n,e=Ac){if(e===Ac){const i=new Error(`NullInjectorError: No provider for ${sn(n)}!`);throw i.name="NullInjectorError",i}return e}}function ms(t,n){const e=t[dg]||null;if(!e&&!0===n)throw new Error(`Type ${sn(t)} does not have '\u0275mod' property.`);return e}function Rn(t){return t[Nd]||null}function fr(t){return t[xo]||null}function eo(t){return{\u0275providers:t}}function ED(...t){return{\u0275providers:Yf(0,t),\u0275fromNgModule:!0}}function Yf(t,...n){const e=[],i=new Set;let r;const a=s=>{e.push(s)};return Pd(n,s=>{const o=s;$l(o,a,[],i)&&(r||=[],r.push(o))}),void 0!==r&&Uy(r,a),e}function Uy(t,n){for(let e=0;e<t.length;e++){const{ngModule:i,providers:r}=t[e];Wl(r,a=>{n(a,i)})}}function $l(t,n,e,i){if(!(t=Yt(t)))return!1;let r=null,a=Pu(t);const s=!a&&Rn(t);if(a||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(a=Pu(l),!a)return!1;r=l}const o=i.has(r);if(s){if(o)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const d of l)$l(d,n,e,i)}}else{if(!a)return!1;{if(null!=a.imports&&!o){let d;i.add(r);try{Pd(a.imports,h=>{$l(h,n,e,i)&&(d||=[],d.push(h))})}finally{}void 0!==d&&Uy(d,n)}if(!o){const d=ja(r)||(()=>new r);n({provide:r,useFactory:d,deps:si},r),n({provide:hg,useValue:r,multi:!0},r),n({provide:ps,useValue:()=>Fe(r),multi:!0},r)}const l=a.providers;if(null!=l&&!o){const d=t;Wl(l,h=>{n(h,d)})}}}return r!==t&&void 0!==t.providers}function Wl(t,n){for(let e of t)Ls(e)&&(e=e.\u0275providers),Array.isArray(e)?Wl(e,n):n(e)}const Hy=ht({provide:String,useValue:ht});function $f(t){return null!==t&&"object"==typeof t&&Hy in t}function Gl(t){return"function"==typeof t}const Nc=new Qe(""),Wf={},Uu={};let Rc;function Hu(){return void 0===Rc&&(Rc=new Vu),Rc}class Wr{}class Pc extends Wr{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,c(n,s=>this.processProvider(s)),this.records.set(Bu,Fd(void 0,this)),r.has("environment")&&this.records.set(Wr,Fd(void 0,this));const a=this.records.get(Nc);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(hg,si,vn.Self))}retrieve(n,e){return this.get(n,e.optional?Nt:Ac,e)}
1destroy(){Ld(this),this._destroyed=!0;const n=O(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),O(n)}}onDestroy(n){return Ld(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ld(this);const e=ct(this),i=na(void 0);try{return n()}finally{ct(e),na(i)}}get(n,e=Ac,i=vn.Default){if(Ld(this),n.hasOwnProperty(Oy))return n[Oy](this);i=ul(i);const a=ct(this),s=na(void 0);try{if(!(i&vn.SkipSelf)){let l=this.records.get(n);if(void 0===l){const d=function ID(t){return"function"==typeof t||"object"==typeof t&&t instanceof Qe}(n)&&To(n);l=d&&this.injectableDefInScope(d)?Fd(Gf(n),Wf):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l,i)}return(i&vn.Self?Hu():this.parent).get(n,e=i&vn.Optional&&e===Ac?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Uf]=o[Uf]||[]).unshift(sn(n)),a)throw o;return function Hf(t,n,e,i){const r=t[Uf];throw n[Fs]&&r.unshift(n[Fs]),t.message=function SD(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=sn(n);if(Array.isArray(n))r=n.map(sn).join(" -> ");else if("object"==typeof n){let a=[];for(let s in n)if(n.hasOwnProperty(s)){let o=n[s];a.push(s+":"+("string"==typeof o?JSON.stringify(o):sn(o)))}r=`{${a.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(By,"\n  ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Uf]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{na(s),ct(a)}}resolveInjectorInitializers(){const n=O(null),e=ct(this),i=na(void 0);try{const a=this.get(ps,si,vn.Self);for(const s of a)s()}finally{ct(e),na(i),O(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(sn(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){let e=Gl(n=Yt(n))?n:Yt(n&&n.provide);const i=function $y(t){return $f(t)?Fd(void 0,t.useValue):Fd(pg(t),Wf)}(n);if(!Gl(n)&&!0===n.multi){let r=this.records.get(e);r||(r=Fd(void 0,Wf,!0),r.factory=()=>ug(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){const r=O(null);try{return e.value===Uu?Ff(sn(n)):e.value===Wf&&(e.value=Uu,e.value=e.factory(void 0,i)),"object"==typeof e.value&&e.value&&function Gy(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{O(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Yt(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Gf(t){const n=To(t),e=null!==n?n.factory:ja(t);if(null!==e)return e;if(t instanceof Qe)throw new Ye(204,!1);if(t instanceof Function)return function Yy(t){if(t.length>0)throw new Ye(204,!1);const e=function _D(t){return t&&(t[kd]||t[sg])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ye(204,!1)}function pg(t,n,e){let i;if(Gl(t)){const r=Yt(t);return ja(r)||Gf(r)}if($f(t))i=()=>Yt(t.useValue);else if(function No(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...ug(t.deps||[]));else if(function jy(t){return!(!t||!t.useExisting)}(t))i=(r,a)=>Fe(Yt(t.useExisting),void 0!==a&&a&vn.Optional?vn.Optional:void 0);else{const r=Yt(t&&(t.useClass||t.provide));if(!function Wy(t){return!!t.deps}(t))return ja(r)||Gf(r);i=()=>new r(...ug(t.deps))}return i}function Ld(t){if(t.destroyed)throw new Ye(205,!1)}function Fd(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function c(t,n){for(const e of t)Array.isArray(e)?c(e,n):e&&Ls(e)?c(e.\u0275providers,n):n(e)}function f(t,n){let e;t instanceof Pc?(Ld(t),e=t):e=new Vf(t);const r=ct(e),a=na(void 0);try{return n()}finally{ct(r),na(a)}}function y(){return void 0!==Fy()||null!=Ne()}function A(t){if(!y())throw new Ye(-203,!1)}function Nr(t){return Array.isArray(t)&&"object"==typeof t[1]}function va(t){return Array.isArray(t)&&!0===t[1]}function kD(t){return!!(4&t.flags)}
1function ml(t){return t.componentOffset>-1}function Qy(t){return!(1&~t.flags)}function no(t){return!!t.template}function Fc(t){return!!(512&t[2])}function Bc(t){return!(256&~t[2])}class KY{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function q2(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}const ci=(()=>{const t=()=>K2;return t.ngInherit=!0,t})();function K2(t){return t.type.prototype.ngOnChanges&&(t.setInput=QY),ZY}function ZY(){const t=Q2(this),n=t?.current;if(n){const e=t.previous;if(e===fs)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function QY(t,n,e,i,r){const a=this.declaredInputs[i],s=Q2(t)||function XY(t,n){return t[Z2]=n}(t,{previous:fs,current:null}),o=s.current||(s.current={}),l=s.previous,d=l[a];o[a]=new KY(d&&d.currentValue,e,l===fs),q2(t,n,r,e)}const Z2="__ngSimpleChanges__";function Q2(t){return t[Z2]||null}function di(t){for(;Array.isArray(t);)t=t[0];return t}function Jf(t,n){return di(n[t])}function gs(t,n){return di(n[t.index])}function Yu(t,n){return t.data[n]}function $u(t,n){return t[n]}function _s(t,n){const e=n[t];return Nr(e)?e:e[0]}function OD(t){return!(128&~t[2])}function Ro(t,n){return null==n?null:t[n]}function eN(t){t[17]=0}function LD(t){1024&t[2]||(t[2]|=1024,OD(t)&&ep(t))}function gg(t){return!!(9216&t[2]||t[24]?.dirty)}function FD(t){t[10].changeDetectionScheduler?.notify(8),64&t[2]&&(t[2]|=1024),gg(t)&&ep(t)}function ep(t){t[10].changeDetectionScheduler?.notify(0);let n=Vc(t);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,OD(n));)n=Vc(n)}function Jy(t,n){if(Bc(t))throw new Ye(911,!1);null===t[21]&&(t[21]=[]),t[21].push(n)}function Vc(t){const n=t[3];return va(n)?n[3]:n}function VD(t){return t[7]??=[]}function UD(t){return t.cleanup??=[]}const hn={lFrame:dN(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let jD=!1;function zD(){return hn.bindingsEnabled}function Wu(){return null!==hn.skipHydrationRootTNode}function Ze(){return hn.lFrame.lView}function on(){return hn.lFrame.tView}function Ce(t){return hn.lFrame.contextLView=t,t[8]}function we(t){return hn.lFrame.contextLView=null,t}function Vn(){let t=nN();for(;null!==t&&64===t.type;)t=t.parent;return t}function nN(){return hn.lFrame.currentTNode}function gl(t,n){const e=hn.lFrame;e.currentTNode=t,e.isParent=n}function YD(){return hn.lFrame.isParent}function $D(){hn.lFrame.isParent=!1}function aN(){return jD}function tb(t){const n=jD;return jD=t,n}function vs(){const t=hn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Uc(){return hn.lFrame.bindingIndex}function Po(){return hn.lFrame.bindingIndex++}function Hc(t){const n=hn.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function f$(t,n){const e=hn.lFrame;e.bindingIndex=e.bindingRootIndex=t,WD(n)}function WD(t){hn.lFrame.currentDirectiveIndex=t}function GD(t){const n=hn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function qD(){return hn.lFrame.currentQueryIndex}function nb(t){hn.lFrame.currentQueryIndex=t}function m$(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[5]:null}function lN(t,n,e){if(e&vn.SkipSelf){let r=n,a=t;for(;!(r=r.parent,null!==r||e&vn.Host||(r=m$(a),null===r||(a=a[14],10&r.type))););if(null===r)return!1;n=r,t=a}const i=hn.lFrame=cN();return i.currentTNode=n,i.lView=t,!0}function KD(t){const n=cN(),e=t[1];hn.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function cN(){const t=hn.lFrame,n=null===t?null:t.child;return null===n?dN(t):n}function dN(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function uN(){const t=hn.lFrame;return hn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const hN=uN;function ZD(){const t=uN();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $a(){return hn.lFrame.selectedIndex}function Gu(t){hn.lFrame.selectedIndex=t}function Ri(){const t=hn.lFrame;return Yu(t.tView,t.selectedIndex)}function vg(){hn.lFrame.currentNamespace="svg"}function QD(){!function v$(){hn.lFrame.currentNamespace=null}()}function fN(){return hn.lFrame.currentNamespace}let pN=!0;function yg(){return pN}function Zl(t){pN=t}function XD(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const a=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:o,ngAfterViewInit:l,ngAfterViewChecked:d,ngOnDestroy:h}=a;s&&(t.contentHooks??=[]).push(-e,s),o&&((t.contentHooks??=[]).push(e,o),(t.contentCheckHooks??=[]).push(e,o)),l&&(t.viewHooks??=[]).push(-e,l),d&&((t.viewHooks??=[]).push(e,d),(t.viewCheckHooks??=[]).push(e,d)),null!=h&&(t.destroyHooks??=[]).push(e,h)}}function ib(t,n,e){mN(t,n,3,e)}function rb(t,n,e,i){(3&t[2])===e&&mN(t,n,e,i)}function JD(t,n){let e=t[2];(3&e)===n&&(e&=16383,e+=1,t[2]=e)}
1function mN(t,n,e,i){const a=i??-1,s=n.length-1;let o=0;for(let l=void 0!==i?65535&t[17]:0;l<s;l++)if("number"==typeof n[l+1]){if(o=n[l],null!=i&&o>=i)break}else n[l]<0&&(t[17]+=65536),(o<a||-1==a)&&(b$(t,e,n,l),t[17]=(4294901760&t[17])+l+2),l++}function gN(t,n){const e=O(null);try{n.call(t)}finally{O(e)}}function b$(t,n,e,i){const r=e[i]<0,a=e[i+1],o=t[r?-e[i]:e[i]];r?t[2]>>14<t[17]>>16&&(3&t[2])===n&&(t[2]+=16384,gN(o,a)):gN(o,a)}class bg{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i){this.factory=n,this.canSeeViewProviders=e,this.injectImpl=i}}function _N(t){return 3===t||4===t||6===t}function vN(t){return 64===t.charCodeAt(0)}function np(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||yN(t,e,r,0,-1===e||2===e?n[++i]:null)}}return t}function yN(t,n,e,i,r){let a=0,s=t.length;if(-1===n)s=-1;else for(;a<t.length;){const o=t[a++];if("number"==typeof o){if(o===n){s=-1;break}if(o>n){s=a-1;break}}}for(;a<t.length;){const o=t[a];if("number"==typeof o)break;if(o===e)return void(null!==r&&(t[a+1]=r));a++,null!==r&&a++}-1!==s&&(t.splice(s,0,n),a=s+1),t.splice(a++,0,e),null!==r&&t.splice(a++,0,r)}function nS(t){return-1!==t}function Cg(t){return 32767&t}function wg(t,n){let e=function T$(t){return t>>16}(t),i=n;for(;e>0;)i=i[14],e--;return i}let iS=!0;function ab(t){const n=iS;return iS=t,n}let x$=0;const Ql={};function sb(t,n){const e=wN(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,rS(i.data,t),rS(n,null),rS(i.blueprint,null));const r=ob(t,n),a=t.injectorIndex;if(nS(r)){const s=Cg(r),o=wg(r,n),l=o[1].data;for(let d=0;d<8;d++)n[a+d]=o[s+d]|l[s+d]}return n[a+8]=r,a}function rS(t,n){t.push(0,0,0,0,0,0,0,0,n)}function wN(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ob(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=IN(r),null===i)return-1;if(e++,r=r[14],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function aS(t,n,e){!function M$(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ic)&&(i=e[Ic]),null==i&&(i=e[Ic]=x$++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function DN(t,n,e){if(e&vn.Optional||void 0!==t)return t;Bf()}function SN(t,n,e,i){if(e&vn.Optional&&void 0===i&&(i=null),!(e&(vn.Self|vn.Host))){const r=t[9],a=na(void 0);try{return r?r.get(n,i,e&vn.Optional):hs(n,i,e&vn.Optional)}finally{na(a)}}return DN(i,0,e)}function TN(t,n,e,i=vn.Default,r){if(null!==t){if(2048&n[2]&&!(i&vn.Self)){const s=function N$(t,n,e,i,r){let a=t,s=n;for(;null!==a&&null!==s&&2048&s[2]&&!Fc(s);){const o=xN(a,s,e,i|vn.Self,Ql);if(o!==Ql)return o;let l=a.parent;if(!l){const d=s[20];if(d){const h=d.get(e,Ql,i);if(h!==Ql)return h}l=IN(s),s=s[14]}a=l}return r}(t,n,e,i,Ql);if(s!==Ql)return s}const a=xN(t,n,e,i,Ql);if(a!==Ql)return a}return SN(n,e,i,r)}function xN(t,n,e,i,r){const a=function A$(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Ic)?t[Ic]:void 0;return"number"==typeof n?n>=0?255&n:k$:n}(e);if("function"==typeof a){if(!lN(n,t,i))return i&vn.Host?DN(r,0,i):SN(n,e,i,r);try{let s;if(s=a(i),null!=s||i&vn.Optional)return s;Bf()}finally{hN()}}else if("number"==typeof a){let s=null,o=wN(t,n),l=-1,d=i&vn.Host?n[15][5]:null;for((-1===o||i&vn.SkipSelf)&&(l=-1===o?ob(t,n):n[o+8],-1!==l&&EN(i,!1)?(s=n[1],o=Cg(l),n=wg(l,n)):o=-1);-1!==o;){const h=n[1];if(MN(a,o,h.data)){const _=I$(o,n,e,s,i,d);if(_!==Ql)return _}l=n[o+8],-1!==l&&EN(i,n[1].data[o+8]===d)&&MN(a,o,n)?(s=h,o=Cg(l),n=wg(l,n)):o=-1}}return r}function I$(t,n,e,i,r,a){const s=n[1],o=s.data[t+8],h=lb(o,s,e,null==i?ml(o)&&iS:i!=s&&!!(3&o.type),r&vn.Host&&a===o);return null!==h?Dg(n,s,h,o,r):Ql}function lb(t,n,e,i,r){const a=t.providerIndexes,s=n.data,o=1048575&a,l=t.directiveStart,h=a>>20,b=r?o+h:t.directiveEnd;for(let C=i?o:o+h;C<b;C++){const k=s[C];if(C<l&&e===k||C>=l&&k.type===e)return C}if(r){const C=s[l];if(C&&no(C)&&C.type===e)return l}return null}function Dg(t,n,e,i,r){let a=t[e];const s=n.data;if(a instanceof bg){const o=a;o.resolving&&Ff(function li(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.n
1ame||t.type.toString():ln(t)}(s[e]));const l=ab(o.canSeeViewProviders);o.resolving=!0;const h=o.injectImpl?na(o.injectImpl):null;lN(t,i,vn.Default);try{a=t[e]=o.factory(void 0,r,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&function y$(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=n.type.prototype;if(i){const s=K2(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),a&&((e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a))}(e,s[e],n)}finally{null!==h&&na(h),ab(l),o.resolving=!1,hN()}}return a}function MN(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function EN(t,n){return!(t&vn.Self||t&vn.Host&&n)}class Rr{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return TN(this._tNode,this._lView,n,ul(i),e)}}function k$(){return new Rr(Vn(),Ze())}function vi(t){return hr(()=>{const n=t.prototype.constructor,e=n[Mo]||sS(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const a=r[Mo]||sS(r);if(a&&a!==e)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function sS(t){return kr(t)?()=>{const n=sS(Yt(t));return n&&n()}:ja(t)}function IN(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[5]:null}function jc(t){return function E$(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const a=e[r];if(_N(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(a===n)return e[r+1];r+=2}}}return null}(Vn(),t)}function PN(t,n=null,e=null,i){const r=ON(t,n,e,i);return r.resolveInjectorInitializers(),r}function ON(t,n=null,e=null,i,r=new Set){const a=[e||si,ED(t)];return i=i||("object"==typeof t?void 0:sn(t)),new Pc(a,n||Hu(),i||null,r)}class Ln{static THROW_IF_NOT_FOUND=Ac;static NULL=new Vu;static create(n,e){if(Array.isArray(n))return PN({name:""},e,n,"");{const i=n.name??"";return PN({name:i},n.parent,n.providers,i)}}static \u0275prov=We({token:Ln,providedIn:"any",factory:()=>Fe(Bu)});static __NG_ELEMENT_ID__=-1}new Qe("").__NG_ELEMENT_ID__=t=>{const n=Vn();if(null===n)throw new Ye(204,!1);if(2&n.type)return n.value;if(t&vn.Optional)return null;throw new Ye(204,!1)};const LN=!1;let ys=(()=>class t{static __NG_ELEMENT_ID__=H$;static __NG_ENV_ID__=e=>e})();class FN extends ys{_lView;constructor(n){super(),this._lView=n}onDestroy(n){const e=this._lView;return Bc(e)?(n(),()=>{}):(Jy(e,n),()=>function BD(t,n){if(null===t[21])return;const e=t[21].indexOf(n);-1!==e&&t[21].splice(e,1)}(e,n))}}function H$(){return new FN(Ze())}class zc{}const ip=new Qe("",{providedIn:"root",factory:()=>!1}),BN=new Qe(""),lS=new Qe("");let Hd=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new an(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=We({token:t,providedIn:"root",factory:()=>new t})}return t})();const Xe=class j$ extends nt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,y()&&(this.destroyRef=ye(ys,{optional:!0})??void 0,this.pendingTasks=ye(Hd,{optional:!0})??void 0)}emit(n){const e=O(null);try{super.next(n)}finally{O(e)}}subscribe(n,e,i){let r=n,a=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),a=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(a=this.wrapInTimeout(a),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const o=super.subscribe({next:r,error:a,complete:s});return n instanceof jt&&n.add(o),o}wrapInTimeout(n){return e=>{const i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{void 0!==i&&this.pendingTasks?.remove(i)}})}}};function Sg(...t){}function UN(t){let n,e;function i(){t=Sg;try{void 0!==e&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(e),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),"function"==typeof requestAnimationFrame&&(e=requestAnimationFrame(()=>{t(),i()}
1)),()=>i()}function HN(t){return queueMicrotask(()=>t()),()=>{t=Sg}}const cS="isAngularZone",db=cS+"_ID";let z$=0;class _t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Xe(!1);onMicrotaskEmpty=new Xe(!1);onStable=new Xe(!1);onError=new Xe(!1);constructor(n){const{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:a=LN}=n;if(typeof Zone>"u")throw new Ye(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=a,function W$(t){const n=()=>{!function $$(t){function n(){UN(()=>{t.callbackScheduled=!1,uS(t),t.isCheckStableRunning=!0,dS(t),t.isCheckStableRunning=!1})}t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),uS(t))}(t)},e=z$++;t._inner=t._inner.fork({name:"angular",properties:{[cS]:!0,[db]:e,[db+e]:!0},onInvokeTask:(i,r,a,s,o,l)=>{if(function G$(t){return YN(t,"__ignore_ng_zone__")}(l))return i.invokeTask(a,s,o,l);try{return jN(t),i.invokeTask(a,s,o,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),zN(t)}},onInvoke:(i,r,a,s,o,l,d)=>{try{return jN(t),i.invoke(a,s,o,l,d)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!function q$(t){return YN(t,"__scheduler_tick__")}(l)&&n(),zN(t)}},onHasTask:(i,r,a,s)=>{i.hasTask(a,s),r===a&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,uS(t),dS(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,a,s)=>(i.handleError(a,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(cS)}static assertInAngularZone(){if(!_t.isInAngularZone())throw new Ye(909,!1)}static assertNotInAngularZone(){if(_t.isInAngularZone())throw new Ye(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const a=this._inner,s=a.scheduleEventTask("NgZoneEvent: "+r,n,Y$,Sg,Sg);try{return a.runTask(s,e,i)}finally{a.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const Y$={};function dS(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&!0===t.callbackScheduled)}function jN(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zN(t){t._nesting--,dS(t)}class hS{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Xe;onMicrotaskEmpty=new Xe;onStable=new Xe;onError=new Xe;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}function YN(t,n){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0]?.data?.[n]}class _l{_console=console;handleError(n){this._console.error("ERROR",n)}}const Z$=new Qe("",{providedIn:"root",factory:()=>{const t=ye(_t),n=ye(_l);return e=>t.runOutsideAngular(()=>n.handleError(e))}});function WN(t,n){return Ru(t,n)}const X$=(WN.required=function Q$(t){return Ru(xd,t)},WN);function J$(){return rp(Vn(),Ze())}function rp(t,n){return new Bt(gs(t,n))}let Bt=(()=>class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=J$})();function GN(t){return t instanceof Bt?t.nativeElement:t}function io(t,n){const e=function Et(t,n){const e=Object.create(mn);e.value=t,void 0!==n&&(e.equal=n);const i=()=>(ee(e),e.value);return i[H]=e,i}(t,n?.equal),i=e[H];return e.set=r=>_n(i,r),e.update=r=>
1function It(t,n){q()||ot(t),_n(t,n(t.value))}(i,r),e.asReadonly=hb.bind(e),e}function hb(){const t=this[H];if(void 0===t.readonlyFn){const n=()=>this();n[H]=t,t.readonlyFn=n}return t.readonlyFn}function qN(t){return function ub(t){return"function"==typeof t&&void 0!==t[H]}(t)&&"function"==typeof t.set}function eW(){return this._results[Symbol.iterator]()}class fb{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new nt}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function $r(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function MD(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],a=n[i];if(e&&(r=e(r),a=e(a)),a!==r)return!1}return!0}(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=eW}function fS(t){const n=t.mergedAttrs;if(null===n)return!1;for(let e=0;e<n.length;e+=2){const i=n[e];if("number"==typeof i)return!1;if("string"==typeof i&&"ngskiphydration"===i.toLowerCase())return!0}return!1}function KN(t){return t.hasAttribute("ngSkipHydration")}function xg(t){return!(128&~t.flags)}var pb=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(pb||{});const mb=new Map;let nW=0;function pS(t){mb.delete(t[19])}const gS="__ngContext__";function Hs(t,n){Nr(n)?(t[gS]=n[19],function rW(t){mb.set(t[19],t)}(n)):t[gS]=n}function iR(t){return aR(t[12])}function rR(t){return aR(t[4])}function aR(t){for(;null!==t&&!va(t);)t=t[4];return t}let vS;function Xl(){if(void 0!==vS)return vS;if(typeof document<"u")return document;throw new Ye(210,!1)}const Yc=new Qe("",{providedIn:"root",factory:()=>DW}),DW="ng",yS=new Qe(""),Ku=new Qe("",{providedIn:"platform",factory:()=>"unknown"}),$c=new Qe(""),bS=new Qe("",{providedIn:"root",factory:()=>Xl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function xW(){const t=new jd;return t.store=function MW(t,n){const e=t.getElementById(n+"-state");if(e?.textContent)try{return JSON.parse(e.textContent)}catch(i){console.warn("Exception while restoring TransferState for app "+n,i)}return{}}(Xl(),ye(Yc)),t}let jd=(()=>{class t{static \u0275prov=We({token:t,providedIn:"root",factory:xW});store={};onSerializeCallbacks={};get(e,i){return void 0!==this.store[e]?this.store[e]:i}set(e,i){this.store[e]=i}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(e,i){this.onSerializeCallbacks[e]=i}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return t})();const ap=new Qe(""),mR=new Qe("",{providedIn:"root",factory:()=>!1});var kS=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(kS||{});const sp=new Qe(""),yR=new Set;function Xa(t){yR.has(t)||(yR.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}let Cb=(()=>class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=EW})();function EW(){return new Cb(Ze(),Vn())}var op=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(op||{});let NS=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=We({token:t,providedIn:"root",factory:()=>new t})}return t})();const bR=[op.EarlyRead,op.Write,op.MixedReadWrite,op.Read];let CR=(()=>{class t{ngZone=ye(_t);
1scheduler=ye(zc);errorHandler=ye(_l,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){ye(sp,{optional:!0})}execute(){this.executing=!0;for(const i of bR)for(const r of this.sequences)if(!r.erroredOrDestroyed&&r.hooks[i])try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,r.hooks[i])(r.pipelinedValue),r.snapshot))}catch(a){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(a)}this.executing=!1;for(const i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(const i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){const{view:i}=e;void 0!==i?((i[25]??=[]).push(e),ep(i),i[2]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,i){return i?i.run(kS.AFTER_NEXT_RENDER,e):e()}static \u0275prov=We({token:t,providedIn:"root",factory:()=>new t})}return t})();class wR{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,a,s=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=s,this.unregisterOnDestroy=a?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const n=this.view?.[25];n&&(this.view[25]=n.filter(e=>e!==this))}}function vl(t,n){!n?.injector&&A();const e=n?.injector??ye(Ln);return Xa("NgAfterNextRender"),DR(t,e,n,!0)}function DR(t,n,e,i){const r=n.get(NS);r.impl??=n.get(CR);const a=n.get(sp,null,{optional:!0}),s=e?.phase??op.MixedReadWrite,o=!0!==e?.manualCleanup?n.get(ys):null,l=n.get(Cb,null,{optional:!0}),d=new wR(r.impl,function IW(t,n){if(t instanceof Function){const e=[void 0,void 0,void 0,void 0];return e[n]=t,e}return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}(t,s),l?.view,i,o,a?.snapshot(null));return r.impl.register(d),d}const US="__nghData__";let VR=()=>null;function qW(t,n,e=!1){let i=t.getAttribute("ngh");if(null==i)return null;const[r,a]=i.split("|");if(i=e?a:r,!i)return null;const o=e?r:a?`|${a}`:"";let l={};if(""!==i){const h=n.get(jd,null,{optional:!0});null!==h&&(l=h.get(US,[])[Number(i)])}const d={data:l,firstChild:t.firstChild??null};return e&&(d.firstChild=t,Ib(d,0,t.nextSibling)),o?t.setAttribute("ngh",o):t.removeAttribute("ngh"),d}function UR(t,n,e=!1){return VR(t,n,e)}function HR(t){let n=t._lView;return 2===n[1].type?null:(Fc(n)&&(n=n[26]),n)}function Ib(t,n,e){t.segmentHeads??={},t.segmentHeads[n]=e}function jS(t,n){return t.segmentHeads?.[n]??null}function YR(t,n){return t.data.c?.[n]??null}function zS(t,n){const e=YR(t,n)??[];let i=0;for(let r of e)i+=r.r*(r.x??1);return i}function Zu(t,n){if(typeof t.disconnectedNodes>"u"){const e=t.data.d;t.disconnectedNodes=e?new Set(e):null}return!!function $R(t){if(typeof t.disconnectedNodes>"u"){const n=t.data.d;t.disconnectedNodes=n?new Set(n):null}return t.disconnectedNodes}(t)?.has(n)}function $S(t){return!!t&&t.nodeType===Node.COMMENT_NODE&&"nghm"===t.textContent?.trim()}function qR(t){for(;t&&t.nodeType===Node.TEXT_NODE;)t=t.previousSibling;return t}function KR(t,n){const e=t.contentQueries;if(null!==e){const i=O(null);try{for(let r=0;r<e.length;r+=2){const s=e[r+1];if(-1!==s){const o=t.data[s];nb(e[r]),o.contentQueries(2,n[s],s)}}}finally{O(i)}}}function WS(t,n,e){nb(0);const i=O(null);try{n(t,e)}finally{O(i)}}function GS(t,n,e){if(kD(n)){const i=O(null);try{const a=n.directiveEnd;for(let s=n.directiveStart;s<a;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}finally{O(i)}}}var Oo=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Oo||{});let Ab,kb;function mp(t){return function ZR(){if(void 0===Ab&&(Ab=null,Me.trustedTypes))try{Ab=Me.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ab}()?.createHTML(t)||t}function qS(){if(void 0===kb&&(kb=null,Me.trustedTypes))try{kb=Me.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return kb}function QR(t){return qS()?.createHTML(t)||t}function JR(t){return qS()?.createScriptURL(t)||t}class Qu{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rf})`}}class pG extends Qu{getTypeName(){return"HTML"}}class mG extends Qu{getTypeName(){return"Style"}}
1class gG extends Qu{getTypeName(){return"Script"}}class _G extends Qu{getTypeName(){return"URL"}}class vG extends Qu{getTypeName(){return"ResourceURL"}}function ro(t){return t instanceof Qu?t.changingThisBreaksApplicationSecurity:t}function Jl(t,n){const e=function yG(t){return t instanceof Qu&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Rf})`)}return e===n}class TG{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(mp(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}}class xG{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=mp(n),e}}const EG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Nb(t){return(t=String(t)).match(EG)?t:"unsafe:"+t}function qc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ug(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const tP=qc("area,br,col,hr,img,wbr"),nP=qc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),iP=qc("rp,rt"),KS=Ug(tP,Ug(nP,qc("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")),Ug(iP,qc("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")),Ug(iP,nP)),ZS=qc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rP=Ug(ZS,qc("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qc("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")),IG=qc("script,style,template");class AG{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)r.push(e),e=RG(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=NG(e);if(a){e=a;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=aP(n).toLowerCase();if(!KS.hasOwnProperty(e))return this.sanitizedSomething=!0,!IG.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),s=a.name,o=s.toLowerCase();if(!rP.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let l=a.value;ZS[o]&&(l=Nb(l)),this.buf.push(" ",s,'="',oP(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=aP(n).toLowerCase();KS.hasOwnProperty(e)&&!tP.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(oP(n))}}function NG(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw sP(n);return n}function RG(t){const n=t.firstChild;if(n&&function kG(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw sP(n);return n}function aP(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function sP(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const PG=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,OG=/([^\#-~ |!])/g;function oP(t){return t.replace(/&/g,"&amp;").replace(PG,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(OG,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Rb;function lP(t,n){let e=null;try{Rb=Rb||function eP(t){const n=new xG(t);return function MG(){try{return!!(new window.DOMParser).parseFromString(mp(""),"text/html")}catch{return!1}}()?new TG(n):n}(t);let i=n?String(n):"";e=Rb.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=e.innerHTML,e=Rb.getInertBodyElement(i)}while(i!==a);return mp((new AG).sanitizeChildren(QS(e)||e))}finally{if(e){const i=QS(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function QS(t){return"content"in t&&function LG(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Lo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Lo||{});function Pb(t){const n=Hg();return n?QR(n.sanitize(Lo.HTML,t)||""):Jl(t,"HTML")?QR(ro(t)):lP(Xl(),ln(t))}function js(t){const n=Hg();return n?n.sanitize(Lo.URL,t)||"":Jl(t,"URL")?ro(t):Nb(ln(t))}function XS(t){const n=Hg();if(n)return JR(n.sanitize(Lo.RESOURCE_URL,t)||"");
1if(Jl(t,"ResourceURL"))return JR(ro(t));throw new Ye(904,!1)}function Hg(){const t=Ze();return t&&t[10].sanitizer}const jG=/^>|^->|<!--|-->|--!>|<!-$/g,zG=/(<|>)/g;function ec(t){return t instanceof Function?t():t}function tq(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const a=n.length;if(r+a===i||t.charCodeAt(r+a)<=32)return r}e=r+1}}const vP="ng-template";function nq(t,n,e,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==tq(n[r+1].toLowerCase(),e,0))return!0}else if(tT(t))return!1;if(r=n.indexOf(1,r),r>-1){let a;for(;++r<n.length&&"string"==typeof(a=n[r]);)if(a.toLowerCase()===e)return!0}return!1}function tT(t){return 4===t.type&&t.value!==vP}function iq(t,n,e){return n===(4!==t.type||e?t.value:vP)}function rq(t,n,e){let i=4;const r=t.attrs,a=null!==r?function oq(t){for(let n=0;n<t.length;n++)if(_N(t[n]))return n;return t.length}(r):0;let s=!1;for(let o=0;o<n.length;o++){const l=n[o];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!iq(t,l,e)||""===l&&1===n.length){if(yl(i))return!1;s=!0}}else if(8&i){if(null===r||!nq(t,r,l,e)){if(yl(i))return!1;s=!0}}else{const d=n[++o],h=aq(l,r,tT(t),e);if(-1===h){if(yl(i))return!1;s=!0;continue}if(""!==d){let _;if(_=h>a?"":r[h+1].toLowerCase(),2&i&&d!==_){if(yl(i))return!1;s=!0}}}}else{if(!s&&!yl(i)&&!yl(l))return!1;if(s&&yl(l))continue;s=!1,i=l|1&i}}return yl(i)||s}function yl(t){return!(1&t)}function aq(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let a=!1;for(;r<n.length;){const s=n[r];if(s===t)return r;if(3===s||6===s)a=!0;else{if(1===s||2===s){let o=n[++r];for(;"string"==typeof o;)o=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=a?1:2}return-1}return function lq(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function yP(t,n,e=!1){for(let i=0;i<n.length;i++)if(rq(t,n[i],e))return!0;return!1}function cq(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function bP(t,n){return t?":not("+n.trim()+")":n}function dq(t){let n=t[0],e=1,i=2,r="",a=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const o=t[++e];r+="["+s+(o.length>0?'="'+o+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!yl(s)&&(n+=bP(a,r),r=""),i=s,a=a||!yl(i);e++}return""!==r&&(n+=bP(a,r)),n}const yn={};function nT(t,n){return t.createText(n)}function iT(t,n){return t.createComment(function dP(t){return t.replace(jG,n=>n.replace(zG,"\u200b$1\u200b"))}(n))}function Fb(t,n,e){return t.createElement(n,e)}function Xu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function wP(t,n,e){t.appendChild(n,e)}function DP(t,n,e,i,r){null!==i?Xu(t,n,e,i,r):wP(t,n,e)}function jg(t,n,e){t.removeChild(null,n,e)}function SP(t){t.textContent=""}function TP(t,n,e){const{mergedAttrs:i,classes:r,styles:a}=e;null!==i&&function S$(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const a=e[i++],s=e[i++],o=e[i++];t.setAttribute(n,s,o,a)}else{const a=r,s=e[++i];vN(a)?t.setProperty(n,a,s):t.setAttribute(n,a,s),i++}}}(t,n,i),null!==r&&function pq(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}(t,n,r),null!==a&&function fq(t,n,e){t.setAttribute(n,"style",e)}(t,n,a)}function rT(t,n,e,i,r,a,s,o,l,d,h){const _=26+i,b=_+r,C=function mq(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:yn);return e}(_,b),k="function"==typeof d?d():d;return C[1]={type:t,blueprint:C,template:e,queries:null,viewQuery:o,declTNode:n,data:C.slice().fill(null,_),bindingStartIndex:_,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:k,incompleteFirstPass:!1,ssrId:h}}function Bb(t,n,e,i,r,a,s,o,l,d,h){const _=n.blueprint.slice();return _[0]=r,_[2]=1228|i,(null!==d||t&&2048&t[2])&&(_[2]|=2048),eN(_),_[3]=_[14]=t,_[8]=e,_[10]=s||t&&t[10],_[11]=o||t&&t[11],_[9]=l||t&&t[9]||null,_[5]=a,_[19]=function iW(){return nW++}(),_[6]=h,_[20]=d,_[15]=2==n.type?t[15]:_,_}function aT(t){let n=16;return t.signals?n=4096:t.onPush&&(n=64),n}function zg(t,n,e,i){if(0===e)return-1;const r=n.length;for(let a=0;a<e;a++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function sT(t,n){return t[12]?t[13][4]=n:t[12]=n,t[13]=n,n}function u(t=1){MP(on(),Ze(),$a()+t,!1)}function MP(t,n,e,i){if(!i)if(3&~n[2]){const a=t.preOrderHooks;null!==a&&rb(n,a,0,e)}else{const a=t.preOrderCheckHooks;null!==a&&ib(n,a,e)}Gu(e)}var Vb=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Vb||{});function oT(t,n,e,i){const r=O(null);try{const[a,s,o]=t.inputs[e];let l=null;!!(s&Vb.SignalBased)&&(l=n[a][H]),null!==l&&void 0!==l.transformFn?i=l.transformFn(i):null!==o&&(i=o.call(n,i)),null!==t.setInput?t.setInput(n,l,i,e,a):q2(n,l,a,i)}finally{O(r)}}function EP(t,n,e,i,r){const a=$a(),s=2&i;try{Gu(-1),s&&n.length>26&&MP(t,n,26,!1),e(i,r)}finally{Gu(a)}}function Ub(t,n,e){(function Dq(t,n,e){const i=e.directiveStart,r=e.directiveEnd;ml(e)&&function gq(t,n,e){const i=gs(n,t),r=function xP(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=rT(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}
1(e),a=t[10].rendererFactory,s=sT(t,Bb(t,r,null,aT(e),i,n,null,a.createRenderer(i,e),null,null,null));t[n.index]=s}(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||sb(e,n);const a=e.initialInputs;for(let s=i;s<r;s++){const o=t.data[s],l=Dg(n,t,s,e);Hs(l,n),null!==a&&xq(0,s-i,l,o,0,a),no(o)&&(_s(e.index,n)[8]=Dg(n,t,s,e))}})(t,n,e),!(64&~e.flags)&&function Sq(t,n,e){const i=e.directiveStart,r=e.directiveEnd,a=e.index,s=function p$(){return hn.lFrame.currentDirectiveIndex}();try{Gu(a);for(let o=i;o<r;o++){const l=t.data[o],d=n[o];WD(o),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&Tq(l,d)}}finally{Gu(-1),WD(s)}}(t,n,e)}function lT(t,n,e=gs){const i=n.localNames;if(null!==i){let r=n.index+1;for(let a=0;a<i.length;a+=2){const s=i[a+1],o=-1===s?e(n,t):t[s];t[r++]=o}}}let IP=()=>null;function yq(t){KN(t)?SP(t):function QW(t){const n=Xl(),e=n.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(a){const s=function ZW(t){return t.textContent?.replace(/\s/gm,"")}(a);return"ngetn"===s||"ngtns"===s?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let i;const r=[];for(;i=e.nextNode();)r.push(i);for(const a of r)"ngetn"===a.textContent?a.replaceWith(n.createTextNode("")):a.remove()}(t)}function zs(t,n,e,i,r,a,s,o){if(o||!hT(n,t,e,i,r)){if(3&n.type){const l=gs(n,e);i=function Cq(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,a.setProperty(l,i,r)}}else ml(n)&&function wq(t,n){const e=_s(n,t);16&e[2]||(e[2]|=64)}(e,n.index)}function Tq(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function cT(t,n){const e=t.directiveRegistry;let i=null;if(e)for(let r=0;r<e.length;r++){const a=e[r];yP(n,a.selectors,!1)&&(i??=[],no(a)?i.unshift(a):i.push(a))}return i}function tc(t,n,e,i,r,a){const s=gs(t,n);!function dT(t,n,e,i,r,a,s){if(null==a)t.removeAttribute(n,r,e);else{const o=null==s?ln(a):s(a,i||"",r);t.setAttribute(n,r,o,e)}}(n[11],s,a,t.value,e,i,r)}function xq(t,n,e,i,r,a){const s=a[n];if(null!==s)for(let o=0;o<s.length;o+=2)oT(i,e,s[o],s[o+1])}function kP(t,n,e){return(null===t||no(t))&&(e=function RD(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function hT(t,n,e,i,r){const a=t.inputs?.[i],s=t.hostDirectiveInputs?.[i];let o=!1;if(s)for(let l=0;l<s.length;l+=2){const d=s[l];oT(n.data[d],e[d],s[l+1],r),o=!0}
1if(a)for(const l of a)oT(n.data[l],e[l],i,r),o=!0;return o}function Mq(t,n){const e=_s(n,t),i=e[1];!function Eq(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}(i,e);const r=e[0];null!==r&&null===e[6]&&(e[6]=UR(r,e[9])),Hb(i,e,e[8])}function Hb(t,n,e){KD(n);try{const i=t.viewQuery;null!==i&&WS(1,i,e);const r=t.template;null!==r&&EP(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[18]?.finishViewCreation(t),t.staticContentQueries&&KR(t,n),t.staticViewQueries&&WS(2,t.viewQuery,e);const a=t.components;null!==a&&function Iq(t,n){for(let e=0;e<n.length;e++)Mq(t,n[e])}(n,a)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,ZD()}}function _p(t,n,e,i){const r=O(null);try{const a=n.tView,l=Bb(t,a,e,4096&t[2]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);l[16]=t[n.index];const h=t[18];return null!==h&&(l[18]=h.createEmbeddedView(a)),Hb(a,l,e),l}finally{O(r)}}function Ju(t,n){return!n||null===n.firstChild||xg(t)}function pT(t,n){return undefined(t,n)}var Yd=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Yd||{});function $d(t){return!(32&~t.flags)}function vp(t,n,e,i,r){if(null!=i){let a,s=!1;va(i)?a=i:Nr(i)&&(s=!0,i=i[0]);const o=di(i);0===t&&null!==e?null==r?wP(n,e,o):Xu(n,e,o,r||null,!0):1===t&&null!==e?Xu(n,e,o,r||null,!0):2===t?jg(n,o,s):3===t&&n.destroyNode(o),null!=a&&function Lq(t,n,e,i,r){const a=e[7];a!==di(e)&&vp(n,t,i,a,r);for(let o=10;o<e.length;o++){const l=e[o];zb(l[1],l,t,n,i,a)}}(n,t,a,e,r)}}function RP(t,n){n[10].changeDetectionScheduler?.notify(9),zb(t,n,n[11],2,null,null)}function mT(t,n){const e=t[9],i=e.indexOf(n);e.splice(i,1)}function Yg(t,n){if(Bc(n))return;const e=n[11];e.destroyNode&&zb(t,n,e,3,null,null),function Nq(t){let n=t[12];if(!n)return gT(t[1],t);for(;n;){let e=null;if(Nr(n))e=n[12];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Nr(n)&&gT(n[1],n),n=n[3];null===n&&(n=t),Nr(n)&&gT(n[1],n),e=n&&n[4]}n=e}}(n)}function gT(t,n){if(Bc(n))return;const e=O(null);try{n[2]&=-129,n[2]|=256,n[24]&&Te(n[24]),function Pq(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof bg)){const a=e[i+1];if(Array.isArray(a))for(let s=0;s<a.length;s+=2){const o=r[a[s]],l=a[s+1];try{l.call(o)}finally{}}else try{a.call(r)}finally{}}}}(t,n),function Rq(t,n){const e=t.cleanup,i=n[7];if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+3];o>=0?i[o]():i[-o].unsubscribe(),s+=2}else e[s].call(i[e[s+1]]);null!==i&&(n[7]=null);const r=n[21];if(null!==r){n[21]=null;for(let s=0;s<r.length;s++)(0,r[s])()}const a=n[23];if(null!==a){n[23]=null;for(const s of a)s.destroy()}}(t,n),1===n[1].type&&n[11].destroy();const i=n[16];if(null!==i&&va(n[3])){i!==n[3]&&mT(i,n);const r=n[18];null!==r&&r.detachView(t)}pS(n)}finally{O(e)}}function _T(t,n,e){return function PP(t,n,e){let i=n;for(;null!==i&&168&i.type;)i=(n=i).parent;if(null===i)return e[0];if(ml(i)){const{encapsulation:r}=t.data[i.directiveStart+i.componentOffset];if(r===Oo.None||r===Oo.Emulated)return null}return gs(i,e)}(t,n.parent,e)}function OP(t,n,e){return FP(t,n,e)}let FP=function LP(t,n,e){return 40&t.type?gs(t,e):null};function jb(t,n,e,i){const r=_T(t,i,n),a=n[11],o=OP(i.parent||n[5],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)DP(a,r,e[l],o,!1);else DP(a,r,e,o,!1)}function eh(t,n){if(null!==n){const e=n.type;if(3&e)return gs(n,t);if(4&e)return yT(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return eh(t,i);{const r=t[n.index];return va(r)?yT(-1,r):di(r)}}if(128&e)return eh(t,n.next);if(32&e)return pT(n,t)()||di(t[n.index]);{const i=VP(t,n);return null!==i?Array.isArray(i)?i[0]:eh(Vc(t[15]),i):eh(t,n.next)}}return null}function VP(t,n){return null!==n?t[15][5].projection[n.projection]:null}function yT(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return eh(i,r)}return n[7]}function bT(t,n,e,i,r,a,s){for(;null!=e;){if(128===e.type){e=e.next;continue}const o=i[e.index],l=e.type;if(s&&0===n&&(o&&Hs(di(o),i),e.flags|=2),!$d(e))if(8&l)bT(t,n,e.child,i,r,a,!1),vp(n,t,r,o,a);else if(32&l){const d=pT(e,i);let h;for(;h=d();)vp(n,t,r,h,a);vp(n,t,r,o,a)}else 16&l?UP(t,n,i,e,r,a):vp(n,t,r,o,a);e=s?e.projectionNext:e.next}}function zb(t,n,e,i,r,a){bT(e,i,t.firstChild,n,r,a,!1)}function UP(t,n,e,i,r,a){const s=e[15],l=s[5].projection[i.projection];if(Array.isArray(l))for(let d=0;d<l.length;d++)vp(n,t,r,l[d],a);else{let d=l;const h=s[3];xg(i)&&(d.flags|=128),bT(t,n,d,h,r,a,!0)}}function yp(t,n,e,i,r=!1){for(;null!==e;){if(128===e.type){e=r?e.projectionNext:e.next;continue}const a=n[e.index];null!==a&&i.push(di(a)),va(a)&&CT(a,i);const s=e.type;if(8&s)yp(t,n,e.child,i);else if(32&s){const o=pT(e,n);let l;for(;l=o();)i.push(l)}else if(16&s){const o=VP(n,e);if(Array.isArray(o))i.push(...o);else{const l=Vc(n[15]);yp(l[1],l,o,i,!0)}}e=r?e.projectionNext:e.next}return i}function CT(t,n){for(let e=10;e<t.length;e++){const i=t[e],r=i[1].firstChild;null!==r&&yp(i[1],i,r,n)}t[7]!==t[0]&&n.push(t[7])}function HP(t){if(null!==t[25]){for(const n of t[25])n.impl.addSequence(n);t[25].length=0}}let jP=[];const Hq={...Se,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{ep(t.lView)},consumerOnSignalRead(){this.lView[24]=this}},zq={...Se,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Vc(t.lView);for(;n&&!zP(n[1]);)n=Vc(n);n&&LD(n)},consumerOnSignalRead(){this.lView[24]=this}};function zP(t){return 2!==t.type}function YP(t){if(null===t[23])return;let n=!0;for(;n;){let e=!1;for(const i of t[23])i.dirty&&(e=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(8192&t[2])}}function Yb(t,n=!0,e=0){const r=t[10].rendererFactory;r.begin?.();try{!function $q(t,n){const e=aN();try{tb(!0),wT(t,n);let i=0;for(;gg(t);){if(100===i)throw new Ye(103,!1);i++,wT(t,1)}}finally{tb(e)}}(t,e)}catch(s){throw n&&function uT(t,n){const e=t[9],i=e?e.get(_l,null):null;i&&i.handleError(n)}(t,s),s}finally{r.end?.()}}function WP(t,n,e,i){if(Bc(n))return;const r=n[2];KD(n);let o=!0,l=null,d=null;zP(t)?(d=function Bq(t){return t[24]??function Vq(t){const n=jP.pop()??Object.create(Hq);return n.lView=t,n}(t)}(n),l=Y(d)):null===function D(){return K}()?(o=!1,d=function jq(t){const n=t[24]??Object.create(zq);return n.lView=t,n}(n),l=Y(d)):n[24]&&(Te(n[24]),n[24]=null);try{eN(n),function sN(t){return hn.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&EP(t,n,e,2,i);const h=!(3&~r);
1if(h){const C=t.preOrderCheckHooks;null!==C&&ib(n,C,null)}else{const C=t.preOrderHooks;null!==C&&rb(n,C,0,null),JD(n,0)}if(function Wq(t){for(let n=iR(t);null!==n;n=rR(n)){if(!(2&n[2]))continue;const e=n[9];for(let i=0;i<e.length;i++)LD(e[i])}}(n),YP(n),GP(n,0),null!==t.contentQueries&&KR(t,n),h){const C=t.contentCheckHooks;null!==C&&ib(n,C)}else{const C=t.contentHooks;null!==C&&rb(n,C,1),JD(n,1)}!function qq(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Gu(~r);else{const a=r,s=e[++i],o=e[++i];f$(s,a);const l=n[a];o(2,l)}}}finally{Gu(-1)}}(t,n);const _=t.components;null!==_&&KP(n,_,0);const b=t.viewQuery;if(null!==b&&WS(2,b,i),h){const C=t.viewCheckHooks;null!==C&&ib(n,C)}else{const C=t.viewHooks;null!==C&&rb(n,C,2),JD(n,2)}if(!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[22]){for(const C of n[22])C();n[22]=null}HP(n),n[2]&=-73}catch(h){throw ep(n),h}finally{null!==d&&(se(d,l),o&&function Uq(t){t.lView[24]!==t&&(t.lView=null,jP.push(t))}(d)),ZD()}}function GP(t,n){for(let e=iR(t);null!==e;e=rR(e))for(let i=10;i<e.length;i++)qP(e[i],n)}function Gq(t,n,e){const i=_s(n,t);qP(i,e)}function qP(t,n){OD(t)&&wT(t,n)}function wT(t,n){const i=t[1],r=t[2],a=t[24];let s=!!(0===n&&16&r);if(s||=!!(64&r&&0===n),s||=!!(1024&r),s||=!(!a?.dirty||!pe(a)),s||=!1,a&&(a.dirty=!1),t[2]&=-9217,s)WP(i,t,i.template,t[8]);else if(8192&r){YP(t),GP(t,1);const o=i.components;null!==o&&KP(t,o,1),HP(t)}}function KP(t,n,e){for(let i=0;i<n.length;i++)Gq(t,n[i],e)}function $g(t,n){const e=aN()?64:1088;for(t[10].changeDetectionScheduler?.notify(n);t;){t[2]|=e;const i=Vc(t);if(Fc(t)&&!i)return t;t=i}return null}function ZP(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function QP(t,n){const e=10+n;if(e<t.length)return t[e]}function bp(t,n,e,i=!0){const r=n[1];if(function Kq(t,n,e,i){const r=10+i,a=e.length;i>0&&(e[r-1][4]=n),i<a-10?(n[4]=e[r],Io(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[16];null!==s&&e!==s&&XP(s,n);const o=n[18];null!==o&&o.insertView(t),FD(n),n[2]|=128}(r,n,t,e),i){const s=yT(e,t),o=n[11],l=o.parentNode(t[7]);null!==l&&function kq(t,n,e,i,r,a){i[0]=r,i[5]=n,zb(t,i,e,1,r,a)}(r,t[5],o,n,l,s)}const a=n[6];null!==a&&null!==a.firstChild&&(a.firstChild=null)}function DT(t,n){const e=Wg(t,n);return void 0!==e&&Yg(e[1],e),e}function Wg(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[16];null!==r&&r!==t&&mT(r,i),n>0&&(t[e-1][4]=i[4]);const a=kc(t,10+n);!function NP(t,n){RP(t,n),n[0]=null,n[5]=null}(i[1],i);const s=a[18];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function XP(t,n){const e=t[9],i=n[3];(Nr(i)||n[15]!==i[3][15])&&(t[2]|=2),null===e?t[9]=[n]:e.push(n)}let Gg=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const n=this._lView,e=n[1];return yp(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return Bc(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(va(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Wg(n,i),kc(e,i))}this._attachedToViewContainer=!1}Yg(this._lView[1],this._lView)}onDestroy(n){Jy(this._lView,n)}markForCheck(){$g(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){FD(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,Yb(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ye(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Fc(this._lView),e=this._lView[16];null!==e&&!n&&mT(e,this._lView),RP(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ye(902,!1);this._appRef=n;const e=Fc(this._lView),i=this._lView[16];null!==i&&!e&&XP(i,this._lView),FD(this._lView)}},Pr=(()=>class t{static __NG_ELEMENT_ID__=Xq})();const Zq=Pr,Qq=class extends Zq{_declarationLView;_declarationTContainer;elementRef;constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=_p(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Gg(r)}};function Xq(){return $b(Vn(),Ze())}function $b(t,n){return 4&t.type?new Qq(n,t,rp(t,n)):null}function Cp(t,n,e,i,r){let a=t.data[n];if(null===a)a=function MT(t,n,e,i,r){const a=nN(),s=YD(),l=t.data[n]=function lK(t,n,e,i,r,a){let s=n?n.injectorIndex:-1,o=0;return Wu()&&(o|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOff
1set:-1,propertyBindings:null,flags:o,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?a:a&&a.parent,e,n,i,r);return function oK(t,n,e,i){null===t.firstChild&&(t.firstChild=n),null!==e&&(i?null==e.child&&null!==n.parent&&(e.child=n):null===e.next&&(e.next=n,n.prev=e))}(t,l,a,s),l}(t,n,e,i,r),function h$(){return hn.lFrame.inI18n}()&&(a.flags|=32);else if(64&a.type){a.type=e,a.value=i,a.attrs=r;const s=function _g(){const t=hn.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();a.injectorIndex=null===s?-1:s.injectorIndex}return gl(a,!0),a}const vK=new RegExp("^(\\d+)*(b|h)*(.*)");function IT(t){return t.index-26}function Jg(t,n,e,i){const r=IT(i);let a=function dO(t,n){const e=t.i18nNodes;if(e)return e.get(n)}(t,r);if(void 0===a){const s=t.data.n;if(s?.[r])a=function uO(t,n){const[e,...i]=function bK(t){const n=t.match(vK),[e,i,r,a]=n,s=i?parseInt(i,10):r,o=[];for(const[l,d,h]of a.matchAll(/(f|n)(\d*)/g)){const _=parseInt(h,10)||1;o.push(d,_)}return[s,...o]}(t);let r;r="h"===e?n[15][0]:"b"===e?function pP(t){return t.ownerDocument.body}(n[15][0]):di(n[Number(e)+26]);return function DK(t,n){let e=t;for(let i=0;i<n.length;i+=2){const r=n[i],a=n[i+1];for(let s=0;s<a;s++)switch(r){case"f":e=e.firstChild;break;case"n":e=e.nextSibling}}return e}(r,i)}(s[r],e);else if(n.firstChild===i)a=t.firstChild;else{const o=null===i.prev,l=i.prev??i.parent;if(function CK(t){return!t.prev&&8===t.parent?.type}(i))a=jS(t,IT(i.parent));else{let d=gs(l,e);if(o)a=d.firstChild;else{const h=IT(l),_=jS(t,h);a=2===l.type&&_?Kb(zS(t,h)+1,_):d.nextSibling}}}}return a}function Kb(t,n){let e=n;for(let i=0;i<t;i++)e=e.nextSibling;return e}let fO=!1;function jK(t,n,e){for(const i of e.node.cases[e.case]){const r=n.get(i.index-26);r&&jg(t,r,!1)}}function _O(t){const n=t[6]??[],i=t[3][11],r=[];for(const a of n)void 0!==a.data.di?r.push(a):vO(a,i);t[6]=r}function vO(t,n){let e=0,i=t.firstChild;if(i){const r=t.data.r;for(;e<r;){const a=i.nextSibling;jg(n,i,!1),i=a,e++}}}function Zb(t){_O(t);const n=t[0];Nr(n)&&Qb(n);for(let e=10;e<t.length;e++)Qb(t[e])}function Qb(t){!function HK(t){const n=t[6];if(n){const{i18nNodes:e,dehydratedIcuData:i}=n;if(e&&i){const r=t[11];for(const a of i.values())jK(r,e,a)}n.i18nNodes=void 0,n.dehydratedIcuData=void 0}}(t);const n=t[1];for(let e=26;e<n.bindingStartIndex;e++)va(t[e])?Zb(t[e]):Nr(t[e])&&Qb(t[e])}let bO=()=>null;function WK(t,n){const e=t[6];return n&&null!==e&&0!==e.length?e[0].data.i===n?e.shift():(_O(t),null):null}function Dp(t,n){return bO(t,n)}let qK=class{},CO=class{};class KK{resolveComponentFactory(n){throw Error(`No component factory found for ${sn(n)}.`)}}let nh=class{static NULL=new KK};class ih{}let zn=(()=>class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>function ZK(){const t=Ze(),e=_s(Vn().index,t);return(Nr(e)?e:t)[11]}()})(),QK=(()=>{class t{static \u0275prov=We({token:t,providedIn:"root",factory:()=>null})}return t})();const LT={};class Sp{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=ul(i);const r=this.injector.get(n,LT,i);return r!==LT||e===LT?r:this.parentInjector.get(n,e,i)}}function FT(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,a=0;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?a=o:1==a?r=Bi(r,o):2==a&&(i=Bi(i,o+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function G(t,n=vn.Default){const e=Ze();return null===e?Fe(t,n):TN(Vn(),e,Yt(t),n)}function Jb(){throw new Error("invalid")}function BT(t,n,e,i,r){const a=null===i?null:{"":-1},s=r(t,e);if(null!==s){let o,l=null,d=null;const h=function nZ(t){let n=null,e=!1;for(let s=0;s<t.length;s++){const o=t[s];if(0===s&&no(o)&&(n=o),null!==o.findHostDirectiveDefs){e=!0;break}}if(!e)return null;let i=null,r=null,a=null;for(const s of t)null!==s.findHostDirectiveDefs&&(i??=[],r??=new Map,a??=ne
1w Map,iZ(s,i,a,r)),s===n&&(i??=[],i.push(s));return null!==i?(i.push(...null===n?t:t.slice(1)),[i,r,a]):null}(s);null===h?o=s:[o,l,d]=h,function aZ(t,n,e,i,r,a,s){const o=i.length;let l=!1;for(let b=0;b<o;b++){const C=i[b];!l&&no(C)&&(l=!0,rZ(t,e,b)),aS(sb(e,n),t,C.type)}!function uZ(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}(e,t.data.length,o);for(let b=0;b<o;b++){const C=i[b];C.providersResolver&&C.providersResolver(C)}let d=!1,h=!1,_=zg(t,n,o,null);o>0&&(e.directiveToIndex=new Map);for(let b=0;b<o;b++){const C=i[b];if(e.mergedAttrs=np(e.mergedAttrs,C.hostAttrs),oZ(t,e,n,_,C),dZ(_,C,r),null!==s&&s.has(C)){const[U,Q]=s.get(C);e.directiveToIndex.set(C.type,[_,U+e.directiveStart,Q+e.directiveStart])}else(null===a||!a.has(C))&&e.directiveToIndex.set(C.type,_);null!==C.contentQueries&&(e.flags|=4),(null!==C.hostBindings||null!==C.hostAttrs||0!==C.hostVars)&&(e.flags|=64);const k=C.type.prototype;!d&&(k.ngOnChanges||k.ngOnInit||k.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),d=!0),!h&&(k.ngOnChanges||k.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),h=!0),_++}!function sZ(t,n,e){for(let i=n.directiveStart;i<n.directiveEnd;i++){const r=t.data[i];if(null!==e&&e.has(r)){const a=e.get(r);SO(0,n,a,i),SO(1,n,a,i),xO(n,i,!0)}else DO(0,n,r,i),DO(1,n,r,i),xO(n,i,!1)}}(t,e,a)}(t,n,e,o,a,l,d)}null!==a&&null!==i&&function tZ(t,n,e){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const a=e[n[r+1]];if(null==a)throw new Ye(-301,!1);i.push(n[r],a)}}(e,i,a)}function iZ(t,n,e,i){const r=n.length;t.findHostDirectiveDefs(t,n,i),e.set(t,[r,n.length-1])}function rZ(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function DO(t,n,e,i){const r=0===t?e.inputs:e.outputs;for(const a in r)if(r.hasOwnProperty(a)){let s;s=0===t?n.inputs??={}:n.outputs??={},s[a]??=[],s[a].push(i),TO(n,a)}}function SO(t,n,e,i){const r=0===t?e.inputs:e.outputs;for(const a in r)if(r.hasOwnProperty(a)){const s=r[a];let o;o=0===t?n.hostDirectiveInputs??={}:n.hostDirectiveOutputs??={},o[s]??=[],o[s].push(i,a),TO(n,s)}}function TO(t,n){"class"===n?t.flags|=8:"style"===n&&(t.flags|=16)}function xO(t,n,e){const{attrs:i,inputs:r,hostDirectiveInputs:a}=t;if(null===i||!e&&null===r||e&&null===a||tT(t))return t.initialInputs??=[],void t.initialInputs.push(null);let s=null,o=0;for(;o<i.length;){const l=i[o];if(0!==l)if(5!==l){if("number"==typeof l)break;if(!e&&r.hasOwnProperty(l)){const d=r[l];for(const h of d)if(h===n){s??=[],s.push(l,i[o+1]);break}}else if(e&&a.hasOwnProperty(l)){const d=a[l];for(let h=0;h<d.length;h+=2)if(d[h]===n){s??=[],s.push(d[h+1],i[o+1]);break}}o+=2}else o+=2;else o+=4}t.initialInputs??=[],t.initialInputs.push(s)}function oZ(t,n,e,i,r){t.data[i]=r;const a=r.factory||(r.factory=ja(r.type)),s=new bg(a,no(r),G);t.blueprint[i]=s,e[i]=s,function lZ(t,n,e,i,r){const a=r.hostBindings;if(a){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const o=~n.index;(function cZ(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=o&&s.push(o),s.push(e,i,a)}}(t,n,i,zg(t,e,r.hostVars,yn),r)}function dZ(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;no(n)&&(e[""]=t)}}function MO(t,n,e,i,r,a,s,o){const l=n.consts,h=Cp(n,t,2,i,Ro(l,s));return a&&BT(n,e,h,Ro(l,o),r),h.mergedAttrs=np(h.mergedAttrs,h.attrs),null!==h.attrs&&FT(h,h.attrs,!1),null!==h.mergedAttrs&&FT(h,h.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,h),h}function EO(t,n){XD(t,n),kD(n)&&t.queries.elementEnd(n)}class IO extends nh{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Rn(n);return new i_(e,this.ngModule)}}class i_ extends CO{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function hZ(t){return Object.keys(t).map(n=>{const[e,i,r]=t[n],a={propName:e,templateName:n,isSignal:!!(i&Vb.SignalBased)};return r&&(a.transform=r),a})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function fZ(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function uq(t){return t.map(dq).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r){const a=O(null);try{const s=this.componentDef,o=i?["ng-version","19.2.14"]:function hq(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let a=t[i];if("string"==typeof a)2===r?""!==a&&n.push(a,t[++i]):8===r&&e.push(a);else{if(!yl(r))break;r=a}i++}return e.length&&n.push(1,...e),n}(this.componentDef.selectors[0]),l=rT(0,null,null,1,0,null,null,null,null,[o],null),d=function pZ(t,n,e){let i=n instanceof Wr?n:n?.injector;return i&&null!==t.getStandaloneInjector&&(i=t.getStandaloneInjector(i)||i),i?new Sp(e,i):e}(s,r||this.ngModule,n),h=function mZ(t){const n=t.get(ih,null);if(null===n)throw new Ye(407,!1);
1return{rendererFactory:n,sanitizer:t.get(QK,null),changeDetectionScheduler:t.get(zc,null)}}(d),_=h.rendererFactory.createRenderer(null,s),b=i?function _q(t,n,e,i){const a=i.get(mR,!1)||e===Oo.ShadowDom,s=t.selectRootElement(n,a);return function vq(t){IP(t)}(s),s}(_,i,s.encapsulation,d):function gZ(t,n){const e=(t.selectors[0][0]||"div").toLowerCase();return Fb(n,e,"svg"===e?"svg":"math"===e?"math":null)}(s,_),C=Bb(null,l,null,512|aT(s),null,null,h,_,d,null,UR(b,d,!0));C[26]=b,KD(C);let k=null;try{const U=MO(26,l,C,"#host",()=>[this.componentDef],!0,0);b&&(TP(_,b,U),Hs(b,C)),Ub(l,C,U),GS(l,U,C),EO(l,U),void 0!==e&&function vZ(t,n,e){const i=t.projection=[];for(let r=0;r<n.length;r++){const a=e[r];i.push(null!=a&&a.length?Array.from(a):null)}}(U,this.ngContentSelectors,e),k=_s(U.index,C),C[8]=k[8],Hb(l,C,null)}catch(U){throw null!==k&&pS(k),pS(C),U}finally{ZD()}return new _Z(this.componentType,C)}finally{O(a)}}}class _Z extends qK{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e){super(),this._rootLView=e,this._tNode=Yu(e[1],26),this.location=rp(this._tNode,e),this.instance=_s(this._tNode.index,e)[8],this.hostView=this.changeDetectorRef=new Gg(e,void 0,!1),this.componentType=n}setInput(n,e){const i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;const r=this._rootLView;hT(i,r[1],r,n,e),this.previousInputValues.set(n,e),$g(_s(i.index,r),1)}get injector(){return new Rr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}let Wa=(()=>class t{static __NG_ELEMENT_ID__=yZ})();function yZ(){return NO(Vn(),Ze())}const bZ=Wa,AO=class extends bZ{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return rp(this._hostTNode,this._hostLView)}get injector(){return new Rr(this._hostTNode,this._hostLView)}get parentInjector(){const n=ob(this._hostTNode,this._hostLView);if(nS(n)){const e=wg(n,this._hostLView),i=Cg(n);return new Rr(e[1].data[i+8],e)}return new Rr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=kO(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,a;"number"==typeof i?r=i:null!=i&&(r=i.index,a=i.injector);const s=Dp(this._lContainer,n.ssrId),o=n.createEmbeddedViewImpl(e||{},a,s);return this.insertImpl(o,r,Ju(this._hostTNode,s)),o}createComponent(n,e,i,r,a){const s=n&&!function Mt(t){return"function"==typeof t}(n);let o;if(s)o=e;else{const k=e||{};o=k.index,i=k.injector,r=k.projectableNodes,a=k.environmentInjector||k.ngModuleRef}const l=s?n:new i_(Rn(n)),d=i||this.parentInjector;if(!a&&null==l.ngModule){const U=(s?d:this.parentInjector).get(Wr,null);U&&(a=U)}const h=Rn(l.componentType??{}),_=Dp(this._lContainer,h?.id??null),C=l.create(d,r,_?.firstChild??null,a);return this.insertImpl(C.hostView,o,Ju(this._hostTNode,_)),C}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const r=n._lView;if(function n$(t){return va(t[3])}(r)){const o=this.indexOf(n);if(-1!==o)this.detach(o);else{const l=r[3],d=new AO(l,l[5],l[3]);d.detach(d.indexOf(n))}}const a=this._adjustIndex(e),s=this._lContainer;return bp(s,r,a,i),n.attachToViewContainerRef(),Io(VT(s),a,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=kO(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Wg(this._lContainer,e);i&&(kc(VT(this._lContainer),e),Yg(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Wg(this._lContainer,e);return i&&null!=kc(VT(this._lContainer),e)?new Gg(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function kO(t){return t[8]}function VT(t){return t[8]||(t[8]=[])}function NO(t,n){let e;const i=n[t.index];return va(i)?e=i:(e=ZP(i,n,null,t),n[t.index]=e,sT(n,e)),RO(e,n,t,i),new AO(e,t,n)}let RO=OO,UT=()=>!1;function OO(t,n,e,i){if(t[7])return;let r;r=8&e.type?di(i):function CZ(t,n){const e=t[11],i=e.createComment(""),r=gs(n,t),a=e.parentNode(r);return Xu(e,a,i,e.nextSibling(r),!1),i}(n,e),t[7]=r}function wZ(t,n,e){if(t[7]&&t[6])return!0;const i=e[6],r=n.index-26;if(!i||function Mg(t){if(xg(t))return!0;let n=t.parent;for(;n;){if(xg(t)||fS(n))return!0;n=n.parent}return!1}(n)||Zu(i,r))return!1;const s=jS(i,r),o=i.data.c?.[r],[l,d]=function $K(t,n){const e=[];for(const i of n)for(let r=0;r<(i.x??1);r++){const a={data:i,firstChild:null};i.r>0&&(a.firstChild=t,t=Kb(i.r,t)),e.push(a)}return[t,e]}(s,o);return t[7]=l,t[6]=d,!0}function DZ(t,n,e,i){UT(t,e,n)||OO(t,n,e,i)}class HT{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new HT(this.queryList)}setDirty(){this.queryList.setDirty()}}class jT{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let a=0;a<i;a++){const s=e.getByIndex(a);r.push(this.queries[s.indexInDeclarationView].clone())}return new jT(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==GT(n,e).matches&&this.queries[e].setDirty()}}class LO{flags;read;predicate;constructor(n,e,i=null){this.flags=e,this.read=i,this.predicate="string"==typeof n?function IZ(t){return t.split(",").map(n=>n.trim())}(n):n}}class zT{queries;constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,a=this.getByIndex(i).embeddedTView(n,r);a&&(a.indexInDeclarationView=i,null!==e?e.push(a):e=[a])}return null!==e?new zT(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class YT{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,e=-1){this.metadata=n,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new YT(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1&~this.metadata.flags){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}
1matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];this.matchTNodeWithReadOption(n,e,TZ(e,a)),this.matchTNodeWithReadOption(n,e,lb(e,n,a,!1,!1))}else i===Pr?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,lb(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Bt||r===Wa||r===Pr&&4&e.type)this.addMatch(e.index,-2);else{const a=lb(e,n,r,!1,!1);null!==a&&this.addMatch(e.index,a)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function TZ(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function MZ(t,n,e,i){return-1===e?function xZ(t,n){return 11&t.type?rp(t,n):4&t.type?$b(t,n):null}(n,t):-2===e?function EZ(t,n,e){return e===Bt?rp(n,t):e===Pr?$b(n,t):e===Wa?NO(n,t):void 0}(t,n,i):Dg(t,t[1],e,n)}function FO(t,n,e,i){const r=n[18].queries[i];if(null===r.matches){const a=t.data,s=e.matches,o=[];for(let l=0;null!==s&&l<s.length;l+=2){const d=s[l];o.push(d<0?null:MZ(n,a[d],s[l+1],e.metadata.read))}r.matches=o}return r.matches}function $T(t,n,e,i){const r=t.queries.getByIndex(e),a=r.matches;if(null!==a){const s=FO(t,n,r,e);for(let o=0;o<a.length;o+=2){const l=a[o];if(l>0)i.push(s[o/2]);else{const d=a[o+1],h=n[-l];for(let _=10;_<h.length;_++){const b=h[_];b[16]===b[3]&&$T(b[1],b,d,i)}if(null!==h[9]){const _=h[9];for(let b=0;b<_.length;b++){const C=_[b];$T(C[1],C,d,i)}}}}}return i}function BO(t,n,e){const i=new fb(!(4&~e));return function i$(t,n,e,i){const r=VD(n);r.push(e),t.firstCreatePass&&UD(t).push(i,r.length-1)}(t,n,i,i.destroy),(n[18]??=new jT).queries.push(new HT(i))-1}function HO(t,n,e){null===t.queries&&(t.queries=new zT),t.queries.track(new YT(n,e))}function GT(t,n){return t.queries.getByIndex(n)}function jO(t,n){const e=t[1],i=GT(e,n);return i.crossesNgTemplate?$T(e,t,n,[]):FO(e,t,i,n)}let ah=class{},JO=class{};class ZT extends ah{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new IO(this);constructor(n,e,i,r=!0){super(),this.ngModuleType=n,this._parent=e;const a=ms(n);this._bootstrapComponents=ec(a.bootstrap),this._r3Injector=ON(n,e,[{provide:ah,useValue:this},{provide:nh,useValue:this.componentFactoryResolver},...i],sn(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class QT extends JO{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ZT(this.moduleType,n,[])}}class eL extends ah{injector;componentFactoryResolver=new IO(this);instance=null;constructor(n){super();const e=new Pc([...n.providers,{provide:ah,useValue:this},{provide:nh,useValue:this.componentFactoryResolver}],n.parent||Hu(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function e0(t,n,e=null){return new eL({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let jZ=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Yf(0,e.type),r=i.length>0?e0([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=We({token:t,providedIn:"environment",factory:()=>new t(Fe(Wr))})}return t})();function vt(t){return hr(()=>{const n=tL(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pb.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.depen
1dencies||null,getStandaloneInjector:n.standalone?r=>r.get(jZ).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Oo.Emulated,styles:t.styles||si,_:null,schemas:t.schemas||null,tView:null,id:""};n.standalone&&Xa("NgStandalone"),nL(e);const i=t.dependencies;return e.directiveDefs=t0(i,!1),e.pipeDefs=t0(i,!0),e.id=function qZ(t){let n=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,"function"==typeof t.consts?"":t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(const a of i.join("|"))n=Math.imul(31,n)+a.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function zZ(t){return Rn(t)||function ga(t){return t[Lf]||null}(t)}function YZ(t){return null!==t}function bn(t){return hr(()=>({type:t.type,bootstrap:t.bootstrap||si,declarations:t.declarations||si,imports:t.imports||si,exports:t.exports||si,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function $Z(t,n){if(null==t)return fs;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let a,s,o,l;Array.isArray(r)?(o=r[0],a=r[1],s=r[2]??a,l=r[3]||null):(a=r,s=r,o=Vb.None,l=null),e[a]=[i,o,l],n[a]=s}return e}function WZ(t){if(null==t)return fs;const n={};for(const e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function lt(t){return hr(()=>{const n=tL(t);return nL(n),n})}function Cs(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function tL(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||fs,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:!0===t.signals,selectors:t.selectors||si,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:$Z(t.inputs,n),outputs:WZ(t.outputs),debugInfo:null}}function nL(t){t.features?.forEach(n=>n(t))}function t0(t,n){if(!t)return null;const e=n?fr:zZ;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(YZ)}function Sn(t){let n=function iL(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(no(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Ye(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const s=t;s.inputs=XT(t.inputs),s.declaredInputs=XT(t.declaredInputs),s.outputs=XT(t.outputs);const o=r.hostBindings;o&&JZ(t,o);const l=r.viewQuery,d=r.contentQueries;if(l&&QZ(t,l),d&&XZ(t,d),KZ(t,r),bt(t.outputs,r.outputs),no(r)&&r.data.animation){const h=t.data;h.animation=(h.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let s=0;s<a.length;s++){const o=a[s];o&&o.ngInherit&&o(t),o===Sn&&(e=!1)}}n=Object.getPrototypeOf(n)}!function ZZ(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=np(r.hostAttrs,e=np(e,r.hostAttrs))}}(i)}function KZ(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e])}}function XT(t){return t===fs?{}:t===si?[]:t}function QZ(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function XZ(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,a)=>{n(i,r,a),e(i,r,a)}:n}function JZ(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function r0(t){return!!ex(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function ex(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function nc(t,n,e){return t[n]=e}function Or(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function sh(t,n,e,i){const r=Or(t,n,e);return Or(t,n+1,i)||r}function a0(t,n,e,i,r){const a=sh(t,n,e,i);return Or(t,n+2,r)||a}function s_(t,n,e,i,r,a,s,o,l,d){const h=e+26,_=n.firstCreatePass?function oQ(t,n,e,i,r,a,s,o,l){const d=n.consts,h=Cp(n,t,4,s||null,o||null);zD()&&BT(n,e,h,Ro(d,l),cT),h.mergedAttrs=np(h.mergedAttrs,h.attrs),XD(n,h);const _=h.tView=rT(2,h,i,r,a,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d,null);return null!==n.queries&&(n.queries.template(n,h),_.queries=n.queries.embeddedTView(h)),h}(h,n,t,i,r,a,s,o,l):n.data[h];gl(_,!1);const b=lL(n,t,_,e);yg()&&jb(n,t,b,_),Hs(b,t);const C=ZP(b,t,b,_);return t[h]=C,sT(t,C),function PO(t,n,e){return UT(t,n,e)}(C,_,t),Qy(_)&&Ub(n,t,_),null!=l&&lT(t,_,d),_}function oe(t,n,e,i,r,a,s,o){const l=Ze(),d=on();return s_(l,d,t,n,e,i,r,Ro(d.consts,a),s,o),oe}let lL=cL;function cL(t,n,e,i){return Zl(!0),n[11].createComment("")}function lQ(t,n,e,i){const r=n[6],a=!r||Wu()||$d(e)||Zu(r,i);if(Zl(a),a)return cL(0,n);const s=r.data.t?.[i]??null;
1null!==s&&null!==e.tView&&null===e.tView.ssrId&&(e.tView.ssrId=s);const o=Jg(r,t,n,e);return Ib(r,i,o),Kb(zS(r,i),o)}let c0=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const wL=new Qe("");let DL=(()=>{class t{static \u0275prov=We({token:t,providedIn:"root",factory:()=>new sX})}return t})();class sX{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){const i=this.queues.get(n.zone);i.has(n)&&(i.delete(n),this.queuedEffectCount--)}enqueue(n){const e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);const i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,e]of this.queues)null===n?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(const e of n)n.delete(e),this.queuedEffectCount--,e.run()}}function l_(t){return!!t&&"function"==typeof t.then}function SL(t){return!!t&&"function"==typeof t.subscribe}const TL=new Qe("");function xL(t){return eo([{provide:TL,multi:!0,useValue:t}])}let ML=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=ye(TL,{optional:!0})??[];injector=ye(Ln);constructor(){}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const a=f(this.injector,r);if(l_(a))e.push(a);else if(SL(a)){const s=new Promise((o,l)=>{a.subscribe({complete:o,error:l})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const oh=new Qe("");let Ga=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=ye(Z$);afterRenderManager=ye(NS);zonelessEnabled=ye(ip);
1rootEffectScheduler=ye(DL);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new nt;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=ye(Hd).hasPendingTasks.pipe(Ot(e=>!e));constructor(){ye(sp,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=ye(Wr);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=Ln.NULL){const a=e instanceof CO;if(!this._injector.get(ML).done)throw new Ye(405,"");let o;o=a?e:this._injector.get(nh).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const l=function oX(t){return t.isBoundToModule}(o)?void 0:this._injector.get(ah),h=o.create(r,[],i||o.selector,l),_=h.location.nativeElement,b=h.injector.get(wL,null);return b?.registerApplication(_),h.onDestroy(()=>{this.detachView(h.hostView),u0(this.components,h),b?.unregisterApplication(_)}),this._loadComponent(h),h}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){null!==this.tracingSnapshot?this.tracingSnapshot.run(kS.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Ye(101,!1);const e=O(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,O(e),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ih,null,{optional:!0}));let e=0;for(;0!==this.dirtyFlags&&e++<10;)this.synchronizeOnce()}synchronizeOnce(){if(16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const e=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:r}of this.allViews)cX(i,r,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:e})=>gg(e))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;u0(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(oh,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>u0(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ye(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function u0(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function cX(t,n,e,i){(e||gg(t))&&Yb(t,n,e&&!i?0:1)}function Kt(t,n,e,i){const r=Ze();return Or(r,Po(),n)&&(on(),tc(Ri(),r,t,n,e,i)),Kt}function Ip(t,n,e,i){return Or(t,Po(),e)?n+ln(e)+i:yn}function Ap(t,n,e,i,r,a){const o=sh(t,Uc(),e,r);return Hc(2),o?n+ln(e)+i+ln(r)+a:yn}function Np(t,n,e,i,r,a,s,o,l,d){const _=function Fo(t,n,e,i,r,a){const s=sh(t,n,e,i);return sh(t,n+2,r,a)||s}(t,Uc(),e,r,s,l);return Hc(4),_?n+ln(e)+i+ln(r)+a+ln(s)+o+ln(l)+d:yn}function h0(t,n){return t<<17|n<<2}function ch(t){return t>>17&32767}function fx(t){return 2|t}function Fp(t){return(131068&t)>>2}function px(t,n){return-131069&t|n<<2}function mx(t){return 1|t}function GL(t,n,e,i){const r=t[e+1],a=null===n;let s=i?ch(r):Fp(r),o=!1;for(;0!==s&&(!1===o||a);){const d=t[s+1];KX(t[s],n)&&(o=!0,t[s+1]=i?mx(d):fx(d)),s=i?ch(d):Fp(d)}o&&(t[e+1]=i?fx(r):mx(r))}function KX(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ao(t,n)>=0}const ya={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function qL(t){return t.substring(ya.key,ya.keyEnd)}function KL(t,n){const e=ya.textEnd;return e===n?-1:(n=ya.keyEnd=function JX(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,ya.key=n,e),Bp(t,n,e))}function Bp(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function T(t,n,e){const i=Ze();return Or(i,Po(),n)&&zs(on(),Ri(),i,t,n,i[11],e,!1),T}function gx(t,n,e,i,r){hT(n,t,e,r?"class":"style",i)}function dh(t,n,e){return bl(t,n,e,!1),dh}function Ct(t,n){return bl(t,n,null,!0),Ct}function Ys(t){!function Cl(t,n,e,i){const r=on(),a=Hc(2);r.firstUpdatePass&&tF(r,null,a,i);const s=Ze();if(e!==yn&&Or(s,a,e)){const o=r.data[$a()];if(aF(o,i)&&!eF(r,a)){let l=i?o.classesWithoutHost:o.stylesWithoutHost;null!==l&&(e=Bi(l,e||"")),gx(r,o,s,e,i)}else!function cJ(t,n,e,i,r,a,s,o){r===yn&&(r=si);let l=0,d=0,h=0<r.length?r[0]:null,_=0<a.length?a[0]:null;for(;null!==h||null!==_;){const b=l<r.length?r[l+1]:void 0,C=d<a.length?a[d+1]:void 0;let U,k=null;h===_?(l+=2,d+=2,b!==C&&(k=_,U=C)):null===_||null!==h&&h<_?(l+=2,k=h):(d+=2,k=_,U=C),null!==k&&iF(t,n,e,i,k,U,s,o),h=l<r.length?r[l]:null,_=d<a.length?a[d]:null}}(r,o,s,s[11],s[a+1],s[a+1]=function oJ(t,n,e){if(null==e||""===e)return si;const i=[],r=ro(e);if(Array.isArray(r))for(let a=0;a<r.length;a++)t(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&t(i,a,r[a]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,a)}}(lJ,rc,t,!0)}function rc(t,n){for(let e=function QX(t){return function QL(t){ya.key=0,ya.keyEnd=0,ya.value=0,ya.valueEnd=0,ya.textEnd=t.length}(t),KL(t,Bp(t,0,ya.textEnd))}(n);e>=0;e=KL(n,e))za(t,qL(n),!0)}function bl(t,n,e,i){const r=Ze(),a=on(),s=Hc(2);a.firstUpdatePass&&tF(a,t,s,i),n!==yn&&Or(r,s,n)&&iF(a,a.data[$a()],r,r[11],t,r[s+1]=function dJ(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=sn(ro(t)))),t}(n,e),i,s)}function eF(t,n){return n>=t.expandoStartIndex}function tF(t,n,e,i){const r=t.data;if(null===r[e+1]){const a=r[$a()],s=eF(t,e);aF(a,i)&&null===n&&!s&&(n=!1),n=function iJ(t,n,e,i){const r=GD(t);let a=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=d_(e=_x(null,t,n,e,i),n.attrs,i),a=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=_x(r,t,n,e,i),null===a){let l=function rJ(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Fp(i))return t[ch(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=_x(null,t,n,l[1],i),l=d_(l,n.attrs,i),function aJ(t,n,e,i){t[ch(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else a=function sJ(t,n,e){let i;const r=n.directiveEnd;for(let a=1+n.directiveStylingLast;a<r;a++)i=d_(i,t[a].hostAttrs,e);return d_(i,n.attrs,e)}(t,n,i)}return void 0!==a&&(i?n.residualClasses=a:n.residualStyles=a),e}(r,a,n,i),function GX(t,n,e,i,r,a){let s=a?n.classBindings:n.styleBindings,o=ch(s),l=Fp(s);t[i]=e;let h,d=!1;if(Array.isArray(e)?(h=e[1],(null===h||Ao(e,h)>0)&&(d=!0)):h=e,r)if(0!==l){const b=ch(t[o+1]);t[i+1]=h0(b,o),0!==b&&(t[b+1]=px(t[b+1],i)),t[o+1]=function $X(t,n){return 131071&t|n<<17}(t[o+1],i)}else t[i+1]=h0(o,0),0!==o&&(t[o+1]=px(t[o+1],i)),o=i;else t[i+1]=h0(l,0),0===o?o=i:t[l+1]=px(t[l+1],i),l=i;d&&(t[i+1]=fx(t[i+1])),GL(t,h,i,!0),GL(t,h,i,!1),function qX(t,n,e,i,r){const a=r?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof n&&Ao(a,n)>=0&&(e[i+1]=mx(e[i+1]))}(n,h,t,i,a),s=h0(o,l),a?n.classBindings=s:n.styleBindings=s}(r,a,n,e,s,i)}}function _x(t,n,e,i,r){let a=null;const s=e.directiveEnd;let o=e.directiveStylingLast;for(-1===o?o=e.directiveStart:o++;o<s&&(a=n[o],i=d_(i,a.hostAttrs,r),a!==t);)o++;return null!==t&&(e.directiveStylingLast=o),i}function d_(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let a=0;a<n.length;a++){const s=n[a];"number"==typeof s?r=s:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),za(t,s,!!e||n[++a]))}return void 0===t?null:t}function lJ(t,n,e){const i=String(n);""!==i&&!i.includes(" ")&&za(t,i,e)}function iF(t,n,e,i,r,a,s,o){if(!(3&n.type))return;const l=t.data,d=l[o+1],h=function WX(t){return!(1&~t)}(d)?rF(l,n,e,r,Fp(d),s):void 0;f0(h)||(f0(a)||function YX(t){return!(2&~t)}(d)&&(a=rF(l,null,e,r,o,s)),function Fq(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let a=-1===i.indexOf("-")?void 0:Yd.DashCase;null==r?t.removeStyle(e,i,a):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),a|=Yd.Important),t.setStyle(e,i,r,a))}}(i,s,Jf($a(),e),r,a))}function rF(t,n,e,i,r,a){const s=null===n;let o;for(;r>0;){const l=t[r],d=Array.isArray(l),h=d?l[1]:l,_=null===h;let b=e[r+1];b===yn&&(b=_?si:void 0);let C=_?Od(b,i):h===i?b:void 0;if(d&&!f0(C)&&(C=Od(l,i)),f0(C)&&(o=C,s))return o;const k=t[r+1];r=s?ch(k):Fp(k)}if(null!==n){let l=a?n.residualClasses:n.residualStyles;null!=l&&(o=Od(l,i))}return o}function f0(t){return void 0!==t}function aF(t,n){return!!(t.flags&(n?8:16))}class CJ{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),r=Math.max(n,e),a=this.detach(r);if(r-i>1){const s=this.detach(i);this.attach(i,a),this.attach(r,s)}else this.attach(i,a)}move(n,e){this.attach(e,this.detach(n))}}function vx(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function yx(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function sF(t,n,e,i,r){if(yx(t,n,i,e(i,r)))t.updateValue(i,r);else{const a=t.create(i,r);t.attach(i,a)}}function oF(t,n,e,i){const r=new Set;for(let a=n;a<=e;a++)r.add(i(a,t.at(a)));return r}class lF{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}}function Fr(t,n){Xa("NgControlFlow");const e=Ze(),i=Po(),r=e[i]!==yn?e[i]:-1,a=-1!==r?p0(e,26+r):void 0;if(Or(e,i,t)){const o=O(null);try{if(void 0!==a&&DT(a,0),-1!==t){const l=26+t,d=p0(e,l),h=Cx(e[1],l),_=Dp(d,h.tView.ssrId);bp(d,_p(e,h,n,{dehydratedView:_}),0,Ju(h,_))}}finally{O(o)}}else if(void 0!==a){const o=QP(a,0);void 0!==o&&(o[8]=n)}}class DJ{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-10}}class SJ{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function ao(t,n,e,i,r,a,s,o,l,d,h,_,b){Xa("NgControlFlow");const C=Ze(),k=on(),U=void 0!==l,Q=Ze(),de=o?s.bind(Q[15][8]):s,he=new SJ(U,de);Q[26+t]=he,s_(C,k,t+1,n,e,i,r,Ro(k.consts,a)),U&&s_(C,k,t+2,l,d,h,_,Ro(k.consts,b))}class TJ extends CJ{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-10}at(n){return this.getLView(n)[8].$implicit}attach(n,e){const i=e[6];this.needsIndexUpdate||=n!==this.length,bp(this.lContainer,e,n,Ju(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function xJ(t,n){return Wg(t,n)}(this.lContainer,n)}create(n,e){const i=Dp(this.lContainer,this.templateTNode.tView.ssrId),r
1=_p(this.hostLView,this.templateTNode,new DJ(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){Yg(n[1],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[8].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[8].$index=n}getLView(n){return function MJ(t,n){return QP(t,n)}(this.lContainer,n)}}function so(t){const n=O(null),e=$a();try{const i=Ze(),r=i[1],a=i[e],s=e+1,o=p0(i,s);if(void 0===a.liveCollection){const d=Cx(r,s);a.liveCollection=new TJ(o,i,d)}else a.liveCollection.reset();const l=a.liveCollection;if(function wJ(t,n,e){let i,r,a=0,s=t.length-1;if(Array.isArray(n)){let l=n.length-1;for(;a<=s&&a<=l;){const d=t.at(a),h=n[a],_=vx(a,d,a,h,e);if(0!==_){_<0&&t.updateValue(a,h),a++;continue}const b=t.at(s),C=n[l],k=vx(s,b,l,C,e);if(0!==k){k<0&&t.updateValue(s,C),s--,l--;continue}const U=e(a,d),Q=e(s,b),de=e(a,h);if(Object.is(de,Q)){const he=e(l,C);Object.is(he,U)?(t.swap(a,s),t.updateValue(s,C),l--,s--):t.move(s,a),t.updateValue(a,h),a++}else if(i??=new lF,r??=oF(t,a,s,e),yx(t,i,a,de))t.updateValue(a,h),a++,s++;else if(r.has(de))i.set(U,t.detach(a)),s--;else{const he=t.create(a,n[a]);t.attach(a,he),a++,s++}}for(;a<=l;)sF(t,i,e,a,n[a]),a++}else if(null!=n){const l=n[Symbol.iterator]();let d=l.next();for(;!d.done&&a<=s;){const h=t.at(a),_=d.value,b=vx(a,h,a,_,e);if(0!==b)b<0&&t.updateValue(a,_),a++,d=l.next();else{i??=new lF,r??=oF(t,a,s,e);const C=e(a,_);if(yx(t,i,a,C))t.updateValue(a,_),a++,s++,d=l.next();else if(r.has(C)){const k=e(a,h);i.set(k,t.detach(a)),s--}else t.attach(a,t.create(a,_)),a++,s++,d=l.next()}}for(;!d.done;)sF(t,i,e,t.length,d.value),d=l.next()}for(;a<=s;)t.destroy(t.detach(s--));i?.forEach(l=>{t.destroy(l)})}(l,t,a.trackByFn),l.updateIndexes(),a.hasEmptyBlock){const d=Po(),h=0===l.length;if(Or(i,d,h)){const _=e+2,b=p0(i,_);if(h){const C=Cx(r,_),k=Dp(b,C.tView.ssrId);bp(b,_p(i,C,void 0,{dehydratedView:k}),0,Ju(C,k))}else DT(b,0)}}}finally{O(n)}}function p0(t,n){return t[n]}function Cx(t,n){return Yu(t,n)}function m(t,n,e,i){const r=Ze(),a=on(),s=26+t,o=r[11],l=a.firstCreatePass?MO(s,a,r,n,cT,zD(),e,i):a.data[s],d=cF(a,r,l,o,n,t);r[s]=d;const h=Qy(l);return gl(l,!0),TP(o,d,l),!$d(l)&&yg()&&jb(a,r,d,l),(0===function r$(){return hn.lFrame.elementDepthCount}()||h)&&Hs(d,r),function a$(){hn.lFrame.elementDepthCount++}(),h&&(Ub(a,r,l),GS(a,l,r)),null!==i&&lT(r,l),m}function p(){let t=Vn();YD()?$D():(t=t.parent,gl(t,!1));const n=t;(function o$(t){return hn.skipHydrationRootTNode===t})(n)&&function u$(){hn.skipHydrationRootTNode=null}(),function s$(){hn.lFrame.elementDepthCount--}();const e=on();return e.firstCreatePass&&EO(e,n),null!=n.classesWithoutHost&&function w$(t){return!!(8&t.flags)}(n)&&gx(e,n,Ze(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function D$(t){return!!(16&t.flags)}(n)&&gx(e,n,Ze(),n.stylesWithoutHost,!1),p}function fe(t,n,e,i){return m(t,n,e,i),p(),fe}let cF=(t,n,e,i,r,a)=>(Zl(!0),Fb(i,r,fN()));function EJ(t,n,e,i,r,a){const s=n[6],o=!s||Wu()||$d(e)||Zu(s,a);if(Zl(o),o)return Fb(i,r,fN());const l=Jg(s,t,n,e);return YR(s,a)&&Ib(s,a,l.nextSibling),s&&(fS(e)||KN(l))&&ml(e)&&(function c$(t){hn.skipHydrationRootTNode=t}(e),SP(l)),l}function Gn(t,n,e){const i=Ze(),r=on(),a=t+26,s=r.firstCreatePass?function AJ(t,n,e,i,r){const a=n.consts,s=Ro(a,i),o=Cp(n,t,8,"ng-container",s);null!==s&&FT(o,s,!0);const l=Ro(a,r);return zD()&&BT(n,e,o,l,cT),o.mergedAttrs=np(o.mergedAttrs,o.attrs),null!==n.queries&&n.queries.elementStart(n,o),o}(a,r,i,n,e):r.data[a];gl(s,!0);const o=dF(r,i,s,t);return i[a]=o,yg()&&jb(r,i,o,s),Hs(o,i),Qy(s)&&(Ub(r,i,s),GS(r,s,i)),null!=e&&lT(i,s),Gn}function qn(){let t=Vn();const n=on();return YD()?$D():(t=t.parent,gl(t,!1)),n.firstCreatePass&&(XD(n,t),kD(t)&&n.queries.elementEnd(t)),qn}let dF=(t,n,e,i)=>(Zl(!0),iT(n[11],""));function kJ(t,n,e,i){let r;const a=n[6],s=!a||Wu()||Zu(a,i)||$d(e);if(Zl(s),s)return iT(n[11],"");const o=Jg(a,t,n,e),l=function zR(t,n){const e=t.data;let i=e.e?.[n]??null;return null===i&&e.c?.[n]&&(i=zS(t,n)),i}(a,i);return Ib(a,i,o),r=Kb(l,o),r}function qe(){return Ze()}function ws(t,n,e){const i=Ze();return Or(i,Po(),n)&&zs(on(),Ri(),i,t,n,i[11],e,!0),ws}function Dx(t,n,e){const i=Ze();if(Or(i,Po(),n)){const a=on(),s=Ri();zs(a,s,i,t,n,kP(GD(a.data),s,i),e,!0)}return Dx}const uh=void 0;var PJ=["en",[["a","p"],["AM","PM"],uh],[["AM","PM"],uh,uh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],uh,[["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"]],uh,[["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}",uh,"{1} 'at' {0}",uh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function RJ(t){const n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===e?1:5}];let Vp={};function Ds(t){const n=function OJ(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=hF(n);if(e)return e;const i=n.split("-")[0];if(e=hF(i),e)return e;if("en"===i)return PJ;throw new Ye(701,!1)}function hF(t){return t in Vp||(Vp[t]=Me.ng&&Me.ng.common&&Me.ng.common.locales&&Me.ng.common.locales[t]),Vp[t]}var Yi=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Yi||{});const m0="en-US";let fF=m0;function kF(t,n,e){return function i(r){if(r===Function)return e;$g(ml(t)?_s(t.index,n):n,5);const s=n[8];let o=NF(n,s,e,r),l=i.__ngNextListenerFn__;for(;l;)o=NF(n,s,l,r)&&o,l=l.__ngNextListenerFn__;return o}}function NF(t,n,e,i){const r=O(null);try{return!1!==e(i)}catch(a){return function wee(t,n){const e=t[9],i=e?e.get(_l,null):null;i&&i.handleError(n)}(t,a),!1}finally{O(r)}}function RF(t,n,e,i,r,a){const o=n[1],h=n[e][o.data[e].outputs[i]],_=o.firstCreatePass?UD(o):null,b=VD(n),C=h.subscribe(a),k=b.length;b.push(a,C),_&&_.push(r,t.index,k,-(k+1))}function be(t,n,e,i){const r=Ze(),a=on(),s=Vn();return Mx(a,r,r[11],s,t,n,i),be}function xx(t,n){const e=Vn(),i=Ze(),r=on();return Mx(r,i,kP(GD(r.data),e,i),e,t,n),xx}function Mx(t,n,e,i,r,a,s){const o=Qy(i),d=t.firstCreatePass?UD(t):null,h=VD(n);let _=!0;if(3&i.type||s){const b=gs(i,n),C=s?s(b):b,k=h.length,U=s?de=>s(di(de[i.index])):i.index;let Q=null;if(!s&&o&&(Q=function Dee(t,n,e,i){const r=t.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const s=r[a];if(s===e&&r[a+1]===i){const o=n[7],l=r[a+2];return o.length>l?o[l]:null}"string"==typeof s&&(a+=2)}return null}(t,n,r,i.index)),null!==Q)(Q.__ngLastListenerFn__||Q).__ngNextListenerFn__=a,Q.__ngLastListenerFn__=a,_=!1;else{a=kF(i,n,a);const de=e.listen(C,r,a);h.push(a,de),d&&d.push(r,U,k,k+1)}}else a=kF(i,n,a);if(_){const b=i.outputs?.[r],C=i.hostDirectiveOutputs?.[r];if(C&&C.length)for(let k=0;k<C.length;k+=2)RF(i,n,C[k],C[k+1],r,a);if(b&&b.length)for(const k of b)RF(i,n,k,r,r,a)}}
1function B(t=1){return function g$(t){return(hn.lFrame.contextLView=function tN(t,n){for(;t>0;)n=n[14],t--;return n}(t,hn.lFrame.contextLView))[8]}(t)}function See(t,n){let e=null;const i=function sq(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const a=n[r];if("*"!==a){if(null===i?yP(t,a,!0):cq(i,a))return r}else e=r}return e}function Bo(t){const n=Ze()[15][5];if(!n.projection){const i=n.projection=function Lu(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}(t?t.length:1,null),r=i.slice();let a=n.child;for(;null!==a;){if(128!==a.type){const s=t?See(a,t):0;null!==s&&(r[s]?r[s].projectionNext=a:i[s]=a,r[s]=a)}a=a.next}}}function Ss(t,n=0,e,i,r,a){const s=Ze(),o=on(),l=i?t+1:null;null!==l&&s_(s,o,l,i,r,a,null,e);const d=Cp(o,26+t,16,null,e||null);null===d.projection&&(d.projection=n),$D();const _=!s[6]||Wu();null===s[15][5].projection[d.projection]&&null!==l?function Tee(t,n,e){const i=26+e,r=n.data[i],a=t[i],s=Dp(a,r.tView.ssrId);bp(a,_p(t,r,void 0,{dehydratedView:s}),0,Ju(r,s))}(s,o,l):_&&!$d(d)&&function Oq(t,n,e){UP(n[11],0,n,e,_T(t,e,n),OP(e.parent||n[5],e,n))}(o,s,d)}function Ex(t,n,e){return ba(t,"",n,"",e),Ex}function ba(t,n,e,i,r){const a=Ze(),s=Ip(a,n,e,i);return s!==yn&&zs(on(),Ri(),a,t,s,a[11],r,!1),ba}function Ix(t,n,e,i,r,a,s){const o=Ze(),l=Ap(o,n,e,i,r,a);return l!==yn&&zs(on(),Ri(),o,t,l,o[11],s,!1),Ix}function Br(t,n,e,i){!function UO(t,n,e,i){const r=on();if(r.firstCreatePass){const a=Vn();HO(r,new LO(n,e,i),a.index),function AZ(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),!(2&~e)&&(r.staticContentQueries=!0)}return BO(r,Ze(),e)}(t,n,e,i)}function En(t,n,e){!function VO(t,n,e){const i=on();return i.firstCreatePass&&(HO(i,new LO(t,n,e),-1),!(2&~n)&&(i.staticViewQueries=!0)),BO(i,Ze(),n)}(t,n,e)}function Vt(t){const n=Ze(),e=on(),i=qD();nb(i+1);const r=GT(e,i);if(t.dirty&&function t$(t){return!(4&~t[2])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)t.reset([]);else{const a=jO(n,i);t.reset(a,GN),t.notifyOnChanges()}return!0}return!1}function Ut(){return function WT(t,n){return t[18].queries[n].queryList}(Ze(),qD())}function Di(t){return $u(function iN(){return hn.lFrame.contextLView}(),26+t)}function v(t,n=""){const e=Ze(),i=on(),r=t+26,a=i.firstCreatePass?Cp(i,r,1,n,null):i.data[r],s=ZF(i,e,a,n,t);e[r]=s,yg()&&jb(i,e,s,a),gl(a,!1)}let ZF=(t,n,e,i,r)=>(Zl(!0),nT(n[11],i));function Bee(t,n,e,i,r){const a=n[6],s=!a||Wu()||$d(e)||Zu(a,r);return Zl(s),s?nT(n[11],i):Jg(a,t,n,e)}function P(t){return _e("",t,""),P}function _e(t,n,e){const i=Ze(),r=Ip(i,t,n,e);return r!==yn&&Kc(i,$a(),r),_e}function Vi(t,n,e,i,r){const a=Ze(),s=Ap(a,t,n,e,i,r);return s!==yn&&Kc(a,$a(),s),Vi}
1function Ja(t,n,e,i,r,a,s){const o=Ze(),l=function kp(t,n,e,i,r,a,s,o){const d=a0(t,Uc(),e,r,s);return Hc(3),d?n+ln(e)+i+ln(r)+a+ln(s)+o:yn}(o,t,n,e,i,r,a,s);return l!==yn&&Kc(o,$a(),l),Ja}function y0(t,n,e,i,r,a,s,o,l){const d=Ze(),h=Np(d,t,n,e,i,r,a,s,o,l);return h!==yn&&Kc(d,$a(),h),y0}function Kc(t,n,e){const i=Jf(n,t);!function CP(t,n,e){t.setValue(n,e)}(t[11],i,e)}function Vo(t,n,e){qN(n)&&(n=n());const i=Ze();return Or(i,Po(),n)&&zs(on(),Ri(),i,t,n,i[11],e,!1),Vo}function wl(t,n){const e=qN(t);return e&&t.set(n),e}function Uo(t,n){const e=Ze(),i=on(),r=Vn();return Mx(i,e,e[11],r,t,n),Uo}function Ax(t,n,e,i,r){if(t=Yt(t),Array.isArray(t))for(let a=0;a<t.length;a++)Ax(t[a],n,e,i,r);else{const a=on(),s=Ze(),o=Vn();let l=Gl(t)?t:Yt(t.provide);const d=pg(t),h=1048575&o.providerIndexes,_=o.directiveStart,b=o.providerIndexes>>20;if(Gl(t)||!t.multi){const C=new bg(d,r,G),k=Nx(l,n,r?h:h+b,_);-1===k?(aS(sb(o,s),a,l),kx(a,t,n.length),n.push(l),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),e.push(C),s.push(C)):(e[k]=C,s[k]=C)}else{const C=Nx(l,n,h+b,_),k=Nx(l,n,h,h+b),Q=k>=0&&e[k];if(r&&!Q||!r&&!(C>=0&&e[C])){aS(sb(o,s),a,l);const de=function Wee(t,n,e,i,r){const a=new bg(t,e,G);return a.multi=[],a.index=n,a.componentProviders=0,a3(a,r,i&&!e),a}(r?$ee:Yee,e.length,r,i,d);!r&&Q&&(e[k].providerFactory=de),kx(a,t,n.length,0),n.push(l),o.directiveStart++,o.directiveEnd++,r&&(o.providerIndexes+=1048576),e.push(de),s.push(de)}else kx(a,t,C>-1?C:k,a3(e[r?k:C],d,!r&&i));!r&&i&&Q&&e[k].componentProviders++}}}function kx(t,n,e,i){const r=Gl(n),a=function zy(t){return!!t.useClass}(n);if(r||a){const l=(a?Yt(n.useClass):n).prototype.ngOnDestroy;if(l){const d=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const h=d.indexOf(e);-1===h?d.push(e,[i,l]):d[h+1].push(i,l)}else d.push(e,l)}}}function a3(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Nx(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function Yee(t,n,e,i,r){return Rx(this.multi,[])}function $ee(t,n,e,i,r){const a=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,l=Dg(i,i[1],this.providerFactory.index,r);s=l.slice(0,o),Rx(a,s);for(let d=o;d<l.length;d++)s.push(l[d])}else s=[],Rx(a,s);return s}function Rx(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function fn(t,n=[]){return e=>{e.providersResolver=(i,r)=>function zee(t,n,e){const i=on();if(i.firstCreatePass){const r=no(t);Ax(e,i.data,i.blueprint,r,!0),Ax(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}function Up(t,n,e){const i=vs()+t,r=Ze();return r[i]===yn?nc(r,i,e?n.call(e):n()):function a_(t,n){return t[n]}(r,i)}function In(t,n,e,i){return o3(Ze(),vs(),t,n,e,i)}function Zc(t,n,e,i,r){return l3(Ze(),vs(),t,n,e,i,r)}function Hp(t,n,e,i,r,a){return function c3(t,n,e,i,r,a,s,o){const l=n+e;return a0(t,l,r,a,s)?nc(t,l+3,o?i.call(o,r,a,s):i(r,a,s)):__(t,l+3)}(Ze(),vs(),t,n,e,i,r,a)}function __(t,n){const e=t[n];return e===yn?void 0:e}function o3(t,n,e,i,r,a){const s=n+e;return Or(t,s,r)?nc(t,s+1,a?i.call(a,r):i(r)):__(t,s+1)}function l3(t,n,e,i,r,a,s){const o=n+e;return sh(t,o,r,a)?nc(t,o+2,s?i.call(s,r,a):i(r,a)):__(t,o+2)}function M(t,n){const e=on();let i;const r=t+26;e.firstCreatePass?(i=function nte(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];
1const a=i.factory||(i.factory=ja(i.type)),o=na(G);try{const l=ab(!1),d=a();return ab(l),function PD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Ze(),r,d),d}finally{na(o)}}function E(t,n,e){const i=t+26,r=Ze(),a=$u(r,i);return v_(r,i)?o3(r,vs(),n,a.transform,e,a):a.transform(e)}function hh(t,n,e,i){const r=t+26,a=Ze(),s=$u(a,r);return v_(a,r)?l3(a,vs(),n,s.transform,e,i,s):s.transform(e,i)}function v_(t,n){return t[1].data[n].pure}function ni(t,n){return $b(t,n)}class Rte{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Pte=(()=>{class t{compileModuleSync(e){return new QT(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),a=ec(ms(e).declarations).reduce((s,o)=>{const l=Rn(o);return l&&s.push(new i_(l)),s},[]);return new Rte(i,a)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fte=(()=>{class t{zone=ye(_t);changeDetectionScheduler=ye(zc);applicationRef=ye(Ga);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Bte=new Qe("",{factory:()=>!1});function Bx({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new _t({...Vx(),scheduleInRootZone:e}),[{provide:_t,useFactory:t},{provide:ps,multi:!0,useFactory:()=>{const i=ye(Fte,{optional:!0});return()=>i.initialize()}},{provide:ps,multi:!0,useFactory:()=>{const i=ye(Ute);return()=>{i.initialize()}}},!0===n?{provide:BN,useValue:!0}:[],{provide:lS,useValue:e??LN}]}function Vx(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}let Ute=(()=>{class t{subscription=new jt;initialized=!1;zone=ye(_t);pendingTasks=ye(Hd);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{_t.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{_t.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b_=(()=>{class t{appRef=ye(Ga);taskService=ye(Hd);ngZone=ye(_t);zonelessEnabled=ye(ip);tracing=ye(sp,{optional:!0});disableScheduling=ye(BN,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new jt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(db):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(ye(lS,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof hS||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&5===e)return;let i=!1;switch(e){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,i=!0;break;case 12:this.appRef.dirtyFlags|=16,i=!0;break;case 11:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?HN:UN;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDef
1ined&&Zone.current.get(db+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,HN(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ac=new Qe("",{providedIn:"root",factory:()=>ye(ac,vn.Optional|vn.SkipSelf)||function Hte(){return typeof $localize<"u"&&$localize.locale||m0}()}),D0=new Qe(""),Gte=new Qe("");function C_(t){return!t.moduleRef}let Qd=null;let gr=(()=>class t{static __NG_ELEMENT_ID__=ene})();function ene(t){return function tne(t,n,e){if(ml(t)&&!e){const i=_s(t.index,n);return new Gg(i,i)}return 175&t.type?new Gg(n[15],n):null}(Vn(),Ze(),!(16&~t))}class j3{constructor(){}supports(n){return r0(n)}create(n){return new sne(n)}}const ane=(t,n)=>n;class sne{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||ane}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,a=null;for(;e||i;){const s=!i||e&&e.currentIndex<Y3(i,r,a)?e:i,o=Y3(s,r,a),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{a||(a=[]);const d=o-r,h=l-r;if(d!=h){for(let b=0;b<d;b++){const C=b<a.length?a[b]:a[b]=0,k=C+b;h<=k&&k<d&&(a[b]=C+1)}a[s.previousIndex]=h-d}}o!==l&&n(s,o,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!r0(n))throw new Ye(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,a,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let o=0;o<this.length;o++)a=n[o],s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next}else r=0,function aQ(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Symbol.iterator]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,o=>{s=this._trackByFn(r,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,r)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let a;return null===n?a=this._itTail:(a=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,a,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,a,r)):n=this._addAfter(new one(e,i),a,r),n}_verifyReinsertion(n,e,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?n=this._reinsertAfter(a,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,a=n._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new z3),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new z3),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class one{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}}class lne{_head=null;_tail=null;add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class z3{map=new Map;put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new lne,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Y3(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class $3{constructor(){}supports(n){return n instanceof Map||ex(n)}create(){return new cne}}class cne{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||ex(n)))throw new Ye(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;
1if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const a=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,a)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const a=r._prev,s=r._next;return a&&(a._next=s),s&&(s._prev=a),r._next=null,r._prev=null,r}const i=new dne(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class dne{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}}function W3(){return new $x([new j3])}let $x=(()=>{class t{factories;static \u0275prov=We({token:t,providedIn:"root",factory:W3});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||W3()),deps:[[t,new Yl,new fl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Ye(901,!1)}}return t})();function G3(){return new x0([new $3])}let x0=(()=>{class t{static \u0275prov=We({token:t,providedIn:"root",factory:G3});factories;constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||G3()),deps:[[t,new Yl,new fl]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ye(901,!1)}}return t})();function fne(t){try{const{rootComponent:n,appProviders:e,platformProviders:i}=t,r=function Xte(t=[]){if(Qd)return Qd;const n=function L3(t=[],n){return Ln.create({name:n,providers:[{provide:Nc,useValue:"platform"},{provide:D0,useValue:new Set([()=>Qd=null])},...t]})}(t);return Qd=n,function EL(){!function St(t){it=t}(()=>{throw new Ye(600,!1)})}(),function F3(t){const n=t.get(yS,null);f(t,()=>{n?.forEach(e=>e())})}(n),n}(i),a=[Bx({}),{provide:zc,useExisting:b_},...e||[]];return function R3(t){const n=C_(t)?t.r3Injector:t.moduleRef.injector,e=n.get(_t);return e.run(()=>{C_(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();const i=n.get(_l,null);let r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:a=>{i.handleError(a)}})}),C_(t)){const a=()=>n.destroy(),s=t.platformInjector.get(D0);s.add(a),n.onDestroy(()=>{r.unsubscribe(),s.delete(a)})}else{const a=()=>t.moduleRef.destroy(),s=t.platformInjector.get(D0);s.add(a),t.moduleRef.onDestroy(()=>{u0(t.allPlatformModules,t.moduleRef),r.unsubscribe(),s.delete(a)})}return function Kte(t,n,e){try{const i=e();return l_(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(i,e,()=>{const a=n.get(ML);
1return a.runInitializers(),a.donePromise.then(()=>{if(function VJ(t){"string"==typeof t&&(fF=t.toLowerCase().replace(/_/g,"-"))}(n.get(ac,m0)||m0),!n.get(Gte,!0))return C_(t)?n.get(Ga):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(C_(t)){const l=n.get(Ga);return void 0!==t.rootComponent&&l.bootstrap(t.rootComponent),l}return function qte(t,n){const e=t.injector.get(Ga);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>e.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new Ye(-403,!1);t.instance.ngDoBootstrap(e)}n.push(t)}(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}({r3Injector:new eL({providers:a,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}}let nB=!1;function One(){const t=[{provide:ap,useFactory:()=>{let n=!0;return n=!!ye(jd,{optional:!0})?.get(US,null),n&&Xa("NgHydration"),n}},{provide:ps,useValue:()=>{(function mO(t){fO=t})(!1),ye(ap)&&(function hG(t){for(const i of t.body.childNodes)if($S(i))return;if(!$S(qR(t.body.previousSibling))&&!$S(qR(t.head.lastChild)))throw new Ye(-507,!1)}(Xl()),function Ane(){nB||(nB=!0,function KW(){VR=qW}(),function IJ(){cF=EJ}(),function Vee(){ZF=Bee}(),function NJ(){dF=kJ}(),function cQ(){lL=lQ}(),function SZ(){RO=DZ,UT=wZ}(),function GK(){bO=WK}(),function bq(){IP=yq}())}())},multi:!0}];return t.push({provide:mR,useFactory:()=>ye(ap)},{provide:oh,useFactory:()=>
1{if(ye(ap)){const n=ye(Ga);return()=>{(function Rne(t){return t.whenStable()})(n).then(()=>{n.destroyed||function yO(t){const n=t._views;for(const e of n){const i=HR(e);null!==i&&null!==i[0]&&(Nr(i)?Qb(i):Zb(i))}}(n)})}}return()=>{}},multi:!0}),eo(t)}function Ws(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function qr(t){return function Re(t){const n=O(null);try{return t()}finally{O(n)}}(t)}function sc(t,n){return function ge(t,n){const e=Object.create(Ue);e.computation=t,void 0!==n&&(e.equal=n);const i=()=>{if(ne(e),ee(e),e.value===Be)throw e.error;return e.value};return i[H]=e,i}(t,n?.equal)}function Zx(t,n){const e=Rn(t),i=n.elementInjector||Hu();return new i_(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}const Tn=new Qe("");let hB=null;function Xd(){return hB}class iie{}let Qx=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(aie),providedIn:"platform"})}return t})();const rie=new Qe("");let aie=(()=>{class t extends Qx{_location;_history;_doc=ye(Tn);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xd().getBaseHref(this._doc)}onPopState(e){const i=Xd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Xd().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Xx(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function fB(t){const n=t.search(/#|\?|$/);return"/"===t[n-1]?t.slice(0,n-1)+t.slice(n):t}function Qc(t){return t&&"?"!==t[0]?`?${t}`:t}let ph=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(mB),providedIn:"root"})}return t})();const pB=new Qe("");let mB=(()=>{class t extends ph{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ye(Tn).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Xx(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Qc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,a){const s=this.prepareExternalUrl(r+Qc(a));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,a){const s=this.prepareExternalUrl(r+Qc(a));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(Fe(Qx),Fe(pB,8))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jd=(()=>{class t{_subject=new nt;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function lie(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}
1(fB(gB(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Qc(i))}normalize(e){return t.stripTrailingSlash(function oie(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,gB(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qc(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Qc(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=Qc;static joinWithSlash=Xx;static stripTrailingSlash=fB;static \u0275fac=function(i){return new(i||t)(Fe(ph))};static \u0275prov=We({token:t,factory:()=>function sie(){return new Jd(Fe(ph))}(),providedIn:"root"})}return t})();function gB(t){return t.replace(/\/index.html$/,"")}function _B(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,a]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(a)}return null}const vB="browser";function k0(t){return t===vB}function yB(t){return"server"===t}class bB{}const Jx=new Qe("");let CB=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r,a){return this._findPluginFor(i).addEventListener(e,i,r,a)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new Ye(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(Fe(Jx),Fe(_t))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class wB{_doc;constructor(n){this._doc=n}manager}const N0="ng-app-id";function DB(t){for(const n of t)n.remove()}function SB(t,n){const e=n.createElement("style");return e.textContent=t,e}function eM(t,n){const e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}let TB=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.isServer=yB(a),function die(t,n,e,i){const r=t.head?.querySelectorAll(`style[${N0}="${n}"],link[${N0}="${n}"]`);if(r)for(const a of r)a.removeAttribute(N0),a instanceof HTMLLinkElement?i.set(a.href.slice(a.href.lastIndexOf("/")+1),{usage:0,elements:[a]}):a.textContent&&e.set(a.textContent,{usage:0,elements:[a]})}(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(const r of e)this.addUsage(r,this.inline,SB);i?.forEach(r=>this.addUsage(r,this.external,eM))}removeStyles(e,i){for(const r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){const a=i.get(e);a?a.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,r(e,this.doc)))})}removeUsage(e,i){const r=i.get(e);r&&(r.usage--,r.usage<=0&&(DB(r.elements),i.delete(e)))}ngOnDestroy(){for(const[,{elements:e}]of[...this.inline,...this.external])DB(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(const[i,{elements:r}]of this.inline)r.push(this.addElement(e,SB(i,this.doc)));for(const[i,{elements:r}]of this.external)r.push(this.addElement(e,eM(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(N0,this.appId),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(Yc),Fe(bS,8),Fe(Ku))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const tM={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/",math:"http://www.w3.org/1998/Math/MathML"},nM=/%COMP%/g,gie=new Qe("",{providedIn:"root",factory:()=>!0});function MB(t,n){return n.map(e=>e.replace(nM,t))}let iM=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,r,a,s,o,l,d=null,h=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=o,this.ngZone=l,this.nonce=d,this.tracingService=h,this.platformIsServer=yB(o),this.defaultRenderer=new rM(e,s,l,this.platformIsServer,this.tracingService)}
1createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Oo.ShadowDom&&(i={...i,encapsulation:Oo.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof IB?r.applyToHost(e):r instanceof aM&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let a=r.get(i.id);if(!a){const s=this.doc,o=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,_=this.platformIsServer,b=this.tracingService;switch(i.encapsulation){case Oo.Emulated:a=new IB(l,d,i,this.appId,h,s,o,_,b);break;case Oo.ShadowDom:return new bie(l,d,e,i,s,o,this.nonce,_,b);default:a=new aM(l,d,i,h,s,o,_,b)}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(Fe(CB),Fe(TB),Fe(Yc),Fe(gie),Fe(Tn),Fe(Ku),Fe(_t),Fe(bS),Fe(sp,8))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class rM{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,a){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=a}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(tM[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(EB(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(EB(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new Ye(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const a=tM[r];a?n.setAttributeNS(a,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=tM[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Yd.DashCase|Yd.Important)?n.style.setProperty(e,i,r&Yd.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Yd.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if("string"==typeof n&&!(n=Xd().getGlobalEventTarget(this.doc,n)))throw new Ye(5102,!1);let a=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(a=this.tracingService.wrapEventListener(n,e,a)),this.eventManager.addEventListener(n,e,a,r)}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function EB(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class bie extends rM{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,a,s,o,l,d){super(n,a,s,l,d),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=r.styles;h=MB(r.id,h);for(const b of h){const C=document.createElement("style");o&&C.setAttribute("nonce",o),C.textContent=b,this.shadowRoot.appendChild(C)}const _=r.getExternalStyles?.();if(_)for(const b of _){const C=eM(b,a);o&&C.setAttribute("nonce",o),this.shadowRoot.appendChild(C)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class aM extends rM{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,i,r,a,s,o,l,d){super(n,a,s,o,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let h=i.styles;this.styles=d?MB(d,h):h,this.styleUrls=i.getExternalStyles?.(d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class IB extends aM{contentAttr;hostAttr;constructor(n,e,i,r,a,s,o,l,d){const h=r+"-"+i.id;super(n,e,i,a,s,o,l,d,h),this.contentAttr=function _ie(t){return"_ngcontent-%COMP%".replace(nM,t)}(h),this.hostAttr=function vie(t){return"_nghost-%COMP%".replace(nM,t)}(h)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class sM extends iie{supportsDOMEvents=!0;static makeCurrent(){!function nie(t){hB??=t}(new sM)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function Cie(){return S_=S_||document.head.querySelector("base"),S_?S_.getAttribute("href"):null}();return null==e?null:function wie(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){S_=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return _B(document.cookie,n)}}let S_=null,Sie=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})(),Tie=(()=>{class t extends wB{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,a){return e.addEventListener(i,r,a),()=>this.removeEventListener(e,i,r,a)}removeEventListener(e,i,r,a){return e.removeEventListener(i,r,a)}static \u0275fac=function(i){return new(i||t)(Fe(Tn))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const AB=["alt","control","meta","shift"],xie={"\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"},Mie={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Eie=(()=>{class t extends wB{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r,a){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xd().onAndCancel(e,s.domEventName,o,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const a=t._normalizeKey(i.pop());let s="",o=i.indexOf("code");if(o>-1&&(i.splice(o,1),s="code."),AB.forEach(d=>{const h=i.indexOf(d);h>-1&&(i.splice(h,1),s+=d+".")}),s+=a,0!=i.length||0===a.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=xie[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),AB.forEach(s=>{s!==r&&(0,Mie[s])(e)&&(a+=s+".")}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return"esc"===e?"escape":e}static \u0275fac=function(i){return new(i||t)(Fe(Tn))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function kB(t){return{appProviders:[...Oie,...t?.providers??[]],platformProviders:Rie}}const Rie=[{provide:Ku,useValue:vB},{provide:yS,useValue:function Aie(){sM.makeCurrent()},multi:!0},{provide:Tn,useFactory:function Nie(){return function wW(t){vS=t}(document),document}}],Oie=[{provide:Nc,useValue:"root"},{provide:_l,useFactory:function kie(){return new _l}},{provide:Jx,useClass:Tie,multi:!0,deps:[Tn]},{provide:Jx,useClass:Eie,multi:!0,deps:[Tn]},iM,TB,CB,{provide:ih,useExisting:iM},{provide:bB,useClass:Sie},[]];let Lie=(()=>{class t{static \u0275prov=We({token:t,providedIn:"root",factory:()=>new Fie(ye(Tn),window)})}return t})();class Fie{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function Bie(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const a=r.shadowRoot;if(a){const s=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(i-a[0],r-a[1])}}let hre=(()=>{class t extends ph{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.on
1HashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Xx(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,a){const s=this.prepareExternalUrl(r+Qc(a))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,a){const s=this.prepareExternalUrl(r+Qc(a))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(Fe(Qx),Fe(pB,8))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();var xs=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(xs||{}),Hi=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Hi||{}),oo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(oo||{});function F0(t,n){return jo(Ds(t)[Yi.DateFormat],n)}function B0(t,n){return jo(Ds(t)[Yi.TimeFormat],n)}function V0(t,n){return jo(Ds(t)[Yi.DateTimeFormat],n)}function Ho(t,n){const e=Ds(t),i=e[Yi.NumberSymbols][n];if(typeof i>"u"){if(12===n)return e[Yi.NumberSymbols][0];if(13===n)return e[Yi.NumberSymbols][1]}return i}function zB(t){if(!t[Yi.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Yi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function jo(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function uM(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const xre=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U0={},Mre=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function YB(t,n,e,i){let r=function Lre(t){if(GB(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,a=1,s=1]=t.split("-").map(o=>+o);return H0(r,a-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(xre))return function Fre(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,a=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,o=Number(t[5]||0)-i,l=Number(t[6]||0),d=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return a.call(n,s,o,l,d),n}(i)}const n=new Date(t);if(!GB(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Xc(e,n)||n;let o,s=[];for(;n;){if(o=Mre.exec(n),!o){s.push(n);break}{s=s.concat(o.slice(1));const h=s.pop();if(!h)break;n=h}}let l=r.getTimezoneOffset();i&&(l=WB(i,l),r=function Ore(t,n){const r=t.getTimezoneOffset();return function Pre(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,-1*(WB(n,r)-r))}(r,i));let d="";return s.forEach(h=>{const _=function Rre(t){if(fM[t])return fM[t];let n;switch(t){case"G":case"GG":case"GGG":n=Wi(3,Hi.Abbreviated);break;case"GGGG":n=Wi(3,Hi.Wide);break;case"GGGGG":n=Wi(3,Hi.Narrow);break;case"y":n=sa(0,1,0,!1,!0);break;case"yy":n=sa(0,2,0,!0,!0);break;case"yyy":n=sa(0,3,0,!1,!0);break;case"yyyy":n=sa(0,4,0,!1,!0);break;case"Y":n=$0(1);break;case"YY":n=$0(2,!0);break;case"YYY":n=$0(3);break;case"YYYY":n=$0(4);break;case"M":case"L":n=sa(1,1,1);break;case"MM":case"LL":n=sa(1,2,1);break;case"MMM":n=Wi(2,Hi.Abbreviated);break;case"MMMM":n=Wi(2,Hi.Wide);break;case"MMMMM":n=Wi(2,Hi.Narrow);break;case"LLL":n=Wi(2,Hi.Abbreviated,xs.Standalone);break;case"LLLL":n=Wi(2,Hi.Wide,xs.Standalone);break;case"LLLLL":n=Wi(2,Hi.Narrow,xs.Standalone);break;case"w":n=hM(1);break;case"ww":n=hM(2);break;case"W":n=hM(1,!0);break;case"d":n=sa(2,1);break;case"dd":n=sa(2,2);break;case"c":case"cc":n=sa(7,1);break;case"ccc":n=Wi(1,Hi.Abbreviated,xs.Standalone);break;case"cccc":n=Wi(1,Hi.Wide,xs.Standalone);break;case"ccccc":n=Wi(1,Hi.Narrow,xs.Standalone);break;case"cccccc":n=Wi(1,Hi.Short,xs.Standalone);break;case"E":case"EE":case"EEE":n=Wi(1,Hi.Abbreviated);break;case"EEEE":n=Wi(1,Hi.Wide);break;case"EEEEE":n=Wi(1,Hi.Narrow);break;case"EEEEEE":n=Wi(1,Hi.Short);break;case"a":case"aa":case"aaa":n=Wi(0,Hi.Abbreviated);break;case"aaaa":n=Wi(0,Hi.Wide);break;case"aaaaa":n=Wi(0,Hi.Narrow);break;
1case"b":case"bb":case"bbb":n=Wi(0,Hi.Abbreviated,xs.Standalone,!0);break;case"bbbb":n=Wi(0,Hi.Wide,xs.Standalone,!0);break;case"bbbbb":n=Wi(0,Hi.Narrow,xs.Standalone,!0);break;case"B":case"BB":case"BBB":n=Wi(0,Hi.Abbreviated,xs.Format,!0);break;case"BBBB":n=Wi(0,Hi.Wide,xs.Format,!0);break;case"BBBBB":n=Wi(0,Hi.Narrow,xs.Format,!0);break;case"h":n=sa(3,1,-12);break;case"hh":n=sa(3,2,-12);break;case"H":n=sa(3,1);break;case"HH":n=sa(3,2);break;case"m":n=sa(4,1);break;case"mm":n=sa(4,2);break;case"s":n=sa(5,1);break;case"ss":n=sa(5,2);break;case"S":n=sa(6,1);break;case"SS":n=sa(6,2);break;case"SSS":n=sa(6,3);break;case"Z":case"ZZ":case"ZZZ":n=z0(0);break;case"ZZZZZ":n=z0(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=z0(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=z0(2);break;default:return null}return fM[t]=n,n}(h);d+=_?_(r,e,l):"''"===h?"'":h.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function H0(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Xc(t,n){const e=function pre(t){return Ds(t)[Yi.LocaleId]}(t);if(U0[e]??={},U0[e][n])return U0[e][n];let i="";switch(n){case"shortDate":i=F0(t,oo.Short);break;case"mediumDate":i=F0(t,oo.Medium);break;case"longDate":i=F0(t,oo.Long);break;case"fullDate":i=F0(t,oo.Full);break;case"shortTime":i=B0(t,oo.Short);break;case"mediumTime":i=B0(t,oo.Medium);break;case"longTime":i=B0(t,oo.Long);break;case"fullTime":i=B0(t,oo.Full);break;case"short":const r=Xc(t,"shortTime"),a=Xc(t,"shortDate");i=j0(V0(t,oo.Short),[r,a]);break;case"medium":const s=Xc(t,"mediumTime"),o=Xc(t,"mediumDate");i=j0(V0(t,oo.Medium),[s,o]);break;case"long":const l=Xc(t,"longTime"),d=Xc(t,"longDate");i=j0(V0(t,oo.Long),[l,d]);break;case"full":const h=Xc(t,"fullTime"),_=Xc(t,"fullDate");i=j0(V0(t,oo.Full),[h,_])}return i&&(U0[e][n]=i),i}function j0(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Dl(t,n,e="-",i,r){let a="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,a=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),a+s}function sa(t,n,e=0,i=!1,r=!1){return function(a,s){let o=function Ire(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,a);if((e>0||o>-e)&&(o+=e),3===t)0===o&&-12===e&&(o=12);else if(6===t)return function Ere(t,n){return Dl(t,3).substring(0,n)}(o,n);const l=Ho(s,5);return Dl(o,n,l,i,r)}}function Wi(t,n,e=xs.Format,i=!1){return function(r,a){return function Are(t,n,e,i,r,a){switch(e){case 2:return function _re(t,n,e){const i=Ds(t),a=jo([i[Yi.MonthsFormat],i[Yi.MonthsStandalone]],n);return jo(a,e)}(n,r,i)[t.getMonth()];case 1:return function gre(t,n,e){const i=Ds(t),a=jo([i[Yi.DaysFormat],i[Yi.DaysStandalone]],n);return jo(a,e)}(n,r,i)[t.getDay()];case 0:const s=t.getHours(),o=t.getMinutes();if(a){const d=function Cre(t){const n=Ds(t);return zB(n),(n[Yi.ExtraData][2]||[]).map(i=>"string"==typeof i?uM(i):[uM(i[0]),uM(i[1])])}(n),h=function wre(t,n,e){const i=Ds(t);zB(i);const a=jo([i[Yi.ExtraData][0],i[Yi.ExtraData][1]],n)||[];return jo(a,e)||[]}(n,r,i),_=d.findIndex(b=>{if(Array.isArray(b)){const[C,k]=b,U=s>=C.hours&&o>=C.minutes,Q=s<k.hours||s===k.hours&&o<k.minutes;if(C.hours<k.hours){if(U&&Q)return!0}else if(U||Q)return!0}else if(b.hours===s&&b.minutes===o)return!0;return!1});if(-1!==_)return h[_]}return function mre(t,n,e){const i=Ds(t),a=jo([i[Yi.DayPeriodsFormat],i[Yi.DayPeriodsStandalone]],n);return jo(a,e)}(n,r,i)[s<12?0:1];case 3:return function vre(t,n){return jo(Ds(t)[Yi.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,a,t,n,e,i)}}function z0(t){return function(n,e,i){const r=-1*i,a=Ho(e,5),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Dl(s,2,a)+Dl(Math.abs(r%60),2,a);case 1:return"GMT"+(r>=0?"+":"")+Dl(s,1,a);case 2:return"GMT"+(r>=0?"+":"")+Dl(s,2,a)+":"+Dl(Math.abs(r%60),2,a);case 3:return 0===i?"Z":(r>=0?"+":"")+Dl(s,2,a)+":"+Dl(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${t}"`)}}}const kre=0,Y0=4;function $B(t){const n=t.getDay(),e=0===n?-3:Y0-n;return H0(t.getFullYear(),t.getMonth(),t.getDate()+e)}function hM(t,n=!1){return function(e,i){let r;if(n){const a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+a)/7)}else{const a=$B(e),s=function Nre(t){const n=H0(t,kre,1).getDay();return H0(t,0,1+(n<=Y0?Y0:Y0+7)-n)}(a.getFullYear()),o=a.getTime()-s.getTime();r=1+Math.round(o/6048e5)}return Dl(r,t,Ho(i,5))}}function $0(t,n=!1){return function(e,i){return Dl($B(e).getFullYear(),t,Ho(i,5),n)}}const fM={};function WB(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function GB(t){return t instanceof Date&&!isNaN(t.valueOf())}const yM=/\s+/,QB=[];let oa=(()=>{class t{_ngEl;_renderer;initialClasses=QB;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=null!=e?e.trim().split(yM):QB}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(yM):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[
1i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(yM).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(G(Bt),G(zn))};static \u0275dir=lt({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();class Zre{$implicit;ngForOf;index;count;constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}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 Un=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,a,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new Zre(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===a?void 0:a);else if(null!==a){const o=i.get(a);i.move(o,s),JB(o,r)}});for(let r=0,a=i.length;r<a;r++){const o=i.get(r).context;o.index=r,o.count=a,o.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{JB(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(G(Wa),G(Pr),G($x))};static \u0275dir=lt({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function JB(t,n){t.context.$implicit=n.item}let Zt=(()=>{class t{_viewContainer;_context=new Qre;_thenTemplateRef=null;_elseTemplateRef=null;
1_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){e4(e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){e4(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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(G(Wa),G(Pr))};static \u0275dir=lt({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})();class Qre{$implicit=null;ngIf=null}function e4(t,n){if(t&&!t.createEmbeddedView)throw new Ye(2020,!1)}class bM{_viewContainerRef;_templateRef;_created=!1;constructor(n,e){this._viewContainerRef=n,this._templateRef=e}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let mh=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=lt({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),I_=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new bM(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(i){return new(i||t)(G(Wa),G(Pr),G(mh,9))};static \u0275dir=lt({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})(),G0=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r}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,i){const[r,a]=e.split("."),s=-1===r.indexOf("-")?void 0:Yd.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,a?`${i}${a}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static \u0275fac=function(i){return new(i||t)(G(Bt),G(x0),G(zn))};static \u0275dir=lt({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})();function Sl(t,n){return new Ye(2100,!1)}class eae{createSubscription(n,e){return qr(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){qr(()=>n.unsubscribe())}}class tae{createSubscription(n,e){return n.then(i=>e?.(i),i=>{throw i}),{unsubscribe:()=>{e=null}}}dispose(n){n.unsubscribe()}}const nae=new tae,iae=new eae;let Ii=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(l_(e))return nae;if(SL(e))return iae;throw Sl()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(G(gr,16))};static \u0275pipe=Cs({name:"async",type:t,pure:!1})}return t})();const cae=new Qe(""),dae=new Qe("");let es=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,a){if(null==e||""===e||e!=e)return null;try{return YB(e,i??this.defaultOptions?.dateFormat??"mediumDate",a||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Sl()}}static \u0275fac=function(i){return new(i||t)(G(ac,16),G(cae,24),G(dae,24))};static \u0275pipe=Cs({name:"date",type:t,pure:!0})}return t})(),yi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({})}return t})();function eu(t){return!!t&&(t instanceof Jt||ft(t.lift)&&ft(t.subscribe))}function a4(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function tu(t){return this instanceof tu?(this.v=t,this):new tu(t)}function c4(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function xM(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(a){e[a]=t[a]&&function(s){return new Promise(function(o,l){!function r(a,s,o,l){Promise.resolve(l).then(function(d){a({value:d,done:o})},s)}(o,l,(s=t[a](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const EM=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function d4(t){return ft(t?.then)}function u4(t){return ft(t[lr])}function h4(t){return Symbol.asyncIterator&&ft(t?.[Symbol.asyncIterator])}function f4(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invali
1d object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const p4=function Yae(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function m4(t){return ft(t?.[p4])}function g4(t){return function l4(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),a=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function s(C){return function(k){return Promise.resolve(k).then(C,_)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(C,k){i[C]&&(r[C]=function(U){return new Promise(function(Q,de){a.push([C,U,Q,de])>1||l(C,U)})},k&&(r[C]=k(r[C])))}function l(C,k){try{!function d(C){C.value instanceof tu?Promise.resolve(C.value.v).then(h,_):b(a[0][2],C)}(i[C](k))}catch(U){b(a[0][3],U)}}function h(C){l("next",C)}function _(C){l("throw",C)}function b(C,k){C(k),a.shift(),a.length&&l(a[0][0],a[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield tu(e.read());if(r)return yield tu(void 0);yield yield tu(i)}}finally{e.releaseLock()}})}function _4(t){return ft(t?.getReader)}function la(t){if(t instanceof Jt)return t;if(null!=t){if(u4(t))return function $ae(t){return new Jt(n=>{const e=t[lr]();if(ft(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(EM(t))return function Wae(t){return new Jt(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(d4(t))return function Gae(t){return new Jt(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,sr)})}(t);if(h4(t))return v4(t);if(m4(t))return function qae(t){return new Jt(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(_4(t))return function Kae(t){return v4(g4(t))}(t)}throw f4(t)}function v4(t){return new Jt(n=>{(function Zae(t,n){var e,i,r,a;return function s4(t,n,e,i){return new(e||(e=Promise))(function(a,s){function o(h){try{d(i.next(h))}catch(_){s(_)}}function l(h){try{d(i.throw(h))}catch(_){s(_)}}function d(h){h.done?a(h.value):function r(a){return a instanceof e?a:new e(function(s){s(a)})}(h.value).then(o,l)}d((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=c4(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(a=e.return)&&(yield a.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Jc(t,n,e,i=0,r=!1){const a=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(a),!r)return a}function IM(t,n=0){return Fi((e,i)=>{e.subscribe(mi(i,r=>Jc(i,t,()=>i.next(r),n),()=>Jc(i,t,()=>i.complete(),n),r=>Jc(i,t,()=>i.error(r),n)))})}function y4(t,n=0){return Fi((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function b4(t,n){if(!t)throw new Error("Iterable cannot be null");return new Jt(e=>{Jc(e,n,()=>{const i=t[Symbol.asyncIterator]();Jc(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function ca(t,n){return n?function nse(t,n){if(null!=t){if(u4(t))return function Qae(t,n){return la(t).pipe(y4(n),IM(n))}(t,n);if(EM(t))return function Jae(t,n){return new Jt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(d4(t))return function Xae(t,n){return la(t).pipe(y4(n),IM(n))}(t,n);if(h4(t))return b4(t,n);if(m4(t))return function ese(t,n){return new Jt(e=>{let i;return Jc(e,n,()=>{i=t[p4](),Jc(e,n,()=>{let r,a;try{({value:r,done:a}=i.next())}catch(s){return void e.error(s)}a?e.complete():e.next(r)},0,!0)}),()=>ft(i?.return)&&i.return()})}(t,n);if(_4(t))return function tse(t,n){return b4(g4(t),n)}(t,n)}throw f4(t)}(t,n):la(t)}function C4(t){return t&&ft(t.schedule)}function AM(t){return t[t.length-1]}function q0(t){return ft(AM(t))?t.pop():void 0}function k_(t){return C4(AM(t))?t.pop():void 0}function At(...t){return ca(t,k_(t))}const{isArray:rse}=Array,{getPrototypeOf:ase,prototype:sse,keys:ose}=Object;function w4(t){if(1===t.length){const n=t[0];if(rse(n))return{args:n,keys:null};if(function lse(t){return t&&"object"==typeof t&&ase(t)===sse}(n)){const e=ose(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:cse}=Array;function kM(t){return Ot(n=>function dse(t,n){return cse(n)?t(...n):t(n)}(t,n))}function D4(t,n){return t.reduce((e,i,r)=>
1(e[i]=n[r],e),{})}function Tl(...t){const n=k_(t),e=q0(t),{args:i,keys:r}=w4(t);if(0===i.length)return ca([],n);const a=new Jt(function use(t,n,e=Fn){return i=>{S4(n,()=>{const{length:r}=t,a=new Array(r);let s=r,o=r;for(let l=0;l<r;l++)S4(n,()=>{const d=ca(t[l],n);let h=!1;d.subscribe(mi(i,_=>{a[l]=_,h||(h=!0,o--),o||i.next(e(a.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>D4(r,s):Fn));return e?a.pipe(kM(e)):a}function S4(t,n,e){t?Jc(e,t,n):n()}const K0=Gt(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ra(t,n,e=1/0){return ft(n)?Ra((i,r)=>Ot((a,s)=>n(i,a,r,s))(la(t(i,r))),e):("number"==typeof n&&(e=n),Fi((i,r)=>function hse(t,n,e,i,r,a,s,o){const l=[];let d=0,h=0,_=!1;const b=()=>{_&&!l.length&&!d&&n.complete()},C=U=>d<i?k(U):l.push(U),k=U=>{a&&n.next(U),d++;let Q=!1;la(e(U,h++)).subscribe(mi(n,de=>{r?.(de),a?C(de):n.next(de)},()=>{Q=!0},void 0,()=>{if(Q)try{for(d--;l.length&&d<i;){const de=l.shift();s?Jc(n,s,()=>k(de)):k(de)}b()}catch(de){n.error(de)}}))};return t.subscribe(mi(n,C,()=>{_=!0,b()})),()=>{o?.()}}(i,r,t,e)))}function $p(t=1/0){return Ra(Fn,t)}function nu(...t){return function fse(){return $p(1)}()(ca(t,k_(t)))}function Wp(t){return new Jt(n=>{la(t()).subscribe(n)})}function Ms(t,n){const e=ft(t)?t:()=>t,i=r=>r.error(e());return new Jt(n?r=>n.schedule(i,0,r):i)}const Gs=new Jt(t=>t.complete());function NM(){return Fi((t,n)=>{let e=null;t._refCount++;const i=mi(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,a=e;e=null,r&&(!a||r===a)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class T4 extends Jt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,kf(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new jt;const e=this.getSubject();n.add(this.source.subscribe(mi(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=jt.EMPTY)}return n}refCount(){return NM()(this)}}function Kr(t,n){return Fi((e,i)=>{let r=null,a=0,s=!1;const o=()=>s&&!r&&i.complete();e.subscribe(mi(i,l=>{r?.unsubscribe();let d=0;const h=a++;la(t(l,h)).subscribe(r=mi(i,_=>i.next(n?n(l,_,h,d++):_),()=>{r=null,o()}))},()=>{s=!0,o()}))})}function Yn(t){return t<=0?()=>Gs:Fi((n,e)=>{let i=0;n.subscribe(mi(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function iu(...t){const n=k_(t);return Fi((e,i)=>{(n?nu(t,e,n):nu(t,e)).subscribe(i)})}function Cn(t,n){return Fi((e,i)=>{let r=0;e.subscribe(mi(i,a=>t.call(n,a,r++)&&i.next(a)))})}function Z0(t){return Fi((n,e)=>{let i=!1;n.subscribe(mi(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function x4(t=mse){return Fi((n,e)=>{let i=!1;n.subscribe(mi(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function mse(){return new K0}function gh(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Cn((r,a)=>t(r,a,i)):Fn,Yn(1),e?Z0(n):x4(()=>new K0))}function _h(t,n){return ft(n)?Ra(t,n,1):Ra(t,1)}function Vr(t,n,e){const i=ft(t)||n||e?{next:t,error:n,complete:e}:t;return i?Fi((r,a)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let o=!0;r.subscribe(mi(a,l=>{var d;null===(d=i.next)||void 0===d||d.call(i,l),a.next(l)},()=>{var l;o=!1,null===(l=i.complete)||void 0===l||l.call(i),a.complete()},l=>{var d;o=!1,null===(d=i.error)||void 0===d||d.call(i,l),a.error(l)},()=>{var l,d;o&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):Fn}function ts(t){return Fi((n,e)=>{let a,i=null,r=!1;i=n.subscribe(mi(e,void 0,void 0,s=>{a=la(t(s,ts(t)(n))),i?(i.unsubscribe(),i=null,a.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,a.subscribe(e))})}function M4(t,n){return Fi(function gse(t,n,e,i,r){return(a,s)=>{let o=e,l=n,d=0;a.subscribe(mi(s,h=>{const _=d++;l=o?t(l,h,_):(o=!0,h),i&&s.next(l)},r&&(()=>{o&&s.next(l),s.complete()}
1)))}}(t,n,arguments.length>=2,!0))}function RM(t){return t<=0?()=>Gs:Fi((n,e)=>{let i=[];n.subscribe(mi(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Ca(t){return Fi((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Lt(t){return Fi((n,e)=>{la(t).subscribe(mi(e,()=>e.complete(),Dr)),!e.closed&&n.subscribe(e)})}class Q0{}class X0{}class Es{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),a=e.slice(i+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Es?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Es;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Es?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const a=n.value;if(a){let s=this.headers.get(e);if(!s)return;s=s.filter(o=>-1===a.indexOf(o)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}addHeaderEntry(n,e){const i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class vse{encodeKey(n){return E4(n)}encodeValue(n){return E4(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const bse=/%(\d[a-f0-9])/gi,Cse={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E4(t){return encodeURIComponent(t).replace(bse,(n,e)=>Cse[e]??n)}function J0(t){return`${t}`}class ru{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new vse,n.fromString){if(n.fromObject)throw new Ye(2805,!1);this.map=function yse(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const a=r.indexOf("="),[s,o]=-1==a?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,a)),n.decodeValue(r.slice(a+1))],l=e.get(s)||[];l.push(o),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(J0):[J0(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];
1return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(a=>{e.push({param:i,value:a,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ru({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(J0(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(J0(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class wse{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function I4(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function A4(t){return typeof Blob<"u"&&t instanceof Blob}function k4(t){return typeof FormData<"u"&&t instanceof FormData}const N_="Content-Type",PM="X-Request-URL",N4="text/plain",R4="application/json",P4=`${R4}, ${N4}, */*`;class R_{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,i,r){let a;if(this.url=e,this.method=n.toUpperCase(),function Dse(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new Es,this.context??=new wse,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const o=e.indexOf("?");this.urlWithParams=e+(-1===o?"?":o<e.length-1?"&":"")+s}}else this.params=new ru,this.urlWithParams=e}serializeBody(){return null===this.body?null:"string"==typeof this.body||I4(this.body)||A4(this.body)||k4(this.body)||function Sse(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)?this.body:this.body instanceof ru?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||k4(this.body)?null:A4(this.body)?this.body.type||null:I4(this.body)?null:"string"==typeof this.body?N4:this.body instanceof ru?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?R4:null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,a=n.transferCache??this.transferCache,s=void 0!==n.body?n.body:this.body,o=n.withCredentials??this.withCredentials,l=n.reportProgress??this.reportProgress;let d=n.headers||this.headers,h=n.params||this.params;const _=n.context??this.context;return void 0!==n.setHeaders&&(d=Object.keys(n.setHeaders).reduce((b,C)=>b.set(C,n.setHeaders[C]),d)),n.setParams&&(h=Object.keys(n.setParams).reduce((b,C)=>b.set(C,n.setParams[C]),h)),new R_(e,i,s,{params:h,headers:d,context:_,reportProgress:l,responseType:r,withCredentials:o,transferCache:a})}}var oc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(oc||{});class OM{headers;status;statusText;url;ok;type;constructor(n,e=200,i="OK"){this.headers=n.headers||new Es,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class t1 extends OM{constructor(n={}){super(n)}type=oc.ResponseHeader;clone(n={}){return new t1({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class vh extends OM{body;constructor(n={}){super(n),this.body=void 0!==n.body?n.body:null}type=oc.Response;clone(n={}){return new vh({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class yh extends OM{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var wa=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(wa||{});function LM(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let $n=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof R_)a=e;else{let l,d;l=r.headers instanceof Es?r.headers:new Es(r.headers),r.params&&(d=r.params instanceof ru?r.params:new ru({fromObject:r.params})),a=new R_(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=At(a).pipe(_h(l=>this.handler.handle(l)));if(e instanceof R_||"events"===r.observe)return s;const o=s.pipe(Cn(l=>l instanceof vh));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return o.pi
1pe(Ot(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Ye(2806,!1);return l.body}));case"blob":return o.pipe(Ot(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Ye(2807,!1);return l.body}));case"text":return o.pipe(Ot(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Ye(2808,!1);return l.body}));default:return o.pipe(Ot(l=>l.body))}case"response":return o;default:throw new Ye(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ru).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,LM(r,i))}post(e,i,r={}){return this.request("POST",e,LM(r,i))}put(e,i,r={}){return this.request("PUT",e,LM(r,i))}static \u0275fac=function(i){return new(i||t)(Fe(Q0))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const F4=new Qe("");function B4(t,n){return n(t)}const VM=new Qe(""),P_=new Qe(""),V4=new Qe(""),U4=new Qe("",{providedIn:"root",factory:()=>!0});let H4=(()=>{class t extends Q0{backend;injector;chain=null;pendingTasks=ye(Hd);contributeToStability=ye(U4);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(P_),...this.injector.get(V4,[])]));this.chain=i.reduceRight((r,a)=>function Ase(t,n,e){return(i,r)=>f(e,()=>n(i,a=>t(a,r)))}(r,a,this.injector),B4)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Ca(()=>this.pendingTasks.remove(i)))}return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(Fe(X0),Fe(Wr))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const Ose=/^\)\]\}',?\n/,Lse=RegExp(`^${PM}:`,"m");let z4=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ye(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?ca(i.\u0275loadImpl()):At(null)).pipe(Kr(()=>new Jt(a=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((U,Q)=>s.setRequestHeader(U,Q.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept",P4),!e.headers.has(N_)){const U=e.detectContentTypeHeader();null!==U&&s.setRequestHeader(N_,U)}if(e.responseType){const U=e.responseType.toLowerCase();s.responseType="json"!==U?U:"text"}const o=e.serializeBody();let l=null;const d=()=>{if(null!==l)return l;const U=s.statusText||"OK",Q=new Es(s.getAllResponseHeaders()),de=function Fse(t){return"responseURL"in t&&t.responseURL?t.responseURL:Lse.test(t.getAllResponseHeaders())?t.getResponseHeader(PM):null}(s)||e.url;return l=new t1({headers:Q,status:s.status,statusText:U,url:de}),l},h=()=>{let{headers:U,status:Q,statusText:de,url:he}=d(),Ae=null;204!==Q&&(Ae=typeof s.response>"u"?s.responseText:s.response),0===Q&&(Q=Ae?200:0);let Pe=Q>=200&&Q<300;if("json"===e.responseType&&"string"==typeof Ae){const Le=Ae;Ae=Ae.replace(Ose,"");try{Ae=""!==Ae?JSON.parse(Ae):null}catch($e){Ae=Le,Pe&&(Pe=!1,Ae={error:$e,text:Ae})}}Pe?(a.next(new vh({body:Ae,headers:U,status:Q,statusText:de,url:he||void 0})),a.complete()):a.error(new yh({error:Ae,headers:U,status:Q,statusText:de,url:he||void 0}))},_=U=>{const{url:Q}=d(),de=new yh({error:U,status:s.status||0,statusText:s.statusText||"Unknown Error",url:Q||void 0});a.error(de)};let b=!1;const C=U=>{b||(a.next(d()),b=!0);let Q={type:oc.DownloadProgress,loaded:U.loaded};U.lengthComputable&&(Q.total=U.total),"text"===e.responseType&&s.responseText&&(Q.partialText=s.responseText),a.next(Q)},k=U=>{let Q={type:oc.UploadProgress,loaded:U.loaded};U.lengthComputable&&(Q.total=U.total),a.next(Q)};return s.addEventListener("load",h),s.addEventListener("error",_),s.addEventListener("timeout",_),s.addEventListener("abort",_),e.reportProgress&&(s.addEventListener("progress",C),null!==o&&s.upload&&s.upload.addEventListener("progress",k)),s.send(o),a.next({type:oc.Sent}),()=>{s.removeEventListener("error",_),s.removeEventListener("abort",_),s.removeEventListener("load",h),s.removeEventListener("timeout",_),e.reportProgress&&(s.removeEventListener("progress",C),null!==o&&s.upload&&s.upload.removeEventListener("progress",k)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(i){return new(i||t)(Fe(bB))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const UM=new Qe(""),Y4=new Qe("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),$4=new Qe("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class W4{}let Use=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_B(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(Y4))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function Hse(t,n){const e=t.url.toLowerCase();if(!ye(UM)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ye(W4).getToken(),r=ye($4);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)}
1)),n(t)}const Wse=new Qe(""),Gse="b",qse="h",Kse="s",Zse="st",Qse="u",Xse="rt",HM=new Qe(""),Jse=["GET","HEAD"];function eoe(t,n){const{isCacheActive:e,...i}=ye(HM),{transferCache:r,method:a}=t;if(!e||!1===r||"POST"===a&&!i.includePostRequests&&!r||"POST"!==a&&!Jse.includes(a)||!i.includeRequestsWithAuthHeaders&&function toe(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}(t)||!1===i.filter?.(t))return n(t);const s=ye(jd);if(ye(Wse,{optional:!0}))throw new Ye(2803,!1);const d=function noe(t,n){const{params:e,method:i,responseType:r}=t,a=q4(e);let s=t.serializeBody();s instanceof URLSearchParams?s=q4(s):"string"!=typeof s&&(s="");const l=function ioe(t){let n=0;for(const e of t)n=Math.imul(31,n)+e.charCodeAt(0)|0;return n+=2147483648,n.toString()}([i,r,n,s,a].join("|"));return l}(t,t.url),h=s.get(d,null);let _=i.includeHeaders;if("object"==typeof r&&r.includeHeaders&&(_=r.includeHeaders),h){const{[Gse]:b,[Xse]:C,[qse]:k,[Kse]:U,[Zse]:Q,[Qse]:de}=h;let he=b;switch(C){case"arraybuffer":he=(new TextEncoder).encode(b).buffer;break;case"blob":he=new Blob([b])}let Ae=new Es(k);return At(new vh({body:he,headers:Ae,status:U,statusText:Q,url:de}))}return n(t).pipe(Vr(b=>{}))}function q4(t){return[...t.keys()].sort().map(n=>`${n}=${t.getAll(n)}`).join("&")}function roe(t){return[{provide:HM,useFactory:()=>(Xa("NgHttpTransferCache"),{isCacheActive:!0,...t})},{provide:V4,useValue:eoe,multi:!0},{provide:oh,multi:!0,useFactory:()=>{const n=ye(Ga),e=ye(HM);return()=>{n.whenStable().then(()=>{e.isCacheActive=!1})}}}]}let aoe=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(Fe(Tn))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Q4=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:function(i){let r=null;return r=i?new(i||t):Fe(coe),r},providedIn:"root"})}return t})(),coe=(()=>{class t extends Q4{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Lo.NONE:return i;case Lo.HTML:return Jl(i,"HTML")?ro(i):lP(this._doc,String(i)).toString();case Lo.STYLE:return Jl(i,"Style")?ro(i):i;case Lo.SCRIPT:if(Jl(i,"Script"))return ro(i);throw new Ye(5200,!1);case Lo.URL:return Jl(i,"URL")?ro(i):Nb(String(i));case Lo.RESOURCE_URL:if(Jl(i,"ResourceURL"))return ro(i);throw new Ye(5201,!1);default:throw new Ye(5202,!1)}}bypassSecurityTrustHtml(e){return function bG(t){return new pG(t)}(e)}bypassSecurityTrustStyle(e){return function CG(t){return new mG(t)}(e)}bypassSecurityTrustScript(e){return function wG(t){return new gG(t)}(e)}bypassSecurityTrustUrl(e){return function DG(t){return new _G(t)}(e)}bypassSecurityTrustResourceUrl(e){return function SG(t){return new vG(t)}(e)}static \u0275fac=function(i){return new(i||t)(Fe(Tn))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var su=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(su||{});const Pn="primary",L_=Symbol("RouteTitle");class uoe{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Gp(t){return new uoe(t)}function hoe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let a=0;a<i.length;a++){const s=i[a],o=t[a];if(":"===s[0])r[s.substring(1)]=o;else if(s!==o.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function lc(t,n){const e=t?jM(t):void 0,i=n?jM(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let a=0;a<e.length;a++)if(r=e[a],!X4(t[r],n[r]))return!1;return!0}function jM(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function X4(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,a)=>i[a]===r)}return t===n}function J4(t){return t.length>0?t[t.length-1]:null}function ou(t){return eu(t)?t:l_(t)?ca(Promise.resolve(t)):At(t)}
1const poe={exact:function n5(t,n,e){if(!wh(t.segments,n.segments)||!n1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!n5(t.children[i],n.children[i],e))return!1;return!0},subset:r5},e5={exact:function moe(t,n){return lc(t,n)},subset:function goe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>X4(t[e],n[e]))},ignored:()=>!0};function t5(t,n,e){return poe[e.paths](t.root,n.root,e.matrixParams)&&e5[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function r5(t,n,e){return a5(t,n,n.segments,e)}function a5(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!wh(r,e)||n.hasChildren()||!n1(r,e,i))}if(t.segments.length===e.length){if(!wh(t.segments,e)||!n1(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!r5(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),a=e.slice(t.segments.length);return!!(wh(t.segments,r)&&n1(t.segments,r,i)&&t.children[Pn])&&a5(t.children[Pn],n,a,i)}}function n1(t,n,e){return n.every((i,r)=>e5[e](t[r].parameters,i.parameters))}class Ch{root;queryParams;fragment;_queryParamMap;constructor(n=new Oi([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Gp(this.queryParams),this._queryParamMap}toString(){return yoe.serialize(this)}}class Oi{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return a1(this)}}class F_{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Gp(this.parameters),this._parameterMap}toString(){return l5(this)}}function wh(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let B_=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>new r1,providedIn:"root"})}return t})();class r1{parse(n){const e=new Aoe(n);return new Ch(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${V_(n.root,!0)}`,i=function woe(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${s1(e)}=${s1(r)}`).join("&"):`${s1(e)}=${s1(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function boe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const yoe=new r1;function a1(t){return t.segments.map(n=>l5(n)).join("/")}function V_(t,n){if(!t.hasChildren())return a1(t);if(n){const e=t.children[Pn]?V_(t.children[Pn],!1):"",i=[];return Object.entries(t.children).forEach(([r,a])=>{r!==Pn&&i.push(`${r}:${V_(a,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function voe(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===Pn&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==Pn&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===Pn?[V_(t.children[Pn],!1)]:[`${r}:${V_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Pn]?`${a1(t)}/${e[0]}`:`${a1(t)}/(${e.join("//")})`}}function s5(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function s1(t){return s5(t).replace(/%3B/gi,";")}function zM(t){return s5(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function o1(t){return decodeURIComponent(t)}function o5(t){return o1(t.replace(/\+/g,"%20"))}function l5(t){return`${zM(t.path)}${function Coe(t){return Object.entries(t).map(([n,e])=>`;${zM(n)}=${zM(e)}`).join("")}(t.parameters)}`}const Doe=/^[^\/()?;#]+/;function YM(t){const n=t.match(Doe);return n?n[0]:""}const Soe=/^[^\/()?;=#]+/,xoe=/^[^=?&#]+/,Eoe=/^[^&#]+/;class Aoe{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oi([],{}):new Oi([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}
1parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Pn]=new Oi(n,e)),i}parseSegment(){const n=YM(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Ye(4009,!1);return this.capture(n),new F_(o1(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Toe(t){const n=t.match(Soe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=YM(this.remaining);r&&(i=r,this.capture(i))}n[o1(e)]=o1(i)}parseQueryParam(n){const e=function Moe(t){const n=t.match(xoe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function Ioe(t){const n=t.match(Eoe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=o5(e),a=o5(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(a)}else n[r]=a}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=YM(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Ye(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=Pn);const s=this.parseChildren();e[a]=1===Object.keys(s).length?s[Pn]:new Oi([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Ye(4011,!1)}}function c5(t){return t.segments.length>0?new Oi([],{[Pn]:t}):t}function d5(t){const n={};for(const[i,r]of Object.entries(t.children)){const a=d5(r);if(i===Pn&&0===a.segments.length&&a.hasChildren())for(const[s,o]of Object.entries(a.children))n[s]=o;else(a.segments.length>0||a.hasChildren())&&(n[i]=a)}return function koe(t){if(1===t.numberOfChildren&&t.children[Pn]){const n=t.children[Pn];return new Oi(t.segments.concat(n.segments),n.children)}return t}(new Oi(t.segments,n))}function Dh(t){return t instanceof Ch}function u5(t){let n;const r=c5(function e(a){const s={};for(const l of a.children){const d=e(l);s[l.outlet]=d}const o=new Oi(a.url,s);return a===t&&(n=o),o}(t.root));return n??r}function h5(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return $M(r,r,r,e,i);const a=function Roe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new p5(!0,0,t);let n=0,e=!1;const i=t.reduce((r,a,s)=>{if("object"==typeof a&&null!=a){if(a.outlets){const o={};return Object.entries(a.outlets).forEach(([l,d])=>{o[l]="string"==typeof d?d.split("/"):d}),[...r,{outlets:o}]}if(a.segmentPath)return[...r,a.segmentPath]}return"string"!=typeof a?[...r,a]:0===s?(a.split("/").forEach((o,l)=>{0==l&&"."===o||(0==l&&""===o?e=!0:".."===o?n++:""!=o&&r.push(o))}),r):[...r,a]},[]);return new p5(e,n,i)}(n);if(a.toRoot())return $M(r,r,new Oi([],{}),e,i);const s=function Poe(t,n,e){if(t.isAbsolute)return new c1(n,!0,0);if(!e)return new c1(n,!1,NaN);if(null===e.parent)return new c1(e,!0,0);const i=l1(t.commands[0])?0:1;return function Ooe(t,n,e){let i=t,r=n,a=e;for(;a>r;){if(a-=r,i=i.parent,!i)throw new Ye(4005,!1);r=i.segments.length}return new c1(i,!1,r-a)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(a,r,t),o=s.processChildren?H_(s.segmentGroup,s.index,a.commands):m5(s.segmentGroup,s.index,a.commands);return $M(r,s.segmentGroup,o,e,i)}function l1(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function U_(t){return"object"==typeof t&&null!=t&&t.outlets}function $M(t,n,e,i,r){let s,a={};
1i&&Object.entries(i).forEach(([l,d])=>{a[l]=Array.isArray(d)?d.map(h=>`${h}`):`${d}`}),s=t===n?e:f5(t,n,e);const o=c5(d5(s));return new Ch(o,a,r)}function f5(t,n,e){const i={};return Object.entries(t.children).forEach(([r,a])=>{i[r]=a===n?e:f5(a,n,e)}),new Oi(t.segments,i)}class p5{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&l1(i[0]))throw new Ye(4003,!1);const r=i.find(U_);if(r&&r!==J4(i))throw new Ye(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class c1{segmentGroup;processChildren;index;constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function m5(t,n,e){if(t??=new Oi([],{}),0===t.segments.length&&t.hasChildren())return H_(t,n,e);const i=function Foe(t,n,e){let i=0,r=n;const a={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return a;const s=t.segments[r],o=e[i];if(U_(o))break;const l=`${o}`,d=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&d&&"object"==typeof d&&void 0===d.outlets){if(!_5(l,d,s))return a;i+=2}else{if(!_5(l,{},s))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}
1(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const a=new Oi(t.segments.slice(0,i.pathIndex),{});return a.children[Pn]=new Oi(t.segments.slice(i.pathIndex),t.children),H_(a,0,r)}return i.match&&0===r.length?new Oi(t.segments,{}):i.match&&!t.hasChildren()?WM(t,n,e):i.match?H_(t,0,r):WM(t,n,e)}function H_(t,n,e){if(0===e.length)return new Oi(t.segments,{});{const i=function Loe(t){return U_(t[0])?t[0].outlets:{[Pn]:t}}(e),r={};if(Object.keys(i).some(a=>a!==Pn)&&t.children[Pn]&&1===t.numberOfChildren&&0===t.children[Pn].segments.length){const a=H_(t.children[Pn],n,e);return new Oi(t.segments,a.children)}return Object.entries(i).forEach(([a,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[a]=m5(t.children[a],n,s))}),Object.entries(t.children).forEach(([a,s])=>{void 0===i[a]&&(r[a]=s)}),new Oi(t.segments,r)}}function WM(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const a=e[r];if(U_(a)){const l=Boe(a.outlets);return new Oi(i,l)}if(0===r&&l1(e[0])){i.push(new F_(t.segments[n].path,g5(e[0]))),r++;continue}const s=U_(a)?a.outlets[Pn]:`${a}`,o=r<e.length-1?e[r+1]:null;s&&o&&l1(o)?(i.push(new F_(s,g5(o))),r+=2):(i.push(new F_(s,{})),r++)}return new Oi(i,{})}function Boe(t){const n={};return Object.entries(t).forEach(([e,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=WM(new Oi([],{}),0,i))}),n}function g5(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function _5(t,n,e){return t==e.path&&lc(n,e.parameters)}const d1="imperative";var oi=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(oi||{});class cc{id;url;constructor(n,e){this.id=n,this.url=e}}class u1 extends cc{type=oi.NavigationStart;navigationTrigger;restoredState;constructor(n,e,i="imperative",r=null){super(n,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ed extends cc{urlAfterRedirects;type=oi.NavigationEnd;constructor(n,e,i){super(n,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var lo=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(lo||{}),h1=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(h1||{});class Sh extends cc{reason;code;type=oi.NavigationCancel;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qp extends cc{reason;code;type=oi.NavigationSkipped;constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r}}class GM extends cc{error;target;type=oi.NavigationError;constructor(n,e,i,r){super(n,e),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class v5 extends cc{urlAfterRedirects;state;type=oi.RoutesRecognized;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Voe extends cc{urlAfterRedirects;state;type=oi.GuardsCheckStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uoe extends cc{urlAfterRedirects;state;shouldActivate;type=oi.GuardsCheckEnd;constructor(n,e,i,r,a){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=a}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Hoe extends cc{urlAfterRedirects;state;type=oi.ResolveStart;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class joe extends cc{urlAfterRedirects;state;type=oi.ResolveEnd;constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zoe{route;type=oi.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Yoe{route;type=oi.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $oe{snapshot;type=oi.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Woe{snapshot;type=oi.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Goe{snapshot;type=oi.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qoe{snapshot;type=oi.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class y5{routerEvent;position;anchor;type=oi.Scroll;constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class qM{}class f1{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}}function xl(t){return t.outlet||Pn}function j_(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ele{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return j_(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new z_(this.rootInjector)}}let z_=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);
1i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new ele(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(Fe(Wr))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class b5{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=KM(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=KM(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=ZM(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return ZM(n,this._root).map(e=>e.value)}}function KM(t,n){if(t===n.value)return n;for(const e of n.children){const i=KM(t,e);if(i)return i}return null}function ZM(t,n){if(t===n.value)return[n];for(const e of n.children){const i=ZM(t,e);if(i.length)return i.unshift(n),i}return[]}class Ml{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Kp(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class C5 extends b5{snapshot;constructor(n,e){super(n),this.snapshot=e,QM(this,n)}toString(){return this.snapshot.toString()}}function w5(t){const n=function tle(t){const a=new m1([],{},{},"",{},Pn,t,null,{});return new D5("",new Ml(a,[]))}(t),e=new an([new F_("",{})]),i=new an({}),r=new an({}),a=new an({}),s=new an(""),o=new Da(e,i,a,s,r,Pn,t,n.root);return o.snapshot=n.root,new C5(new Ml(o,[]),n)}class Da{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,i,r,a,s,o,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=a,this.outlet=s,this.component=o,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Ot(d=>d[L_]))??At(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=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.params.pipe(Ot(n=>Gp(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ot(n=>Gp(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function p1(t,n,e="emptyOnly"){let i;const{routeConfig:r}=t;return i=null===n||"always"!==e&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...r?.data,...t._resolvedData}},r&&T5(r)&&(i.resolve[L_]=r.title),i}class m1{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[L_]}constructor(n,e,i,r,a,s,o,l,d){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=s,this.component=o,this.routeConfig=l,this._resolve=d}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??=Gp(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gp(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class D5 extends b5{url;constructor(n,e){super(e),this.url=n,QM(this,e)}toString(){return S5(this._root)}}
1function QM(t,n){n.value._routerState=t,n.children.forEach(e=>QM(t,e))}function S5(t){const n=t.children.length>0?` { ${t.children.map(S5).join(", ")} } `:"";return`${t.value}${n}`}function XM(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,lc(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),lc(n.params,e.params)||t.paramsSubject.next(e.params),function foe(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!lc(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.urlSubject.next(e.url),lc(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function JM(t,n){const e=lc(t.params,n.params)&&function _oe(t,n){return wh(t,n)&&t.every((e,i)=>lc(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||JM(t.parent,n.parent))}function T5(t){return"string"==typeof t.title||null===t.title}const nle=new Qe("");let eE=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Pn;activateEvents=new Xe;deactivateEvents=new Xe;attachEvents=new Xe;detachEvents=new Xe;routerOutletData=X$(void 0);parentContexts=ye(z_);location=ye(Wa);changeDetector=ye(gr);inputBinder=ye(g1,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ye(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ye(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ye(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Ye(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new ile(e,o,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=lt({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ci]})}return t})();class ile{route;childContexts;parent;outletData;constructor(n,e,i,r){this.route=n,this.childContexts=e,this.parent=i,this.outletData=r}get(n,e){return n===Da?this.route:n===z_?this.childContexts:n===nle?this.outletData:this.parent.get(n,e)}}const g1=new Qe("");let x5=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=Tl([i.queryParams,i.params,i.data]).pipe(Kr(([a,s,o],l)=>(o={...a,...s,...o},0===l?At(o):Promise.resolve(o)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function tie(t){const n=Rn(t);if(!n)return null;const e=new i_(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:o}of s.inputs)e.activatedComponentRef.setInput(o,a[o]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})(),M5=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=vt({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,r){1&i&&fe(0,"router-outlet")},dependencies:[eE],encapsulation:2})}return t})();function tE(t){const n=t.children&&t.children.map(tE),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Pn&&(e.component=M5),e}function Y_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;
1const r=function ale(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Y_(t,i,r);return Y_(t,i)})}(t,n,e);return new Ml(i,r)}{if(t.shouldAttach(n.value)){const a=t.retrieve(n.value);if(null!==a){const s=a.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(o=>Y_(t,o)),s}}const i=function sle(t){return new Da(new an(t.url),new an(t.params),new an(t.queryParams),new an(t.fragment),new an(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(a=>Y_(t,a));return new Ml(i,r)}}class nE{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}}const E5="ngNavigationCancelingError";function _1(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Dh(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=I5(!1,lo.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function I5(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[E5]=!0,e.cancellationCode=n,e}function A5(t){return!!t&&t[E5]}class cle{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,i,r,a){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=a}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),XM(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Kp(e);n.children.forEach(a=>{const s=a.value.outlet;this.deactivateRoutes(a,r[s],i),delete r[s]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,i)})}deactivateRoutes(n,e,i){const r=n.value,a=e?e.value:null;if(r===a)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else a&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,a=Kp(n);for(const s of Object.values(a))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),o=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:o})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,a=Kp(n);for(const s of Object.values(a))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const r=Kp(e);n.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],i),this.forwardEvent(new qoe(a.value.snapshot))}),n.children.length&&this.forwardEvent(new Woe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,a=e?e.value:null;if(XM(r),r===a)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),XM(o.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}}class k5{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class v1{component;route;constructor(n,e){this.component=n,this.route=e}}function dle(t,n,e){const i=t._root;return $_(i,n?n._root:null,e,[i.value])}function Zp(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function Ry(t){return null!==To(t)}(t)?n.get(t):t:i}function $_(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=Kp(n);
1return t.children.forEach(s=>{(function hle(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const a=t.value,s=n?n.value:null,o=e?e.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){const l=function fle(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!wh(t.url,n.url);case"pathParamsOrQueryParamsChange":return!wh(t.url,n.url)||!lc(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!JM(t,n)||!lc(t.queryParams,n.queryParams);default:return!JM(t,n)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new k5(i)):(a.data=s.data,a._resolvedData=s._resolvedData),$_(t,n,a.component?o?o.children:null:e,i,r),l&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new v1(o.outlet.component,s))}else s&&W_(n,o,r),r.canActivateChecks.push(new k5(i)),$_(t,null,a.component?o?o.children:null:e,i,r)})(s,a[s.value.outlet],e,i.concat([s.value]),r),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,o])=>W_(o,e.getContext(s),r)),r}function W_(t,n,e){const i=Kp(t),r=t.value;Object.entries(i).forEach(([a,s])=>{W_(s,r.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new v1(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function G_(t){return"function"==typeof t}function N5(t){return t instanceof K0||"EmptyError"===t?.name}const y1=Symbol("INITIAL_VALUE");function Qp(){return Kr(t=>Tl(t.map(n=>n.pipe(Yn(1),iu(y1)))).pipe(Ot(n=>{for(const e of n)if(!0!==e){if(e===y1)return y1;if(!1===e||ble(e))return e}return!0}),Cn(n=>n!==y1),Yn(1)))}function ble(t){return Dh(t)||t instanceof nE}function R5(t){return function xt(...t){return cr(t)}(Vr(n=>{if("boolean"!=typeof n)throw _1(0,n)}),Ot(n=>!0===n))}class iE{segmentGroup;constructor(n){this.segmentGroup=n||null}}class rE extends Error{urlTree;constructor(n){super(),this.urlTree=n}}function Xp(t){return Ms(new iE(t))}class Rle{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return At(i);if(r.numberOfChildren>1||!r.children[Pn])return Ms(new Ye(4e3,!1));r=r.children[Pn]}}applyRedirectCommands(n,e,i,r,a){if("string"!=typeof e){const o=e,{queryParams:l,fragment:d,routeConfig:h,url:_,outlet:b,params:C,data:k,title:U}=r,Q=f(a,()=>o({params:C,data:k,queryParams:l,fragment:d,routeConfig:h,url:_,outlet:b,title:U}));if(Q instanceof Ch)throw new rE(Q);e=Q}const s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if("/"===e[0])throw new rE(s);return s}applyRedirectCreateUrlTree(n,e,i,r){const a=this.createSegmentGroup(n,e.root,i,r);return new Ch(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,a])=>{if("string"==typeof a&&":"===a[0]){const o=a.substring(1);i[r]=e[o]}else i[r]=a}),i}createSegmentGroup(n,e,i,r){const a=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([o,l])=>{s[o]=this.createSegmentGroup(n,l,i,r)}),new Oi(a,s)}createSegments(n,e,i,r){return e.map(a=>":"===a.path[0]?this.findPosParam(n,a,r):this.findOrReturn(a,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Ye(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const aE={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ple(t,n,e,i,r){const a=P5(t,n,e);return a.matched?(i=function Koe(t,n){return t.providers&&!t._injector&&(t._injector=e0(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Ale(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?At(r.map(s=>{const o=Zp(s,t);return ou(function yle(t){return t&&G_(t.canMatch)}(o)?o.canMatch(n,e):f(t,()=>o(n,e)))})).pipe(Qp(),R5()):At(!0)}(i,n,e).pipe(Ot(s=>!0===s?a:{...aE}))):At(a)}function P5(t,n,e){if("**"===n.path)return function Ole(t){return{matched:!0,parameters:t.length>0?J4(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...aE}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||hoe)(e,t,n);if(!r)return{...aE};const a={};Object.entries(r.posParams??{}
1).forEach(([o,l])=>{a[o]=l.path});const s=r.consumed.length>0?{...a,...r.consumed[r.consumed.length-1].parameters}:a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function O5(t,n,e,i){return e.length>0&&function Ble(t,n,e){return e.some(i=>b1(t,n,i)&&xl(i)!==Pn)}(t,e,i)?{segmentGroup:new Oi(n,Fle(i,new Oi(e,t.children))),slicedSegments:[]}:0===e.length&&function Vle(t,n,e){return e.some(i=>b1(t,n,i))}(t,e,i)?{segmentGroup:new Oi(t.segments,Lle(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Oi(t.segments,t.children),slicedSegments:e}}function Lle(t,n,e,i){const r={};for(const a of e)if(b1(t,n,a)&&!i[xl(a)]){const s=new Oi([],{});r[xl(a)]=s}return{...i,...r}}function Fle(t,n){const e={};e[Pn]=n;for(const i of t)if(""===i.path&&xl(i)!==Pn){const r=new Oi([],{});e[xl(i)]=r}return e}function b1(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Hle{}class Yle{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,i,r,a,s,o){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=o,this.applyRedirects=new Rle(this.urlSerializer,this.urlTree)}noMatchError(n){return new Ye(4002,`'${n.segmentGroup}'`)}recognize(){const n=O5(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Ot(({children:e,rootSnapshot:i})=>{const r=new Ml(i,e),a=new D5("",r),s=function Noe(t,n,e=null,i=null){return h5(u5(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),{state:a,tree:s}}))}match(n){const e=new m1([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Pn,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,Pn,e).pipe(Ot(i=>({children:i,rootSnapshot:e})),ts(i=>{if(i instanceof rE)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof iE?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,a){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i,a):this.processSegment(n,e,i,i.segments,r,!0,a).pipe(Ot(s=>s instanceof Ml?[s]:[]))}processChildren(n,e,i,r){const a=[];for(const s of Object.keys(i.children))"primary"===s?a.unshift(s):a.push(s);return ca(a).pipe(_h(s=>{const o=i.children[s],l=function Joe(t,n){const e=t.filter(i=>xl(i)===n);return e.push(...t.filter(i=>xl(i)!==n)),e}(e,s);return this.processSegmentGroup(n,l,o,s,r)}),M4((s,o)=>(s.push(...o),s)),Z0(null),function _se(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Cn((r,a)=>t(r,a,i)):Fn,RM(1),e?Z0(n):x4(()=>new K0))}(),Ra(s=>{if(null===s)return Xp(i);const o=L5(s);return function $le(t){t.sort((n,e)=>n.value.outlet===Pn?-1:e.value.outlet===Pn?1:n.value.outlet.localeCompare(e.value.outlet))}(o),At(o)}))}processSegment(n,e,i,r,a,s,o){return ca(e).pipe(_h(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,a,s,o).pipe(ts(d=>{if(d instanceof iE)return At(null);throw d}))),gh(l=>!!l),ts(l=>{if(N5(l))return function Ule(t,n,e){return 0===n.length&&!t.children[e]}(i,r,a)?At(new Hle):Xp(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,a,s,o,l){return xl(i)===s||s!==Pn&&b1(r,a,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,a,s,l):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,a,s,l):Xp(r):Xp(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,a,s,o){const{matched:l,parameters:d,consumedSegments:h,positionalParamSegments:_,remainingSegments:b}=P5(e,r,a);if(!l)return Xp(e);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const C=new m1(a,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,F5(r),xl(r),r.component??r._loadedComponent??null,r,B5(r)),k=p1(C,o,this.paramsInheritanceStrategy);C.params=Object.freeze(k.params),C.data=Object.freeze(k.data);const U=this.applyRedirects.applyRedirectCommands(h,r.redirectTo,_,C,n);return this.applyRedirects.lineralizeSegments(r,U).pipe(Ra(Q=>this.processSegment(n,i,e,Q.concat(b),s,!1,o)))}matchSegmentAgainstRoute(n,e,i,r,a,s){const o=Ple(e,i,r,n);return"**"===i.path&&(e.children={}),o.pipe(Kr(l=>l.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Kr(({routes:d})=>{const h=i._loadedInjector??n,{parameters:_,consumedSegments:b,remainingSegments:C}=l,k=new m1(b,_,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,F5(i),xl(i),i.component??i._loadedComponent??null,i,B5(i)),U=p1(k,s,this.paramsInheritanceStrategy);k.params=Object.freeze(U.params),k.data=Object.freeze(U.data);const{segmentGroup:Q,slicedSegments:de}=O5(e,b,C,d);if(0===de.length&&Q.hasChildren())return this.processChildren(h,d,Q,k).pipe(Ot(Ae=>new Ml(k,Ae)));if(0===d.length&&0===de.length)return At(new Ml(k,[]));const he=xl(i)===a;return this.processSegment(h,d,Q,de,he?Pn:a,!0,k).pipe(Ot(Ae=>new Ml(k,Ae instanceof Ml?[Ae]:[])))})):Xp(e)))}getChildConfig(n,e,i){return e.children?At({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?At({routes:e._loadedRoutes,injector:e._loadedInjector}):function Ile(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?At(!0):At(r.map(s=>{const o=Zp(s,t);return ou(function mle(t){return t&&G_(t.canLoad)}(o)?o.canLoad(n,e):f(t,()=>o(n,e)))})).pipe(Qp(),R5())}(n,e,i).pipe(Ra(r=>r?this.configLoader.loadChildren(n,e).pipe(Vr(a=>{e._loadedRoutes=a.routes,e._loadedInjector=a.injector})):function Nle(){return Ms(I5(!1,lo.GuardRejected))}
1())):At({routes:[],injector:n})}}function Wle(t){const n=t.value.routeConfig;return n&&""===n.path}function L5(t){const n=[],e=new Set;for(const i of t){if(!Wle(i)){n.push(i);continue}const r=n.find(a=>i.value.routeConfig===a.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=L5(i.children);n.push(new Ml(i.value,r))}return n.filter(i=>!e.has(i))}function F5(t){return t.data||{}}function B5(t){return t.resolve||{}}function V5(t){const n=t.children.map(e=>V5(e)).flat();return[t,...n]}function sE(t){return Kr(n=>{const e=t(n);return e?ca(e).pipe(Ot(()=>n)):At(n)})}let U5=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===Pn);return i}getResolvedTitleForRoute(e){return e.data[L_]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(Xle),providedIn:"root"})}return t})(),Xle=(()=>{class t extends U5{title;constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(Fe(aoe))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const q_=new Qe("",{providedIn:"root",factory:()=>({})}),K_=new Qe("");let oE=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=ye(Pte);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return At(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=ou(e.loadComponent()).pipe(Ot(H5),Vr(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),Ca(()=>{this.componentLoaders.delete(e)})),r=new T4(i,()=>new nt).pipe(NM());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return At({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const a=function Jle(t,n,e,i){return ou(t.loadChildren()).pipe(Ot(H5),Ra(r=>r instanceof JO||Array.isArray(r)?At(r):ca(n.compileModuleAsync(r))),Ot(r=>{i&&i(t);let a,s,o=!1;return Array.isArray(r)?(s=r,!0):(a=r.create(e).injector,s=a.get(K_,[],{optional:!0,self:!0}).flat()),{routes:s.map(tE),injector:a}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(Ca(()=>{this.childrenLoaders.delete(i)})),s=new T4(a,()=>new nt).pipe(NM());return this.childrenLoaders.set(i,s),s}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function H5(t){return function ece(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let lE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(tce),providedIn:"root"})}return t})(),tce=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const j5=new Qe(""),z5=new Qe("");function nce(t,n,e){const i=t.get(z5),r=t.get(Tn);return t.get(_t).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(d=>setTimeout(d));let a;const s=new Promise(d=>{a=d}),o=r.startViewTransition(()=>(a(),function ice(t){return new Promise(n=>{vl({read:()=>setTimeout(n)},{injector:t})})}(t))),{onViewTransitionCreated:l}=i;return l&&f(t,()=>l({transition:o,from:n,to:e})),s})}const Y5=new Qe("");let cE=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new nt;transitionAbortSubject=new nt;configLoader=ye(oE);environmentInjector=ye(Wr);destroyRef=ye(ys);urlSerializer=ye(B_);rootContexts=ye(z_);location=ye(Jd);inputBindingEnabled=null!==ye(g1,{optional:!0});titleStrategy=ye(U5);options=ye(q_,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=ye(lE);
1createViewTransition=ye(j5,{optional:!0});navigationErrorHandler=ye(Y5,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>At(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=r=>this.events.next(new Yoe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new zoe(r)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...e,extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i})}setupNavigations(e){return this.transitions=new an(null),this.transitions.pipe(Cn(i=>null!==i),Kr(i=>{let r=!1,a=!1;return At(i).pipe(Kr(s=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",lo.SupersededByNewNavigation),Gs;this.currentTransition=i,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:"string"==typeof s.extras.browserUrl?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const o=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!o&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new qp(s.id,this.urlSerializer.serialize(s.rawUrl),d,h1.IgnoredSameUrlNavigation)),s.resolve(!1),Gs}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return At(s).pipe(Kr(d=>(this.events.next(new u1(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?Gs:Promise.resolve(d))),function Gle(t,n,e,i,r,a){return Ra(s=>function jle(t,n,e,i,r,a,s="emptyOnly"){return new Yle(t,n,e,i,r,s,a).recognize()}(t,n,e,i,s.extractedUrl,r,a).pipe(Ot(({state:o,tree:l})=>({...s,targetSnapshot:o,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Vr(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new v5(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(o&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){const{id:d,extractedUrl:h,source:_,restoredState:b,extras:C}=s,k=new u1(d,this.urlSerializer.serialize(h),_,b);this.events.next(k);const U=w5(this.rootComponentType).snapshot;return this.currentTransition=i={...s,targetSnapshot:U,urlAfterRedirects:h,extras:{...C,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,At(i)}{const d="";return this.events.next(new qp(s.id,this.urlSerializer.serialize(s.extractedUrl),d,h1.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Gs}}),Vr(s=>{const o=new Voe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(o)}),Ot(s=>(this.currentTransition=i={...s,guards:dle(s.targetSnapshot,s.currentSnapshot,this.rootContexts)},i)),function Cle(t,n){return Ra(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:s}}=e;return 0===s.length&&0===a.length?At({...e,guardsResult:!0}):function wle(t,n,e,i){return ca(t).pipe(Ra(r=>function Ele(t,n,e,i,r){const a=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return a&&0!==a.length?At(a.map(o=>{const l=j_(n)??r,d=Zp(o,l);return ou(function vle(t){return t&&G_(t.canDeactivate)}(d)?d.canDeactivate(t,n,e,i):f(l,()=>d(t,n,e,i))).pipe(gh())})).pipe(Qp()):At(!0)}(r.component,r.route,e,n,i)),gh(r=>!0!==r,!0))}(s,i,r,t).pipe(Ra(o=>o&&function ple(t){return"boolean"==typeof t}(o)?function Dle(t,n,e,i){return ca(n).pipe(_h(r=>nu(function Tle(t,n){return null!==t&&n&&n(new $oe(t)),At(!0)}(r.route.parent,i),function Sle(t,n){return null!==t&&n&&n(new Goe(t)),At(!0)}(r.route,i),function Mle(t,n,e){const i=n[n.length-1],a=n.slice(0,n.length-1).reverse().map(s=>function ule(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Wp(()=>At(s.guards.map(l=>{const d=j_(s.node)??e,h=Zp(l,d);return ou(function _le(t){return t&&G_(t.canActivateChild)}(h)?h.canActivateChild(i,t):f(d,()=>h(i,t))).pipe(gh())})).pipe(Qp())));return At(a).pipe(Qp())}
1(t,r.path,e),function xle(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return At(!0);const r=i.map(a=>Wp(()=>{const s=j_(n)??e,o=Zp(a,s);return ou(function gle(t){return t&&G_(t.canActivate)}(o)?o.canActivate(n,t):f(s,()=>o(n,t))).pipe(gh())}));return At(r).pipe(Qp())}(t,r.route,e))),gh(r=>!0!==r,!0))}(i,a,t,n):At(o)),Ot(o=>({...e,guardsResult:o})))})}(this.environmentInjector,s=>this.events.next(s)),Vr(s=>{if(i.guardsResult=s.guardsResult,s.guardsResult&&"boolean"!=typeof s.guardsResult)throw _1(0,s.guardsResult);const o=new Uoe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(o)}),Cn(s=>!!s.guardsResult||(this.cancelNavigationTransition(s,"",lo.GuardRejected),!1)),sE(s=>{if(0!==s.guards.canActivateChecks.length)return At(s).pipe(Vr(o=>{const l=new Hoe(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(l)}),Kr(o=>{let l=!1;return At(o).pipe(function qle(t,n){return Ra(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return At(e);const a=new Set(r.map(l=>l.route)),s=new Set;for(const l of a)if(!s.has(l))for(const d of V5(l))s.add(d);let o=0;return ca(s).pipe(_h(l=>a.has(l)?function Kle(t,n,e,i){const r=t.routeConfig,a=t._resolve;return void 0!==r?.title&&!T5(r)&&(a[L_]=r.title),function Zle(t,n,e,i){const r=jM(t);if(0===r.length)return At({});const a={};return ca(r).pipe(Ra(s=>function Qle(t,n,e,i){const r=j_(n)??i,a=Zp(t,r);return ou(a.resolve?a.resolve(n,e):f(r,()=>a(n,e)))}(t[s],n,e,i).pipe(gh(),Vr(o=>{if(o instanceof nE)throw _1(new r1,o);a[s]=o}))),RM(1),Ot(()=>a),ts(s=>N5(s)?Gs:Ms(s)))}(a,t,n,i).pipe(Ot(s=>(t._resolvedData=s,t.data=p1(t,t.parent,e).resolve,null)))}(l,i,t,n):(l.data=p1(l,l.parent,t).resolve,At(void 0))),Vr(()=>o++),RM(1),Ra(l=>o===s.size?At(e):Gs))})}(this.paramsInheritanceStrategy,this.environmentInjector),Vr({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(o,"",lo.NoDataFromResolver)}}))}),Vr(o=>{const l=new joe(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(l)}))}),sE(s=>{const o=l=>{const d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Vr(h=>{l.component=h}),Ot(()=>{})));for(const h of l.children)d.push(...o(h));return d};return Tl(o(s.targetSnapshot.root)).pipe(Z0(null),Yn(1))}),sE(()=>this.afterPreactivation()),Kr(()=>{const{currentSnapshot:s,targetSnapshot:o}=i,l=this.createViewTransition?.(this.environmentInjector,s.root,o.root);return l?ca(l).pipe(Ot(()=>i)):At(i)}),Ot(s=>{const o=function rle(t,n,e){const i=Y_(t,n._root,e?e._root:void 0);return new C5(i,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=i={...s,targetRouterState:o},this.currentNavigation.targetRouterState=o,i}),Vr(()=>{this.events.next(new qM)}),((t,n,e,i)=>Ot(r=>(new cle(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Yn(1),Vr({next:s=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ed(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{r=!0}}),Lt(this.transitionAbortSubject.pipe(Vr(s=>{throw s}))),Ca(()=>{!r&&!a&&this.cancelNavigationTransition(i,"",lo.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),ts(s=>{if(this.destroyed)return i.resolve(!1),Gs;if(a=!0,A5(s))this.events.next(new Sh(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode)),function ole(t){return A5(t)&&Dh(t.url)}(s)?this.events.next(new f1(s.url,s.navigationBehaviorOptions)):i.resolve(!1);else{const o=new GM(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);try{const l=f(this.environmentInjector,()=>this.navigationErrorHandler?.(o));if(!(l instanceof nE))throw this.events.next(o),s;{const{message:d,cancellationCode:h}=_1(0,l);this.events.next(new Sh(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new f1(l.redirectTo,l.navigationBehaviorOptions))}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Gs}))}))}cancelNavigationTransition(e,i,r){const a=new Sh(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rce(t){return t!==d1}let ace=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(oce),providedIn:"root"})}return t})();class sce{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}
1shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let oce=(()=>{class t extends sce{static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$5=(()=>{class t{urlSerializer=ye(B_);options=ye(q_,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=ye(Jd);urlHandlingStrategy=ye(lE);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ch;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:r}){const a=void 0!==e?this.urlHandlingStrategy.merge(e,i):i,s=r??a;return s instanceof Ch?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:r}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,r),this.routerState=e):this.rawUrlTree=r}routerState=w5(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:()=>ye(lce),providedIn:"root"})}return t})(),lce=(()=>{class t extends $5{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&setTimeout(()=>{e(i.url,i.state,"popstate")})})}handleRouterEvent(e,i){e instanceof u1?this.updateStateMemento():e instanceof qp?this.commitTransition(i):e instanceof v5?"eager"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof qM?(this.commitTransition(i),"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof Sh&&(e.code===lo.GuardRejected||e.code===lo.NoDataFromResolver)?this.restoreHistory(i):e instanceof GM?this.restoreHistory(i,!0):e instanceof ed&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:i,id:r}){const{replaceUrl:a,state:s}=i;if(this.location.isCurrentPathEqualTo(e)||a){const o=this.browserPageId,l={...s,...this.generateNgRouterState(r,o)};this.location.replaceState(e,"",l)}else{const o={...s,...this.generateNgRouterState(r,this.browserPageId+1)};this.location.go(e,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-this.browserPageId;0!==a?this.location.historyGo(a):this.getCurrentUrlTree()===e.finalUrl&&0===a&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function W5(t,n){t.events.pipe(Cn(e=>e instanceof ed||e instanceof Sh||e instanceof GM||e instanceof qp),Ot(e=>e instanceof ed||e instanceof qp?0:e instanceof Sh&&(e.code===lo.Redirect||e.code===lo.SupersededByNewNavigation)?2:1),Cn(e=>2!==e),Yn(1)).subscribe(()=>{n()})}const cce={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},dce={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let An=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=ye(c0);stateManager=ye($5);options=ye(q_,{optional:!0})||{};pendingTasks=ye(Hd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=ye(cE);
1urlSerializer=ye(B_);location=ye(Jd);urlHandlingStrategy=ye(lE);_events=new nt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=ye(ace);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=ye(K_,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!ye(g1,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new jt;subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(null!==r&&null!==a)if(this.stateManager.handleRouterEvent(i,a),i instanceof Sh&&i.code!==lo.Redirect&&i.code!==lo.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ed)this.navigated=!0;else if(i instanceof f1){const s=i.navigationBehaviorOptions,o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||rce(r.source),...s};this.scheduleNavigation(o,d1,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function hce(t){return!(t instanceof qM||t instanceof f1)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),d1,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,r)=>{this.navigateToSyncWithBrowser(e,r,i)})}navigateToSyncWithBrowser(e,i,r){const a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}const o=this.parseUrl(e);this.scheduleNavigation(o,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(tE),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:o,preserveFragment:l}=i,d=l?this.currentUrlTree.fragment:s;let _,h=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":h={...this.currentUrlTree.queryParams,...a};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=a||null}null!==h&&(h=this.removeEmptyProps(h));try{_=u5(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||"/"!==e[0][0])&&(e=[]),_=this.currentUrlTree.root}return h5(_,e,h,d??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Dh(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,d1,null,i)}navigate(e,i={skipLocationChange:!1}){return function uce(t){for(let n=0;n<t.length;n++)if(null==t[n])throw new Ye(4008,!1)}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(r=!0===i?{...cce}:!1===i?{...dce}:i,Dh(e))return t5(this.currentUrlTree,e,r);const a=this.parseUrl(e);return t5(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(null!=a&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let o,l,d;s?(o=s.resolve,l=s.reject,d=s.promise):d=new Promise((_,b)=>{o=_,l=b});const h=this.pendingTasks.add();return W5(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:o,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),d.catch(_=>Promise.reject(_))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ui=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new nt;constructor(e,i,r,a,s,o){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=o;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(d=>{d instanceof ed&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){null==e?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Dh(e)||Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,a,s){const o=this.urlTree;return!!(null===o||this.isAnchorElement&&(0!==e||i||r||a||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(o,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function cP(t,n,e){return function HG(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?XS:js}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const r=this.renderer,a=this.el.nativeElement;null!==i?r.setAttribute(a,e,i):r.removeAttribute(a,e)}get urlTree(){return null===this.routerLinkInput?null:Dh(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(G(An),G(Da),jc("tabindex"),G(zn),G(Bt),G(ph))};static \u0275dir=lt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&be("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&Kt("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ws],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ws],replaceUrl:[2,"replaceUrl","replaceUrl",Ws],routerLink:"routerLink"},features:[ci]})}return t})();class G5{}let mce=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,r,a){this.router=e,this.injector=i,this.preloadingStrategy=r,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Cn(e=>e instanceof ed),_h(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const a of i){a.providers&&!a._injector&&(a._injector=e0(a.providers,e,`Route: ${a.path}`));const s=a._injector??e,o=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&void 0===a.canLoad||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(o,a.children??a._loadedRoutes))}return ca(r).pipe($p())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):At(null);const a=r.pipe(Ra(s=>null===s?At(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?ca([a,this.loader.loadComponent(i)]).pipe($p()):a})}static \u0275fac=function(i){return new(i||t)(Fe(An),Fe(Wr),Fe(G5),Fe(oE))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const dE=new Qe("");let q5=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,r,a,s={}
1){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof u1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ed?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof qp&&e.code===h1.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof y5&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new y5(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){Jb()};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function K5(t){return t.routerState.root}function dc(t,n){return{\u0275kind:t,\u0275providers:n}}function Z5(){const t=ye(Ln);return n=>{const e=t.get(Ga);if(n!==e.components[0])return;const i=t.get(An),r=t.get(Q5);1===t.get(uE)&&i.initialNavigation(),t.get(X5,null,vn.Optional)?.setUpPreloading(),t.get(dE,null,vn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Q5=new Qe("",{factory:()=>new nt}),uE=new Qe("",{providedIn:"root",factory:()=>1}),X5=new Qe("");function bce(t){return dc(0,[{provide:X5,useExisting:mce},{provide:G5,useExisting:t}])}function wce(t){return Xa("NgRouterViewTransitions"),dc(9,[{provide:j5,useValue:nce},{provide:z5,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const Dce=[Jd,{provide:B_,useClass:r1},An,z_,{provide:Da,useFactory:K5,deps:[An]},oE,[]];let hi=(()=>{class t{constructor(){}static forRoot(e,i){return{ngModule:t,providers:[Dce,[],{provide:K_,multi:!0,useValue:e},[],i?.errorHandler?{provide:Y5,useValue:i.errorHandler}:[],{provide:q_,useValue:i||{}},i?.useHash?{provide:ph,useClass:hre}:{provide:ph,useClass:mB},{provide:dE,useFactory:()=>{const t=ye(Lie),n=ye(_t),e=ye(q_),i=ye(cE),r=ye(B_);return e.scrollOffset&&t.setOffset(e.scrollOffset),new q5(r,i,t,n,e)}},i?.preloadingStrategy?bce(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Mce(i):[],i?.bindToComponentInputs?dc(8,[x5,{provide:g1,useExisting:x5}]).\u0275providers:[],i?.enableViewTransitions?wce().\u0275providers:[],[{provide:J5,useFactory:Z5},{provide:oh,multi:!0,useExisting:J5}]]}}static forChild(e){return{ngModule:t,providers:[{provide:K_,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({})}return t})();function Mce(t){return["disabled"===t.initialNavigation?dc(3,[xL(()=>{ye(An).setUpLocationChangeListener()}),{provide:uE,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?dc(2,[{provide:uE,useValue:0},xL(()=>{const n=ye(Ln);return n.get(rie,Promise.resolve()).then(()=>new Promise(i=>{const r=n.get(An),a=n.get(Q5);W5(r,()=>{i(!0)}),n.get(cE).afterPreactivation=()=>(i(!0),a.closed?At(void 0):a),r.initialNavigation()}))})]).\u0275providers:[]]}const J5=new Qe("");function eV(...t){const n=q0(t),{args:e,keys:i}=w4(t),r=new Jt(a=>{const{length:s}=e;if(!s)return void a.complete();const o=new Array(s);let l=s,d=s;for(let h=0;h<s;h++){let _=!1;la(e[h]).subscribe(mi(a,b=>{_||(_=!0,d--),o[h]=b},()=>l--,void 0,()=>{(!l||!_)&&(d||a.next(i?D4(i,o):o),a.complete())}))}});return n?r.pipe(kM(n)):r}let tV=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(G(zn),G(Bt))};static \u0275dir=lt({type:t})}return t})(),Th=(()=>{class t extends tV{static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,features:[Sn]})}return t})();const ns=new Qe(""),Ice={provide:ns,useExisting:qt(()=>hE),multi:!0};let hE=(()=>{class t extends Th{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){1&i&&be("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[fn([Ice]),Sn]})}return t})();const Ace={provide:ns,useExisting:qt(()=>da),multi:!0},Nce=new Qe("");let da=(()=>{class t extends tV{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,null==this._compositionMode&&(this._compositionMode=!function kce(){const t=Xd()?Xd().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",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)}static \u0275fac=function(i){return new(i||t)(G(zn),G(Bt),G(Nce,8))};static \u0275dir=lt({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&be("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},standalone:!1,features:[fn([Ace]),Sn]})}return t})();function fE(t){return null==t||0===pE(t)}function pE(t){return null==t?null:Array.isArray(t)||"string"==typeof t?t.length:t instanceof Set?t.size:null}const ua=new Qe(""),lu=new Qe(""),Rce=/^(?=.{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 at{static min(n){return function nV(t){return n=>{if(null==n.value||null==t)return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(n)}static max(n){return function iV(t){return n=>{if(null==n.value||null==t)return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function rV(t){return fE(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function aV(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function sV(t){return fE(t.value)||Rce.test(t.value)?null:{email:!0}}(n)}static minLength(n){return oV(n)}static maxLength(n){return lV(n)}static pattern(n){return function cV(t){if(!t)return C1;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>
1{if(fE(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return mV(n)}static composeAsync(n){return gV(n)}}function oV(t){return n=>{const e=n.value?.length??pE(n.value);return null===e||0===e?null:e<t?{minlength:{requiredLength:t,actualLength:e}}:null}}function lV(t){return n=>{const e=n.value?.length??pE(n.value);return null!==e&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function C1(t){return null}function dV(t){return null!=t}function uV(t){return l_(t)?ca(t):t}function hV(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function fV(t,n){return n.map(e=>e(t))}function pV(t){return t.map(n=>function Pce(t){return!t.validate}(n)?n:e=>n.validate(e))}function mV(t){if(!t)return null;const n=t.filter(dV);return 0==n.length?null:function(e){return hV(fV(e,n))}}function mE(t){return null!=t?mV(pV(t)):null}function gV(t){if(!t)return null;const n=t.filter(dV);return 0==n.length?null:function(e){return eV(fV(e,n).map(uV)).pipe(Ot(hV))}}function gE(t){return null!=t?gV(pV(t)):null}function _V(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function vV(t){return t._rawValidators}function yV(t){return t._rawAsyncValidators}function _E(t){return t?Array.isArray(t)?t:[t]:[]}function w1(t,n){return Array.isArray(t)?t.includes(n):t===n}function bV(t,n){const e=_E(n);return _E(t).forEach(r=>{w1(e,r)||e.push(r)}),e}function CV(t,n){return _E(n).filter(e=>!w1(t,e))}class wV{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=mE(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=gE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Is extends wV{name;get formDirective(){return null}get path(){return null}}class cu extends wV{_parent=null;name=null;valueAccessor=null}class DV{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Ur=(()=>{class t extends DV{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(G(cu,2))};static \u0275dir=lt({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[Sn]})}return t})(),Zr=(()=>{class t extends DV{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(G(Is,10))};static \u0275dir=lt({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&Ct("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[Sn]})}return t})();const Z_="VALID",S1="INVALID",Jp="PENDING",Q_="DISABLED";class em{}class TV extends em{value;source;constructor(n,e){super(),this.value=n,this.source=e}}class bE extends em{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}}class CE extends em{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}}class T1 extends em{status;source;constructor(n,e){super(),this.status=n,this.source=e}}class xV extends em{source;constructor(n){super(),this.source=n}}class MV extends em{source;constructor(n){super(),this.source=n}}function wE(t){return(x1(t)?t.validators:t)||null}function DE(t,n){return(x1(n)?n.asyncValidators:t)||null}function x1(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function EV(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Ye(1e3,"");if(!i[e])throw new Ye(1001,"")}function IV(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Ye(1002,"")})}class M1{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return qr(this.statusReactive)}set status(n){qr(()=>this.statusReactive.set(n))}_status=sc(()=>this.statusReactive());statusReactive=io(void 0);get valid(){return this.status===Z_}get invalid(){return this.status===S1}get pending(){return this.status==Jp}get disabled(){return this.status===Q_}get enabled(){return this.status!==Q_}errors;get pristine(){return qr(this.pristineReactive)}set pristine(n){qr(()=>this.pristineReactive.set(n))}_pristine=sc(()=>this.pristineReactive());pristineReactive=io(!0);get dirty(){return!this.pristine}get touched(){return qr(this.touchedReactive)}set touched(n){qr(()=>this.touchedReactive.set(n))}_touched=sc(()=>this.touchedReactive());touchedReactive=io(!1);get untouched(){return!this.touched}_events=new nt;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(bV(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(bV(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(CV(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(CV(n,this._rawAsyncValidators))}hasValidator(n){return w1(this._rawValidators,n)}hasAsyncValidator(n){return w1(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const e=!1===this.touched;this.touched=!0;const i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:i}),e&&!1!==n.emitEvent&&this._events.next(new CE(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}
1),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){const e=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&!1!==n.emitEvent&&this._events.next(new CE(!1,i))}markAsDirty(n={}){const e=!0===this.pristine;this.pristine=!1;const i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:i}),e&&!1!==n.emitEvent&&this._events.next(new bE(!1,i))}markAsPristine(n={}){const e=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&!1!==n.emitEvent&&this._events.next(new bE(!0,i))}markAsPending(n={}){this.status=Jp;const e=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new T1(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:e})}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Q_,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue();const i=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new TV(this.value,i)),this._events.next(new T1(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e},this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Z_,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e},this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z_||this.status===Jp)&&this._runAsyncValidator(i,n.emitEvent)}const e=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new TV(this.value,e)),this._events.next(new T1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:e})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Q_:Z_}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Jp,this._hasOwnPendingAsyncValidator={emitEvent:!1!==e};const i=uV(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent,this,e.shouldHaveEmitted)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new T1(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new Xe,this.statusChanges=new Xe}_calculateStatus(){return this._allControlsDisabled()?Q_:this.errors?S1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Jp)?Jp:this._anyControlsHaveStatus(S1)?S1:Z_}
1_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){const i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new bE(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new CE(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){x1(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Hce(t){return Array.isArray(t)?mE(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function jce(t){return Array.isArray(t)?gE(t):t||null}(this._rawAsyncValidators)}}class X_ extends M1{constructor(n,e,i){super(wE(e),DE(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){IV(this,0,n),Object.keys(n).forEach(i=>{EV(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,a)=>{i=e(i,r,a)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class AV extends X_{}const xh=new Qe("",{providedIn:"root",factory:()=>J_}),J_="always";function E1(t,n){return[...n.path,t]}function ev(t,n,e=J_){SE(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Yce(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&kV(t,n)})}(t,n),function Wce(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)}
1)}(t,n),function $ce(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&kV(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function zce(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function I1(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),k1(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function A1(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function SE(t,n){const e=vV(t);null!==n.validator?t.setValidators(_V(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=yV(t);null!==n.asyncValidator?t.setAsyncValidators(_V(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();A1(n._rawValidators,r),A1(n._rawAsyncValidators,r)}function k1(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=vV(t);if(Array.isArray(r)&&r.length>0){const a=r.filter(s=>s!==n.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(null!==n.asyncValidator){const r=yV(t);if(Array.isArray(r)&&r.length>0){const a=r.filter(s=>s!==n.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}const i=()=>{};return A1(n._rawValidators,i),A1(n._rawAsyncValidators,i),e}function kV(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function xE(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function ME(t,n){if(!n)return null;let e,i,r;
1return Array.isArray(n),n.forEach(a=>{a.constructor===da?e=a:function Kce(t){return Object.getPrototypeOf(t.constructor)===Th}(a)?i=a:r=a}),r||i||e||null}function PV(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function OV(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}Promise.resolve();const nv=class extends M1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(wE(e),DE(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),x1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=OV(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){PV(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){PV(this._onDisabledChange,n)}_forEachChild(n){}_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(n){OV(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let R1=(()=>{class t extends Is{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return E1(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,standalone:!1,features:[Sn]})}return t})();const nde={provide:cu,useExisting:qt(()=>iv)},LV=Promise.resolve();let iv=(()=>{class t extends cu{_changeDetectorRef;callSetDisabledState;control=new nv;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Xe;constructor(e,i,r,a,s,o){super(),this._changeDetectorRef=s,this.callSetDisabledState=o,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ME(0,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),xE(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(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(){ev(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){LV.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Ws(i);LV.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?E1(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(G(Is,9),G(ua,10),G(lu,10),G(ns,10),G(gr,8),G(xh,8))};static \u0275dir=lt({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[fn([nde]),Sn,ci]})}return t})(),Qr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=lt({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();const rde={provide:ns,useExisting:qt(()=>rv),multi:!0};let ade=(()=>{class t{_accessors=[];add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e)return void this._accessors.splice(i,1)}
1select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return!!e[0].control&&e[0]._parent===i._control._parent&&e[1].name===i.name}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rv=(()=>{class t extends Th{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=ye(xh,{optional:!0})??J_;constructor(e,i,r,a){super(e,i),this._registry=r,this._injector=a}ngOnInit(){this._control=this._injector.get(cu),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||t)(G(zn),G(Bt),G(ade),G(Ln))};static \u0275dir=lt({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){1&i&&be("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[fn([rde]),Sn]})}return t})();const EE=new Qe(""),lde={provide:Is,useExisting:qt(()=>_r)};let _r=(()=>{class t extends Is{callSetDisabledState;get submitted(){return qr(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=sc(()=>this._submittedReactive());_submittedReactive=io(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Xe;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(k1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return ev(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}
1removeControl(e){I1(e.control||null,e,!1),function Zce(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(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,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),function RV(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new xV(this.control)),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new MV(this.form))}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(I1(i||null,e),(t=>t instanceof nv)(r)&&(ev(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function NV(t,n){SE(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function Gce(t,n){return k1(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){SE(this.form,this),this._oldForm&&k1(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(G(ua,10),G(lu,10),G(xh,8))};static \u0275dir=lt({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&be("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[fn([lde]),Sn,ci]})}return t})();const cde={provide:Is,useExisting:qt(()=>tm)};let tm=(()=>
1{class t extends R1{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){UV(this._parent)}static \u0275fac=function(i){return new(i||t)(G(Is,13),G(ua,10),G(lu,10))};static \u0275dir=lt({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[fn([cde]),Sn]})}return t})();const dde={provide:Is,useExisting:qt(()=>O1)};let O1=(()=>{class t extends Is{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){UV(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return E1(null==this.name?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||t)(G(Is,13),G(ua,10),G(lu,10))};static \u0275dir=lt({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[fn([dde]),Sn]})}return t})();function UV(t){return!(t instanceof tm||t instanceof _r||t instanceof O1)}const ude={provide:cu,useExisting:qt(()=>Hr)};let Hr=(()=>{class t extends cu{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new Xe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,a,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ME(0,a)}ngOnChanges(e){this._added||this._setUpControl(),xE(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 E1(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||t)(G(Is,13),G(ua,10),G(lu,10),G(ns,10),G(EE,8))};static \u0275dir=lt({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[fn([ude]),Sn,ci]})}return t})();const hde={provide:ns,useExisting:qt(()=>zo),multi:!0};function HV(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let zo=(()=>{class t extends Th{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;const r=HV(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function fde(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&be("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[fn([hde]),Sn]})}return t})(),uc=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(HV(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
1),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||t)(G(Bt),G(zn),G(zo,9))};static \u0275dir=lt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();const pde={provide:ns,useExisting:qt(()=>IE),multi:!0};function jV(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let IE=(()=>{class t extends Th{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){let i;if(this.value=e,Array.isArray(e)){const r=e.map(a=>this._getOptionId(a));i=(a,s)=>{a._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,a)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const r=[],a=i.selectedOptions;if(void 0!==a){const s=a;for(let o=0;o<s.length;o++){const d=this._getOptionValue(s[o].value);r.push(d)}}else{const s=i.options;for(let o=0;o<s.length;o++){const l=s[o];if(l.selected){const d=this._getOptionValue(l.value);r.push(d)}}}this.value=r,e(r)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function mde(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){1&i&&be("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[fn([pde]),Sn]})}return t})(),hc=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(jV(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(jV(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))}static \u0275fac=function(i){return new(i||t)(G(Bt),G(zn),G(IE,9))};static \u0275dir=lt({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function zV(t){return"number"==typeof t?t:parseInt(t,10)}let Mh=(()=>{class t{_validator=C1;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):C1,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static \u0275fac=function(i){return new(i||t)};static \u0275dir=lt({type:t,features:[ci]})}return t})();const Cde={provide:ua,useExisting:qt(()=>fc),multi:!0};let fc=(()=>{class t extends Mh{minlength;inputName="minlength";normalizeInput=e=>zV(e);createValidator=e=>oV(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&Kt("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[fn([Cde]),Sn]})}return t})();const wde={provide:ua,useExisting:qt(()=>Yo),multi:!0};let Yo=(()=>{class t extends Mh{maxlength;inputName="maxlength";normalizeInput=e=>zV(e);createValidator=e=>lV(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275dir=lt({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&Kt("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[fn([wde]),Sn]})}return t})(),ZV=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({})}return t})();class QV extends M1{constructor(n,e,i){super(wE(e),DE(i,e)),this.controls=n,this._initOb
1servables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){IV(this,0,n),n.forEach((i,r)=>{EV(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function XV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let Xr=(()=>{class t{useNonNullable=!1;get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let a={};return XV(i)?a=i:null!==i&&(a.validators=i.validator,a.asyncValidators=i.asyncValidator),new X_(r,a)}record(e,i=null){const r=this._reduceControls(e);return new AV(r,i)}control(e,i,r){let a={};return this.useNonNullable?(XV(i)?a=i:(a.validators=i,a.asyncValidators=r),new nv(e,{...a,nonNullable:!0})):new nv(e,i,r)}array(e,i,r){const a=e.map(s=>this._createControl(s));return new QV(a,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof nv||e instanceof M1?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:xh,useValue:e.callSetDisabledState??J_}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({imports:[ZV]})}return t})(),fi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:EE,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:xh,useValue:e.callSetDisabledState??J_}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({imports:[ZV]})}return t})();const NE={now:()=>(NE.delegate||Date).now(),delegate:void 0};class Sde extends nt{constructor(n=1/0,e=1/0,i=NE){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:a,_windowTime:s}=this;e||(i.push(n),!r&&i.push(a.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,a=r.slice();for(let s=0;s<a.length&&!n.closed;s+=i?1:2)n.next(a[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,a=(r?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!r){const s=e.now();let o=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)o=l;o&&i.splice(0,o+1)}}}function RE(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new zi({next:()=>{i.unsubscribe(),t()}});return la(n(...e)).subscribe(i)}function JV(t,n,e){let i,r=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t):i=t??1/0,function Tde(t={}){const{connector:n=()=>new nt,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return a=>{let s,o,l,d=0,h=!1,_=!1;const b=()=>{o?.unsubscribe(),o=void 0},C=()=>{b(),s=l=void 0,h=_=!1},k=()=>{const U=s;C(),U?.unsubscribe()};return Fi((U,Q)=>{d++,!_&&!h&&b();const de=l=l??n();Q.add(()=>{d--,0===d&&!_&&!h&&(o=RE(k,r))}),de.subscribe(Q),!s&&d>0&&(s=new zi({next:he=>de.next(he),error:he=>{_=!0,b(),o=RE(C,e,he),de.error(he)},complete:()=>{h=!0,b(),o=RE(C,i),de.complete()}}),la(U).subscribe(s))})(a)}}({connector:()=>new Sde(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class nm{}let PE=(()=>{class t extends nm{getTranslation(e){return At({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class L1{}let OE=(()=>{class t{handle(e){return e.key}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function F1(t,n){if(t===n)return!0;
1if(null===t||null===n)return!1;if(t!=t&&n!=n)return!0;const e=typeof t;let r,a,s;if(e==typeof n&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(n))return!1;for(a in s=Object.create(null),t){if(!F1(t[a],n[a]))return!1;s[a]=!0}for(a in n)if(!(a in s)&&typeof n[a]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((r=t.length)==n.length){for(a=0;a<r;a++)if(!F1(t[a],n[a]))return!1;return!0}}return!1}function du(t){return typeof t<"u"&&null!==t}function av(t){return B1(t)&&!LE(t)&&null!==t}function B1(t){return"object"==typeof t}function LE(t){return Array.isArray(t)}function FE(t){return"string"==typeof t}function BE(t,n){const e=Object.assign({},t);return B1(t)?(B1(t)&&B1(n)&&Object.keys(n).forEach(i=>{av(n[i])?i in t?e[i]=BE(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e):BE({},n)}function VE(t,n){const e=n.split(".");n="";do{n+=e.shift(),du(t)&&du(t[n])&&(av(t[n])||LE(t[n])||!e.length)?(t=t[n],n=""):e.length?n+=".":t=void 0}while(e.length);return t}class sv{}let UE=(()=>{class t extends sv{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,i){return FE(e)?this.interpolateString(e,i):function xde(t){return"function"==typeof t}(e)?this.interpolateFunction(e,i):void 0}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,a)=>{const s=VE(i,a);return du(s)?s:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class ov{}let HE=(()=>{class t extends ov{compile(e,i){return e}compileTranslations(e,i){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})();static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class V1{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new Xe;onLangChange=new Xe;onDefaultLangChange=new Xe}const U1=new Qe("ISOLATE_TRANSLATE_SERVICE"),H1=new Qe("USE_DEFAULT_LANG"),j1=new Qe("DEFAULT_LANGUAGE"),z1=new Qe("USE_EXTEND"),lv=t=>eu(t)?t:At(t);let cn=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,i,r,a,s,o=!0,l=!1,d=!1,h){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=a,this.missingTranslationHandler=s,this.useDefaultLang=o,this.extend=d,l&&(this.store=new V1),h&&this.setDefaultLang(h)}setDefaultLang(e){if(e===this.defaultLang)return;const i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Yn(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return At(this.translations[e]);this.currentLang||(this.currentLang=e);const i=this.retrieveTranslations(e);return eu(i)?(i.pipe(Yn(1)).subscribe(()=>{this.changeLang(e)}),i):(this.changeLang(e),At(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(JV(1),Yn(1));return this.loadingTranslations=i.pipe(Ot(r=>this.compiler.compileTranslations(r,e)),JV(1),Yn(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){const a=this.compiler.compileTranslations(i,e);this.translations[e]=(r||this.extend)&&this.translations[e]?BE(this.translations[e],a):a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){const i=e.filter(r=>!this.langs.includes(r));i.length>0&&(this.langs=[...this.langs,...i])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,i,r){let a;if(e&&(a=this.runInterpolation(VE(e,i),r)),void 0===a&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(VE(this.translations[this.defaultLang],i),r)),void 0===a){const s={key:i,translateService:this};typeof r<"u"&&(s.interpolateParams=r),a=this.missingTranslationHandler.handle(s)}return void 0!==a?a:i}runInterpolation(e,i){if(LE(e))return e.map(r=>this.runInterpolation(r,i));if(av(e)){const r={};for(const a in e){const s=this.runInterpolation(e[a],i);void 0!==s&&(r[a]=s)}return r}return this.parser.interpolate(e,i)}getParsedResult(e,i,r){if(i instanceof Array){const a={};let s=!1;for(const l of i)a[l]=this.getParsedResultForKey(e,l,r),s=s||eu(a[l]);return s?eV(i.map(l=>lv(a[l]))).pipe(Ot(l=>{const d={};return l.forEach((h,_)=>{d[i[_]]=h}),d})):a}return this.getParsedResultForKey(e,i,r)}get(e,i){if(!du(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(_h(r=>lv(this.getParsedResult(r,e,i)))):lv(this.getParsedResult(this.translations[this.currentLang],e,i))}getStreamOnTranslationChange(e,i){if(!du(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return nu(Wp(()=>this.get(e,i)),this.onTranslationChange.pipe(Kr(r=>{const a=this.getParsedResult(r.translations,e,i);return lv(a)})))}stream(e,i){if(!du(e)||!e.length)throw new Error('Parameter "key" required');return nu(Wp(()=>this.get(e,i)),this.onLangChange.pipe(Kr(r=>{const a=this.getParsedResult(r.translations,e,i);return lv(a)})))}instant(e,i){if(!du(e)||0===e.length)throw new Error('Parameter "key" is required and cannot be empty');const r=this.getParsedResult(this.translations[this.currentLang],e,i);return eu(r)?Array.isArray(e)?e.reduce((a,s)=>(a[s]=s,a),{}):e:r}set(e,i,r=this.currentLang){(function Mde(t,n,e){const i=n.split(".");let r=t;for(let a=0;a<i.length;a++){const s=i[a];a===i.length-1?r[s]=e:((!r[s]||!av(r[s]))&&(r[s]={}),r=r[s])}})(this.translations[r],e,FE(i)?this.compiler.compile(i,r):this.compiler.compileTranslations(i,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}
1resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;const e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(i){return new(i||t)(Fe(V1),Fe(nm),Fe(ov),Fe(sv),Fe(L1),Fe(H1),Fe(U1),Fe(z1),Fe(j1))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dn=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,i){this.translate=e,this._ref=i}updateValue(e,i,r){const a=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(r){const s=this.translate.getParsedResult(r,e,i);eu(s)?s.subscribe(a):a(s)}this.translate.get(e,i).subscribe(a)}transform(e,...i){if(!e||!e.length)return e;if(F1(e,this.lastKey)&&F1(i,this.lastParams))return this.value;let r;if(du(i[0])&&i.length)if(FE(i[0])&&i[0].length){const a=i[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${i[0]}`)}}else av(i[0])&&(r=i[0]);return this.lastKey=e,this.lastParams=i,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(i){return new(i||t)(G(cn,16),G(gr,16))};static \u0275pipe=Cs({name:"translate",type:t,pure:!1});static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})(),pn=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:nm,useClass:PE},e.compiler||{provide:ov,useClass:HE},e.parser||{provide:sv,useClass:UE},e.missingTranslationHandler||{provide:L1,useClass:OE},V1,{provide:U1,useValue:e.isolate},{provide:H1,useValue:e.useDefaultLang},{provide:z1,useValue:e.extend},{provide:j1,useValue:e.defaultLanguage},cn]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:nm,useClass:PE},e.compiler||{provide:ov,useClass:HE},e.parser||{provide:sv,useClass:UE},e.missingTranslationHandler||{provide:L1,useClass:OE},{provide:U1,useValue:e.isolate},{provide:H1,useValue:e.useDefaultLang},{provide:z1,useValue:e.extend},{provide:j1,useValue:e.defaultLanguage},cn]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({})}return t})();function Ade(t){const n=t.get("newPassword")?.value,e=t.get("confirmPassword")?.value;return n===e?null:{passwordsMismatch:!0}}function $o(t,n,e){const i={7001:"7001Message",7002:"7002Message",7003:"7003Message",7004:"7004Message",7005:"7005Message",7006:"7005Message",7007:"7005Message",7020:"7020Message",404:"404Message",422:"422Message"};return i[t]?e.instant(i[t]):n||e.instant("Somethingwentwrong")}function co(t){if(!t)return null;if(t instanceof Date)return jE(t);if("string"==typeof t&&t.includes("/")){const[e,i,r]=t.split("/"),a=new Date(+r,+i-1,+e);if(!isNaN(a.getTime()))return jE(a)}const n=new Date(t);return isNaN(n.getTime())?"":jE(n)}function jE(t){return[t.getFullYear(),String(t.getMonth()+1).padStart(2,"0"),Str
1ing(t.getDate()).padStart(2,"0")].join("-")}function n8(t){const n=t.get("fromDate")?.value||t.get("startDate")?.value,e=t.get("toDate")?.value||t.get("endDate")?.value;if(n&&e){const i=new Date(n),r=new Date(e);if(i.setHours(0,0,0,0),r.setHours(0,0,0,0),i>r)return{dateRangeInvalid:!0}}return null}function Wo(t=new Date){const n=t.toLocaleString("en-US",{timeZone:"Asia/Kuwait"});return new Date(n)}let zE,ii=(()=>{class t{translate;currentYear;constructor(e){this.translate=e,this.currentYear=(new Date).getFullYear()}static \u0275fac=function(i){return new(i||t)(G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-footer"]],decls:4,vars:7,template:function(i,r){1&i&&(m(0,"footer"),v(1),M(2,"translate"),M(3,"translate"),p()),2&i&&(u(),Ja(" \xa9 ",r.currentYear," | ",E(2,3,"KuwaitFundforArabEconomicDevelopment")," | ",E(3,5,"AllRightsReserved"),"\n"))},dependencies:[pn,dn],encapsulation:2})}return t})();try{zE=typeof Intl<"u"&&Intl.v8BreakIterator}catch{zE=!1}let cv,Ih,YE,qa=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?k0(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&&!zE)&&typeof CSS<"u"&&!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}static{this.\u0275fac=function(i){return new(i||t)(Fe(Ku))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Eh(t){return function Nde(){if(null==cv&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>cv=!0}))}finally{cv=cv||!1}return cv}()?t:!!t.capture}function r8(){if(null==Ih){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ih=!1,Ih;if("scrollBehavior"in document.documentElement.style)Ih=!0;else{const t=Element.prototype.scrollTo;Ih=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Ih}function $1(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function td(t){return t.composedPath?t.composedPath()[0]:t.target}function $E(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function sm(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class $de extends jt{constructor(n,e){super()}schedule(n,e=0){return this}}const J1={setInterval(t,n,...e){const{delegate:i}=J1;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=J1;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class eC extends $de{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(a,this.id,e),this}requestAsyncId(n,e,i=0){return J1.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&J1.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(a){i=!0,r=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;
1this.work=this.state=this.scheduler=null,this.pending=!1,tn(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class hv{constructor(n,e=hv.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}hv.now=NE.now;class tC extends hv{constructor(n,e=hv.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const nC=new tC(eC),Wde=nC;function GE(t){return Cn((n,e)=>t<=e)}function om(t,n=Fn){return t=t??Gde,Fi((e,i)=>{let r,a=!0;e.subscribe(mi(i,s=>{const o=n(s);(a||!t(r,o))&&(a=!1,r=o,i.next(s))}))})}function Gde(t,n){return t===n}let qde=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Kde=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({providers:[qde]})}}return t})();function o8(t,n=0){return function Zde(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):2===arguments.length?n:0}function iC(t){return Array.isArray(t)?t:[t]}function ha(t){return null==t?"":"string"==typeof t?t:`${t}px`}function lm(t){return t instanceof Bt?t.nativeElement:t}const l8=new Set;let Ah,Qde=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jde}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Xde(t,n){if(!l8.has(t))try{Ah||(Ah=document.createElement("style"),n&&Ah.setAttribute("nonce",n),Ah.setAttribute("type","text/css"),document.head.appendChild(Ah)),Ah.sheet&&(Ah.sheet.insertRule(`@media ${t} {body{ }}`,0),l8.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(Fe(qa),Fe(bS,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jde(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let eue=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new nt}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return c8(iC(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let a=Tl(c8(iC(e)).map(s=>this._registerQuery(s).observable));return a=nu(a.pipe(Yn(1)),a.pipe(GE(1),function a8(t,n=nC){return Fi((e,i)=>{let r=null,a=null,s=null;const o=()=>{if(r){r.unsubscribe(),r=null;const d=a;a=null,i.next(d)}};function l(){const d=s+t,h=n.now();if(h<d)return r=this.schedule(void 0,d-h),void i.add(r);o()}e.subscribe(mi(i,d=>{a=d,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{o(),i.complete()},void 0,()=>{a=r=null}))})}(0))),a.pipe(Ot(s=>{const o={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:d})=>{o.matches=o.matches||l,o.breakpoints[d]=l}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),a={observable:new Jt(s=>{const o=l=>this._zone.run(()=>s.next(l));return i.addListener(o),()=>{i.removeListener(o)}}).pipe(iu(i),Ot(({matches:s})=>({query:e,matches:s})),Lt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}static{this.\u0275fac=function(i){return new(i||t)(Fe(Qde),Fe(_t))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function c8(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}let qE=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function cue(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function lue(t){try{return t.frameElement}catch{return null}}(function _ue(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===g8(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),a=g8(e);return e.hasAttribute("contenteditable")?-1!==a:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function mue(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==a:"video"===r?-1!==a&&(null!==a||this._platform.FIRE
1FOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function gue(t){return!function uue(t){return function fue(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function due(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function hue(t){return function pue(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||m8(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(Fe(qa))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function m8(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function g8(t){if(!m8(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class _8{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,a=!1,s){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,a||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),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(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i<e.length;i++){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=e.length-1;i>=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?vl(n,{injector:this._injector}):setTimeout(n)}}let KE=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._injector=ye(Ln),this._document=r}create(e,i=!1){return new _8(e,this._checker,this._ngZone,this._document,i,this._injector)}static{this.\u0275fac=function(i){return new(i||t)(Fe(qE),Fe(_t),Fe(Tn))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vue=(()=>{class t{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,ye(qa).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){const i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=$1(),this.focusTrap?.focusInitialElementWhenReady()}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(KE),G(Tn))}}static{this.\u0275dir=lt({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ws],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ws]},exportAs:["cdkTrapFocus"],features:[ci]})}}return t})();function v8(t){return 0===t.buttons||0===t.detail}function y8(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const yue=new Qe("cdk-input-modality-detector-options"),bue={ignoreKeys:[18,17,224,91,16]},cm=Eh({passive:!0,capture:!0});let Cue=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new an(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(o=>o===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=td(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(v8(s)?"keyboard":"mouse"),this._mostRecentTarget=td(s))},this._onTouchstart=s=>{y8(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=td(s))},this._options={...bue,...a},this.modalityDetected=this._modality.pipe(GE(1)),this.modalityChanged=this.modalityDetected.pipe(om()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,cm),r.addEventListener("mousedown",this._onMousedown,cm),r.addEventListener("touchstart",this._onTouchstart,cm)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cm),document.removeEventListener("mousedown",this._onMousedown,cm),document.removeEventListener("touchstart",this._onTouchstart,cm))}static{this.\u0275fac=function(i){return new(i||t)(Fe(qa),Fe(_t),Fe(Tn),Fe(yue,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();
1var rC=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(rC||{});const Due=new Qe("cdk-focus-monitor-default-options"),aC=Eh({passive:!0,capture:!0});let sC=(()=>{class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new nt,this._rootNodeFocusAndBlurListener=o=>{for(let d=td(o);d;d=d.parentElement)"focus"===o.type?this._onFocus(o,d):this._onBlur(o,d)},this._document=a,this._detectionMode=s?.detectionMode||rC.IMMEDIATE}monitor(e,i=!1){const r=lm(e);if(!this._platform.isBrowser||1!==r.nodeType)return At();const a=function Pde(t){if(function Rde(){if(null==YE){const t=typeof document<"u"?document.head:null;YE=!(!t||!t.createShadowRoot&&!t.attachShadow)}return YE}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const o={checkChildren:i,subject:new nt,rootNode:a};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const i=lm(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const a=lm(e);a===this._getDocument().activeElement?this._getClosestElementsInfo(a).forEach(([o,l])=>this._originChanged(o,i,l)):(this._setOrigin(i),"function"==typeof a.focus&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===rC.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===rC.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),a=td(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,aC),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,aC)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Lt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aC),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aC),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;
1if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const a=e.labels;if(a)for(let s=0;s<a.length;s++)if(a[s].contains(i))return!0;return!1}static{this.\u0275fac=function(i){return new(i||t)(Fe(_t),Fe(qa),Fe(Cue),Fe(Tn,8),Fe(Due,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Sue=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Xe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(sC))}}static{this.\u0275dir=lt({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}}return t})();var kh=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(kh||{});const C8="cdk-high-contrast-black-on-white",w8="cdk-high-contrast-white-on-black",ZE="cdk-high-contrast-active";let D8=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=ye(eue).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return kh.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return kh.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return kh.BLACK_ON_WHITE}return kh.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ZE,C8,w8),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===kh.BLACK_ON_WHITE?e.add(ZE,C8):i===kh.WHITE_ON_BLACK&&e.add(ZE,w8)}}static{this.\u0275fac=function(i){return new(i||t)(Fe(qa),Fe(Tn))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Tue=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(Fe(D8))}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[Kde]})}}return t})();const xue=["addListener","removeListener"],Mue=["addEventListener","removeEventListener"],Eue=["on","off"];function Jr(t,n,e,i){if(ft(e)&&(i=e,e=void 0),i)return Jr(t,n,e).pipe(kM(i));const[r,a]=function kue(t){return ft(t.addEventListener)&&ft(t.removeEventListener)}(t)?Mue.map(s=>o=>t[s](n,o,e)):function Iue(t){return ft(t.addListener)&&ft(t.removeListener)}(t)?xue.map(S8(t,n)):function Aue(t){return ft(t.on)&&ft(t.off)}(t)?Eue.map(S8(t,n)):[];if(!r&&EM(t))return Ra(s=>Jr(s,n,e))(la(t));if(!r)throw new TypeError("Invalid event target");return new Jt(s=>{const o=(...l)=>s.next(1<l.length?l:l[0]);return r(o),()=>a(o)})}function S8(t,n){return e=>i=>t[e](n,i)}const fv={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=fv;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(a=>{e=void 0,t(a)});return new jt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=fv;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=fv;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},T8=new class Rue extends tC{flush(n){let e;this._active=!0,n?e=n.id:(e=this._scheduled,this._scheduled=void 0);const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class Nue extends eC{constructor(n,e){super(n,e),this.scheduler
1=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=fv.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:a}=n;null!=e&&e===n._scheduled&&(null===(r=a[a.length-1])||void 0===r?void 0:r.id)!==e&&(fv.cancelAnimationFrame(e),n._scheduled=void 0)}});let QE,Pue=1;const oC={};function x8(t){return t in oC&&(delete oC[t],!0)}const Oue={setImmediate(t){const n=Pue++;return oC[n]=!0,QE||(QE=Promise.resolve()),QE.then(()=>x8(n)&&t()),n},clearImmediate(t){x8(t)}},{setImmediate:Lue,clearImmediate:Fue}=Oue,lC={setImmediate(...t){const{delegate:n}=lC;return(n?.setImmediate||Lue)(...t)},clearImmediate(t){const{delegate:n}=lC;return(n?.clearImmediate||Fue)(t)},delegate:void 0};new class Vue extends tC{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class Bue extends eC{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=lC.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:a}=n;null!=e&&(null===(r=a[a.length-1])||void 0===r?void 0:r.id)!==e&&(lC.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function cC(t=0,n,e=Wde){let i=-1;return null!=n&&(C4(n)?e=n:i=n),new Jt(r=>{let a=function jue(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;a<0&&(a=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},a)})}function M8(t,n=nC){return function Hue(t){return Fi((n,e)=>{let i=!1,r=null,a=null,s=!1;const o=()=>{if(a?.unsubscribe(),a=null,i){i=!1;const d=r;r=null,e.next(d)}s&&e.complete()},l=()=>{a=null,s&&e.complete()};n.subscribe(mi(e,d=>{i=!0,r=d,a||la(t(d)).subscribe(a=mi(e,o,l))},()=>{s=!0,(!i||!a||a.closed)&&e.complete()}))})}(()=>cC(t,n))}const zue=new Qe("cdk-dir-doc",{providedIn:"root",factory:function Yue(){return ye(Tn)}}),$ue=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nh=(()=>{class t{constructor(e){this.value="ltr",this.change=new Xe,e&&(this.value=function Wue(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?$ue.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(Fe(zue,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pv=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({})}}return t})(),E8=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new nt,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Jt(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(M8(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):At()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Cn(a=>!a||r.indexOf(a)>-1))}getAncestorScrollContainers(e){const i=[];
1return this.scrollContainers.forEach((r,a)=>{this._scrollableContainsElement(a,e)&&i.push(a)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=lm(i),a=e.getElementRef().nativeElement;do{if(r==a)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(Fe(_t),Fe(qa),Fe(Tn,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),I8=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new nt,this._changeListener=a=>{this._change.next(a)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,a=r.getBoundingClientRect();return{top:-a.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-a.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(M8(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}}static{this.\u0275fac=function(i){return new(i||t)(Fe(qa),Fe(_t),Fe(Tn,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),XE=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({})}}return t})(),A8=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[pv,XE,pv,XE]})}}return t})();class JE{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class dC extends JE{constructor(n,e,i,r,a){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=a}}class k8 extends JE{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class Zue extends JE{constructor(n){super(),this.element=n instanceof Bt?n.nativeElement:n}}class eI{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof dC?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof k8?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof Zue?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}
1_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Que extends eI{constructor(n,e,i,r,a){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const o=s.element,l=this._document.createComment("dom-portal");o.parentNode.insertBefore(l,o),this.outletElement.appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(o,l)})},this._document=a}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ln.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let mv=(()=>{class t extends eI{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Xe,this.attachDomPortal=a=>{const s=a.element,o=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(o,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,a=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(a,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(G(nh),G(Wa),G(Tn))}}static{this.\u0275dir=lt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Sn]})}}return t})(),N8=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({})}}return t})();function dm(...t){const n=k_(t),e=function ise(t,n){return"number"==typeof AM(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?la(i[0]):$p(e)(ca(i,n)):Gs}const R8=r8();class Xue{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ha(-this._previousScrollPosition.left),n.style.top=ha(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,a=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),R8&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),R8&&(i.scrollBehavior=a,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Jue{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler
1=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Cn(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class P8{enable(){}disable(){}attach(){}}function tI(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function O8(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class ehe{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}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:i,height:r}=this._viewportRuler.getViewportSize();tI(e,[{width:i,height:r,bottom:r,right:i,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 the=(()=>{class t{constructor(e,i,r,a){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new P8,this.close=s=>new Jue(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Xue(this._viewportRuler,this._document),this.reposition=s=>new ehe(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}static{this.\u0275fac=function(i){return new(i||t)(Fe(E8),Fe(I8),Fe(_t),Fe(Tn))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class L8{constructor(n){if(this.scrollStrategy=new P8,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class nhe{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let F8=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(Fe(Tn))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ihe=(()=>{class t extends F8{constructor(e,i){super(e),this._ngZone=i,this._key
1downListener=r=>{const a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){const o=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>o.next(r)):o.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(_t,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rhe=(()=>{class t extends F8{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=td(a)},this._clickListener=a=>{const s=td(a),o="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){const h=l[d];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(B8(h.overlayElement,s)||B8(h.overlayElement,o))break;const _=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(a)):_.next(a)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(qa),Fe(_t,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function B8(t,n){const e=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let uC=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||$E()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let a=0;a<r.length;a++)r[a].remove()}const i=this._document.createElement("div");i.classList.add(e),$E()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(qa))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class hC{constructor(n,e,i,r,a,s,o,l,d,h=!1,_){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=a,this._keyboardDispatcher=s,this._document=o,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=_,this._backdropElement=null,this._backdropClick=new nt,this._attachments=new nt,this._detachments=new nt,this._locationChanges=jt.EMPTY,this._backdropClickHandler=b=>this._backdropClick.next(b),this._backdropTransitionendHandler=b=>{this._disposeBackdrop(b.target)},this._keydownEvents=new nt,this._outsidePointerEvents=new nt,this._renders=new nt,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=qr(()=>function kg(t,n){!n?.injector&&A();const e=n?.injector??ye(Ln);return Xa("NgAfterRender"),DR(t,e,n,!1)}(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=vl(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dis
1pose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=ha(this._config.width),n.height=ha(this._config.height),n.minWidth=ha(this._config.minWidth),n.minHeight=ha(this._config.minHeight),n.maxWidth=ha(this._config.maxWidth),n.maxHeight=ha(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const r=iC(e||[]).filter(a=>!!a);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe(Lt(dm(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._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const V8="cdk-overlay-connected-position-bounding-box",ahe=/([A-Za-z%]+)$/;class she{get positions(){return this._preferredPositions}
1constructor(n,e,i,r,a){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new nt,this._resizeSubscription=jt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(V8),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,a=[];let s;for(let o of this._preferredPositions){let l=this._getOriginPoint(n,r,o),d=this._getOverlayPoint(l,e,o),h=this._getOverlayFit(d,e,i,o);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,l);this._canFitWithFlexibleDimensions(h,d,i)?a.push({position:o,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,o)}):(!s||s.overlayFit.visibleArea<h.visibleArea)&&(s={overlayFit:h,overlayPoint:d,originPoint:l,position:o,overlayRect:e})}if(a.length){let o=null,l=-1;for(const d of a){const h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>l&&(l=h,o=d)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rh(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(V8),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,a;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,o=this._isRtl()?n.left:n.right;r="start"==i.originX?s:o}return e.left<0&&(r-=e.left),a="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(a-=e.top),{x:r,y:a}}_getOverlayPoint(n,e,i){let r,a;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+a}}_getOverlayFit(n,e,i,r){const a=H8(e);let{x:s,y:o}=n,l=this._getOffset(r,"x"),d=this._getOffset(r,"y");l&&(s+=l),d&&(o+=d);let b=0-o,C=o+a.height-i.height,k=this._subtractOverflows(a.width,0-s,s+a.width-i.width),U=this._subtractOverflows(a.height,b,C),Q=k*U;return{visibleArea:Q,isCompletelyWithinViewport:a.width*a.height===Q,fitsInViewportVertically:U===a.height,fitsInViewportHorizontally:k==a.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,a=i.right-e.x,s=U8(this._overlayRef.getConfig().minHeight),o=U8(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=o&&o<=a)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=H8(e),a=this._viewportRect,s=Math.max(n.x+r.width-a.width,0),o=Math.max(n.y+r.height-a.height,0),l=Math.max(a.top-i.top-n.y,0),d=Math.max(a.left-i.left-n.x,0);let h=0,_=0;return h=r.width<=a.width?d||-s:n.x<this._viewportMargin?a.left-i.left-n.x:0,_=r.height<=a.height?l||-o:n.y<this._viewportMargin?a.top-i.top-n.y:0,this._previousPushAmount={x:h,y:_},{x:n.x+h,y:n.y+_}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){const i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!function ohe(t,n){return t===n||t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}(this._lastScrollVisibility,i)){const r=new nhe(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let a=0;a<e.length;a++)e[a].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,r=this._isRtl();let a,s,o,h,_,b;if("top"===e.overlayY)s=n.y,a=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=i.height-n.y+2*this._viewportMargin,a=i.height-o+this._viewportMargin;else{const C=Math.min(i.bottom-n.y+i.top,n.y),k=this._lastBoundingBoxSize.height;a=2*C,s=n.y-C,a>k&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-k/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)b=i.width-n.x+2*this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)_=n.x,h=i.right-n.x;else{const C=Math.min(i.right-n.x+i.left,n.x),k=this._lastBoundingBoxSize.width;h=2*C,_=n.x-C,h>k&&!this._isInitialRender&&!this._growAfterOpen&&(_=n.x-k/2)}return{top:s,left:_,bottom:o,right:b,width:h,height:a}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ha(i.height),r.top=ha(i.top),r.bottom=ha(i.bottom),r.width=ha(i.width),r.left=ha(i.left),r.right=ha(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",a&&(r.maxHeight=ha(a)),s&&(r.maxWidth=ha(s))}this._lastBoundingBoxSize=i,Rh(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Rh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),a=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const h=this._viewportRuler.getViewportScrollPosition();Rh(i,this._getExactOverlayY(e,n,h)),Rh(i,this._getExactOverlayX(e,n,h))}else i.position="static";let o="",l=this._getOffset(e,"x"),d=this._getOffset(e,"y");l&&(o+=`translateX(${l}px) `),d&&(o+=`translateY(${d}px)`),i.transform=o.trim(),s.maxHeight&&(r?i.maxHeight=ha(s.maxHeight):a&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ha(s.maxWidth):a&&(i.maxWidth="")),Rh(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":r.top=ha(a.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":r.left=ha(a.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:O8(n,i),isOriginOutsideView:tI(n,i),isOverlayClipped:O8(e,i),isOverlayOutsideView:tI(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}
1_addPanelClasses(n){this._pane&&iC(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Bt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Rh(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function U8(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(ahe);return e&&"px"!==e?null:parseFloat(n)}return t||null}function H8(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const j8="cdk-global-overlay-wrapper";class lhe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(j8),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:a,maxWidth:s,maxHeight:o}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),d=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o),h=this._xPosition,_=this._xOffset,b="rtl"===this._overlayRef.getConfig().direction;let C="",k="",U="";l?U="flex-start":"center"===h?(U="center",b?k=_:C=_):b?"left"===h||"end"===h?(U="flex-end",C=_):("right"===h||"start"===h)&&(U="flex-start",k=_):"left"===h||"start"===h?(U="flex-start",C=_):("right"===h||"end"===h)&&(U="flex-end",k=_),n.position=this._cssPosition,n.marginLeft=l?"0":C,n.marginTop=d?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":k,e.justifyContent=U,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(j8),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let che=(()=>{class t{constructor(e,i,r,a){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=a}global(){return new lhe}flexibleConnectedTo(e){return new she(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(Fe(I8),Fe(Tn),Fe(qa),Fe(uC))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dhe=0,El=(()=>{class t{constructor(e,i,r,a,s,o,l,d,h,_,b,C){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=o,this._ngZone=l,this._document=d,this._directionality=h,this._location=_,this._outsideClickDispatcher=b,this._animationsModuleType=C}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),a=this._createPortalOutlet(r),s=new L8(e);return s.direction=s.direction||this._directionality.value,new hC(a,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(Wr))}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+dhe++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ga)),new Que(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(Fe(the),Fe(uC),Fe(nh),Fe(che),Fe(ihe),Fe(Ln),Fe(_t),Fe(Tn),Fe(Nh),Fe(Jd),Fe(rhe),Fe($c,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const uhe=new Qe("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=ye(El);return()=>t.scrollStrategies.reposition()}}),fhe={provide:uhe,deps:[El],useFactory:function hhe(t){return()=>t.scrollStrategies.reposition()}};let phe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({providers:[El,fhe],imports:[pv,N8,A8,A8]})}}return t})();const ghe=new Qe("mat-sanity-checks",{providedIn:"root",factory:function mhe(){return!0}});let gv=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasse
1s(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!$E()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static{this.\u0275fac=function(i){return new(i||t)(Fe(D8),Fe(ghe,8),Fe(Tn))}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[pv,pv]})}}return t})();const $8=new Qe("MAT_DATE_LOCALE",{providedIn:"root",factory:function vhe(){return ye(ac)}});class Pa{constructor(){this._localeChanges=new nt,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return null==n||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}}const Ph=new Qe("mat-date-formats"),yhe=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function nI(t,n){const e=Array(t);for(let i=0;i<t;i++)e[i]=n(i);return e}let bhe=(()=>{class t extends Pa{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=ye($8,{optional:!0}),void 0!==e&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return nI(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return nI(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){const i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return nI(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){const i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return 7===i?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let a=this._createDateWithOverflow(e,i,r);return a.getMonth(),a}today(){return new Date}parse(e,i){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...i,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,12*i)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(yhe.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){const a=new Date;return a.setFullYear(e,i,r),a.setHours(0,0,0,0),a}_2digit(e){return("00"+e).slice(-2)}_format(e,i){const r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}static{this.\u0275fac=function(i){return new(i||t)(Fe($8,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac})}}return t})();const Che={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let W8=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({providers:[whe()]})}}return t})();function whe(t=Che){return[{provide:Pa,useClass:bhe},{provide:Ph,useValue:t}]}var Go=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Go||{});class Dhe{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=Go.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const G8=Eh({passive:!0,capture:!0});class She{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=td(n);e&&this._events.get(n.type)?.forEach((i,r)=>
1{(r===e||r.contains(e))&&i.forEach(a=>a.handleEvent(n))})}}addHandler(n,e,i,r){const a=this._events.get(e);if(a){const s=a.get(i);s?s.add(r):a.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,G8)})}removeHandler(n,e,i){const r=this._events.get(n);if(!r)return;const a=r.get(e);a&&(a.delete(i),0===a.size&&r.delete(e),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,G8)))}}const q8={enterDuration:225,exitDuration:150},K8=Eh({passive:!0,capture:!0}),Z8=["mousedown","touchstart"],Q8=["mouseup","mouseleave","touchend","touchcancel"];class fC{static{this._eventManager=new She}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=lm(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a={...q8,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function xhe(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),o=n-r.left,l=e-r.top,d=a.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=o-s+"px",h.style.top=l-s+"px",h.style.height=2*s+"px",h.style.width=2*s+"px",null!=i.color&&(h.style.backgroundColor=i.color),h.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(h);const _=window.getComputedStyle(h),C=_.transitionDuration,k="none"===_.transitionProperty||"0s"===C||"0s, 0s"===C||0===r.width&&0===r.height,U=new Dhe(this,h,i,k);h.style.transform="scale3d(1, 1, 1)",U.state=Go.FADING_IN,i.persistent||(this._mostRecentTransientRipple=U);let Q=null;return!k&&(d||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const de=()=>{Q&&(Q.fallbackTimer=null),clearTimeout(Ae),this._finishRippleTransition(U)},he=()=>this._destroyRipple(U),Ae=setTimeout(he,d+100);h.addEventListener("transitionend",de),h.addEventListener("transitioncancel",he),Q={onTransitionEnd:de,onTransitionCancel:he,fallbackTimer:Ae}}),this._activeRipples.set(U,Q),(k||!d)&&this._finishRippleTransition(U),U}fadeOutRipple(n){if(n.state===Go.FADING_OUT||n.state===Go.HIDDEN)return;const e=n.element,i={...q8,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Go.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=lm(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Z8.forEach(i=>{fC._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Q8.forEach(e=>{this._triggerElement.addEventListener(e,this,K8)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Go.FADING_IN?this._startFadeOutTransition(n):n.state===Go.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Go.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Go.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),null!==e.fallbackTimer&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){const e=v8(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!y8(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEac
1h(n=>{!n.config.persistent&&(n.state===Go.VISIBLE||n.config.terminateOnPointerUp&&n.state===Go.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(Z8.forEach(e=>fC._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(Q8.forEach(e=>n.removeEventListener(e,this,K8)),this._pointerUpEventsRegistered=!1))}}const X8=new Qe("mat-ripple-global-options");let Mhe=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new fC(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...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,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(_t),G(qa),G(X8,8),G($c,8))}}static{this.\u0275dir=lt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&&Ct("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}}return t})(),Ehe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[gv,gv]})}}return t})();const J8={capture:!0},e6=["focus","mousedown","mouseenter","touchstart"],iI="mat-ripple-loader-uninitialized",rI="mat-ripple-loader-class-name",t6="mat-ripple-loader-centered",pC="mat-ripple-loader-disabled";let Ihe=(()=>{class t{constructor(){this._document=ye(Tn,{optional:!0}),this._animationMode=ye($c,{optional:!0}),this._globalRippleOptions=ye(X8,{optional:!0}),this._platform=ye(qa),this._ngZone=ye(_t),this._hosts=new Map,this._onInteraction=e=>{const i=td(e);if(i instanceof HTMLElement){const r=i.closest(`[${iI}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(const e of e6)this._document?.addEventListener(e,this._onInteraction,J8)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of e6)this._document?.removeEventListener(i,this._onInteraction,J8)}configureRipple(e,i){e.setAttribute(iI,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(rI))&&e.setAttribute(rI,i.className||""),i.centered&&e.setAttribute(t6,""),i.disabled&&e.setAttribute(pC,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){const r=this._hosts.get(e);r?r.disabled=i:i?e.setAttribute(pC,""):e.removeAttribute(pC)}_createRipple(e){if(!this._document)return;const i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(rI)),e.append(r);const a=new Mhe(new Bt(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(t6),a.disabled=e.hasAttribute(pC),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(iI),this._hosts.set(e,i)}destroyRipple(e){const i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Ahe=["mat-button",""],khe=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Nhe=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Phe=["mat-icon-button",""],Ohe=["*"],Lhe=new Qe("MAT_BUTTON_CONFIG"),Fhe=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let n6=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=ye(sC),this._rippleLoader=ye(Ihe),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=ye(Lhe,{optional:!0}),o=e.nativeElement,l=o.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(o,{className:"mat-mdc-button-ripple"});for(const{attribute:d,mdcClasses:h}of Fhe)o.hasAttribute(d)&&l.add(...h)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}
1_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){Jb()}}static{this.\u0275dir=lt({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ws],disabled:[2,"disabled","disabled",Ws],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ws],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ws]},standalone:!1})}}return t})(),i6=(()=>{class t extends n6{constructor(e,i,r,a){super(e,i,r,a)}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(qa),G(_t),G($c,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(Kt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),Ct("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Sn],attrs:Ahe,ngContentSelectors:Nhe,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Bo(khe),fe(0,"span",0),Ss(1),m(2,"span",1),Ss(3,1),p(),Ss(4,2),fe(5,"span",2)(6,"span",3)),2&i&&Ct("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}
1.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}
1.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),r6=(()=>{class t extends n6{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(qa),G(_t),G($c,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(Kt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ys(r.color?"mat-"+r.color:""),Ct("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Sn],attrs:Phe,ngContentSelectors:Ohe,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Bo(),fe(0,"span",0),Ss(1),fe(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}
1.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),Vhe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[gv,Ehe,gv]})}}return t})();var un=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(un||{});const nd="*";function vv(t,n){return{type:un.Trigger,name:t,definitions:n,options:{}}}function mc(t,n=null){return{type:un.Animate,styles:n,timings:t}}function Sa(t){return{type:un.Style,styles:t,offset:null}}function Oh(t,n,e){return{type:un.State,name:t,styles:n,options:e}}function s6(t){return{type:un.Keyframes,steps:t}}function gc(t,n,e=null){return{type:un.Transition,expr:t,animation:n,options:e}}class yv{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>
1i()),e.length=0}}class c6{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0;const a=this.players.length;0==a?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==a&&this._onFinish()}),s.onDestroy(()=>{++i==a&&this._onDestroy()}),s.onStart(()=>{++r==a&&this._onStart()})}),this.totalTime=this.players.reduce((s,o)=>Math.max(s,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Khe=["mat-calendar-body",""];function Zhe(t,n){return this._trackRow(n)}const d6=(t,n)=>n.id;function Qhe(t,n){if(1&t&&(m(0,"tr",0)(1,"td",3),v(2),p()()),2&t){const e=B();u(),dh("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Kt("colspan",e.numCols),u(),_e(" ",e.label," ")}}function Xhe(t,n){if(1&t&&(m(0,"td",3),v(1),p()),2&t){const e=B(2);dh("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Kt("colspan",e._firstRowOffset),u(),_e(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Jhe(t,n){if(1&t){const e=qe();m(0,"td",6)(1,"button",7),be("click",function(r){const a=Ce(e).$implicit;return we(B(2)._cellClicked(a,r))})("focus",function(r){const a=Ce(e).$implicit;return we(B(2)._emitActiveDateChange(a,r))}),m(2,"span",8),v(3),p(),fe(4,"span",9),p()()}if(2&t){const e=n.$implicit,i=n.$index,r=B().$index,a=B();dh("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Kt("data-mat-row",r)("data-mat-col",i),u(),Ct("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",a._isActiveCell(r,i))("mat-calendar-body-range-start",a._isRangeStart(e.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",a._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",a._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",a._isInPreview(e.compareValue)),T("ngClass",e.cssClasses)("tabindex",a._isActiveCell(r,i)?0:-1),Kt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",a._isSelected(e.compareValue))("aria-current",a.todayValue===e.compareValue?"date":null)("aria-describedby",a._getDescribedby(e.compareValue)),u(),Ct("mat-calendar-body-selected",a._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",a.todayValue===e.compareValue),u(),_e(" ",e.displayValue," ")}}function efe(t,n){if(1&t&&(m(0,"tr",1),oe(1,Xhe,2,6,"td",4),ao(2,Jhe,5,48,"td",5,d6),p()),2&t){const e=n.$implicit,i=n.$index,r=B();u(),Fr(0===i&&r._firstRowOffset?1:-1),u(),so(e)}}function tfe(t,n){if(1&t&&(m(0,"th",2)(1,"span",6),v(2),p(),m(3,"span",3),v(4),p()()),2&t){const e=n.$implicit;
1u(2),P(e.long),u(2),P(e.narrow)}}const nfe=["*"];function ife(t,n){}function rfe(t,n){if(1&t){const e=qe();m(0,"mat-month-view",4),Uo("activeDateChange",function(r){Ce(e);const a=B();return wl(a.activeDate,r)||(a.activeDate=r),we(r)}),be("_userSelection",function(r){return Ce(e),we(B()._dateSelected(r))})("dragStarted",function(r){return Ce(e),we(B()._dragStarted(r))})("dragEnded",function(r){return Ce(e),we(B()._dragEnded(r))}),p()}if(2&t){const e=B();Vo("activeDate",e.activeDate),T("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function afe(t,n){if(1&t){const e=qe();m(0,"mat-year-view",5),Uo("activeDateChange",function(r){Ce(e);const a=B();return wl(a.activeDate,r)||(a.activeDate=r),we(r)}),be("monthSelected",function(r){return Ce(e),we(B()._monthSelectedInYearView(r))})("selectedChange",function(r){return Ce(e),we(B()._goToDateInView(r,"month"))}),p()}if(2&t){const e=B();Vo("activeDate",e.activeDate),T("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function sfe(t,n){if(1&t){const e=qe();m(0,"mat-multi-year-view",6),Uo("activeDateChange",function(r){Ce(e);const a=B();return wl(a.activeDate,r)||(a.activeDate=r),we(r)}),be("yearSelected",function(r){return Ce(e),we(B()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return Ce(e),we(B()._goToDateInView(r,"year"))}),p()}if(2&t){const e=B();Vo("activeDate",e.activeDate),T("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function ofe(t,n){}const lfe=["button"],cfe=[[["","matDatepickerToggleIcon",""]]],dfe=["[matDatepickerToggleIcon]"];function ufe(t,n){1&t&&(vg(),m(0,"svg",2),fe(1,"path",3),p())}let bv=(()=>{class t{constructor(){this.changes=new nt,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),hfe=0;class sI{constructor(n,e,i,r,a={},s=n,o){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=a,this.compareValue=s,this.rawValue=o,this.id=hfe++}}let ffe=1;const u6=Eh({passive:!1,capture:!0}),uu=Eh({passive:!0,capture:!0}),mC=Eh({passive:!0});let um=(()=>{class t{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,i){this._elementRef=e,this._ngZone=i,this._platform=ye(qa),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Xe,this.previewChange=new Xe,this.activeDateChange=new Xe,this.dragStarted=new Xe,this.dragEnded=new Xe,this._didDragSinceMouseDown=!1,this._injector=ye(Ln),this._trackRow=r=>r,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const a=this._getCellFromElement(r.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:r}))}},this._touchmoveHandler=r=>{if(!this.isRange)return;const a=h6(r),s=a?this._getCellFromElement(a):null;a!==r.target&&(this._didDragSinceMouseDown=!0),lI(r.target)&&r.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:r}))},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&("blur"!==r.type&&(this._didDragSinceMouseDown=!0),r.target&&this._getCellFromElement(r.target)&&(!r.relatedTarget||!this._getCellFromElement(r.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r})))},this._mousedownHandler=r=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const a=r.target&&this._getCellFromElement(r.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:r})})},this._mouseupHandler=r=>{if(!this.isRange)return;const a=lI(r.target);a?a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:r})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:r})})},this._touchendHandler=r=>{const a=h6(r);a&&this._mouseupHandler({target:a})},this._id="mat-calendar-body-"+ffe++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,i.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("touchmove",this._touchmoveHandler,u6),r.addEventListener("mouseenter",this._enterHandler,uu),r.addEventListener("focus",this._enterHandler,uu),r.addEventListener("mouseleave",this._leaveHandler,uu),r.addEventListener("blur",this._leaveHandler,uu),r.addEventListener("mousedown",this._mousedownHandler,mC),r.addEventListener("touchstart",this._mousedownHandler,mC),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}
1_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const i=e.numCols,{rows:r,numCols:a}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?a-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/a+"%"),(i||!this._cellWidth)&&(this._cellWidth=100/a+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,u6),e.removeEventListener("mouseenter",this._enterHandler,uu),e.removeEventListener("focus",this._enterHandler,uu),e.removeEventListener("mouseleave",this._leaveHandler,uu),e.removeEventListener("blur",this._leaveHandler,uu),e.removeEventListener("mousedown",this._mousedownHandler,mC),e.removeEventListener("touchstart",this._mousedownHandler,mC),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){vl(()=>{setTimeout(()=>{const i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return cI(e,this.startValue,this.endValue)}_isRangeEnd(e){return dI(e,this.startValue,this.endValue)}_isInRange(e){return uI(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return cI(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let a=this.rows[i][r-1];if(!a){const s=this.rows[i-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let a=this.rows[i][r+1];if(!a){const s=this.rows[i+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(e){return dI(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return uI(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return cI(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return dI(e,this.previewStart,this.previewEnd)}_isInPreview(e){return uI(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){const i=lI(e);if(i){const r=i.getAttribute("data-mat-row"),a=i.getAttribute("data-mat-col");if(r&&a)return this.rows[parseInt(r)][parseInt(a)]}return null}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(_t))}}static{this.\u0275cmp=vt({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[ci],attrs:Khe,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){1&i&&(oe(0,Qhe,3,6,"tr",0),ao(1,efe,4,1,"tr",1,Zhe,!0),m(3,"span",2),v(4),p(),m(5,"span",2),v(6),p()),2&i&&(Fr(r._firstRowOffset<r.labelMinRequiredCells?0:-1),u(),so(r.rows),u(2),T("id",r._startDateLabelId),u(),_e(" ",r.startDateAccessibleName,"\n"),u(),T("id",r._endDateLabelId),u(),_e(" ",r.endDateAccessibleName,"\n"))},dependencies:[oa],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-app-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-app-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-app-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}
1.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-app-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-app-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-app-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-app-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-app-secondary))}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}
1.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0})}}return t})();function oI(t){return"TD"===t?.nodeName}function lI(t){let n;return oI(t)?n=t:oI(t.parentNode)?n=t.parentNode:oI(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),null!=n?.getAttribute("data-mat-row")?n:null}function cI(t,n,e){return null!==e&&n!==e&&t<e&&t===n}function dI(t,n,e){return null!==n&&n!==e&&t>=n&&t===e}function uI(t,n,e,i){return i&&null!==n&&null!==e&&n!==e&&t>=n&&t<=e}function h6(t){const n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}class As{constructor(n,e){this.start=n,this.end=e}}let Lh=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new nt,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(i){Jb()}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac})}}return t})(),pfe=(()=>{class t extends Lh{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(i){return new(i||t)(Fe(Pa))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac})}}return t})();const _fe={provide:Lh,deps:[[new fl,new Yl,Lh],Pa],useFactory:function gfe(t,n){return t||new pfe(n)}},gC=new Qe("MAT_DATE_RANGE_SELECTION_STRATEGY");let Cfe=0,f6=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){const i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof As?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,a,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=jt.EMPTY,this.activeDrag=null,this.selectedChange=new Xe,this._userSelection=new Xe,this.dragStarted=new Xe,this.dragEnded=new Xe,this.activeDateChange=new Xe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(iu(null)).subscribe(()=>this._init())}ngOnChanges(e){const i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const i=e.value,r=this._getDateFromDayOfMonth(i);let a,s;this._selected instanceof As?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==i||s!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!sm(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeek
1days(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){const r=i?i.rawValue:null,a=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&r){const s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){const i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow");let a=this._dateAdapter.getDayOfWeekNames("long").map((s,o)=>({long:s,narrow:i[o],id:Cfe++}));this._weekdays=a.slice(e).concat(a.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,a=this._firstWeekOffset;r<e;r++,a++){7==a&&(this._weeks.push([]),a=0);const s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),r+1),o=this._shouldEnableDate(s),l=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),d=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new sI(r+1,i[r],l,o,d,this._getCellCompareValue(s),s))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!(!e||!i||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(i)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){const i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),a=this._dateAdapter.getDate(e);return new Date(i,r,a).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof As?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static{this.\u0275fac=function(i){return new(i||t)(G(gr),G(Ph,8),G(Pa,8),G(Nh,8),G(gC,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(1&i&&En(um,5),2&i){let a;Vt(a=Ut())&&(r._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[ci],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){1&i&&(m(0,"table",0)(1,"thead",1)(2,"tr"),ao(3,tfe,5,2,"th",2,d6),p(),m(5,"tr",3),fe(6,"th",4),p()(),m(7,"tbody",5),be("selectedValueChange",function(s){return r._dateSelected(s)})("activeDateChange",function(s){return r._updateActiveDate(s)})("previewChange",function(s){return r._previewChanged(s)})("dragStarted",function(s){return r.dragStarted.emit(s)})("dragEnded",function(s){return r._dragEnded(s)})("keyup",function(s){return r._handleCalendarBodyKeyup(s)})("keydown",function(s){return r._handleCalendarBodyKeydown(s)}),p()()),2&i&&(u(3),so(r._weekdays),u(4),T("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[um],encapsulation:2,changeDetection:0})}}return t})(),p6=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),m6(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof As?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}
1get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=jt.EMPTY,this.selectedChange=new Xe,this.yearSelected=new Xe,this.activeDateChange=new Xe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(iu(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const i=this._dateAdapter.getYear(this._activeDate)-Cv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,a=[];r<24;r++)a.push(i+r),4==a.length&&(this._years.push(a.map(s=>this._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const i=e.value,r=this._dateAdapter.createDate(i,0,1),a=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(a)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Cv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Cv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Cv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),a=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new sI(e,r,r,this._shouldEnableYear(e),a)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let r=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof As){const i=e.start||e.end;i&&(this._selectedYear=this._dateAdapter.getYear(i))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}static{this.\u0275fac=function(i){return new(i||t)(G(gr),G(Pa,8),G(Nh,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(i,r){if(1&i&&En(um,5),2&i){let a;
1Vt(a=Ut())&&(r._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(i,r){1&i&&(m(0,"table",0)(1,"thead",1)(2,"tr"),fe(3,"th",2),p()(),m(4,"tbody",3),be("selectedValueChange",function(s){return r._yearSelected(s)})("activeDateChange",function(s){return r._updateActiveDate(s)})("keyup",function(s){return r._handleCalendarBodyKeyup(s)})("keydown",function(s){return r._handleCalendarBodyKeydown(s)}),p()()),2&i&&(u(4),T("rows",r._years)("todayValue",r._todayYear)("startValue",r._selectedYear)("endValue",r._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._getActiveCell()))},dependencies:[um],encapsulation:2,changeDetection:0})}}return t})();function m6(t,n,e,i,r){const a=t.getYear(n),s=t.getYear(e),o=g6(t,i,r);return Math.floor((a-o)/24)===Math.floor((s-o)/24)}function Cv(t,n,e,i){return function wfe(t,n){return(t%n+n)%n}(t.getYear(n)-g6(t,e,i),24)}function g6(t,n,e){let i=0;return e?i=t.getYear(e)-24+1:n&&(i=t.getYear(n)),i}let _6=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof As?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,a){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=a,this._rerenderSubscription=jt.EMPTY,this.selectedChange=new Xe,this.monthSelected=new Xe,this.activeDateChange=new Xe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(iu(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);const a=this._getDateFromMonth(i);this.selectedChange.emit(a)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(r,"year"):void 0;return new sI(e,i.toLocaleUpperCase(),a,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){const i=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;for(let a=this._dateAdapter.createDate(i,e,1);this._dateAdapter.getMonth(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>a}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return e<r||e===r&&i<a}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof As?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}static{this.\u0275fac=function(i){return new(i||t)(G(gr),G(Ph,8),G(Pa,8),G(Nh,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-year-view"]],viewQuery:function(i,r){if(1&i&&En(um,5),2&i){let a;
1Vt(a=Ut())&&(r._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(i,r){1&i&&(m(0,"table",0)(1,"thead",1)(2,"tr"),fe(3,"th",2),p()(),m(4,"tbody",3),be("selectedValueChange",function(s){return r._monthSelected(s)})("activeDateChange",function(s){return r._updateActiveDate(s)})("keyup",function(s){return r._handleCalendarBodyKeyup(s)})("keydown",function(s){return r._handleCalendarBodyKeydown(s)}),p()()),2&i&&(u(4),T("label",r._yearLabel)("rows",r._months)("todayValue",r._todayMonth)("startValue",r._selectedMonth)("endValue",r._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",r._dateAdapter.getMonth(r.activeDate)))},dependencies:[um],encapsulation:2,changeDetection:0})}}return t})(),Dfe=1,v6=(()=>{class t{constructor(e,i,r,a,s){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=a,this._id="mat-calendar-header-"+Dfe++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):m6(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const i=this._dateAdapter.getYear(this.calendar.activeDate)-Cv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1))]}static{this.\u0275fac=function(i){return new(i||t)(G(bv),G(qt(()=>pI)),G(Pa,8),G(Ph,8),G(gr))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:nfe,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-control
1s"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){1&i&&(Bo(),m(0,"div",0)(1,"div",1)(2,"span",2),v(3),p(),m(4,"button",3),be("click",function(){return r.currentPeriodClicked()}),m(5,"span",4),v(6),p(),vg(),m(7,"svg",5),fe(8,"polygon",6),p()(),QD(),fe(9,"div",7),Ss(10),m(11,"button",8),be("click",function(){return r.previousClicked()}),vg(),m(12,"svg",9),fe(13,"path",10),p()(),QD(),m(14,"button",11),be("click",function(){return r.nextClicked()}),vg(),m(15,"svg",9),fe(16,"path",12),p()()()()),2&i&&(u(2),T("id",r._periodButtonLabelId),u(),P(r.periodButtonDescription),u(),Kt("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),u(2),P(r.periodButtonText),u(),Ct("mat-calendar-invert","month"!==r.calendar.currentView),u(4),T("disabled",!r.previousEnabled()),Kt("aria-label",r.prevButtonLabel),u(3),T("disabled",!r.nextEnabled()),Kt("aria-label",r.nextButtonLabel))},dependencies:[i6,r6],encapsulation:2,changeDetection:0})}}return t})(),pI=(()=>{class t{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof As?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}constructor(e,i,r,a){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Xe,this.yearSelected=new Xe,this.monthSelected=new Xe,this.viewChanged=new Xe(!0),this._userSelection=new Xe,this._userDragDrop=new Xe,this._activeDrag=null,this.stateChanges=new nt,this._intlChanges=e.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new dC(this.headerComponent||v6),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,a=i||r||e.dateFilter;if(a&&!a.firstChange){const s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const i=e.value;(this.selected instanceof As||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static{this.\u0275fac=function(i){return new(i||t)(G(bv),G(Pa,8),G(Ph,8),G(gr))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(1&i&&(En(f6,5),En(_6,5),En(p6,5)),2&i){let a;
1Vt(a=Ut())&&(r.monthView=a.first),Vt(a=Ut())&&(r.yearView=a.first),Vt(a=Ut())&&(r.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[fn([_fe]),ci],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(1&i&&(oe(0,ife,0,0,"ng-template",0),m(1,"div",1),oe(2,rfe,1,11,"mat-month-view",2)(3,afe,1,6,"mat-year-view",3)(4,sfe,1,6,"mat-multi-year-view",3),p()),2&i){let a;T("cdkPortalOutlet",r._calendarHeaderPortal),u(2),Fr("month"===(a=r.currentView)?2:"year"===a?3:"multi-year"===a?4:-1)}},dependencies:[mv,Sue,f6,_6,p6],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-app-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-app-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-app-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();const y6={transformPanel:vv("transformPanel",[gc("void => enter-dropdown",mc("120ms cubic-bezier(0, 0, 0.2, 1)",s6([Sa({opacity:0,transform:"scale(1, 0.8)"}),Sa({opacity:1,transform:"scale(1, 1)"})]))),gc("void => enter-dialog",mc("150ms cubic-bezier(0, 0, 0.2, 1)",s6([Sa({opacity:0,transform:"scale(0.7)"}),Sa({transform:"none",opacity:1})]))),gc("* => void",mc("100ms linear",Sa({opacity:0}
1)))]),fadeInCalendar:vv("fadeInCalendar",[Oh("void",Sa({opacity:0})),Oh("enter",Sa({opacity:1})),gc("void => *",mc("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Sfe=new Qe("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const t=ye(El);return()=>t.scrollStrategies.reposition()}}),xfe={provide:Sfe,deps:[El],useFactory:function Tfe(t){return()=>t.scrollStrategies.reposition()}};let Mfe=(()=>{class t{constructor(e,i,r,a,s,o){this._elementRef=e,this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new jt,this._animationDone=new nt,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const i=this._model.selection,r=e.value,a=i instanceof As;if(a&&this._rangeSelectionStrategy){const s=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(s,this)}else r&&(a||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating="start"===e.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(gr),G(Lh),G(Pa),G(gC,8),G(bv))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(1&i&&En(pI,5),2&i){let a;Vt(a=Ut())&&(r._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(i,r){1&i&&xx("@transformPanel.start",function(s){return r._handleAnimationEvent(s)})("@transformPanel.done",function(s){return r._handleAnimationEvent(s)}),2&i&&(Dx("@transformPanel",r._animationState),Ys(r.color?"mat-"+r.color:""),Ct("mat-datepicker-content-touch",r.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){if(1&i&&(m(0,"div",0)(1,"mat-calendar",1),be("yearSelected",function(s){return r.datepicker._selectYear(s)})("monthSelected",function(s){return r.datepicker._selectMonth(s)})("viewChanged",function(s){return r.datepicker._viewChanged(s)})("_userSelection",function(s){return r._handleUserSelection(s)})("_userDragDrop",function(s){return r._handleUserDragDrop(s)}),p(),oe(2,ofe,0,0,"ng-template",2),m(3,"button",3),be("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),v(4),p()()),2&i){let a;Ct("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),Kt("aria-modal",!0)("aria-labelledby",null!==(a=r._dialogLabelId)&&void 0!==a?a:void 0),u(),Ys(r.datepicker.panelClass),T("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),u(),T("cdkPortalOutlet",r._actionsPortal),u(),Ct("cdk-visually-hidden",!r._closeButtonF
1ocused),T("color",r.color||"primary"),u(),P(r._closeButtonText)}},dependencies:[vue,pI,mv,i6],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-app-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-app-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-app-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-app-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[y6.transformPanel,y6.fadeInCalendar]},changeDetection:0})}}return t})(),Nfe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=lt({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}}return t})(),Rfe=(()=>{class t{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=jt.EMPTY;const a=Number(r);this.tabIndex=a||0===a?a:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:At(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:At(),r=this.datepicker?dm(this.datepicker.openedStream,this.datepicker.closedStream):At();this._stateChanges.unsubscribe(),this._stateChanges=dm(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(G(bv),G(gr),jc("tabindex"))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,a){if(1&i&&Br(a,Nfe,5),2&i){let s;Vt(s=Ut())&&(r._customIcon=s.first)}},viewQuery:function(i,r){if(1&i&&En(lfe,5),2&i){let a;Vt(a=Ut())&&(r._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){1&i&&be("click",function(s){return r._open(s)}),2&i&&(Kt("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),Ct("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&"accent"===r.datepicker.color)("mat-warn",r.datepicker&&"warn"===r.datepicker.color))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Ws],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ci],ngContentSelectors:dfe,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){1&i&&(Bo(cfe),m(0,"button",1,0),oe(2,ufe,2,0,":svg:svg",2),Ss(3),p()),2&i&&(T("disabled",r.disabled)("disableRipple",r.disableRipple),Kt("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex),u(2),Fr(r._customIcon?-1:2))},dependencies:[r6],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}}return t})(),w6=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({providers:[bv,xfe],imports:[yi,Vhe,phe,Tue,N8,gv,Mfe,Rfe,v6,XE]})}}return t})();
1const xn_supportedLanguages=["en","ar"],xn_EnglishLetters=/^[a-zA-Z\s]*$/,xn_Phone=/^(?:\+971|00971|0)(?:2|3|4|6|7|9|50|51|52|54|55|56|58)[0-9]{7}$/,xn_Email=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/,xn_Passport=/^[A-Z0-9]{6,9}$/i,xn_Password=/^(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z\d])[A-Za-z\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{8,}$/,xn_Phonenumber=/^\+965[569]\d{7}$/,xn_paternCivilId=/^(3|2)([0-9]{11})$/,xn_PublicKey="MIIBCgKCAQEA6PCOuvlg7JERGxdiwDVeJ3f9fSu91+tD8td7Ggi36C9YXuPrUgj6uEDdeFtH1r2uNhGsQvKk4ICghT5OORMu9FYORpS+TELzIYHpMmBXkyua5DNakazJTKxNzgtAqhouhhTCtWC97vDy4CYvnvvZdXNtkDX15gWKssMrhw0kQYa/2j9Xrmi9gy7sltqEV4dmAzDJN2wkkT+OeIxt89VI63t68bQy9Od9krbWhbVEcoGYHgM1DocCV8jVR8GkrsR0o1CHkgW74yxwEJBcmQDCd9XCOt0Akq+PFX9ZG5Csn75apnBrrtOKPLCjuIFkR38hxMj1f3GBcPArTFTeI8TPeQIDAQAB",xn_RecaptchaSettings_SiteKey="6Le_iyIrAAAAADJbkIS5Z-DbBPFtvwfx2dH3LlX5",xn_RecaptchaSettings_Enabled=!0;var id=function(t){return t[t.AnnualLeave=0]="AnnualLeave",t[t.SickLeave=2]="SickLeave",t[t.EmergencyLeave=1]="EmergencyLeave",t}(id||{}),fa=function(t){return t[t.Advertisement=1]="Advertisement",t[t.Survey=2]="Survey",t[t.Poll=3]="Poll",t[t.UrgentLeave_Request_Employee=4]="UrgentLeave_Request_Employee",t[t.UrgentLeave_Request_Supervisor=5]="UrgentLeave_Request_Supervisor",t[t.SickLeave=6]="SickLeave",t[t.PasswordReset=7]="PasswordReset",t[t.UpdateProfile=8]="UpdateProfile",t[t.EmergencyLeave=9]="EmergencyLeave",t[t.UrgentLeaveApporve_Employee=14]="UrgentLeaveApporve_Employee",t[t.UrgentLeaveReject_Employee=15]="UrgentLeaveReject_Employee",t[t.KFNotificationIndividual=20]="KFNotificationIndividual",t[t.KFNotificationBulk=21]="KFNotificationBulk",t}(fa||{}),ho=function(t){return t[t.Certificates=1]="Certificates",t[t.DirectorMissionLeave=2]="DirectorMissionLeave",t[t.DepartmentMissionLeave=3]="DepartmentMissionLeave",t[t.DepartmentAssignments=4]="DepartmentAssignments",t[t.VisitorsLogs=5]="VisitorsLogs",t[t.Advertisements=6]="Advertisements",t[t.Surveys=7]="Surveys",t[t.Polls=8]="Polls",t[t.LoanDetail
1s=9]="LoanDetails",t[t.Profile=10]="Profile",t[t.MyAttendance=11]="MyAttendance",t[t.Submissions=12]="Submissions",t}(ho||{}),D6=function(t){return t[t.Radio=1]="Radio",t[t.Textbox=2]="Textbox",t}(D6||{}),S6=function(t){return t[t.WithBarcode=1]="WithBarcode",t[t.WithoutBarCode=0]="WithoutBarCode",t}(S6||{});const gI="lang";let hu=(()=>{class t{translate;_document;http;defaultLanguage;supportedLanguages;_langChangeSubscription;render;langChange=new an("en");serviceUrl="/essportal";constructor(e,i,r,a){this.translate=e,this._document=i,this.http=a,this.render=r.createRenderer(null,null)}init(e,i){this.defaultLanguage=e,this.supportedLanguages=i,this.language="",this._langChangeSubscription=this.translate.onLangChange.subscribe(r=>{localStorage.setItem(gI,r.lang),this._changeLayout(r.lang)})}set language(e){e=e||localStorage.getItem(gI)||this.defaultLanguage||"ar",this.supportedLanguages.includes(e)||(e=e.split("-")[0],e=this.supportedLanguages.find(a=>a.startsWith(e))||this.defaultLanguage),this.translate.use(e),this.langChange.next(e),localStorage.setItem(gI,e);const r=this._document.documentElement;r.setAttribute("lang",e),r.setAttribute("class","ar"===e?"rtl":"ltr"),r.dir="ar"===e?"rtl":"ltr"}get language(){return this.translate.currentLang||this.defaultLanguage}_changeLayout(e){const i=this._document.documentElement;i.dir="ar"===e?"rtl":"ltr",i.lang=e}static \u0275fac=function(i){return new(i||t)(Fe(cn),Fe(Tn),Fe(ih),Fe($n))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fh=(()=>{class t{cookieName="token";setToken(e,i){return g(function*(){let r=new Date(i);isNaN(r.getTime())&&(r=new Date(Date.now()+864e5));const a=r.toUTCString();document.cookie=`token=${e}; path=/; Secure; expires=${a}; SameSite=Strict`})()}getToken(){const e=this.cookieName+"=",i=document.cookie.split(";");for(let r of i)if(r=r.trim(),r.startsWith(e))return r.substring(e.length);return null}clearToken(){sessionStorage.clear(),this.removeLocalStorage(),document.cookie=`${this.cookieName}=; path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC;`}removeLocalStorage(){const e=["StartupPopupNeverShow","PopupCheckedUserName","SurveyPopupClosedAt","PollPopupClosedAt","PopupSurveyId","PopupPollId"];for(var i=[],r=0;r<e.length;r++)i.push(localStorage.getItem(e[r]));for(localStorage.clear(),r=0;r<i.length;r++)null!==i[r]&&localStorage.setItem(e[r],i[r])}isTokenExpired(){var e=localStorage.getItem("tokenExpiredAt");if(e){const i=(new Date).getTime();if(new Date(e).getTime()-i<=0)return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wv=(()=>{class t{tokenService;requestCount=0;isLoading=new an(!1);loadingStatus=this.isLoading.asObservable();constructor(e){this.tokenService=e}show(e){!this.tokenService.getToken()&&(!e||!(e.includes("login")||e.includes("forgetPassword")||e.includes("resetPassword")||e.includes("ForgetPassword")))||(this.requestCount++,1===this.requestCount&&this.isLoading.next(!0))}hide(){this.requestCount>0&&this.requestCount--,0===this.requestCount&&this.isLoading.next(!1)}reset(){this.requestCount=0,this.isLoading.next(!1)}static \u0275fac=function(i){return new(i||t)(Fe(Fh))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Si=(()=>
1{class t{notificationSubject=new an({message:"",type:"success",show:!1});notification$=this.notificationSubject.asObservable();show(e,i="success"){this.notificationSubject.next({message:e,type:i,show:!0}),setTimeout(()=>{this.notificationSubject.next({message:"",type:i,show:!1})},3e3)}clear(){const{type:e}=this.notificationSubject.value;this.notificationSubject.next({message:"",type:e,show:!1})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wn=(()=>{class t{translate;loaderService;tokenService;notificationService;router;_http;serviceUrl="/essportal";requestHeaders;sessionGuidKey="session_guid";isRefreshing=!1;refreshTokenSubject=new an(null);logout$=new nt;constructor(e,i,r,a,s,o){this.translate=e,this.loaderService=i,this.tokenService=r,this.notificationService=a,this.router=s,this._http=o,this.ensureSessionGuid()}get logoutObservable(){return this.logout$.asObservable()}get getToken(){return this.tokenService.getToken()}get getLang(){let i="ar-KW";return"en"==(localStorage.getItem("lang")||"ar")&&(i="en-US"),i}get getRequestHeaders(){return this.requestHeaders=new Es({Authorization:`Bearer ${this.getToken}`,"Accept-Language":`${this.getLang}`,DeviceIdentifier:`${this.getPublicIp}
1`,SessionIdentifier:`${this.getSessionGuid}`,"Content-Type":"application/json"})}forceLogout(){this.loaderService.reset(),this.logout$.next(),this.isRefreshing=!1,this.refreshTokenSubject.next(null),this.notificationService.show(this.translate.instant("sessionisexpired")),this.tokenService.clearToken(),setTimeout(()=>this.router.navigate(["login"]),2e3)}refreshToken(){const e=localStorage.getItem("RefreshToken"),i=this.getToken;return e?this._http.post(this.serviceUrl.concat("/api/login/refresh-token"),{refreshToken:e,accessToken:i}).pipe(Ot(a=>{if(200===a.code&&0===a.apiCode){const s=a.data.token;return this.tokenService.setToken(s,a.data.accessTokenExpiryTime||new Date(Date.now()+864e5).toISOString()),localStorage.setItem("RefreshToken",a.data.refreshToken),localStorage.setItem("tokenExpiredAt",a.data.accessTokenExpiryTime),s}return this.forceLogout(),null}),ts(a=>(this.forceLogout(),At(null)))):At(null)}getAll(e){this.loaderService.show();const i=()=>{const r=new Es({Authorization:`Bearer ${this.getToken}`,"Accept-Language":this.getLang,"Content-Type":"application/json"});return this._http.get(this.serviceUrl.concat(e),{headers:r}).pipe(Lt(this.logout$),ts(a=>401===a.status?this.handle401Retry(i):(this.ClassifyErrorAsPerStatus(a),Ms(()=>a))),Ca(()=>{setTimeout(()=>this.loaderService.hide(),0)}))};return i()}handle401Retry(e){return this.isRefreshing?this.refreshTokenSubject.pipe(Cn(i=>!!i),Yn(1),Kr(()=>e())):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.loaderService.hide(),this.refreshToken().pipe(Kr(i=>(this.isRefreshing=!1,i?(this.refreshTokenSubject.next(i),e()):Ms(()=>new Error("Session expired")))),ts(i=>(this.isRefreshing=!1,this.forceLogout(),Ms(()=>i)))))}handle401Error(e,i){return this.isRefreshing?this.refreshTokenSubject.pipe(Cn(r=>null!=r),Yn(1),Kr(r=>i.handle(this.addToken(e,r)))):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.refreshToken().pipe(Kr(r=>(this.isRefreshing=!1,r?(this.refreshTokenSubject.next(r),i.handle(this.addToken(e,r))):(this.tokenService.clearToken(),this.router.navigate(["/login"]),Ms(()=>new Error("Session expired"))))),ts(r=>(this.isRefreshing=!1,this.tokenService.clearToken(),this.router.navigate(["/login"]),Ms(()=>r)))))}addToken(e,i){return e.clone({setHeaders:{Authorization:`Bearer ${i}`}})}getAll1(e){return e.includes("CheckPACIAuthentication")||this.loaderService.show(),this._http.get(this.serviceUrl.concat(e),{headers:this.getRequestHeaders}).pipe(Vr(i=>{this.ClassifyErrorAsPerStatus(i)}),ts(i=>(this.ClassifyErrorAsPerStatus(i),Ms(()=>i))),Ca(()=>{setTimeout(()=>this.loaderService.hide(),0)}))}ClassifyErrorAsPerStatus(e){4030===e?.error?.apiCode?(this.notificationService.show(this.translate.instant("sessionisexpired")),this.tokenService.clearToken(),this.router.navigate(["login"])):503===e?.error?.code||503===e?.error?.apiCode||503===e.status?(this.notificationService.show(this.translate.instant("Somethingwentwrong")),this.tokenService.clearToken(),this.router.navigate(["login"])):500===e.status||0!==e?.apiCode?5005===e?.apiCode?this.notificationService.show(e?.message||this.translate.instant("InfoMessage"),"info"):5006===e?.apiCode?this.notificationService.show(e?.message||this.translate.instant("WaringMessage"),"warning"):(520===e.status||520===e.code)&&this.notificationService.show(this.translate.instant("Somethingwentwrong"),"error"):500===e.status?5005===e?.error?.apiCode?this.notificationService.show(e?.error?.message||this.translate.instant("InfoMessage"),"info"):5006===e?.error?.apiCode&&this.notificationService.show(e?.error?.message||this.translate.instant("WaringMessage"),"warning"):(520===e.status||520===e.code)&&this.notificationService.show(this.translate.instant("Somethingwentwrong"),"error")}getAllWithParameters(e,i){return this.loaderService.show(),this._http.get(this.serviceUrl.concat(e,"/"),{params:i}).pipe(Ca(()=>{setTimeout(()=>this.loaderService.hide(),0)}))}getSingle(e,i){return this.loaderService.show(),this._http.get(this.serviceUrl.concat(e,"/",i.toString())).pipe(Ca(()=>{setTimeout(()=>this.loaderService.hide(),0)}))}getSingleWithQueryString(e){return this.loaderService.show(),this._http.get(this.serviceUrl.concat(e)).pipe(Ca(()=>this.loaderService.hide()))}Send(e,i){return this.loaderService.show(),this._http.post(this.serviceUrl.concat(e),i,{headers:this.getRequestHeaders}).pipe(Ca(()=>this.loaderService.hide()))}postWithoutHeaders(e,i){return this.loaderService.show(),this._http.post(this.serviceUrl.concat(e),i).pipe(ts(r=>(this.ClassifyErrorAsPerStatus(r),Ms(()=>r))),Ca(()=>this.loaderService.hide()))}post(e,i){this.loaderService.show(e);const r=()=>{const a=new Es({Authorization:`Bearer ${this.getToken}`,"Accept-Language":this.getLang,"Content-Type":"application/json"});return this._http.post(this.serviceUrl.concat(e),i,{headers:a}).pipe(Lt(this.logout$),Vr(s=>{this.ClassifyErrorAsPerStatus(s)}),ts(s=>401===s.status?this.handle401Retry(r):(this.ClassifyErrorAsPerStatus(s),Ms(()=>s))),Ca(()=>{setTimeout(()=>this.loaderService.hide(),0)}))};return r()}postWithParameters(e,i){return this.loaderService.show(),this._http.post(this.serviceUrl.concat(e),null,{params:i}).pipe(Ca(()=>this.loaderService.hide()))}update(e,i){this.loaderService.show();const r=JSON.stringify(i);return this._http.put(this.serviceUrl.concat(e),r).pipe(Ca(()=>this.loaderService.hide()))}updateWithParameters(e,i){return this.loaderService.show(),this._http.put(this.serviceUrl.concat(e),null,{params:i}).pipe(Ca(()=>this.loaderService.hide()))}delete(e,i){return this.loaderService.show(),this._http.delete(this.serviceUrl.concat(e),{params:i}).pipe(Ca(()=>this.loaderService.hide()))}deleteByUrl(e){return this.loaderService.show(),this._http.delete(this.serviceUrl.concat(e)).pipe(Ca(()=>this.loaderService.hide()))}deleteWithParameters(e,i){return this.loaderService.show(),this._http.delete(this.serviceUrl.concat(e),{params:i}).pipe(Ca(()=>this.loaderService.hide()))}getPublicIp(){return this._http.get("https://api.ipify.org?format=json")}ensureSessionGuid(){if(!sessionStorage.getItem(this.sessionGuidKey)){const e=crypto.randomUUID();sessionStorage.setItem(this.sessionGuidKey,e)}}getSessionGuid(){return sessionStorage.getItem(this.sessionGuidKey)}static \u0275fac=function(i){return new(i||t)(Fe(cn),Fe(wv),Fe(Fh),Fe(Si),Fe(An),Fe($n))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ffe(t,n){if(1&t){const e=qe();m(0,"div",10)(1,"a",11),be("click",function(){return Ce(e),we(B(2).goTOPage())}),v(2),M(3,"translate"),p(),m(4,"a",12),be("click",function(){return Ce(e),we(B(2).MarkAllAsRead())}),v(5),M(6,"translate"),p()()}2&t&&(u(2),P(E(3,2,"ViewAll")),u(3),_e(" ",E(6,4,"MarkAllAsRead")," "))}function Bfe(t,n){if(1&t){const e=qe();m(0,"div",13)(1,"div",14)(2,"p"),v(3),m(4,"span"),v(5),p(),m(6,"span"),v(7),p()()(),m(8,"div",15)(9,"h5",16),be("click",function(){const r=Ce(e).$implicit;return we(B(2).markAsRead(r))}),v(10),p(),fe(11,"p",17),p()()}if(2&t){const e=n.$implicit,i=B(2);Ys(""==e.readOnFormatted?"noti-unmarked":"noti-marked"),u(3),_e(" ",i.getDateArray(e.createdOnFormatted)[0]," "),u(2),_e(" ",i.getDateArray(e.createdOnFormatted)[1]," "),u(2),P(i.getDateArray(e.createdOnFormatted)[2]),u(3),P(e.title),u(),T("innerHTML",e.body,Pb)}}function Vfe(t,n){1&t&&(m(0,"div")(1,"p",18),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function Ufe(t,n){if(1&t){const e=qe();m(0,"div",1)(1,"div",2)(2,"p"),v(3),M(4,"translate"),p(),m(5,"button",3),be("click",function(){return Ce(e),we(B().toggleNotifiSidebar())}),fe(6,"img",4),p()(),oe(7,Ffe,7,6,"div",5),m(8,"div",6)(9,"div",7),oe(10,Bfe,12,7,"div",8)(11,Vfe,4,3,"div",9),p()()()}if(2&t){const e=B();Ys(e.showSideBar?"show":""),u(3),P(E(4,6,"Notifications")),u(4),T("ngIf",e.notificationList&&e.notificationList.length>0),u(3),T("ngForOf",e.notificationList),u(),T("ngIf",e.notificationList&&0==e.notificationList.length)}}let Hfe=(()=>{class t{languageService;_httpService;translate;http;router;defaultCount=5;showSideBar;notificationList;CloseSideBar=new Xe;refreshUnReadCount=new Xe;constructor(e,i,r,a,s){this.languageService=e,this._httpService=i,this.translate=r,this.http=a,this.router=s}toggleNotifiSidebar(){this.CloseSideBar.emit(!0)}ngOnInit(){}markAsRead(e){null!=e&&e.notificationCategoryId&&(""==e.readOnFormatted&&this.WebNotificationMarkAsReadOnly(e.id),this.goToDetailNotificationPage(e))}goToDetailNotificationPage(e){switch(e.notificationCategoryId){case fa.Advertisement:this.router.navigate(["/Advertisements-Detail
1s",e.referenceId]);break;case fa.Survey:this.router.navigate(["/survey"]);break;case fa.Poll:this.router.navigate(["/poll"]);break;case fa.UrgentLeaveApporve_Employee:case fa.UrgentLeaveReject_Employee:case fa.SickLeave:case fa.UrgentLeave_Request_Employee:this.router.navigate(["/my-requests"]);break;case fa.UrgentLeave_Request_Supervisor:this.router.navigate(["/submissions"]);break;case fa.KFNotificationBulk:this.openDynamicUrl(e.externalUrl)}}openDynamicUrl(e){null!=e&&""!=e&&window.open(e,"_blank")}GetAllWebNotification(){this._httpService.post("/api/Notifications/GetAllWebNotification",{pageNumber:1,pageSize:this.defaultCount}).subscribe({next:e=>{e.code==wa.Ok&&null!=e.data&&(this.notificationList=e.data)},error:e=>{}})}WebNotificationMarkAsReadOnly(e){this._httpService.post("/api/Notifications/WebNotificationMarkAsReadOnly/"+e,null).subscribe({next:i=>{i.code==wa.Ok&&null!=i.data&&1==i.data&&(this.refreshUnReadCount.emit(),this.GetAllWebNotification())},error:i=>{console.log("error in WebNotificationMarkAsReadOnly "+i)}})}getDateArray(e){if(e&&e.includes("/"))return e.split("/")}goTOPage(){this.router.navigate(["notifications"])}MarkAllAsRead(){this.WebNotificationMarkAllAsReadOnly()}WebNotificationMarkAllAsReadOnly(){this._httpService.post("/api/Notifications/WebNotificationMarkAllAsReadOnly",null).subscribe({next:e=>{e.code==wa.Ok&&null!=e.data&&1==e.data&&(this.refreshUnReadCount.emit(),this.GetAllWebNotification())},error:e=>{console.log("error in WebNotificationMarkAllAsReadOnly "+e)}})}static \u0275fac=function(i){return new(i||t)(G(hu),G(wn),G(cn),G($n),G(An))};static \u0275cmp=vt({type:t,selectors:[["app-notification-sidebar"]],inputs:{showSideBar:"showSideBar",notificationList:"notificationList"},outputs:{CloseSideBar:"CloseSideBar",refreshUnReadCount:"refreshUnReadCount"},decls:1,vars:1,consts:[["id","notifisidebar","class","notifisidebar",3,"class",4,"ngIf"],["id","notifisidebar",1,"notifisidebar"],[1,"notifi-header"],[1,"close-btn",3,"click"],["src","./assets/images/sidebar-close-icon.svg"],["class","text-center",4,"ngIf"],[1,"wb-body","mt-2"],[1,"recent-updates-sec"],["class","recent-update",3,"class",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"text-center"],[1,"mx-3","pt-3",3,"click"],[1,"pt-3",3,"click"],[1,"recent-update"],[1,"recent-update-date"],[1,"recent-update-info"],[3,"click"],[3,"innerHTML"],[1,"text-center","pt-3"]],template:function(i,r){1&i&&oe(0,Ufe,12,8,"div",0),2&i&&T("ngIf",r.notificationList)},dependencies:[Zt,Un,pn,dn],encapsulation:2})}return t})();const Bh_RecaptchaSettings_SiteKey="6Le_iyIrAAAAADJbkIS5Z-DbBPFtvwfx2dH3LlX5",Bh_RecaptchaSettings_Enabled=!0;let T6=(()=>{class t{_languageService;renderer;isBotLoaded=!1;constructor(e,i){this._languageService=i,this.renderer=e.createRenderer(null,null)}loadChatBot(e,i=!0){const r=document.getElementById("botscript");if(r){if(!i)return void r.setAttribute("data-param1",e);this.renderer.removeChild(document.body,r)}const a=this.renderer.createElement("script");a.id="botscript";const s=localStorage.getItem("lang")||this._languageService.language;a.src="ar"===s?"/essportal/assets/kf/js/KF.ar.js":"/essportal/assets/kf/js/KF.js",a.type="text/javascript",a.setAttribute("data-param1",e),this.renderer.appendChild(document.body,a),this.isBotLoaded=!0}unloadChatBot(){const e=document.getElementById("botscript"),i=document.getElementById("cx-iframe-container");i&&this.renderer.removeChild(document.body,i);const r=document.getElementsByClassName("btn-bot");r&&this.renderer.removeChild(document.body,r),e&&(e.remove(),this.renderer.removeChild(document.body,e))}static \u0275fac=function(i){return new(i||t)(Fe(ih),Fe(hu))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const{isArray:Gfe}=Array;function M6(t){return 1===t.length&&Gfe(t[0])?t[0]:t}function _I(...t){const n=q0(t),e=M6(t);return e.length?new Jt(i=>{let r=e.map(()=>[]),a=e.map(()=>!1);i.add(()=>{r=a=null});for(let s=0;!i.closed&&s<e.length;s++)la(e[s]).subscribe(mi(i,o=>{if(r[s].push(o),r.every(l=>l.length)){const l=r.map(d=>d.shift());i.next(n?n(...l):l),r.some((d,h)=>!d.length&&a[h])&&i.complete()}},()=>{a[s]=!0,!r[s].length&&i.complete()}
1));return()=>{r=a=null}}):Gs}function vI(...t){const n=q0(t);return Fi((e,i)=>{const r=t.length,a=new Array(r);let s=t.map(()=>!1),o=!1;for(let l=0;l<r;l++)la(t[l]).subscribe(mi(i,d=>{a[l]=d,!o&&!s[l]&&(s[l]=!0,(o=s.every(Fn))&&(s=null))},Dr));e.subscribe(mi(i,l=>{if(o){const d=[l,...a];i.next(n?n(...d):d)}}))})}Math,Math,Math;const W6=["*"],Rme=["dialog"],q6={animation:!0,transitionTimerDelayMs:5};let wC=(()=>{class t{constructor(){this.animation=q6.animation}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function gm(t){return"string"==typeof t}function Hh(t){return null!=t}function _m(t){return(t||document.body).getBoundingClientRect()}const xge=()=>{},{transitionTimerDelayMs:Mge}=q6,Iv=new Map,Ko=(t,n,e,i)=>{let r=i.context||{};const a=Iv.get(n);if(a)switch(i.runningTransition){case"continue":return Gs;case"stop":t.run(()=>a.transition$.complete()),r=Object.assign(a.context,r),Iv.delete(n)}const s=e(n,i.animation,r)||xge;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),At(void 0).pipe(function Tge(t){return n=>new Jt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const o=new nt,l=new nt,d=o.pipe(function Kfe(...t){return n=>nu(n,At(...t))}(!0));Iv.set(n,{transition$:o,complete:()=>{l.next(),l.complete()},context:r});const h=function wge(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const _=Jr(n,"transitionend").pipe(Lt(d),Cn(({target:C})=>C===n));(function E6(...t){return 1===(t=M6(t)).length?la(t[0]):new Jt(function qfe(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(la(t[i]).subscribe(mi(n,r=>{if(e){for(let a=0;a<e.length;a++)a!==i&&e[a].unsubscribe();e=null}n.next(r)})))}}(t))})(cC(h+Mge).pipe(Lt(d)),_,l).pipe(Lt(d)).subscribe(()=>{Iv.delete(n),t.run(()=>{s(),o.next(),o.complete()})})}),o.asObservable()};typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const cU=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function dU(t){const n=Array.from(t.querySelectorAll(cU)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let L_e=(()=>{class t{constructor(){this._ngbConfig=ye(wC),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0,this.role="dialog"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class Wh{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}let F_e=(()=>{class t{constructor(){this._document=ye(Tn)}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:a,paddingRight:s}=r;if(e>0){const o=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${o+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=a}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),B_e=(()=>{class t{constructor(){this._nativeElement=ye(Bt).nativeElement,this._zone=ye(_t),this._injector=ye(Ln)}ngOnInit(){vl({mixedReadWrite:()=>Ko(this._zone,this._nativeElement,(e,i)=>{i&&_m(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})},{injector:this._injector})}hide(){return Ko(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(Ys("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Ct("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})();class Gh{update(n){}close(n){}dismiss(n){}}const V_e=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","role","scrollable","size","windowClass","modalDialogClass"],U_e=["animation","backdropClass"];class H_e{_applyWindowOptions(n,e){V_e.forEach(i=>
1{Hh(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){U_e.forEach(i=>{Hh(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Lt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Lt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new nt,this._dismissed=new nt,this._hidden=new nt,n.instance.dismissEvent.subscribe(a=>{this.dismiss(a)}),this.result=new Promise((a,s)=>{this._resolve=a,this._reject=s}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function K6(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():At(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),_I(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var zI=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(zI||{});let j_e=(()=>{class t{constructor(){this._document=ye(Tn),this._elRef=ye(Bt),this._zone=ye(_t),this._injector=ye(Ln),this._closed$=new nt,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.role="dialog",this.dismissEvent=new Xe,this.shown=new nt,this.hidden=new nt}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":gm(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,vl({mixedReadWrite:()=>this._show()},{injector:this._injector})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=_I(Ko(this._zone,e,()=>e.classList.remove("show"),i),Ko(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};_I(Ko(this._zone,this._elRef.nativeElement,(a,s)=>{s&&_m(a),a.classList.add("show")},e),Ko(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Jr(e,"keydown").pipe(Lt(this._closed$),Cn(r=>"Escape"===r.key)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(zI.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Jr(this._dialogEl.nativeElement,"mousedown").pipe(Lt(this._closed$),Vr(()=>i=!1),Kr(()=>Jr(e,"mouseup").pipe(Lt(this._closed$),Yn(1))),Cn(({target:r})=>e===r)).subscribe(()=>{i=!0}),Jr(e,"click").pipe(Lt(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(zI.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=dU(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Ko(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&En(Rme,7),2&i){let a;
1Vt(a=Ut())&&(r._dialogEl=a.first)}},hostAttrs:["tabindex","-1"],hostVars:8,hostBindings:function(i,r){2&i&&(Kt("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy)("role",r.role),Ys("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Ct("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",role:"role",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:W6,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,r){1&i&&(Bo(),m(0,"div",1,0)(2,"div",2),Ss(3),p()()),2&i&&Ys("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return t})(),z_e=(()=>{class t{constructor(){this._applicationRef=ye(Ga),this._injector=ye(Ln),this._environmentInjector=ye(Wr),this._document=ye(Tn),this._scrollBar=ye(F_e),this._activeWindowCmptHasChanged=new nt,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new Xe;const e=ye(_t);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const i=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=Jr(n,"focusin").pipe(Lt(e),Ot(a=>a.target));Jr(n,"keydown").pipe(Lt(e),Cn(a=>"Tab"===a.key),vI(r)).subscribe(([a,s])=>{const[o,l]=dU(n);(s===o||s===n)&&a.shiftKey&&(l.focus(),a.preventDefault()),s===l&&!a.shiftKey&&(o.focus(),a.preventDefault())}),i&&Jr(n,"click").pipe(Lt(e),vI(r),Ot(a=>a[1])).subscribe(a=>a.focus())})})(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const a=r.container instanceof HTMLElement?r.container:Hh(r.container)?this._document.querySelector(r.container):this._document.body;if(!a)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const s=new Gh,o=(e=r.injector||e).get(Wr,null)||this._environmentInjector,l=this._getContentRef(e,o,i,s,r);let d=!1!==r.backdrop?this._attachBackdrop(a):void 0,h=this._attachWindowComponent(a,l.nodes),_=new H_e(h,l,d,r.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(h),_.hidden.pipe(Yn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=b=>{_.close(b)},s.dismiss=b=>{_.dismiss(b)},s.update=b=>{_.update(b)},_.update(r),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),h.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=Zx(B_e,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=Zx(j_e,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,a,s){return r?r instanceof Pr?this._createFromTemplateRef(r,a):gm(r)?this._createFromString(r):this._createFromComponent(e,i,r,a,s):new Wh([])}_createFromTemplateRef(e,i){const a=e.createEmbeddedView({$implicit:i,close(s){i.close(s)}
1,dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(a),new Wh([a.rootNodes],a)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new Wh([[i]])}_createFromComponent(e,i,r,a,s){const l=Zx(r,{environmentInjector:i,elementInjector:Ln.create({providers:[{provide:Gh,useValue:a}],parent:e})}),d=l.location.nativeElement;return s.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Wh([[d]],l.hostView,l)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),sd=(()=>{class t{constructor(){this._injector=ye(Ln),this._modalStack=ye(z_e),this._config=ye(L_e)}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function mve(t,n){if(1&t){const e=qe();m(0,"li",19),be("click",function(){const r=Ce(e).$implicit;return we(B(3).GoToNextStep(r+1))}),p()}if(2&t){const e=n.$implicit;Ys(B(3).currentStep==e+1?"active":"")}}function gve(t,n){if(1&t&&(m(0,"h6"),v(1),p()),2&t){const e=B().$implicit;u(),P(e.question)}}function _ve(t,n){if(1&t){const e=qe();m(0,"p")(1,"input",24),be("change",function(){const r=Ce(e).$implicit,a=B(3).$implicit;return we(B(3).AddAnswersForSubmit(r.id,a))}),p(),m(2,"label",25),v(3),p()()}if(2&t){const e=n.$implicit,i=B(3).index;u(),ba("id","test",e.id,""),ba("name","radio-group-",i,""),T("checked",e.isAnswered),u(),ba("for","test",e.id,""),u(),P(e.answer)}}function vve(t,n){if(1&t&&(m(0,"div"),oe(1,_ve,4,8,"p",23),p()),2&t){const e=B(2).$implicit;u(),T("ngForOf",e.pollAnswers)}}function yve(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"div",27)(2,"textarea",28),M(3,"translate"),Uo("ngModelChange",function(r){Ce(e);const a=B(2).$implicit;return wl(a.responseText,r)||(a.responseText=r),we(r)}),be("input",function(){Ce(e);const r=B(2).$implicit;return we(B(3).AddAnswersForSubmit(r.responseText,r))}),v(4,"                "),p()()()}if(2&t){const e=B(2).$implicit,i=B(3);u(2),Ct("is-invalid",!e.isAnswered&&(e.nextOrBackClicked||i.isSubmitted)),Vo("ngModel",e.responseText),T("placeholder",E(3,4,"Survey_page.type_here"))}}function bve(t,n){if(1&t&&(m(0,"div"),oe(1,vve,2,1,"div",21)(2,yve,5,6,"div",22),p()),2&t){const e=B().$implicit,i=B(3);u(),T("ngIf",e.questionType==i.questionType.Radio),u(),T("ngIf",e.questionType==i.questionType.Textbox)}}function Cve(t,n){1&t&&(m(0,"div")(1,"p",29),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e("* ",E(3,1,"Survey_page.validationsubmit_msg"),""))}function wve(t,n){if(1&t&&(m(0,"div",20),oe(1,gve,2,1,"h6",21)(2,bve,3,2,"div",21)(3,Cve,4,3,"div",21),p()),2&t){const e=n.$implicit,i=n.index,r=B(3);u(),T("ngIf",r.currentStep==i+1),u(),T("ngIf",r.currentStep==i+1),u(),T("ngIf",!e.isAnswered&&r.currentStep==i+1&&(e.nextOrBackClicked||r.isSubmitted))}}function Dve(t,n){if(1&t){const e=qe();m(0,"button",30),be("click",function(){return Ce(e),we(B(3).GoBack())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Survey_page.back")))}function Sve(t,n){if(1&t){const e=qe();m(0,"button",31),be("click",function(){return Ce(e),we(B(3).GoToNextStep())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Survey_page.next")))}function Tve(t,n){if(1&t){const e=qe();m(0,"button",32),be("click",function(){return Ce(e),we(B(3).submitSurvey())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Survey_page.submit")))}function xve(t,n){if(1&t&&(m(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12)(4,"p"),v(5),p(),m(6,"ul"),oe(7,mve,1,2,"li",13),p()()(),oe(8,wve,4,3,"div",14),p(),m(9,"div",15),oe(10,Dve,3,3,"button",16)(11,Sve,3,3,"button",17)(12,Tve,3,3,"button",18),p()()),2&t){const e=B(2);u(5),Vi("",e.currentStep,"/",e.totalQuesCount,""),u(2),T("ngForOf",e.getTotalQueCount()),u(),T("ngForOf",e.survey.pollQuestions),u(2),T("ngIf",e.currentStep>1),u(),T("ngIf",e.currentStep<e.totalQuesCount),u(),T("ngIf",e.currentStep==e.totalQuesCount)}}function Mve(t,n){if(1&t){const e=qe();m(0,"a",38),be("click",function(){return Ce(e),we(B(3).onClickViewSurvey())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Survey_page.viewsurvey")))}function Eve(t,n){if(1&t){const e=qe();m(0,"div",33),fe(1,"img",34),m(2,"h4"),v(3),M(4,"translate"),p(),m(5,"p"),v(6),M(7,"translate"),fe(8,"br"),v(9),M(10,"translate"),p(),m(11,"div",35)(12,"button",36),be("click",function(){return Ce(e),we(B(2).closeModal())}),v(13),M(14,"translate"),p(),oe(15,Mve,3,3,"a",37),p()()}if(2&t){const e=B(2);u(3),P(E(4,5,"Thankyou")),u(3),_e("",E(7,7,"YourFeedbackhas")," "),u(3),_e(" ",E(10,9,"beensubmittedsuccessfully"),""),u(4),P(E(14,11,"ok")),u(2),T("ngIf",e.fromHomePage)}}function Ive(t,n){if(1&t){const e=qe();m(0,"div",1)(1,"div",2)(2,"h5"),v(3),p(),m(4,"button",3),be("click",function(){return Ce(e),we(B().closeModal())}),m(5,"span",4),fe(6,"img",5),p()()(),m(7,"div",6),oe(8,xve,13,7,"div",7),p(),oe(9,Eve,16,13,"div",8),p()}if(2&t){const e=B();u(3),_e(" ",e.survey.title,""),u(5),T("ngIf",!e.submitSuccess),u(),T("ngIf",e.submitSuccess)}}new Qe("live announcer delay",{providedIn:"root",factory:()=>100});let LU=(()=>{class t{notificationService;router;_httpService;activeModal;survey;fromHomePage=!1;currentStep=1;totalQuesCount=0;selectedQuestionsAns=[];isSubmitted=!1;submitSuccess=!1;refreshData=new Xe;onClickMayBeLater=new Xe;questionType=D6;constructor(e,i,r,a){this.notificationService=e,this.router=i,this._httpService=r,this.activeModal=a}ngOnInit(){this.survey&&(this.totalQuesCount=this.survey.pollQuestions.length,null!=this.survey.pollQuestions&&this.survey.pollQuestions.forEach(e
1=>{e.isAnswered=!1,e.nextOrBackClicked=!1,e.pollAnswers.forEach(i=>i.isAnswered=!1)}))}closeModal(){this.activeModal.close(),this.fromHomePage&&!this.submitSuccess?this.onClickMayBeLater.emit():this.submitSuccess&&!this.fromHomePage&&this.refreshData.emit()}GoToNextStep(e=void 0){const i=this.survey.pollQuestions[this.currentStep-1];i.nextOrBackClicked=!0,i.questionType===this.questionType.Textbox&&(i.isAnswered=i.responseText&&i.responseText.trim().length>0),i.isAnswered&&(this.currentStep=e||this.currentStep+1)}GoBack(){this.survey.pollQuestions[this.currentStep-1].nextOrBackClicked=!0,this.currentStep=this.currentStep-1}AddAnswersForSubmit(e,i){if(i){if(i.questionType===this.questionType.Radio){const a=this.survey.pollQuestions.find(s=>s.id==i.id);if(a&&a.pollAnswers){a.pollAnswers.forEach(o=>o.isAnswered=!1);let s=a.pollAnswers.find(o=>o.id==e);s&&(s.isAnswered=!0)}}i.isAnswered=i.questionType!==this.questionType.Textbox||e&&e.trim().length>0;var r=this.selectedQuestionsAns.findIndex(a=>a.questionId==i.id);-1!=r&&this.selectedQuestionsAns.splice(r,1),this.selectedQuestionsAns.push({answerId:i.questionType===this.questionType.Radio?e:0,questionId:i.id,responseText:i.questionType===this.questionType.Textbox?e:null})}}getTotalQueCount(){return Array(this.totalQuesCount).fill(0).map((i,r)=>r)}removeLocalStorage(){localStorage.removeItem("PopupSurveyId"),localStorage.removeItem("SurveyPopupClosedAt"),localStorage.getItem("StartupPopupNeverShow")&&localStorage.removeItem("StartupPopupNeverShow"),localStorage.getItem("PopupCheckedUserName")&&localStorage.removeItem("PopupCheckedUserName")}submitSurvey(){this.fromHomePage&&this.removeLocalStorage(),this.isSubmitted=!0,!this.checkIfAllQuesAreAnswered()&&this._httpService.post("/api/Survey/SubmitSurveyPollAnswer",this.selectedQuestionsAns).subscribe({next:e=>{this.isSubmitted=!1,e.code==wa.Ok?this.submitSuccess=e.data:this.notificationService.show("Something went wrong!","error")},error:e=>{this.isSubmitted=!1}})}checkIfAllQuesAreAnswered(){return this.isSubmitted&&(0==this.selectedQuestionsAns.length||this.selectedQuestionsAns.length!=this.totalQuesCount)}onClickViewSurvey(){this.closeModal(),this.router.navigate(["/survey"])}static \u0275fac=function(i){return new(i||t)(G(Si),G(An),G(wn),G(Gh))};static \u0275cmp=vt({type:t,selectors:[["app-survey-modal"]],inputs:{survey:"survey",fromHomePage:"fromHomePage"},outputs:{refreshData:"refreshData",onClickMayBeLater:"onClickMayBeLater"},decls:1,vars:1,consts:[["class","modal-dialog","id","SurveyModal",4,"ngIf"],["id","SurveyModal",1,"modal-dialog"],[1,"modal-header"],["type","button",1,"close",3,"click"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[1,"modal-body"],["class","survey-popup",4,"ngIf"],["class","login-popup-sec",4,"ngIf"],[1,"survey-popup"],[1,"row"],[1,"col-12"],[1,"rating-indicators","ses-rating"],["class","active",3,"class","click",4,"ngFor","ngForOf"],["class","col-12 feebback-rb",4,"ngFor","ngForOf"],[1,"survey-pop-btns"],["type","button","class","btn btn-gray",3,"click",4,"ngIf"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["type","button","class","btn btn-secondary",3,"click",4,"ngIf"],[1,"active",3,"click"],[1,"col-12","feebback-rb"],[4,"ngIf"],["class","mt-2",4,"ngIf"],[4,"ngFor","ngForOf"],["type","radio",3,"change","id","name","checked"],[3,"for"],[1,"mt-2"],[1,"form-group"],["rows","4","maxlength","500",1,"form-control",2,"resize","none",3,"ngModelChange","input","ngModel","placeholder"],[1,"text-danger","text-center","mt-2"],["type","button",1,"btn","btn-gray",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"login-popup-sec"],["src","assets/images/check-star.svg"],[1,"thankyou_footer"],["type","button",1,"btn","btn-primary","mt-3",3,"click"],["class","text-decoration-none mt-3",3,"click",4,"ngIf"],[1,"text-decoration-none","mt-3",3,"click"]],template:function(i,r){1&i&&oe(0,Ive,10,3,"div",0),2&i&&T("ngIf",r.survey)},dependencies:[Zt,hi,kE,da,Ur,Yo,iv,pn,dn,yi,Un,fi],encapsulation:2})}return t})();function Ave(t,n){if(1&t&&(m(0,"h5",13),v(1),p()),2&t){const e=B();u(),P(e.survey.title)}}let kve=(()=>{class t{notificationService;_httpService;activeModal;modalService;survey;ClickMayBeLater=new Xe;constructor(e,i,r,a){this.notificationService=e,this._httpService=i,this.activeModal=r,this.modalService=a}ngOnInit(){}closeModal(){this.activeModal.close()}OpenStartSuveyModal(){this.closeModal();const e=this.modalService.open(LU,{backdrop:"static",keyboard:!1});e.componentInstance.survey=this.survey,e.componentInstance.fromHomePage=!0,e.componentInstance.onClickMayBeLater.subscribe(()=>{this.onClickMayBeLater()})}onClickMayBeLater(){localStorage.setItem("SurveyPopupClosedAt",Date.now().toString()),this.setLSForLoggedInUserName(),this.closeModal(),this.ClickMayBeLater.emit()}onClickDontShowMeAgain(){localStorage.setItem("StartupPopupNeverShow","true"),this.setLSForLoggedInUserName(),this.closeModal()}setLSForLoggedInUserName(){var e=localStorage.getItem("UserName");null!=e&&localStorage.setItem("PopupCheckedUserName",e)}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Gh),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-start-survey-modal"]],inputs:{survey:"survey"},outputs:{ClickMayBeLater:"ClickMayBeLater"},decls:21,vars:13,consts:[[1,"modal-dialog-centered"],[1,"modal-content","rounded-4","p-4"],[1,"modal-body","text-center"],["type","button",1,"btn-close","float-end",3,"click"],["src","./assets/images/start_survey.png","alt","Survey Image",1,"img-fluid","mb
1-3",2,"max-height","180px"],["class","fw-bold",4,"ngIf"],[1,"text-muted"],[1,"d-flex","justify-content-center","gap-3","my-3"],[1,"btn","btn-outline-secondary","px-4","py-2","rounded-3",3,"click"],[1,"btn","btn-primary","px-4","py-2","rounded-3",3,"click"],[1,"form-check","d-flex","justify-content-center"],["type","checkbox","id","dontShowAgain",1,"form-check-input","me-2",3,"change"],["for","dontShowAgain",1,"form-check-label","text-muted"],[1,"fw-bold"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),be("click",function(){return r.onClickMayBeLater()}),p(),fe(4,"img",4),oe(5,Ave,2,1,"h5",5),m(6,"p",6),v(7),M(8,"translate"),p(),m(9,"div",7)(10,"button",8),be("click",function(){return r.onClickMayBeLater()}),v(11),M(12,"translate"),p(),m(13,"button",9),be("click",function(){return r.OpenStartSuveyModal()}),v(14),M(15,"translate"),p()(),m(16,"div",10)(17,"input",11),be("change",function(){return r.onClickDontShowMeAgain()}),p(),m(18,"label",12),v(19),M(20,"translate"),p()()()()()),2&i&&(u(5),T("ngIf",r.survey),u(2),P(E(8,5,"Survey_page.staffsurvey_header")),u(4),_e(" ",E(12,7,"Survey_page.later")," "),u(3),_e(" ",E(15,9,"Survey_page.startsurvey")," "),u(5),_e(" ",E(20,11,"Survey_page.dontshow")," "))},dependencies:[pn,dn,Zt],encapsulation:2})}return t})();function Nve(t,n){if(1&t){const e=qe();m(0,"div",18)(1,"p")(2,"input",19),be("change",function(){const r=Ce(e).$implicit;return we(B(3).AddAnswersForSubmit(r.id))}),p(),m(3,"label",20),v(4),p()()()}if(2&t){const e=n.$implicit;u(2),ba("id","test",e.id,""),T("checked",e.isAnswered),u(),ba("for","test",e.id,""),u(),P(e.answer)}}function Rve(t,n){1&t&&(m(0,"span",21),v(1),M(2,"translate"),p()),2&t&&(u(),_e("* ",E(2,1,"Poll.validationsubmit_msg"),""))}function Pve(t,n){if(1&t){const e=qe();m(0,"button",22),be("click",function(){return Ce(e),we(B(3).onClickMayBeLater())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Poll.answerlater")))}function Ove(t,n){if(1&t){const e=qe();m(0,"button",23),be("click",function(){return Ce(e),we(B(3).submitpoll())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Survey_page.submit")))}function Lve(t,n){if(1&t){const e=qe();m(0,"div",24)(1,"input",25),be("change",function(){return Ce(e),we(B(3).onClickDontShowMeAgain())}),p(),m(2,"label",26),v(3),M(4,"translate"),p()()}2&t&&(u(3),P(E(4,1,"Survey_page.dontshow")))}function Fve(t,n){if(1&t&&(m(0,"div",9)(1,"div",10)(2,"div",11)(3,"h6"),v(4),p(),oe(5,Nve,5,6,"div",12),p(),oe(6,Rve,3,3,"span",13),p(),m(7,"div",14),oe(8,Pve,3,3,"button",15)(9,Ove,3,3,"button",16),p(),oe(10,Lve,5,3,"div",17),p()),2&t){const e=B(2);u(4),P(e.poll.question),u(),T("ngForOf",e.poll.pollAnswers),u(),T("ngIf",!e.poll.isAnswered&&e.isSubmitted),u(2),T("ngIf",e.fromHomePage),u(),T("ngIf",e.currentStep==e.totalQuesCount),u(),T("ngIf",e.fromHomePage)}}function Bve(t,n){if(1&t){const e=qe();m(0,"a",32),be("click",function(){return Ce(e),we(B(3).onClickViewpoll())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Poll.viewpoll")))}function Vve(t,n){if(1&t){const e=qe();m(0,"div",27),fe(1,"img",28),m(2,"h4"),v(3),M(4,"translate"),p(),m(5,"p"),v(6),M(7,"translate"),fe(8,"br"),v(9),M(10,"translate"),p(),m(11,"div",29)(12,"button",30),be("click",function(){return Ce(e),we(B(2).closeModal())}),v(13),M(14,"translate"),p(),oe(15,Bve,3,3,"a",31),p()()}if(2&t){const e=B(2);u(3),P(E(4,5,"Thankyou")),u(3),_e("",E(7,7,"YourFeedbackhas")," "),u(3),_e(" ",E(10,9,"beensubmittedsuccessfully"),""),u(4),P(E(14,11,"ok")),u(2),T("ngIf",e.fromHomePage)}}function Uve(t,n){if(1&t){const e=qe();m(0,"div",1)(1,"div",2)(2,"h5"),v(3),M(4,"translate"),p(),m(5,"button",3),be("click",function(){return Ce(e),we(B().closeModal())}),m(6,"span",4),fe(7,"img",5),p()()(),m(8,"div",6),oe(9,Fve,11,6,"div",7)(10,Vve,16,13,"div",8),p()()}if(2&t){const e=B();u(3),_e(" ",E(4,3,"Poll.submitpoll")," "),u(6),T("ngIf",!e.submitSuccess),u(),T("ngIf",e.submitSuccess)}}let FU=(()=>{class t{notificationService;router;_httpService;activeModal;poll;fromHomePage=!1;isSubmitted=!1;submitSuccess=!1;selectedQuestionsAns=[];ClickMayBeLater=new Xe;refreshData=new Xe;constructor(e,i,r,a){this.notificationService=e,this.router=i,this._httpService=r,this.activeModal=a}ngOnInit(){this.poll&&null!=this.poll.pollAnswers&&(this.poll.isAnswered=!1,this.poll.pollAnswers.forEac
1h(e=>{e.isAnswered=!1}))}closeModal(){this.activeModal.close(),this.fromHomePage&&!this.submitSuccess?this.onClickMayBeLater():this.submitSuccess&&!this.fromHomePage&&this.refreshData.emit()}AddAnswersForSubmit(e){if(this.poll&&this.poll.pollAnswers){let r=this.poll.pollAnswers.find(a=>a.id==e);r&&(r.isAnswered=!0)}var i=this.selectedQuestionsAns.findIndex(r=>r.questionId==this.poll.id);-1!=i&&this.selectedQuestionsAns.splice(i,1),this.selectedQuestionsAns.push({answerId:e,questionId:this.poll.id}),this.poll.isAnswered=!0}removeLocalStorage(){localStorage.removeItem("PopupPollId"),localStorage.removeItem("PollPopupClosedAt"),localStorage.getItem("StartupPopupNeverShow")&&localStorage.removeItem("StartupPopupNeverShow"),localStorage.getItem("PopupCheckedUserName")&&localStorage.removeItem("PopupCheckedUserName")}submitpoll(){this.fromHomePage&&this.removeLocalStorage(),this.isSubmitted=!0,this.poll.isAnswered&&this._httpService.post("/api/Survey/SubmitSurveyPollAnswer",this.selectedQuestionsAns).subscribe({next:e=>{this.isSubmitted=!1,e.code==wa.Ok?this.submitSuccess=e.data:this.notificationService.show("Something went wrong!","error")},error:e=>{this.isSubmitted=!1,console.log("error in SubmitpollPollAnswer "+e)}})}onClickMayBeLater(){localStorage.setItem("PollPopupClosedAt",Date.now().toString()),this.setLSForLoggedInUserName(),this.activeModal.close(),this.ClickMayBeLater.emit()}onClickViewpoll(){this.activeModal.close(),this.router.navigate(["/poll"])}onClickDontShowMeAgain(){localStorage.setItem("StartupPopupNeverShow","true"),this.setLSForLoggedInUserName(),this.activeModal.close()}setLSForLoggedInUserName(){var e=localStorage.getItem("UserName");null!=e&&localStorage.setItem("PopupCheckedUserName",e)}static \u0275fac=function(i){return new(i||t)(G(Si),G(An),G(wn),G(Gh))};static \u0275cmp=vt({type:t,selectors:[["app-poll-modal"]],inputs:{poll:"poll",fromHomePage:"fromHomePage"},outputs:{ClickMayBeLater:"ClickMayBeLater",refreshData:"refreshData"},decls:1,vars:1,consts:[["class","modal-dialog","id","SurveyModal",4,"ngIf"],["id","SurveyModal",1,"modal-dialog"],[1,"modal-header"],["type","button",1,"close","poll-modal-close-btn",3,"click"],["aria-hidden","true"],["src","assets/images/sidebar-close-icon.svg"],[1,"modal-body"],["class","survey-popup",4,"ngIf"],["class","login-popup-sec",4,"ngIf"],[1,"survey-popup"],[1,"row"],[1,"col-12","feebback-rb"],["class","feebback-rb-brdr",4,"ngFor","ngForOf"],["class","text-danger text-center mt-2",4,"ngIf"],[1,"survey-pop-btns"],["type","button","class","btn btn-gray",3,"click",4,"ngIf"],["type","button","class","btn btn-primary",3,"click",4,"ngIf"],["class","form-group custom-cb text-center",4,"ngIf"],[1,"feebback-rb-brdr"],["type","radio","name","radio-group",3,"change","id","checked"],[3,"for"],[1,"text-danger","text-center","mt-2"],["type","button",1,"btn","btn-gray",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-group","custom-cb","text-center"],["type","checkbox","id","cb",3,"change"],["for","cb"],[1,"login-popup-sec"],["src","assets/images/check-star.svg"],[1,"thankyou_footer"],["type","button",1,"btn","btn-primary","mt-3",3,"click"],["class","text-decoration-none mt-3",3,"click",4,"ngIf"],[1,"text-decoration-none","mt-3",3,"click"]],template:function(i,r){1&i&&oe(0,Uve,11,5,"div",0),2&i&&T("ngIf",r.poll)},dependencies:[Zt,hi,pn,dn,yi,Un,fi],encapsulation:2})}return t})(),OC=(()=>{class t{_httpService;_langService;modalService;_tokenService;allowedRollFunctions=[];interval;latestSurveyPoll;allowedRoleFunctionsSubject=new an([]);popupReopenHours=24;allowedRoleFunctions$=this.allowedRoleFunctionsSubject.asObservable();permissionsLoaded=!1;constructor(e,i,r,a){this._httpService=e,this._langService=i,this.modalService=r,this._tokenService=a}get getallowedRollFunctions(){return this.allowedRoleFunctionsSubject.value}GetLatestSurveryPoll(){this._httpService.getAll("/api/Survey/GetLatestSurveryPoll").subscribe({next:e=>{e.code==wa.Ok&&null!=e.data&&(this.latestSurveyPoll=e.data,null!=this.latestSurveyPoll&&this.LogicForShowingStartSurveyOrPollPopUp())},error:e=>{}})}initializePermissions(){return this._httpService.getAll("/api/EmployeeMenu/GetEmployeeRoleFunctionMapping").pipe(Vr(e=>{const i=e.data;this.allowedRollFunctions=i,this.allowedRoleFunctionsSubject.next([...i]),this.permissionsLoaded=!0}),ts(e=>(console.error("Error loading permissions",e),At(void 0))))}LogicForShowingStartSurveyOrPollPopUp(){var e=localStorage.getItem("UserName"),i=localStorage.getItem("PopupCheckedUserName");const r=localStorage.getItem("StartupPopupNeverShow");if(e==i&&"true"===r)return;const a=localStorage.getItem("PollPopupClosedAt")?localStorage.getItem("PollPopupClosedAt"):localStorage.getItem("SurveyPopupClosedAt"),s=60*this.popupReopenHours*60*1e3,o=Date.now(),l=this.latestSurveyPoll.
1survey?this.latestSurveyPoll.survey.id==localStorage.getItem("PopupSurveyId"):this.latestSurveyPoll.poll?this.latestSurveyPoll.poll.id==localStorage.getItem("PopupPollId"):"";e==i?0==l||!a||o-+a>s?this.openModal():1==l&&null!=a&&(this.interval=setInterval(()=>{const d=Date.now()-+a,h=s-d;Math.ceil(h/6e4),Math.ceil(h/1e3)<=0&&0==this.modalService.hasOpenModals()&&(clearInterval(this.interval),this.GetLatestSurveryPoll())},1e4)):this.openModal()}ngOnDestroy(){this.interval&&clearInterval(this.interval)}removeInterval(){clearInterval(this.interval)}openModal(){null!=this.latestSurveyPoll.survey?(localStorage.removeItem("PollPopupClosedAt"),localStorage.setItem("PopupSurveyId",this.latestSurveyPoll.survey.id),this.openStartSurveyModal(this.latestSurveyPoll.survey)):null!=this.latestSurveyPoll.poll&&(localStorage.removeItem("SurveyPopupClosedAt"),localStorage.setItem("PopupPollId",this.latestSurveyPoll.poll.id),this.openPollModal(this.latestSurveyPoll.poll))}openStartSurveyModal(e){const i=this.modalService.open(kve,{backdrop:"static",keyboard:!1,windowClass:"start-survey-popup"});i.componentInstance.survey=e,i.componentInstance.ClickMayBeLater.subscribe(()=>{this.LogicForShowingStartSurveyOrPollPopUp()})}openPollModal(e){const i=this.modalService.open(FU,{backdrop:"static",keyboard:!1,windowClass:"start-survey-popup"});i.componentInstance.poll=e,i.componentInstance.fromHomePage=!0,i.componentInstance.ClickMayBeLater.subscribe(()=>{this.LogicForShowingStartSurveyOrPollPopUp()})}static \u0275fac=function(i){return new(i||t)(Fe(wn),Fe(hu),Fe(sd),Fe(Fh))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Hve=t=>({dropdown:t}),jve=(t,n)=>({"dropdown-toggle":t,active:n}),LC=t=>["/",t];function zve(t,n){if(1&t&&(m(0,"a",31),v(1),p()),2&t){const e=B().$implicit,i=B();T("ngClass",Zc(3,jve,null==e.children?null:e.children.length,"Home"==e.title))("routerLink",In(6,LC,e.navigationKey||"home")),u(),_e(" ","en"===i.languageService.language?e.menuTitleEn:e.menuTitleAr," ")}}function Yve(t,n){if(1&t&&(m(0,"a",32),v(1),p()),2&t){const e=B().$implicit,i=B();u(),_e(" ","en"===i.languageService.language?e.menuTitleEn:e.menuTitleAr," ")}}function $ve(t,n){1&t&&fe(0,"img",39)}function Wve(t,n){if(1&t&&(m(0,"a",37),oe(1,$ve,1,0,"img",38),v(2),p()),2&t){const e=B().$implicit,i=B().$implicit,r=B();T("routerLink",In(3,LC,e.navigationKey||"home")),u(),T("ngIf",!i.iconUrl),u(),_e(" ","en"===r.languageService.language?e.menuTitleEn:e.menuTitleAr," ")}}function Gve(t,n){1&t&&(m(0,"h5",40),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"CreateRequest")))}function qve(t,n){1&t&&(m(0,"h5",40),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"More")))}function Kve(t,n){1&t&&fe(0,"img",42),2&t&&T("src",B().$implicit.iconUrl,js)}function Zve(t,n){1&t&&fe(0,"img",42),2&t&&T("src","./assets/images/"+B().$implicit.menuTitleEn+".svg",js)}function Qve(t,n){if(1&t&&(m(0,"li")(1,"a",41),oe(2,Kve,1,1,"img",16)(3,Zve,1,1,"img",16),v(4),p()()),2&t){const e=n.$implicit,i=B(3);u(),T("routerLink",In(4,LC,e.navigationKey||"home")),u(),T("ngIf",e.iconUrl),u(),T("ngIf",!e.iconUrl),u(),_e(" ","en"===i.languageService.language?e.menuTitleEn:e.menuTitleAr," ")}}function Xve(t,n){1&t&&fe(0,"img",42),2&t&&T("src","./assets/images/"+B(2).$implicit.icon,js)}function Jve(t,n){if(1&t&&(m(0,"a",41),oe(1,Xve,1,1,"img",16),v(2),p()),2&t){const e=B().$implicit,i=B(3);T("routerLink",In(3,LC,e.navigationKey||"home")),u(),T("ngIf",e.icon),u(),_e(" ","en"===i.languageService.language?e.menuTitleEn:e.menuTitleAr," ")}}function eye(t,n){if(1&t&&(m(0,"li"),oe(1,Jve,3,5,"a",43),p()),2&t){const e=B().$implicit;u(),T("ngIf","My Requests"!==e.title)}}function tye(t,n){if(1&t&&(m(0,"div",33),oe(1,Wve,3,5,"a",34)(2,Gve,3,3,"h5",35)(3,qve,3,3,"h5",35),m(4,"ul",20),oe(5,Qve,5,6,"li",36)(6,eye,2,1,"li",36),p()()),2&t){const e=n.$implicit,i=B().$implicit;u(),T("ngIf","My Requests"==e.title),u(),T("ngIf","My Requests"==e.title),u(),T("ngIf","More"==i.title),u(2),T("ngForOf",e.children),u(),T("ngForOf",i.children)}}function nye(t,n){if(1&t&&(m(0,"li",27),oe(1,zve,2,8,"a",28)(2,Yve,2,1,"a",29)(3,tye,7,5,"div",30),p()),2&t){const e=n.$implicit;T("ngClass",In(4,Hve,null==e.children?null:e.children.length)),u(),T("ngIf",0==(null==e.children?null:e.children.length)),u(),T("ngIf",null==e.children?null:e.children.length),u(),T("ngForOf",e.children)}}function iye(t,n){if(1&t&&(m(0,"span",44),v(1),p()),2&t){const e=B();u(),P(e.notificationCount)}}function rye(t,n){1&t&&fe(0,"img",42),2&t&&T("src","data:image/png;base64,"+B().loginUserInfo.photoURL,js)}function aye(t,n){1&t&&fe(0,"img",45)}let ri=(()=>{class t{chatBoatService;languageService;_adapter;tokenService;_cacheService;_httpService;translate;http;router;defaultCount=5;_userName="";_profilePhoto="";canViewVisitotsLog=!1;notificationList=[];get userName(){return this._userName}set userName(e){this._userName=e}get profilePhoto(){return this._profilePhoto}set profilePhoto(e){this._profilePhoto=e}initials="";notificationCount=0;notifications=[];loginUserInfo={isError:!1,errorMsg:"",isValidUser:!1,isDirector:!1,isTrainingSupervisor:!1,nameEn:"",nameAr:"",designation:"",phoneNumber:"",ph
1otoURL:""};destroy$=new nt;employeeMenu={title:"",icon:"",children:[],navigationKey:"",menuTitleEn:"",menuTitleAr:""};showSideBar=!1;lang="ar";constructor(e,i,r,a,s,o,l,d,h){this.chatBoatService=e,this.languageService=i,this._adapter=r,this.tokenService=a,this._cacheService=s,this._httpService=o,this.translate=l,this.http=d,this.router=h}ngOnInit(){this.loginUserInfo=localStorage.getItem("loginUserInfo")?JSON.parse(localStorage.getItem("loginUserInfo")||""):"",this.loginUserInfo.photoURL=localStorage.getItem("employeePhto")||"",this.GetUnreadWebNotificationCount(),this.GetAllWebNotification(),this.loadEmployeeMenu(),this.lang=localStorage.getItem("lang")||"ar";const e=localStorage.getItem("employeeName")??"User";JSON.parse(localStorage.getItem("loginUserInfo")||"").isAllowedBot&&this.loadChatBotSafely(e),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(r=>{this.GetAllWebNotification()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}logout(){this._cacheService.removeInterval(),this.chatBoatService.unloadChatBot(),this._httpService.post("/api/login/logout",{}).subscribe({next:e=>{this.tokenService.clearToken(),this.router.navigate(["login"])},error:e=>{this.tokenService.clearToken(),this.router.navigate(["login"])}})}myAttendace(){this.router.navigate(["my-attendance"])}loadChatBotSafely(e){this.tokenService.isTokenExpired()?this._httpService.refreshToken().subscribe({next:i=>{i&&this.chatBoatService.loadChatBot(e,!1)}}):this.chatBoatService.loadChatBot(e,!1)}loadEmployeeMenu(){localStorage.getItem("employeeMenu")&&(this.employeeMenu=JSON.parse(localStorage.getItem("employeeMenu")||"")),this._httpService.getAll("/api/home/GetEmployeeUserMenuForPortal").subscribe({next:e=>{e&&200===e.code&&0===e.apiCode&&(this.employeeMenu=e.data,this.employeeMenu=e.data.map(i=>this.mapMenuItem(i,this.lang||"ar")),localStorage.setItem("employeeMenu",JSON.stringify(this.employeeMenu)))},error:e=>{this.initials=localStorage.getItem("initials")||""}})}mapMenuItem(e,i){return{title:e.menuTitleEn,icon:e.icon,menuTitleEn:e.menuTitleEn,menuTitleAr:e.menuTitleAr,navigationKey:e.navigationKey,children:(e.children||[]).map(r=>this.mapMenuItem(r,i))}}getInitials(e){return e?e.split(" ").map(a=>a.charAt(0).toUpperCase()).join(""):""}toggleNotifi(e=void 0){this.showSideBar=null==e}get getShowSideBar(){return this.showSideBar}setLanguage(e){"ar"===e&&this._adapter.setLocale("ar"),"en"===e&&this._adapter.setLocale("en"),this.languageService.language=e,this.SetLanguagePreference(e),this._cacheService.GetLatestSurveryPoll();const i=localStorage.getItem("employeeName")??"User";this.chatBoatService.unloadChatBot(),JSON.parse(localStorage.getItem("loginUserInfo")||"").isAllowedBot&&this.loadChatBotSafely(i)}SetLanguagePreference(e){this._httpService.post("/api/Notifications/SetLanguagePreference?isArabic="+("ar"==e?"true":"false"),null).subscribe({next:a=>{},error:a=>{}})}get languageToSwitch(){return"ar"===this.languageService.language?"en":"ar"}get getNotificationList(){return this.notificationList}GetUnreadWebNotificationCount(){this._httpService.getAll("/api/Notifications/GetUnreadWebNotificationCount").subscribe({next:e=>{e.code==wa.Ok&&null!=e.data&&(this.notificationCount=e.data)},error:e=>{}})}GetAllWebNotification(){this._httpService.post("/api/Notifications/GetAllWebNotification",{pageNumber:1,pageSize:this.defaultCount}).subscribe({next:e=>{e.code==wa.Ok&&null!=e.data&&(this.notificationList=e.data)},error:e=>{}})}refreshUnReadCount(){this.GetUnreadWebNotificationCount()}static \u0275fac=function(i){return new(i||t)(G(T6),G(hu),G(Pa),G(Fh),G(OC),G(wn),G(cn),G($n),G(An))};static \u0275cmp=vt({type:t,selectors:[["app-navbar"]],inputs:{userName:"userName",profilePhoto:"profilePhoto"},decls:38,vars:17,consts:[[1,"navbar","navbar-expand-lg"],[1,"container"],[1,"navbar-brand",3,"routerLink"],["src","./assets/images/logo.svg"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto","mb-2","mb-lg-0"],["class","nav-item dropdown",3,"ngClass",4,"ngFor","ngForOf"],[1,"nav-rs"],[1,"nav-item"],[1,"nl-wbgw",3,"click"],["src","./assets/images/bell-icon.svg"],["class","notifi-count",4,"ngIf"],[1,"nav-item","dropdown"],["data-bs-toggle","dropdown","aria-expanded","fal
1se",1,"nav-link","nav-profile","d-flex","align-items-center","pe-0"],[3,"src",4,"ngIf"],["src","./assets/images/person-image.png",4,"ngIf"],[1,"dropdown-toggle",2,"cursor","pointer"],[1,"dropdown-menu","usr-dm"],[1,"dd-menu-links"],["routerLink","/profile"],["src","./assets/images/MyAttendance.svg"],[2,"cursor","pointer",3,"click"],["src","./assets/images/language.svg"],["src","./assets/images/logout.png"],[3,"CloseSideBar","refreshUnReadCount","showSideBar","notificationList"],[1,"nav-item","dropdown",3,"ngClass"],["class","nav-link","role","button",3,"ngClass","routerLink",4,"ngIf"],["class","nav-link dropdown-toggle","role","button","data-bs-toggle","dropdown","aria-expanded","false",4,"ngIf"],["class","dropdown-menu",4,"ngFor","ngForOf"],["role","button",1,"nav-link",3,"ngClass","routerLink"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","dropdown-toggle"],[1,"dropdown-menu"],["class","nav-link dd-sm-title",3,"routerLink",4,"ngIf"],["class","dd-sm-head",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nav-link","dd-sm-title",3,"routerLink"],["src","./assets/images/request-icon.svg",4,"ngIf"],["src","./assets/images/request-icon.svg"],[1,"dd-sm-head"],[3,"routerLink"],[3,"src"],[3,"routerLink",4,"ngIf"],[1,"notifi-count"],["src","./assets/images/person-image.png"]],template:function(i,r){1&i&&(m(0,"nav",0)(1,"div",1)(2,"a",2),fe(3,"img",3),p(),m(4,"button",4),fe(5,"span",5),p(),m(6,"div",6)(7,"ul",7),oe(8,nye,4,6,"li",8),p(),m(9,"ul",9)(10,"li",10)(11,"a",11),be("click",function(){return r.toggleNotifi()}),fe(12,"img",12),oe(13,iye,2,1,"span",13),p()(),m(14,"li",14)(15,"a",15),oe(16,rye,1,1,"img",16)(17,aye,1,0,"img",17),m(18,"span",18),v(19),p()(),m(20,"div",19)(21,"ul",20)(22,"li")(23,"a",21),fe(24,"img",22),v(25),M(26,"translate"),p()(),m(27,"li")(28,"a",23),be("click",function(){return r.setLanguage(r.languageToSwitch)}),fe(29,"img",24),v(30),M(31,"translate"),p()(),m(32,"li")(33,"a",23),be("click",function(){return r.logout()}),fe(34,"img",25),v(35),M(36,"translate"),p()()()()()()()()(),m(37,"app-notification-sidebar",26),be("CloseSideBar",function(s){return r.toggleNotifi(s)})("refreshUnReadCount",function(){return r.refreshUnReadCount()}),p()),2&i&&(u(2),T("routerLink","/home"),u(6),T("ngForOf",r.employeeMenu),u(5),T("ngIf",r.notificationCount>0),u(3),T("ngIf",r.loginUserInfo.photoURL),u(),T("ngIf",!r.loginUserInfo.photoURL),u(2),_e("","en"===r.languageService.language?r.loginUserInfo.nameEn:r.loginUserInfo.nameAr," "),u(6),_e(" ",E(26,11,"ViewProfile")," "),u(5),_e(" ",E(31,13,"language"),""),u(5),_e(" ",E(36,15,"Logout"),""),u(2),T("showSideBar",r.getShowSideBar)("notificationList",r.getNotificationList))},dependencies:[pn,dn,Zt,Un,w6,hi,ui,Hfe,W8],encapsulation:2})}return t})();const sye=(t,n,e)=>({error:t,info:n,warning:e});function oye(t,n){1&t&&(m(0,"a",4),fe(1,"img",5),p())}function lye(t,n){1&t&&(m(0,"a",4),fe(1,"img",5),p())}function cye(t,n){1&t&&(m(0,"a",4),fe(1,"img",5),p())}function dye(t,n){if(1&t&&(m(0,"div",1)(1,"p"),fe(2,"img",2),v(3),p(),oe(4,oye,2,0,"a",3)(5,lye,2,0,"a",3)(6,cye,2,0,"a",3),p()),2&t){const e=n.ngIf;T("ngClass",Hp(5,sye,"error"==e.type,"info"==e.type,"warning"==e.type)),u(3),_e(" ",e.message,""),u(),T("ngIf","error"==e.type),u(),T("ngIf","info"==e.type),u(),T("ngIf","warning"==e.type)}}let jr=(()=>{class t{notificationService;notif={message:"",type:"success",show:!1};constructor(e){this.notificationService=e}ngOnInit(){this.notificationService.notification$.subscribe(e=>{this.notif=e})}close(){this.notificationService.clear()}static \u0275fac=function(i){return new(i||t)(G(Si))};static \u0275cmp=vt({type:t,selectors:[["app-notifications"]],decls:2,vars:3,consts:[["class","alert-block",3,"ngClass",4,"ngIf"],[1,"alert-block",3,"ngClass"],["src","./assets/images/error-alert-icon.svg"],["class","close-alert",4,"ngIf"],[1,"close-alert"],["src","./assets/images/close-icon.svg",1,"img-fluid"]],template:function(i,r){1&i&&(oe(0,dye,7,9,"div",0),M(1,"async")),2&i&&T("ngIf",E(1,1,r.notificationService.notification$))},dependencies:[yi,oa,Zt,Ii],styles:[".mat-snack-bar-container.success-snackbar{background-color:#e6ffed;color:#2ecc71;box-shadow:0 4px 8px #0003}  .mat-snack-bar-container.error-snackbar{background-color:#ffe6e6;
1color:#e74c3c}"]})}return t})();const WI=t=>({active:t});function uye(t,n){1&t&&fe(0,"app-notifications")}function hye(t,n){if(1&t&&(m(0,"div",25)(1,"h6"),v(2),p(),fe(3,"div",26),p()),2&t){const e=n.$implicit;u(2),P(e.title),u(),T("innerHTML",e.description,Pb)}}function fye(t,n){if(1&t&&(Gn(0),oe(1,hye,4,2,"div",24),qn()),2&t){const e=B(2);u(),T("ngForOf",e.generalInfo)}}function pye(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function mye(t,n){if(1&t&&(m(0,"div",22),oe(1,fye,2,1,"ng-container",23)(2,pye,4,3,"ng-template",null,0,ni),p()),2&t){const e=Di(3),i=B();u(),T("ngIf",i.generalInfo.length>0)("ngIfElse",e)}}function gye(t,n){if(1&t&&(m(0,"div",30)(1,"div",31),fe(2,"img",32),p(),m(3,"h6"),v(4),p(),m(5,"span"),v(6),p()()),2&t){const e=n.$implicit;u(2),T("src",e.imageUrl,js),u(2),P(e.name),u(2),P(e.role)}}function _ye(t,n){if(1&t&&(Gn(0),oe(1,gye,7,3,"div",29),qn()),2&t){const e=B(2);u(),T("ngForOf",e.managementInfo)}}function vye(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function yye(t,n){if(1&t&&(m(0,"div",27)(1,"div",28),oe(2,_ye,2,1,"ng-container",23)(3,vye,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.managementInfo.length>0)("ngIfElse",e)}}function bye(t,n){1&t&&fe(0,"hr")}function Cye(t,n){if(1&t&&(m(0,"div")(1,"h6"),v(2),p(),m(3,"span"),v(4),p(),oe(5,bye,1,0,"hr",1),p()),2&t){const e=n.$implicit,i=n.last;u(2),P(e.name),u(2),P(e.role),u(),T("ngIf",!i)}}function wye(t,n){if(1&t&&(Gn(0),oe(1,Cye,6,3,"div",34),qn()),2&t){const e=B(2);u(),T("ngForOf",e.boardOfDirectors)}}function Dye(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function Sye(t,n){if(1&t&&(m(0,"div",33)(1,"div"),oe(2,wye,2,1,"ng-container",23)(3,Dye,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.boardOfDirectors.length>0)("ngIfElse",e)}}let Tye=(()=>{class t{notificationService;_httpService;http;renderer;translate;generalInfo=[];managementInfo=[];boardOfDirectors=[];destroy$=new nt;type="Bdirectors";constructor(e,i,r,a,s){this.notificationService=e,this._httpService=i,this.http=r,this.renderer=a,this.translate=s,this.generalInfo=[{title:"",description:""}]}ngOnInit(){this.getGeneralInfo(),this.getManagementInfo(),this.getBoardOfDirectors(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getGeneralInfo(),this.getManagementInfo(),this.getBoardOfDirectors()})}getGeneralInfo(){this._httpService.getAll("/api/general/get-general-information").subscribe({next:e=>
1{200==e.code&&0===e.apiCode&&(this.type="Bdirectors",this.generalInfo=e.data)},error:e=>{}})}getManagementInfo(){this._httpService.getAll("/api/general/get-management-information").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.managementInfo=e.data)},error:e=>{}})}getBoardOfDirectors(){this._httpService.getAll("/api/general/get-board-of-directors-information").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.boardOfDirectors=e.data)},error:e=>{}})}switchTab(e){this.type=e}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G($n),G(zn),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-about-us"]],decls:41,vars:36,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["routerLink","/home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"whitebox","p-0","full-width"],[1,"wb-header"],[1,"tab"],[1,"tablinks",3,"click","ngClass"],[1,"m-4"],["id","Info","class","tabcontent",4,"ngIf"],["id","Management","class","tabcontent",4,"ngIf"],["id","Bdirectors","class","tabcontent",4,"ngIf"],[1,"text-center","mb-4","mt-4"],["href","https://www.kuwait-fund.org","target","_blank","rel","noopener noreferrer",1,"btn","btn-secondary","bgps","mb-4"],["src","./assets/images/globe-white.svg","alt","Globe Icon"],["id","Info",1,"tabcontent"],[4,"ngIf","ngIfElse"],["class","cp-sec",4,"ngFor","ngForOf"],[1,"cp-sec"],[1,"dynamic-content",3,"innerHTML"],["id","Management",1,"tabcontent"],[1,"board-member-sec"],["class","board-member-info",4,"ngFor","ngForOf"],[1,"board-member-info"],[1,"board-member"],[3,"src"],["id","Bdirectors",1,"tabcontent"],[4,"ngFor","ngForOf"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,uye,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()()(),m(19,"div",11)(20,"div",12)(21,"div",13)(22,"button",14),be("click",function(){return r.switchTab("Bdirectors")}),v(23),M(24,"translate"),p(),m(25,"button",14),be("click",function(){return r.switchTab("Management")}),v(26),M(27,"translate"),p(),m(28,"button",14),be("click",function(){return r.switchTab("Info")}),v(29),M(30,"translate"),p()()(),m(31,"div",15),oe(32,mye,4,2,"div",16)(33,yye,5,2,"div",17)(34,Sye,5,2,"div",18),m(35,"div",19)(36,"a",20),fe(37,"img",21),v(38),M(39,"translate"),p()()()()()()(),fe(40,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,14,r.notificationService.notification$))?null:a.show),u(8),P(E(10,16,"AboutKuwaitFund")),u(5),P(E(15,18,"Home")),u(3),P(E(18,20,"AboutKuwaitFund")),u(5),T("ngClass",In(30,WI,"Bdirectors"===r.type)),u(),P(E(24,22,"BoardOfDirectors")),u(2),T("ngClass",In(32,WI,"Management"===r.type)),u(),P(E(27,24,"Management")),u(2),T("ngClass",In(34,WI,"Info"===r.type)),u(),_e("",E(30,26,"GeneralInformations")," "),u(3),T("ngIf","Info"===r.type),u(),T("ngIf","Management"===r.type),u(),T("ngIf","Bdirectors"===r.type),u(4),_e(" ",E(39,28,"ReadMoreon")," kuwait-fund.org ")}},dependencies:[ri,ii,fi,hi,ui,pn,dn,jr,yi,oa,Un,Zt,Ii],encapsulation:2})}return t})();function xye(t,n){1&t&&fe(0,"img",19)}function Mye(t,n){1&t&&fe(0,"img",20)}function Eye(t,n){if(1&t&&(Gn(0),v(1),fe(2,"br"),qn()),2&t){const e=B(2);u(),_e(" ",e.message,"")}}function Iye(t,n){if(1&t){const e=qe();m(0,"div",8),oe(1,xye,1,0,"img",16)(2,Mye,1,0,"img",17),m(3,"h4"),v(4),fe(5,"br"),v(6),M(7,"translate"),p(),m(8,"p"),oe(9,Eye,3,1,"ng-container",12),v(10),p(),m(11,"button",18),be("click",function(){return Ce(e),we(B().closeModal())}),v(12),M(13,"translate"),p()()}if(2&t){const e=B();u(),T("ngIf",!e.isWarning),u(),T("ngIf",e.isWarning),u(2),P(e.title),u(2),_e(" ",E(7,7,"successfully"),""),u(3),T("ngIf",e.message),u(),_e("",e.subMessage," "),u(2),P(E(13,9,"OkThankyou"))}}function Aye(t,n){if(1&t&&(Gn(0),v(1),fe(2,"br"),qn()),2&t){const e=B(2);u(),_e(" ",e.message,"")}}function kye(t,n){if(1&t){const e=qe();m(0,"div",8)(1,"h4"),v(2),p(),m(3,"p",21),oe(4,Aye,3,1,"ng-container",12),v(5),p(),m(6,"button",22),be("click",function(){return Ce(e),we(B().closeModal())}),v(7),M(8,"translate"),p()()}if(2&t){const e=B();u(2),P(e.title),u(2),T("ngIf",e.message),u(),_e("",e.subMessage," "),u(2),P(E(8,4,"ok"))}}function Nye(t,n){1&t&&fe(0,"img",23)}function Rye(t,n){1&t&&fe(0,"img",24)}function Pye(t,n){if(1&t&&(Gn(0),m(1,"p",25),v(2),p(),fe(3,"br"),qn()),2&t){const e=B();u(2),_e("",e.warningSubMsg," ")}}function Oye(t,n){1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"IrreversibleAction")))}let Zs=(()=>{class t{translate;isVisible=!1;title="Modal Title";message="Submitted";warningSubMsg="";isRequestDetailFull=!1;subMessage="Submitted";isWarning=!1;close=new Xe;warningMessage="";constructor(e){this.translate=e,this.translate.get("warningMessage").subscribe(i=>{this.warningMessage=i})}closeModal(){this.isVisible=!1,this.close.emit()}static \u0275fac=function(i){return new(i||t)(G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-modal"]],inputs:{isVisible:"isVisible",title:"title",message:"message",warningSubMsg:"warningSubMsg",isRequestDetailFull:"isRequestDetailFull",subMessage:"subMessage",isWarning:"isWarning"},outputs:{close:"close"},decls:26,vars:15,consts:[["id","exampleModal","tabindex","-1","data-bs-backdrop","static","data-bs-keyboard","false","role","dialog","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-body"],["class","login-popup-sec",4,"ngIf"],["id","warningModal","tabindex","-1","data-bs-backdrop","static","data-bs-keyboard","false","role","dialog","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered","custom-warning-modal"],[1,"modal-content","text-center","rounded-4","shadow-sm"],[1,"login-popup-sec"],[1,"mb-3"],["style","height:30px;","src","./assets/images/info-circle.svg",4,"ngIf"],["src","./assets/images/info-pop-icon.svg",4,"ngIf"],[4,"ngIf"],[1,"modal-footer","col-12","mb-4","mt-1","px-5","ppp-btns","d-flex"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-outline-secondary","ms-auto-style","cancel-button-width"],["src","./assets/images/check-star.svg",4,"ngIf"],["src","./assets/images/error.png",4,"ngIf"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","mt-5",3,"click"],["src","./assets/images/check-star.svg"],["src","./assets/images/error.png"],[1,"mt-3"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","mt-3",3,"click"],["src","./assets/images/info-circle.svg",2,"height","30px"],["src","./assets/images/info-pop-icon.svg"],[1,"mt-4"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),oe(4,Iye,14,11,"div",4)(5,kye,9,6,"div",4),p()()()(),m(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",3)(10,"div",8)(11,"div",9),oe(12,Nye,1,0,"img",10)(13,Rye,1,0,"img",11),p(),m(14,"h4"),v(15),M(16,"translate"),p(),oe(17,Pye,4,1,"ng-container",12)(18,Oye,3,3,"p",12),p()(),m(19,"div",13)(20,"button",14),be("click",function(){return r.closeModal()}),v(21),M(22,"translate"),p(),m(23,"button",15),v(24),M(25,"translate"),p()()()()()),2&i&&(u(4),T("ngIf",!r.isRequestDetailFull),u(),T("ngIf",r.isRequestDetailFull),u(7),T("ngIf",r.isWarning),u(),T("ngIf",!r.isWarning),u(2),P(E(16,9,"WarningMessage")),u(2),T("ngIf",r.warningSubMsg),u(),T("ngIf",""==r.warningSubMsg),u(3),P(E(22,11,"Yes")),u(3),_e(" ",E(25,13,"Cancel1")," "))},dependencies:[Zt,pn,dn],encapsulation:2})}return t})();function Lye(t,n){1&t&&fe(0,"app-notifications")}function Fye(t,n){if(1&t&&(m(0,"option",30),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),P(e.name)}}function Bye(t,n){1&t&&(m(0,"div",31),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StatementTypeIsRequired")," "))}function Vye(t,n){if(1&t&&(m(0,"div",31),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}function Uye(t,n){if(1&t&&(m(0,"div",32),fe(1,"input",33),m(2,"label",34),v(3),M(4,"translate"),p()()),2&t){const e=n.$implicit;u(),T("value",e.id)("id",e.id),u(),T("for",e.id),u(),_e(" ",E(4,4,e.name)," ")}}function Hye(t,n){1&t&&(m(0,"div",31),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CertificateTypeIsRequired")," "))}function jye(t,n){if(1&t){const e=qe();m(0,"div",12)(1,"div",35)(2,"div",36),fe(3,"img",37),m(4,"h5"),v(5),p()(),fe(6,"iframe",38),m(7,"div",39)(8,"button",40),be("click",function(){return Ce(e),we(B().printPDF())}),fe(9,"img",41),v(10),M(11,"translate"),p(),m(12,"button",42),be("click",function(){return Ce(e),we(B().downloadPDF())}),fe(13,"img",43),v(14),M(15,"translate"),p()()()()}if(2&t){const e=B();u(5),P(e.certificate[0].name),u(),T("src",e.pdfSrc,XS),u(4),P(E(11,4,"Print")),u(4),P(E(15,6,"Download"))}}let zye=(()=>{class t{router;renderer;notificationService;_httpService;fb;http;translate;sanitizer;modalService;form;isSubmitted=!1;isModalVisible=!1;isShownWarningModal=!1;subMessage;errorMessage="";modalTitle;modalMessage;certificatesList=[];sanitizedUrl;url="";certificate=[];base64PDF="";pdfSrc="";noCertificate="";destroy$=new nt;qrCodeOptions=[];alertMessage="";qRCodeOptionsEnum=S6;constructor(e,i,r,a,s,o,l,d,h){this.router=e,this.renderer=i,this.notificationService=r,this._httpService=a,this.fb=s,this.http=o,this.translate=l,this.sanitizer=d,this.modalService=h,this.sanitizedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.url),this.form=this.fb.group({statementType:[null,at.required],certificateType:[null,at.required]})}ngOnInit(){this.Init(),this.getQRCodeOptions(),this.getPrintCertificateAlert(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.Init(),this.getQRCodeOptions(),this.getPrintCertificateAlert()})}getQRCodeOptions(){this._httpService.getAll("/api/certificates/GetQRCodeOptions").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.qrCodeOptions=e.data)},error:e=>{}})}getPrintCertificateAlert(){this._httpService.getAll("/api/certificates/GetPrintCertificateAlert").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.alertMessage=e.data)},error:e=>{}})}
1Init(){this._httpService.getAll("/api/certificates").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.certificatesList=e.data)},error:e=>{}})}openConfirmationModal(){const e=this.modalService.open(Zs,{backdrop:"static",keyboard:!1});e.componentInstance.isVisible=!0,e.componentInstance.isWarning=!0,e.componentInstance.message=this.alertMessage}openWarningModal(){const e=document.getElementById("warningModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideWarningModal(){const e=document.getElementById("warningModal");if(e){const i=bootstrap.Modal.getInstance(e);i&&i.hide()}this.isModalVisible=!1}onModalClose(){this.hideWarningModal(),this.onSubmit(!0)}downloadPDF(){const e=atob(this.base64PDF),i=new Array(e.length);for(let o=0;o<e.length;o++)i[o]=e.charCodeAt(o);const r=new Uint8Array(i),a=new Blob([r],{type:"application/pdf"}),s=document.createElement("a");s.href=URL.createObjectURL(a),s.download=this.certificate[0].name+".pdf",document.body.appendChild(s),s.click(),document.body.removeChild(s)}printPDF(){const e=atob(this.base64PDF),i=new Array(e.length);for(let l=0;l<e.length;l++)i[l]=e.charCodeAt(l);const r=new Uint8Array(i),a=new Blob([r],{type:"application/pdf"}),s=URL.createObjectURL(a),o=document.createElement("iframe");o&&(o.style.display="none",o.src=s,document.body.appendChild(o),o.contentWindow?.print())}onSubmit(e=!1){if(this.isSubmitted=!1,this.form.valid){const{statementType:i,certificateType:r}=this.form.value;if(r==this.qRCodeOptionsEnum.WithBarcode&&!e)return this.isModalVisible=!0,void this.openWarningModal();i?this._httpService.post("/api/certificates",{statementType:i,qr:r}).subscribe({next:s=>{200==s.code&&0===s.apiCode?(this.certificate=this.certificatesList.filter(o=>o.id==i),s.data?(this.base64PDF=s.data,this.displayPDF()):(this.base64PDF="",this.pdfSrc="",this.translate.get("NoCertificate").subscribe(o=>{this.noCertificate=o}),this.notificationService.show(this.noCertificate,"error"))):s.message?this.errorMessage=s.message:this.translate.get("Somethingwentwrong").subscribe(o=>{this.errorMessage=o})},error:s=>{s.message?this.errorMessage=s.message:this.translate.get("Somethingwentwrong").subscribe(o=>{this.errorMessage=o})}}):this.isSubmitted=!0}else this.isSubmitted=!0,this.form.markAllAsTouched()}displayPDF(){const e=atob(this.base64PDF),i=new Array(e.length);for(let o=0;o<e.length;o++)i[o]=e.charCodeAt(o);const r=new Uint8Array(i),a=new Blob([r],{type:"application/pdf"}),s=URL.createObjectURL(a);this.pdfSrc=this.sanitizer.bypassSecurityTrustResourceUrl(s)}goBack(){this.router.navigate(["home"])}static \u0275fac=function(i){return new(i||t)(G(An),G(zn),G(Si),G(wn),G(Xr),G($n),G(cn),G(Q4),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-certificates"]],decls:59,vars:44,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[3,"ngSubmit","formGroup"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-12"],[1,"form-group","mb-2"],[1,"text-danger","small"],["formControlName","statementType",1,"form-select"],[3,"value"],[3,"ngValue",4,"ngFor","ngForOf"],["class","col-12 text-danger small",4,"ngIf"],[1,"row"],[1,"form-group","mb-2","mt-1"],[1,"d-flex","align-items-center","mt-2"],["class","form-check me-4",4,"ngFor","ngForOf"],[1,"col-12","mb-4","mt-2","ppp-btns","d-flex"],["type","submit",1,"btn","btn-secondary"],["class","whitebox cr-sec",4,"ngIf"],[3,"close","isVisible","title","isWarning","warningSubMsg"],[3,"ngValue"],[1,"col-12","text-danger","small"],[1,"form-check","me-4"],["type","radio","formControlName","certificateType",1,"form-check-input",3,"value","id"],[1,"form-check-label",3,"for"],[1,"salary-cert-sec"],[1,"salary-cert-head"],["src","./assets/images/lp-logo.svg"],["id","selectedCertificate","allowfullscreen","","frameborder","0",2,"width","100%","max-width","100%","height","100vh","border","none",3,"src"],[1,"salary-cert-btns"],["type","button",1,"btn","btn-yellow",3,"click"],["src","./assets/images/printer.svg"],["type","button",1,"btn","btn-primary",3,"click"],["src","./assets/images/download.svg"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,Lye,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(1
17),M(18,"translate"),p()()(),m(19,"a",10),v(20),M(21,"translate"),p()(),m(22,"form",11),be("ngSubmit",function(){return r.onSubmit()}),m(23,"div",12)(24,"h4",13),v(25),M(26,"translate"),p(),m(27,"div",14)(28,"div",15)(29,"div",16)(30,"label"),v(31),M(32,"translate"),m(33,"span"),v(34),M(35,"translate"),p(),m(36,"span",17),v(37," *"),p()(),m(38,"select",18)(39,"option",19),v(40),M(41,"translate"),p(),oe(42,Fye,2,2,"option",20),p()()(),oe(43,Bye,3,3,"div",21)(44,Vye,2,1,"div",21),p(),m(45,"div",22)(46,"div",15)(47,"div",23)(48,"div",24),oe(49,Uye,5,6,"div",25),p()()(),oe(50,Hye,3,3,"div",21),p(),m(51,"div",26)(52,"button",27),v(53),M(54,"translate"),p()()()(),fe(55,"br"),oe(56,jye,16,8,"div",28),p()()(),m(57,"app-modal",29),be("close",function(){return r.onModalClose()}),p(),fe(58,"app-footer")),2&i){let a,s,o;u(),T("ngIf",null==(a=E(2,24,r.notificationService.notification$))?null:a.show),u(8),P(E(10,26,"CreateRequest")),u(4),T("routerLink","/home"),u(),P(E(15,28,"Home")),u(3),P(E(18,30,"Certificates")),u(2),T("routerLink","/home"),u(),P(E(21,32,"Back")),u(2),T("formGroup",r.form),u(3),_e("",E(26,34,"CertificateRequest")," "),u(6),_e("",E(32,36,"SelectCertificate")," "),u(3),_e(" (",E(35,38,"Systemwillgeneratecertificateofthecurrentmonth"),") "),u(5),T("value",null),u(),P(E(41,40,"Select")),u(2),T("ngForOf",r.certificatesList),u(),T("ngIf",r.isSubmitted&&(null==(s=r.form.get("statementType"))?null:s.invalid)),u(),T("ngIf",r.errorMessage),u(5),T("ngForOf",r.qrCodeOptions),u(),T("ngIf",r.isSubmitted&&(null==(o=r.form.get("certificateType"))?null:o.invalid)),u(3),P(E(54,42,"Submit")),u(3),T("ngIf",r.pdfSrc),u(),T("isVisible",r.isModalVisible)("title",r.modalTitle)("isWarning",!0)("warningSubMsg",r.alertMessage)}},dependencies:[fi,Qr,uc,hc,da,zo,rv,Ur,Zr,_r,Hr,ri,Zs,yi,Un,Zt,Ii,jr,ii,pn,dn,hi,ui],encapsulation:2})}return t})(),cbe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=bn({type:t});static \u0275inj=Ft({})}return t})();var FC=ve(8244);let dbe=(()=>{class t{map;mapLoaded=!1;latitude=40.7128;longitude=-74.006;center={lat:40.73061,lng:-73.935242};zoom=12;apiLoaded=!1;error=null;constructor(){}load(e){return new Promise((i,r)=>{if(this.apiLoaded)return void i();const a=document.createElement("script");a.src=`https://maps.googleapis.com/maps/api/js?key=${e}`,a.async=!0,a.defer=!0,a.onload=()=>{this.apiLoaded=!0,i()},a.onerror=()=>r("Google Maps script failed to load"),document.head.appendChild(a)})}ngOnInit(){return g(function*(){})()}goToMap(){window.open("https://www.google.com/maps?q="+this.latitude+","+this.longitude,"_blank")}initMap(){this.map&&this.map.remove(),this.map=FC.map("map").setView([this.latitude,this.longitude],13),FC.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"copy; OpenStreetMap contributors"}).addTo(this.map),FC.Icon.Default.mergeOptions({iconRetinaUrl:"./assets/images/marker-icon-2x.png",iconUrl:"./assets/images/marker-icon-2x.png",shadowUrl:"./assets/images/marker-shadow.png"}),FC.marker([this.latitude,this.longitude]).addTo(this.map).bindPopup("Welcome! This is your current location").openPopup()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=vt({type:t,selectors:[["app-map"]],inputs:{latitude:"latitude",longitude:"longitude"},decls:2,vars:0,consts:[[1,"map-sec"],["src","./assets/images/KFLocationMap.png",3,"click"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"img",1),be("click",function(){return r.goToMap()}),p()())},dependencies:[cbe],encapsulation:2})}return t})();function ube(t,n){1&t&&fe(0,"app-notifications")}function hbe(t,n){if(1&t&&(m(0,"p",20),v(1),p()),2&t){const e=n.$implicit;u(),P(null==e?null:e.text)}}function fbe(t,n){if(1&t&&(m(0,"div",13),fe(1,"app-map",21),p()),2&t){const e=B();u(),T("latitude",null==e.contactUsInfo||null==e.contactUsInfo.mapCoordinates?null:e.contactUsInfo.mapCoordinates.latitude)("longitude",null==e.contactUsInfo||null==e.contactUsInfo.mapCoordinates?null:e.contactUsInfo.mapCoordinates.longitude)}}let pbe=(()=>{class t{notificationService;_httpService;http;translate;contactUsInfo;destroy$=new nt;constructor(e,i,r,a){this.notificationService=e,this._httpService=i,this.http=r,this.translate=a,this.contactUsInfo={contactInfo:{address:{}},mapCoordinates:{},telephoneAndFax:{}}}ngOnInit(){this.Init(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.Init()})}
1Init(){this._httpService.getAll("/api/general/get-contact-information").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.contactUsInfo=e.data)},error:e=>{}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-contact-us"]],decls:41,vars:26,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[1,"row"],[1,"col-6"],[1,"wb-header","map-info"],[1,"notifi-body"],[1,"contact-f-sec"],[1,"mb-4"],["class","mb-0",4,"ngFor","ngForOf"],["class","col-6",4,"ngIf"],[1,"mb-0"],[3,"latitude","longitude"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,ube,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(17),M(18,"translate"),p()()(),m(19,"a",10),v(20),M(21,"translate"),p()(),m(22,"div",11)(23,"div",12)(24,"div",13)(25,"div",14)(26,"div",15)(27,"div",16)(28,"div",17)(29,"h6"),v(30),M(31,"translate"),p(),m(32,"p"),v(33),p()(),m(34,"div",17)(35,"h6"),v(36),M(37,"translate"),p(),oe(38,hbe,2,1,"p",18),p()()()()(),oe(39,fbe,2,2,"div",19),p()()()()(),fe(40,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,12,r.notificationService.notification$))?null:a.show),u(8),_e("",E(10,14,"ContactUs")," "),u(4),T("routerLink","/home"),u(),P(E(15,16,"Home")),u(3),_e("",E(18,18,"ContactUs")," "),u(2),T("routerLink","/home"),u(),P(E(21,20,"Back")),u(10),P(E(31,22,"Telephone")),u(3),P(null==r.contactUsInfo||null==r.contactUsInfo.telephoneAndFax?null:r.contactUsInfo.telephoneAndFax.telephoneNumber),u(3),_e("",E(37,24,"Address"),"\xa0"),u(2),T("ngForOf",null==r.contactUsInfo||null==r.contactUsInfo.contactInfo?null:r.contactUsInfo.contactInfo.address),u(),T("ngIf",(null==r.contactUsInfo||null==r.contactUsInfo.mapCoordinates?null:r.contactUsInfo.mapCoordinates.latitude)&&(null==r.contactUsInfo||null==r.contactUsInfo.mapCoordinates?null:r.contactUsInfo.mapCoordinates.longitude))}},dependencies:[fi,ri,dbe,jr,hi,ui,yi,Un,Zt,Ii,ii,pn,dn],encapsulation:2})}return t})();function mbe(t,n){1&t&&fe(0,"app-navbar")}function gbe(t,n){1&t&&fe(0,"app-footer")}let bm=(()=>{class t{route;isShownWholePage;constructor(e){this.route=e}ngOnInit(){void 0===this.isShownWholePage&&(this.isShownWholePage=!0)}static \u0275fac=function(i){return new(i||t)(G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-unauthorized"]],inputs:{isShownWholePage:"isShownWholePage"},decls:15,vars:11,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"text-center","p-4","mt-5","unauth_sec"],["src","./assets/images/15097169.png","alt","Unauthorized Icon","width","100",1,"mb-4"],[1,"text-danger"],[1,"text-muted"],["routerLink","/home",1,"btn","btn-primary","mt-3"]],template:function(i,r){1&i&&(oe(0,mbe,1,0,"app-navbar",0),m(1,"div",1)(2,"div",2)(3,"div",3),fe(4,"img",4),m(5,"h1",5),v(6),M(7,"translate"),p(),m(8,"p",6),v(9),M(10,"translate"),p(),m(11,"a",7),v(12),M(13,"translate"),p()()()(),oe(14,gbe,1,0,"app-footer",0)),2&i&&(T("ngIf",!0===r.isShownWholePage),u(6),P(E(7,5,"Unauthorized.header")),u(3),P(E(10,7,"Unauthorized.msg")),u(3),P(E(13,9,"Unauthorized.gotohome")),u(2),T("ngIf",!0===r.isShownWholePage))},dependencies:[hi,ui,pn,dn,yi,Zt,ri,ii],encapsulation:2})}return t})();const _be=()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],vbe=(t,n)=>({"type-1":t,"type-2":n});function ybe(t,n){1&t&&fe(0,"app-notifications")}function bbe(t,n){if(1&t&&(m(0,"option",35),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.departmentCode),u(),P(e.name)}}function Cbe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),P(e)}}function wbe(t,n){1&t&&fe(0,"span",39)}function Dbe(t,n){1&t&&fe(0,"span",40)}function Sbe(t,n){if(1&t&&(m(0,"span"),v(1),p()),2&t){const e=B().$implicit;u(),P(e.date.getDate())}}function Tbe(t,n){if(1&t){const e=qe();m(0,"div",36),be("click",function(){const r=Ce(e).$implicit;return we(B(2).changeDate(r))}),oe(1,wbe,1,0,"span",37)(2,Dbe,1,0,"span",38)(3,Sbe,2,1,"span",1),p()}if(2&t){const e=n.$implicit,i=B(2);Ct("selected",e.date.toDateString()===i.currentDate.toDateString())("today",e.date.toDateString()===i.today.toDateString()),u(),T("ngIf",e.visitType&&e.visitType.includes("Blue")),u(),T("ngIf",e.visitType&&e.visitType.includes("Red")),u(),T("ngIf",e.date.getMonth()==i.currentDate.getMonth())}}function xbe(t,n){if(1&t&&(m(0,"b"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Employee")," : ",e.employee_name,"")}}function Mbe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Event")," : ",e.evant_name,"")}}function Ebe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){const e=B().$implicit;u(),y0("",E(2,4,"From")," : ",e.from_date," - ",E(3,6,"To")," : ",e.to_date,"")}}function Ibe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Location")," : ",e.location,"")}}function Abe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Numberofdelegation")," : ",e.missionCount,"")}}function kbe(t,n){if(1&t&&(m(0,"div",42)(1,"div",43)(2,"div",44),oe(3,xbe,3,4,"b",1)(4,Mbe,3,4,"p",1)(5,Ebe,4,8,"p",1)(6,Ibe,3,4,"p",1)(7,Abe,3,4,"p",1),p()(),m(8,"span",45),v(9),p()()),2&t){const e=n.$implicit,i=B(3);u(3),T("ngIf",e.employee_name),u(),T("ngIf",e.evant_name),u(),T("ngIf",e.from_date),u(),T("ngIf",e.location),u(),T("ngIf",e.missionCount),u(),T("ngClass",Zc(7,vbe,e.leave_type===i.leaveType1||"Blue"===e.leave_type,e.leave_type===i.leaveType2||"Red"===e.leave_type)),u(),_e(" ","Blue"===e.leave_type?i.leaveType1:i.leaveType2," ")}}function Nbe(t,n){if(1&t&&(Gn(0),oe(1,kbe,10,10,"div",41),qn()),2&t){const e=B(2);u(),T("ngForOf",e.missionsCalendarDetails)}}function Rbe(t,n){1&t&&(m(0,"div",46)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function Pbe(t,n){if(1&t){const e=qe();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4"),v(6),M(7,"translate"),p(),m(8,"ol",9)(9,"li",10)(10,"a",11),v(11),M(12,"translate"),p()(),m(13,"li",12),v(14),M(15,"translate"),p()()(),m(16,"a",13),v(17),M(18,"translate"),p()(),m(19,"div",14)(20,"form",15)(21,"div",16)(22,"div",17)(23,"div",18)(24,"div",19)(25,"button",20),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()-1),we(r.generateMonth())}),m(26,"span"),v(27,"\u2039"),p()(),m(28,"h2"),v(29),M(30,"date"),p(),m(31,"button",20),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()+1),we(r.generateMonth())}),m(32,"span"),v(33,"\u203a"),p()()(),m(34,"div",21)(35,"select",22),be("change",function(){return Ce(e),we(B().getOperationEmpsCalendarDate())}),oe(36,bbe,2,2,"option",23),p()()(),m(37,"div",24)(38,"div",25),oe(39,Cbe,2,1,"div",26),p(),m(40,"div",27),oe(41,Tbe,4,7,"div",28),p()(),m(42,"div"),fe(43,"span",29),m(44,"label",30),v(45),p(),fe(46,"span",31),m(47,"label",30),v(48),p()()(),m(49,"div",32)(50,"div",33)(51,"h5"),v(52),M(53,"translate"),p(),m(54,"p"),v(55),M(56,"date"),p()(),oe(57,Nbe,2,1,"ng-container",34)(58,Rbe,4,3,"ng-template",null,0,ni),p()()()()()()()}if(2&t){const e=Di(59),i=B();u(6),P(E(7,17,"Dept.Mission")),u(4),T("routerLink","/home"),u(),P(E(12,19,"Home")),u(3),P(E(15,21,"Dept.Mission")),u(2),T("routerLink","/home"),u(),P(E(18,23,"Back")),u(3),T("formGroup",i.form),u(9),P(hh(30,25,i.currentDate,"MMMM y")),u(7),T("ngForOf",i.managementInfo),u(3),T("ngForOf",Up(33,_be)),u(2),T("ngForOf",i.visits),u(4),P(i.leaveType1),u(3),P(i.leaveType2),u(4),P(E(53,28,"Workforce")),u(3),P(hh(56,30,i.currentDate,"d-MMM-yyyy")),u(2),T("ngIf",i.missionsCalendarDetails&&i.missionsCalendarDetails.length>0)("ngIfElse",e)}}function Obe(t,n){1&t&&fe(0,"app-unauthorized",47),2&t&&T("isShownWholePage",!1)}let Lbe=(()=>{class t{notificationService;_httpService;fb;router;translate;http;datePipe;managementInfo;missionsCalendarDetails;missionsCalendar;currentDate=new Date;today=new Date;monthDays=[];form;leaveType1="";leaveType2="";visits=[];destroy$=new nt;constructor(e,i,r,a,s,o,l){this.notificationService=e,this._httpService=i,this.fb=r,this.router=a,this.translate=s,this.http=o,this.datePipe=l,this.form=this.fb.group({deptCode:["",at.required]}),this.translate.get("Leave").subscribe(d=>{this.leaveType1=d}),this.translate.get("Missions").subscribe(d=>{this.leaveType2=d})}get canAccessPage(){return"true"==localStorage.getItem("isDirector")||"false"!=localStorage.getItem("isDirector")&&void 0}ngOnInit(){this.getAllManagement(),this.generateMonth(!0),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getAllManagement(),this.generateMonth(!0)})}getAllManagement(){this._httpService.getAll("/api/missions/read-departments").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.managementInfo=e.data,this.form.patchValue({deptCode:this.managementInfo[0].departmentCode}),this.getOperationEmpsCalendarDate(),this.getManagementMissionsCalender())},error:e=>{}})}getOperationEmpsCalendarDate(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"",{deptCode:i}=this.form.value;this._httpService.post("/api/missions/get-operation-emps-calendar-data",{asDate:e,deptCode:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.missionsCalendar=r.data||[],this.missionsCalendar.length>0&&(this.translate.get("Leave").subscribe(a=>{this.leaveType1=a}),this.translate.get("Missions").subscribe(a=>{this.leaveType2=a})),this.visits=this.monthDays.map(a=>{const s=this.missionsCalendar?.filter(o=>!!o.asDate&&this.isSameDate(this.convertToDate(o.asDate),a));return{date:a,visitType:s?.length>0?s.map(o=>o.leave_type).join(", "):null}}),this.getManagementMissionsCalender())},error:r=>{}})}getManagementMissionsCalender(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"",{deptCode:i}=this.form.value;this._httpService.post("/api/missions/get-operation-emps-attendace-date",{asDate:e,deptCode:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.missionsCalendarDetails=r.data)},error:r=>{}})}changeDate(e){this.currentDate=e.date,this.getManagementMissionsCalender()}generateMonth(e){this.monthDays=[];const i=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),a=new Date(i,r,1),s=new Date(i,r+1,0),o=a.getDay(),l=s.getDate();for(let d=o-1;d>=0;d--)this.monthDays.push(new Date(i,r,-d));for(let d=1;d<=l;d++)this.monthDays.push(new Date(i,r,d));for(;this.monthDays.length%7!=0;){const d=new Date(i,r,l+(this.monthDays.length-l+1));this.monthDays.push(d)}e||(this.currentDate=a),this.visits=this.monthDays.map(d=>({date:d,visitType:null})),this.getOperationEmpsCalendarDate()}isSameDate(e,i){return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()&&e.getDate()===i.getDate()}convertToDate(e){if(!e||"string"!=typeof e)return new Date(1970,0,1);const i=e.split("/").map(Number);if(3!==i.length||i.some(isNaN))return new Date(1970,0,1);const[r,a,s]=i;return new Date(s,a-1,r)}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G(An),G(cn),G($n),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-director-missions"]],features:[fn([es])],decls:6,vars:5,consts:[["noData",""],[4,"ngIf"],["class","wrapper",4,"ngIf"],[3,"isShownWholePage",4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[3,"formGroup"],[1,"visiters-log-sec"],[1,"visiters-log-cal"],[1,"row"],[1,"vl-select","vl-select-direcotr","col-8"],[1,"arrow-button","text-center",3,"click"],[1,"form-group","col-4",2,"margin-top","1vw"],["formControlName","deptCode",1,"form-select",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"calendar"],[1,"weekdays"],[4,"ngFor","ngForOf"],[1,"days-v1"],[3,"selected","today","click",4,"ngFor","ngForOf"],[1,"visitor-log-circle","type-1"],[1,"visitType"],[1,"visitor-log-circle","type-2"],[1,"visiters-log-list"],[1,"vl-date"],[4,"ngIf","ngIfElse"],[3,"ngValue"],[3,"click"],["class","visitor-log-circle type-1 margin-right-5",4,"ngIf"],["class","visitor-log-circle type-2 margin-right-5",4,"ngIf"],[1,"visitor-log-circle","type-1","margin-right-5"],[1,"visitor-log-circle","type-2","margin-right-5"],["class","vl-info",4,"ngFor","ngForOf"],[1,"vl-info"],[1,"vl-dtls"],[1,"vl-dtls-info"],[1,"vl-type",3,"ngClass"],[1,"text-center","mb-4","mt-4"],[3,"isShownWholePage"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,ybe,1,0,"app-notifications",1),M(2,"async"),oe(3,Pbe,60,34,"div",2)(4,Obe,1,1,"app-unauthorized",3),fe(5,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,3,r.notificationService.notification$))?null:a.show),u(2),T("ngIf",1==r.canAccessPage),u(),T("ngIf",!r.canAccessPage)}},dependencies:[jr,bm,yi,oa,Un,Zt,Ii,es,hi,ui,fi,Qr,uc,hc,zo,Ur,Zr,_r,Hr,pn,dn,ri,ii],encapsulation:2})}return t})();function Fbe(t,n){1&t&&fe(0,"app-notifications")}function Bbe(t,n){if(1&t&&(m(0,"option",32),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.departmentCode),u(),P(e.name)}}function Vbe(t,n){if(1&t&&(m(0,"div",34)(1,"div",35)(2,"div",36)(3,"b"),v(4),p()()(),m(5,"div",37)(6,"span"),v(7),p(),m(8,"p"),v(9),M(10,"translate"),p()()()),2&t){const e=n.$implicit;u(4),P(null==e?null:e.employeeName),u(3),P((null==e?null:e.count)||"-"),u(2),P(E(10,3,"Missions"))}}function Ube(t,n){if(1&t&&(Gn(0),oe(1,Vbe,11,5,"div",33),qn()),2&t){const e=B(2);u(),T("ngForOf",e.dashboard.employeesArray)}}function Hbe(t,n){1&t&&(m(0,"div",38)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function jbe(t,n){if(1&t){const e=qe();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4"),v(6),M(7,"translate"),p(),m(8,"ol",9)(9,"li",10)(10,"a",11),v(11),M(12,"translate"),p()(),m(13,"li",12),v(14),M(15,"translate"),p()()(),m(16,"a",13),v(17),M(18,"translate"),p()(),m(19,"div",14)(20,"div",15)(21,"div",16)(22,"form",17)(23,"div",18)(24,"select",19),be("change",function(){return Ce(e),we(B().getDashboard())}),oe(25,Bbe,2,2,"option",20),p()()(),m(26,"div",21)(27,"div",22),fe(28,"img",23),m(29,"b"),v(30),p(),m(31,"p"),v(32),M(33,"translate"),p()(),m(34,"div",22),fe(35,"img",24),m(36,"b"),v(37),p(),m(38,"p"),v(39),M(40,"translate"),p()(),m(41,"div",22),fe(42,"img",25),m(43,"b"),v(44),p(),m(45,"p"),v(46),M(47,"translate"),p()()()()(),m(48,"div",26)(49,"div",27)(50,"div",28)(51,"h4",29),v(52),M(53,"translate"),p()(),m(54,"div",30),oe(55,Ube,2,1,"ng-container",31)(56,Hbe,4,3,"ng-template",null,0,ni),p()()()()()()()}if(2&t){const e=Di(57),i=B();u(6),P(E(7,17,"TotalMissionsDashboard")),u(4),T("routerLink","/home"),u(),P(E(12,19,"Home")),u(3),P(E(15,21,"TotalMissionsDashboard")),u(2),T("routerLink","/home"),u(),P(E(18,23,"Back")),u(5),T("formGroup",i.form),u(3),T("ngForOf",i.departmentInfo),u(5),P((null==i.dashboard?null:i.dashboard.missionCount)||"-"),u(2),P(E(33,25,"Totalmissionthisyear")),u(5),P((null==i.dashboard?null:i.dashboard.employeesCount)||"-"),u(2),P(E(40,27,"NumberofEmployeesonmission")),u(5),P((null==i.dashboard?null:i.dashboard.countriesCount)||"-"),u(2),P(E(47,29,"NumberofCountries")),u(6),P(E(53,31,"EmployeesonMissionthisYear")),u(3),T("ngIf",i.dashboard&&i.dashboard.employeesArray.length>0)("ngIfElse",e)}}function zbe(t,n){1&t&&fe(0,"app-unauthorized",39),2&t&&T("isShownWholePage",!1)}let Ybe=(()=>{class t{notificationService;_httpService;fb;http;renderer;translate;destroy$=new nt;departmentInfo;dashboard={countriesCount:0,employeesCount:0,missionCount:0,employeesArray:[]};form;constructor(e,i,r,a,s,o){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.translate=o,this.form=this.fb.group({deptCode:["",at.required]})}ngOnInit(){this.getAllManagement(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getAllManagement()})}get canAccessPage(){return"true"==localStorage.getItem("isDirector")||"false"!=localStorage.getItem("isDirector")&&void 0}getDashboard(){const{deptCode:e}=this.form.value;this._httpService.getAll("/api/missions/get-total-mission-by-department-dashboard/"+e).subscribe({next:i=>{200==i.code&&0===i.apiCode&&(this.dashboard=i.data)},error:i=>{}})}getAllManagement(){this._httpService.getAll("/api/missions/read-departments").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.departmentInfo=e.data,this.form.patchValue({deptCode:this.departmentInfo[0].departmentCode}),this.getDashboard())},error:e=>{}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-missions-dashboard"]],decls:6,vars:5,consts:[["noData",""],[4,"ngIf"],["class","wrapper",4,"ngIf"],[3,"isShownWholePage",4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"rd-sec"],[1,"rd-sec-one"],[1,"whitebox"],[3,"formGroup"],[1,"form-group"],["formControlName","deptCode",1,"form-select",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"y-sum-sec"],[1,"y-sum-info"],["src","./assets/images/ysi1.svg"],["src","./assets/images/ysi2.svg"],["src","./assets/images/ysi3.svg"],[1,"rd-sec-two"],[1,"whitebox","h-100"],[1,"d-flex","department-margin"],[1,"brdr-hdng"],[1,"y-sum-missions"],[4,"ngIf","ngIfElse"],[3,"ngValue"],["class","vl-info",4,"ngFor","ngForOf"],[1,"vl-info"],[1,"vl-dtls"],[1,"vl-dtls-info"],[1,"y-sum-count"],[1,"text-center","mb-4","mt-4"],[3,"isShownWholePage"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,Fbe,1,0,"app-notifications",1),M(2,"async"),oe(3,jbe,58,33,"div",2)(4,zbe,1,1,"app-unauthorized",3),fe(5,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,3,r.notificationService.notification$))?null:a.show),u(2),T("ngIf",1==r.canAccessPage),u(),T("ngIf",!r.canAccessPage)}},dependencies:[jr,bm,yi,Un,Zt,Ii,hi,ui,fi,Qr,uc,hc,zo,Ur,Zr,_r,Hr,ri,ii,pn,dn],encapsulation:2})}return t})(),Cm=(()=>{class t{el;navigationKeys=["Backspace","Delete","Tab","Escape","Enter","Home","End","ArrowLeft","ArrowRight","Clear","Copy","Paste"];inputElement;constructor(e){this.el=e,this.inputElement=e.nativeElement}onKeyDown(e){const i=e.target,a=i.value.replace(/\D/g,"");i.value=a,!(this.navigationKeys.indexOf(e.key)>-1||"a"===e.key&&!0===e.ctrlKey||"c"===e.key&&!0===e.ctrlKey||"v"===e.key&&!0===e.ctrlKey||"x"===e.key&&!0===e.ctrlKey||"a"===e.key&&!0===e.metaKey||"c"===e.key&&!0===e.metaKey||"v"===e.key&&!0===e.metaKey||"x"===e.key&&!0===e.metaKey)&&(e.shiftKey||e.keyCode<48||e.keyCode>57)&&(e.keyCode<96||e.keyCode>105)&&e.preventDefault()}onPaste(e){e.preventDefault();const i=e?.clipboardData?.getData("text/plain").replace(/\D/g,"");document.execCommand("insertText",!1,i)}onDrop(e){e.preventDefault();const i=e?.dataTransfer?.getData("text").replace(/\D/g,"");this.inputElement&&this.inputElement.focus(),document.execCommand("insertText",!1,i)}onBlur(e){const i=e,a=i.value.replace(/\D/g,"");i.value=a}addCommas(e){const i=e.toString();let r="",a=0;for(let s=i.length-1;s>=0;s--)r=i[s]+r,a++,a%3==0&&0!==s&&(r=","+r);return r}static \u0275fac=function(i){return new(i||t)(G(Bt))};static \u0275dir=lt({type:t,selectors:[["","numbersOnly",""]],hostBindings:function(i,r){1&i&&be("keydown",function(s){return r.onKeyDown(s)})("paste",function(s){return r.onPaste(s)})("drop",function(s){return r.onDrop(s)})("blur",function(s){return r.onBlur(s.target)})}})}return t})();const $be=new Qe("recaptcha-language"),Wbe=new Qe("recaptcha-base-url"),Gbe=new Qe("recaptcha-nonce-tag"),qbe=new Qe("recaptcha-settings"),Kbe=new Qe("recaptcha-v3-site-key"),Zbe=new Qe("recaptcha-loader-options"),jU={loadScript:function Qbe(t,n,e,{url:i,lang:r,nonce:a}={}){window.ng2recaptchaloaded=()=>{e(grecaptcha)};const s=document.createElement("script");s.innerHTML="";const{url:o,nonce:l}=n(new URL(i||"https://www.google.com/recaptcha/api.js"));o.searchParams.set("render","explicit"===t?t:t.key),o.searchParams.set("onload","ng2recaptchaloaded"),o.searchParams.set("trustedtypes","true"),r&&o.searchParams.set("hl",r),s.src=o.href;const d=l||a;d&&s.setAttribute("nonce",d),s.async=!0,s.defer=!0,document.head.appendChild(s)},newLoadScript:function Xbe({v3SiteKey:t,onBeforeLoad:n,onLoaded:e}){jU.loadScript(t?{key:t}:"explicit",n,e)}};let zU=(()=>{class t{static{this.ready=null}constructor(e,i,r,a,s,o){this.platformId=e,this.language=i,this.baseUrl=r,this.nonce=a,this.v3SiteKey=s,this.options=o;const l=this.init();this.ready=l?function Jbe(t){return t.asObservable().pipe(Cn(n=>null!==n))}(l):At()}init(){if(t.ready)return t.ready;if(!k0(this.platformId))return;const e=new an(null);return t.ready=e,jU.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:i=>{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(i);const r=new URL(this.baseUrl??i);return this.language&&r.searchParams.set("hl",this.language),{url:r,nonce:this.nonce}},onLoaded:i=>{let r=i;this.options?.onLoaded&&(r=this.options.onLoaded(i)),e.next(r)}}),e}static{this.\u0275fac=function(i){return new(i||t)(Fe(Ku),Fe($be,8),Fe(Wbe,8),Fe(Gbe,8),Fe(Kbe,8),Fe(Zbe,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac})}}return t})(),e0e=0,KI=(()=>{class t{constructor(e,i,r,a){this.elementRef=e,this.loader=i,this.zone=r,this.id="ngrecaptcha-"+e0e++,this.errorMode="default",this.resolved=new Xe,this.error=new Xe,this.errored=new Xe,a&&(this.siteKey=a.siteKey,this.theme=a.theme,this.type=a.type,this.size=a.size,this.badge=a.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(e=>{null!=e&&e.render instanceof Function&&(this.grecaptcha=e,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset()
1)}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}onError(e){this.error.emit(e),this.errored.emit(e)}captchaResponseCallback(e){this.resolved.emit(e)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const e={badge:this.badge,callback:i=>{this.zone.run(()=>this.captchaResponseCallback(i))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(e["error-callback"]=(...i)=>{this.zone.run(()=>this.onError(i))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,e),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(zU),G(_t),G(qbe,8))}}static{this.\u0275cmp=vt({type:t,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(i,r){2&i&&Kt("id",r.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error",errored:"errored"},exportAs:["reCaptcha"],standalone:!1,decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})(),t0e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({})}}return t})(),ZI=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({providers:[zU],imports:[t0e]})}}return t})();const n0e=(t,n)=>({"pointer-events":t,opacity:n}),i0e=t=>({"disabled-link":t,ff:!0});function r0e(t,n){1&t&&(m(0,"div",11),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"UsernameRequired")," "))}function a0e(t,n){1&t&&(m(0,"div"),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"recaptchaRequired")," "))}function s0e(t,n){if(1&t&&(m(0,"div",19),oe(1,a0e,3,3,"div",20),p()),2&t){const e=B(2);u(),T("ngIf",!e.captchaToken&&e.captchaEnabled)}}function o0e(t,n){if(1&t&&(m(0,"div",11),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function l0e(t,n){if(1&t){const e=qe();m(0,"div",8)(1,"div",9)(2,"div",10)(3,"label"),v(4),M(5,"translate"),m(6,"span",11),v(7," *"),p()(),fe(8,"input",12),oe(9,r0e,3,3,"div",13),p()(),m(10,"div",9)(11,"re-captcha",14,0),be("resolved",function(r){return Ce(e),we(B().onCaptchaResolved(r))}),p(),oe(13,s0e,2,1,"div",15),p(),oe(14,o0e,2,1,"div",13),m(15,"div",9)(16,"button",16),v(17),M(18,"translate"),p()(),m(19,"div",17)(20,"a",18),v(21),M(22,"translate"),p()()()}if(2&t){let e;const i=B();u(4),_e("",E(5,10,"Username")," "),u(5),T("ngIf",(null==(e=i.form.get("username"))?null:e.invalid)&&(null==(e=i.form.get("username"))?null:e.touched)),u(2),T("siteKey",i.SiteKey)("size","normal")("theme","light"),u(2),T("ngIf",i.isSubmitted),u(),T("ngIf",i.isSubmitted),u(3),P(E(18,12,"SendOTP")),u(3),T("routerLink","/login"),u(),P(E(22,14,"Back"))}}function c0e(t,n){1&t&&(m(0,"div",11),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"OTPRequired")," "))}function d0e(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B(2);u(),Vi(" ",E(2,2,"Resendavailable")," ",e.displayTime," ")}}function u0e(t,n){1&t&&(m(0,"div",9)(1,"div",25),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e(" ",E(3,1,"OTPSent")," "))}function h0e(t,n){if(1&t&&(m(0,"div",11),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function f0e(t,n){if(1&t){const e=qe();m(0,"div",8)(1,"div",9)(2,"div",10)(3,"label"),v(4),M(5,"translate"),m(6,"span",11),v(7," *"),p()(),fe(8,"input",21),oe(9,c0e,3,3,"div",13),p()(),m(10,"div",9)(11,"div",10),oe(12,d0e,3,4,"p",20),m(13,"p",22),v(14),M(15,"translate"),m(16,"a",23),be("click",function(){Ce(e);const r=B();return!r.resendDisabled&&r.sendOtp(),we(r.resendOtpClicked=!0)}),v(17),M(18,"translate"),p()()()(),oe(19,u0e,4,3,"div",24)(20,h0e,2,1,"div",13),m(21,"div",9)(22,"button",16),v(23),M(24,"translate"),p()(),m(25,"div",17)(26,"a",18),v(27),M(28,"translate"),p()()()}if(2&t){let e;const i=B();u(4),_e("",E(5,12,"EnterOTP")," "),u(5),T("ngIf",(null==(e=i.form.get("otp"))?null:e.invalid)&&
1(null==(e=i.form.get("otp"))?null:e.touched)||i.isSubmitted&&!(null!=(e=i.form.get("otp"))&&e.value)),u(3),T("ngIf",i.timer>0&&i.resendOTP<3),u(2),_e(" ",E(15,14,"DidnreceiveOTP")," "),u(2),T("ngStyle",Zc(22,n0e,i.resendDisabled?"none":"auto",i.resendDisabled?.5:1))("ngClass",In(25,i0e,i.resendDisabled)),u(),_e(" ",E(18,16,"Resend")," "),u(2),T("ngIf",i.resendOtpClicked&&i.resendDisabled),u(),T("ngIf",i.isSubmitted),u(3),P(E(24,18,"VerifyProceed")),u(3),T("routerLink","/login"),u(),P(E(28,20,"Back"))}}let p0e=(()=>{class t{_httpService;fb;http;router;translate;form;isOtpSent=!1;isSubmitted=!1;errorMessage="";timer=180;interval;resendDisabled=!0;displayTime="03:00";resendOTP=0;limit=3;captchaToken=null;SiteKey=Bh_RecaptchaSettings_SiteKey;captchaEnabled=Bh_RecaptchaSettings_Enabled;resendOtpClicked=!1;constructor(e,i,r,a,s){this._httpService=e,this.fb=i,this.http=r,this.router=a,this.translate=s,localStorage.removeItem("UserName"),this.form=this.fb.group({username:["",[at.required,at.minLength(3),at.maxLength(50)]],otp:["",[at.required,at.minLength(0),at.maxLength(5)]]})}sendOtp(){if(this.resendOTP>this.limit)return this.isSubmitted=!0,this.translate.get("Exceededmaxlimit").subscribe(e=>{this.errorMessage=e}),void this.router.navigate(["login"]);if(!this.form.get("username")?.valid)return this.form.get("username")?.markAsTouched(),void(this.isSubmitted=!0);{if(this.captchaEnabled&&!this.captchaToken)return void(this.isSubmitted=!0);const{username:e,otp:i}=this.form.value;this._httpService.post("/api/ForgetPassword",{username:e,otp:i,captchaToken:this.captchaToken}).subscribe({next:a=>{if(200==a.code&&0===a.apiCode)this.isOtpSent=!0,this.resendOTP++,this.startTimer(),this.errorMessage="",this.form.get("otp")?.setValidators([at.required]),this.form.get("otp")?.updateValueAndValidity(),localStorage.setItem("refNo",a.data);else{this.isSubmitted=!0;const s=$o(a.apiCode,a.message,this.translate);if(this.errorMessage=s,404==a.apiCode)this.translate.get("UserNameinCorrect").subscribe(o=>{this.errorMessage=o}),422!=a.status&&grecaptcha.reset();else{const o=$o(a.apiCode,a.message,this.translate);this.errorMessage=o,422!=a.status&&grecaptcha.reset()}}},error:a=>{if(this.isSubmitted=!0,422!=a.status&&grecaptcha.reset(),404==a?.error?.apiCode)this.translate.get("UserNameinCorrect").subscribe(s=>{this.errorMessage=s});else{const s=$o(a?.status,a?.error?.message,this.translate);this.errorMessage=s}}})}}onCaptchaResolved(e){this.captchaToken=e}padZero(e){return e<10?"0"+e:e.toString()}updateDisplayTime(){const e=Math.floor(this.timer/60),i=this.timer%60;this.displayTime=`${this.padZero(e)}:${this.padZero(i)}`}startTimer(){this.resendDisabled=!0,this.timer=180,this.updateDisplayTime(),this.interval=setInterval(()=>{this.timer>0?(this.timer--,this.updateDisplayTime()):(this.resendDisabled=!1,clearInterval(this.interval))},1e3)}onSubmit(){if(this.isSubmitted=!1,this.isOtpSent){if(!this.form.valid)return void(this.isSubmitted=!0);if(this.form.get("otp")?.valid){const{username:e,otp:i}=this.form.value,r=localStorage.getItem("refNo");this._httpService.post("/api/forgetPassword",{username:e,otp:i,refNo:r}).subscribe({next:a=>{if(200==a.code&&0===a.apiCode)a.data?(localStorage.setItem("UserName",e),localStorage.setItem("ValidOTP",a.code),this.router.navigate(["reset-password"])):this.translate.get("WrongOtp").subscribe(s=>{this.errorMessage=s});else{this.isSubmitted=!0;const s=$o(a.apiCode,a.message,this.translate);this.errorMessage=s}},error:a=>{this.isSubmitted=!0;const s=$o(a?.status,a?.error?.message,this.translate);this.errorMessage=s}})}else this.form.get("otp")?.markAsTouched()}else this.sendOtp()}resendOtp(){}back(){this.isOtpSent=!1,this.form.get("otp")?.clearValidators(),this.form.get("otp")?.updateValueAndValidity()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G($n),G(An),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-forget-password"]],decls:20,vars:15,consts:[["captchaElem",""],[1,"login-page"],[1,"login-page-rs"],["src","./assets/images/lp-logo.svg"],[1,"login-page-ls"],[1,"login-form"],[3,"ngSubmit","formGroup"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-group"],[1,"text-danger","small"],["formControlName","username","minlength","3","maxlength","50","type","text",1,"form-control"],["class","text-danger small",4,"ngIf"],[3,"resolved","siteKey","size","theme"],["class","text-danger",4,"ngIf"],["type","submit",1,"btn","btn-login"],[1,"col-12","text-center"],[1,"ff",3,"routerLink"],[1,"text-danger"],[4,"ngIf"],["formControlName","otp","numbersOnly","","minlength","1","maxlength","5","type","text",1,"form-control"],[1,"dnr-otp"],[1,"ff",2,"cursor","pointer",3,"click","ngStyle","ngClass"],["class","col-12",4,"ngIf"],[1,"otp-green"]],template:function(i,r){1&i&&(m(0,"div",1)(1,"div",2),fe(2,"img",3),m(3,"p"),v(4),M(5,"translate"),m(6,"span"),v(7),M(8,"translate"),p()()(),m(9,"div",4)(10,"div",5)(11,"h4"),v(12),M(13,"translate"),p(),m(14,"p"),v(15),M(16,"translate"),p(),m(17,"form",6),be("ngSubmit",function(){return r.onSubmit()}),oe(18,l0e,23,16,"div",7)(19,f0e,29,27,"div",7),p()()()()),2&i&&(u(4),_e("",E(5,7,"KuwaitFund")," "),u(3),P(E(8,9,"EmployeeSelfService")),u(5),P(E(13,11,"ForgetPassword")),u(3),P(E(16,13,"SendOTPEmail")),u(2),T("formGroup",r.form),u(),T("ngIf",!r.isOtpSent),u(),T("ngIf",r.isOtpSent))},dependencies:[Cm,Zt,fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,pn,dn,yi,oa,G0,ZI,KI,hi,ui],encapsulation:2})}return t})();const m0e=t=>
1["/Advertisements-Details",t];function g0e(t,n){1&t&&fe(0,"app-notifications")}function _0e(t,n){if(1&t&&fe(0,"img",46),2&t){const e=B();T("src","data:image/png;base64,"+(null==e.employeeInfo?null:e.employeeInfo.photoURL),js)}}function v0e(t,n){1&t&&fe(0,"img",47)}function y0e(t,n){if(1&t&&fe(0,"button",53),2&t){const e=n.index;Ct("active",0===e),Kt("data-bs-slide-to",e)("aria-current",0===e?"true":null)("aria-label","Slide "+(e+1))}}function b0e(t,n){1&t&&fe(0,"img",58),2&t&&T("src",B().$implicit.templateImageUrl,js)}function C0e(t,n){1&t&&fe(0,"img",59)}function w0e(t,n){if(1&t&&(m(0,"div",54),oe(1,b0e,1,1,"img",55)(2,C0e,1,0,"img",56),m(3,"a",30),fe(4,"img",57),p()()),2&t){const e=n.$implicit;Ct("active",0===n.index),u(),T("ngIf",null==e?null:e.templateImageUrl),u(),T("ngIf",!(null!=e&&e.templateImageUrl)),u(),T("routerLink",In(6,m0e,null==e?null:e.id)),u(),T("routerLink","/Advertisements")}}function D0e(t,n){if(1&t&&(m(0,"div",48)(1,"div",49),oe(2,y0e,1,5,"button",50),p(),m(3,"div",51),oe(4,w0e,5,8,"div",52),p()()),2&t){const e=B();u(2),T("ngForOf",e.advertisements),u(2),T("ngForOf",e.advertisements)}}let S0e=(()=>{class t{notificationService;cacheService;langService;cdRef;modalService;_httpService;router;translate;renderer;advertisements;serviceUrl="/essportal";initials="";leaveData=[];chartLabels=[];chartColors=[];chartOptions={responsive:!0,maintainAspectRatio:!1};chartType="doughnut";dashboard={leaveBalance:"",urgentLeaveBalance:"",emergencyLeaveAvailableDays:"",shortSickDays:"",leavDaysTaken:""};dashboardV1={leaveRequestID:"",arabicSupervisorName:"",leaveStatus:"",leaveStatusCode:"",requestDate:"",leaveType:"",requestStartDate:"",requestEndDate:"",requestExtendDate:"",leaveBalance:"",shortSickDays:"",leavDaysTaken:"",leaveRequestsCount:"",emergencyBalance:"",availableExceseBalance:"",tolalExecese:"",lateBalance:"",emergencyTransffered:"",attendanceList:[]};userInfo={isError:!1,errorMsg:"",isValidUser:!1,isDirector:!1,isTrainingSupervisor:!1,nameEn:"",nameAr:"",designation:"",phoneNumber:"",photoURL:""};employeeInfo={designationName:"",currentGrade:"",yearsInKuwaitFund:"",endService:"",name:"",photoURL:"",joiningYear:"",nameEn:"",nameAr:"",employeeName:""};popupReopenHours=24;surveyPoll;destroy$=new nt;constructor(e,i,r,a,s,o,l,d,h){this.notificationService=e,this.cacheService=i,this.langService=r,this.cdRef=a,this.modalService=s,this._httpService=o,this.router=l,this.translate=d,this.renderer=h}ngOnInit(){this.getDashBoard(),this.loadEmployeeInfo(),this.GetAllAdvertisements(),this.cacheService.GetLatestSurveryPoll(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getDashBoard(),this.loadEmployeeInfo(),this.GetAllAdvertisements()})}loadEmployeeInfo(){this._httpService.getAll("/api/home").subscribe({next:e=>{e&&200===e.code&&0===e.apiCode?(this.employeeInfo=e.data,this.employeeInfo.photoURL=localStorage.getItem("employeePhto")||"",localStorage.setItem("employeeName",this.employeeInfo.employeeName),this.employeeInfo.name=this.employeeInfo.employeeName,this.initials=this.employeeInfo.name?this.getInitials(this.employeeInfo.name):localStorage.getItem("initials")||"",localStorage.setItem("initials",this.initials),localStorage.setItem("UserInfo",JSON.stringify(this.employeeInfo)),this.cdRef.detectChanges()):this.initials=localStorage.getItem("initials")||""}})}getDashBoard(){this._httpService.getAll("/api/leaveRequest/GetLeaveDashboard").subscribe({next:e=>{200===e.code&&e.data&&0===e.apiCode&&(this.dashboard=e.data)}})}GetServerTimezone(){this._httpService.getAll("/api/home/server-timezone").subscribe({next:e=>{localStorage.setItem("timeZoneId",e?.timeZoneId)}})}myProfile(){this.router.navigate(["profile"])}getInitials(e){return e?e.split(" ").map(a=>a.charAt(0).toUpperCase()).join(""):""}calculateAngle(e,i){return e/i*180}chatBoat(){const e=this.renderer.createElement("script");e.id="botscript",e.src="ar"==localStorage.getItem("lang")?"/essportal/assets/kf/js/KF.ar.js":"/essportal/assets/kf/js/KF.js",e.type="text/javascript",e.setAttribute("data-param1",this.employeeInfo.name),this.renderer.appendChild(document.body,e)}GetAllAdvertisements(){this._httpService.post("/api/Advertisements/GetAllAdvertisements",{pageNumber:1,pageSize:5}).subscribe({next:r=>{this.advertisements=200==r.code&&0===r.apiCode?r.data:[]}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(OC),G(hu),G(gr),G(sd),G(wn),G(An),G(cn),G(zn))};static \u0275cmp=vt({type:t,selectors:[["app-home"]],decls:167,vars:79,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"homepage-sec"],[1,"homepage-sec-one"],[1,"whitebox"],[1,"profile-sec"],[1,"profile-image"],[3,"src",4,"ngIf"],["src","./assets/images/person-image.png",4,"ngIf"],[1,"profile-bonus-sec"],[1,"profile-bonus-info"],[1,"pbi-n-home"],["type","button",1,"btn","btn-outline-gray",3,"click"],[1,"homepage-banner"],["id","carouselExampleCaptions","class","carousel slide","data-bs-ride","true",4,"ngIf"],[1,"homepage-sec-two"],[1,"leave-b-sec"],[1,"lbd-sec"],[1,"lbd-pb","sm"],[1,"my-attendance","attendance"],[1,"value"],[1,"lbd-pb","vv"],[1,"lbd-pb","sl"],[1,"lbd-pb","vu"],[1,"lbd-pb","lt"],[1,"whitebox","p-0"],[1,"wb-header"],[1,"wb-body"],[1,"qlinks"],[3,"routerLink"],["src","./assets/images/annual-leave.svg"],["src","./assets/images/EmergencyLeave.svg"],["src","./assets/images/sick-leave.svg"],[1,"bnr-links"],[1,"bnr-links-box",3,"routerLink"],["src","./assets/images/kuwait-img.png"],["src","./assets/images/operations-img.png"],["src","./assets/images/loans-img.png"],[1,"homepage-sec-three",2,"display","none"],[1,"recent-updates-sec"],[1,"recent-update"],[1,"recent-update-date"],[1,"recent-update-info"],[1,"text-center"],["type","button",1,"btn","btn-outline-gray"],[3,"src"],["src","./assets/images/person-image.png"],["id","carouselExampleCaptions","data-bs-ride","true",1,"carousel","slide"],[1,"carousel-indicators"],["type","button","data-bs-target","#carouselExampleCaptions",3,"active",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item",3,"active",4,"ngFor","ngForOf"],["type","button","data-bs-target","#carouselExampleCaptions"],[1,"carousel-item"],["class","d-block w-100",3,"src",4,"ngIf"],["src","./assets/images/ad-default.png","class","d-block w-100",4,"ngIf"],["src","./assets/images/ad-arrow.svg",1,"adv-arrow",3,"routerLink"],[1,"d-block","w-100",3,"src"],["src","./assets/images/ad-default.png",1,"d-block","w-100"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,g0e,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7),oe(10,_0e,1,1,"img",8)(11,v0e,1,0,"img",9),p(),m(12,"h5"),v(13),p(),m(14,"h6"),v(15),p(),m(16,"div",10)(17,"div",11)(18,"div",12),v(19),p(),m(20,"p"),v(21),M(22,"translate"),p()(),m(23,"div",11)(24,"div",12),v(25),p(),m(26,"p"),v(27),M(28,"translate"),p()(),m(29,"div",11)(30,"div",12),v(31),p(),m(32,"p"),v(33),M(34,"translate"),p()()(),m(35,"button",13),be("click",function(){return r.myProfile()}),v(36),M(37,"translate"),p()()(),m(38,"div",14),oe(39,D0e,5,2,"div",15),p()(),m(40,"div",16)(41,"div",5)(42,"div",17)(43,"h5"),v(44),M(45,"translate"),p()(),m(46,"div",18)(47,"div",19),fe(48,"span",20),m(49,"span",21),v(50),p(),m(51,"p"),v(52),M(53,"translate"),p()(),m(54,"div",22),fe(55,"span",20),m(56,"span",21),v(57),p(),m(58,"p"),v(59),M(60,"translate"),p()(),m(61,"div",23),fe(62,"span",20),m(63,"span",21),v(64),p(),m(65,"p"),v(66),M(67,"translate"),p()(),m(68,"div",24),fe(69,"span",20),m(70,"span",21),v(71),p(),m(72,"p"),v(73),M(74,"translate"),p()(),m(75,"div",25),fe(76,"span",20),m(77,"span",21),v(78),p(),m(79,"p"),v(80),M(81,"translate"),p()()()(),m(82,"div",26)(83,"div",27),v(84),M(85,"translate"),p(),m(86,"div",28)(87,"div",29)(88,"a",30),fe(89,"img",31),v(90),M(91,"translate"),p(),m(92,"a",30),fe(93,"img",32),v(94),M(95,"translate"),p(),m(96,"a",30),fe(97,"img",33),v(98),M(99,"translate"),p()()()(),m(100,"div",34)(101,"a",35),fe(102,"img",36),m(103,"p"),v(104),M(105,"translate"),p()(),m(106,"a",35),fe(107,"img",37),m(108,"p"),v(109),M(110,"translate"),p()(),m(111,"a",35),fe(112,"img",38),m(113,"p"),v(114),M(115,"translate"),p()()()(),m(116,"div",39)(117,"div",26)(118,"div",27),v(119),M(120,"translate"),p(),m(121,"div",28)(122,"div",40)(123,"div",41)(124,"div",42)(125,"p"),v(126,"22 "),m(127,"span"),v(128,"Aug"),p(),m(129,"span"),v(130,"2024"),p()()(),m(131,"div",43)(132,"h5"),v(133,"Annual Vacation Request"),p(),m(134,"p"),v(135,"Your request has been Approved on 20/Aug/2024 "),p()()(),m(136,"div",41)(137,"div",42)(138,"p"),v(139,"22 "),m(140,"span"),v(141,"Aug"),p(),m(142,"span"),v(143,"2024"),p()()(),m(144,"div",43)(145,"h5"),v(146,"Annual Vacation Request"),p(),m(147,"p"),v(148,"Your request has been Approved on 20/Aug/2024 "),p()()(),m(149,"div",41)(150,"div",42)(151,"p"),v(152,"22 "),m(153,"span"),v(154,"Aug"),p(),m(155,"span"),v(156,"2024"),p()()(),m(157,"div",43)(158,"h5"),v(159,"Annual Vacation Request"),p(),m(160,"p"),v(161,"Your request has been Approved on 20/Aug/2024 "),p()()()(),m(162,"div",44)(163,"button",45),v(164),M(165,"translate"),p()()()()()()()(),fe(166,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,39,r.notificationService.notification$))?null:a.show),u(9),T("ngIf",null==r.employeeInfo?null:r.employeeInfo.photoURL),u(),T("ngIf",!(null!=r.employeeInfo&&r.employeeInfo.photoURL)),u(2),P(r.employeeInfo.employeeName),u(2),P(r.employeeInfo.designationName),u(4),P(r.employeeInfo.joiningYear||"-"),u(2),P(E(22,41,"JoiningYear")),u(4),P(r.employeeInfo.currentGrade||"-"),u(2),P(E(28,43,"CurrentGrade")),u(4),P(r.employeeInfo.yearsInKuwaitFund||"-"),u(2),P(E(34,45,"YearsofWork")),u(3),P(E(37,47,"MyProfile")),u(3),T("ngIf",r.advertisements&&r.advertisements.length),u(5),P(E(45,49,"LeaveSummary")),u(6),P(r.dashboard.leaveBalance||"-"),u(2),_e("",E(53,51,"leaveBalance")," "),u(5),P(r.dashboard.urgentLeaveBalance||"-"),u(2),_e("",E(60,53,"UrgentLeaveBalance")," "),u(5),P(r.dashboard.emergencyLeaveAvailableDays||"-"),u(2),_e("",E(67,55,"EmergencyLeaveAvailableDays")," "),u(5),P(r.dashboard.shortSickDays||"-"),u(2),_e("",E(74,57,"SickLeavesDays")," "),u(5),P(r.dashboard.leavDaysTaken||"-"),u(2),_e("",E(81,59,"LeaveDaysTaken")," "),u(4),_e(" ",E(85,61,"CreateRequest")," "),u(4),T("routerLink","/leave-request/annual"),u(2),_e("",E(91,63,"AnnualLeave")," "),u(2),T("routerLink","/emergency-leave-request"),u(2),_e(" ",E(95,65,"EmergencyLeave")," "),u(2),T("routerLink","/leave-request/sick"),u(2),_e(" ",E(99,67,"SickLeave")," "),u(3),T("routerLink","/about-us"),u(3),P(E(105,69,"AboutKuwaitFund")),u(2),T("routerLink","/operations-statistics"),u(3),P(E(110,71,"OperationsStatistics")),u(2),T("routerLink","/contact-us"),u(3),_e("",E(115,73,"ContactUs")," "),u(5),_e(" ",E(120,75,"RecentUpdates")," "),u(45),P(E(165,77,"ViewAll"))}},dependencies:[ri,ii,Zt,hi,ui,pn,dn,jr,yi,Un,Ii],encapsulation:2})}return t})();function qh(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ks(t){return"string"==typeof t}function BC(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function pu(t){return t&&t.getTime&&!isNaN(t.getTime())}function Kh(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Zh(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function yr(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function is(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Qh(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function YU(t){return void 0===t}function Kn(t){const n=+t;let e=0;return 0!==n&&isFinite(n)&&(e=qh(n)),e}const Rv={},$U={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function rs(t,n){const e=t.toLowerCase();let i=t;e in $U&&(i=$U[e]),Rv[e]=Rv[`${e}s`]=Rv[n]=i}function WU(t){return ks(t)?Rv[t]||Rv[t.toLowerCase()]:void 0}function cd(t,n,e){const i=`${Math.abs(t)}`;return(t>=0?e?"+":"":"-")+Math.pow(10,Math.max(0,n-i.length)).toString().substr(1)+i}const QI={},wm={},GU=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function gn(t,n,e,i){t&&(wm[t]=i),n&&(wm[n[0]]=function(){return cd(i.apply(null,arguments),n[1],n[2])}),e&&(wm[e]=function(r,a){return a.locale.ordinal(i.apply(null,arguments),t)})}function k0e(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function VC(t,n,e){const i=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(t),i}function UC(t,n=0,e=1,i=0,r=0,a=0,s=0){const o=new Date(t,n,e,i,r,a,s);return t<100&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function Zn(t,n=!1){return n?t.getUTCHours():t.getHours()}function Dm(t,n=!1){return n?t.getUTCMinutes():t.getMinutes()}function XI(t,n=!1){return n?t.getUTCSeconds():t.getSeconds()}function dd(t,n=!1){return n?t.getUTCMilliseconds():t.getMilliseconds()}function bc(t,n=!1){return n?t.getUTCDay():t.getDay()}function Jh(t,n=!1){return n?t.getUTCDate():t.getDate()}function Qn(t,n=!1){return n?t.getUTCMonth():t.getMonth()}function Mr(t,n=!1){return n?t.getUTCFullYear():t.getFullYear()}function Sm(t,n){return!(!t||!n)&&Tm(t,n)&&Qn(t)===Qn(n)}function Tm(t,n){return!(!t||!n)&&Mr(t)===Mr(n)}function mu(t,n){return!(!t||!n)&&Tm(t,n)&&Sm(t,n)&&Jh(t)===Jh(n)}const qU=/\d/,_o=/\d\d/,KU=/\d{3}/,JI=/\d{4}/,HC=/[+-]?\d{6}/,Ji=/\d\d?/,ZU=/\d\d\d\d?/,QU=/\d\d\d\d\d\d?/,jC=/\d{1,3}/,eA=/\d{1,4}/,zC=/[+-]?\d{1,6}/,F0e=/\d+/,YC=/[+-]?\d+/,$C=/Z|[+-]\d\d(?::?\d\d)?/gi,V0e=/[+-]?\d+(\.\d{1,3})?/,Pv=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,WC={};function Wt(t,n,e){WC[t]=Kh(n)?n:function(i,r){return i&&e?e:n}}function U0e(t,n){return is(WC,t)?WC[t](!1,n):new RegExp(function H0e(t){return ef(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(n,e,i,r,a)=>e||i||r||a))}(t))}function ef(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const tA={};function er(t,n){const e=ks(t)?[t]:t;let i=n;if(Zh(n)&&(i=function(r,a,s){return a[n]=Kn(r),s}),yr(e)&&Kh(i)){let r;for(r=0;r<e.length;r++)tA[e[r]]=i}}function Ov(t,n){er(t,function(e,i,r,a){return r._w=r._w||{},n(e,r._w,r,a)})}function j0e(t,n,e){return null!=n&&is(tA,t)&&tA[t](n,e._a,e,t),e}const z0e={};function as(t,n){z0e[t]=n}function pi(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invali
1dFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function nA(t,n){return n.locale.getFullYear?n.locale.getFullYear(t,n.isUTC).toString():Mr(t,n.isUTC).toString()}function iA(t){return Kn(t)+(Kn(t)>68?1900:2e3)}function Lv(t){return rA(t)?366:365}function rA(t){return t%4==0&&t%100!=0||t%400==0}function GC(t,n){if(isNaN(t)||isNaN(n))return NaN;const e=function T0e(t,n){return(t%n+n)%n}(n,12);return 1===e?rA(t+(n-e)/12)?29:28:31-e%7%2}const q0e={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function La(t,n){const e=Object.assign({},q0e,n),i=t.getFullYear()+(e.year||0),r=t.getMonth()+(e.month||0);let a=t.getDate()+(e.day||0);return e.month&&!e.day&&(a=Math.min(a,GC(i,r))),UC(i,r,a,t.getHours()+(e.hour||0),t.getMinutes()+(e.minute||0),t.getSeconds()+(e.seconds||0))}function xm(t,n){return Zh(n)?n:t}function tf(t,n,e){const i=Math.min(Jh(t),GC(Mr(t),n));return e?t.setUTCMonth(n,i):t.setMonth(n,i),t}function aA(t,n,e){return e?t.setUTCDate(n):t.setDate(n),t}function ud(t){return new Date(t.getTime())}function hd(t,n,e){const i=ud(t);switch(n){case"year":tf(i,0,e);case"quarter":case"month":aA(i,1,e);case"week":case"isoWeek":case"day":case"date":!function Q0e(t,n,e){e?t.setUTCHours(n):t.setHours(n)}(i,0,e);case"hours":!function X0e(t,n,e){e?t.setUTCMinutes(n):t.setMinutes(n)}(i,0,e);case"minutes":!function J0e(t,n,e){e?t.setUTCSeconds(n):t.setSeconds(n)}(i,0,e);case"seconds":!function e1e(t,n,e){e?t.setUTCMilliseconds(n):t.setMilliseconds(n)}(i,0,e)}return"week"===n&&function fCe(t,n,e={}){Dc(t,n-vA(t,e.locale,e.isUTC),"day")}(i,0,{isUTC:e}),"isoWeek"===n&&function pCe(t,n,e={}){const i=function hCe(t,n=xa()){return ks(t)?n.weekdaysParse(t)%7||7:Zh(t)&&isNaN(t)?null:t}(n,e.locale);Hv(t,function ma(t,n){return bc(t,n)}(t)%7?i:i-7)}(i,1),"quarter"===n&&tf(i,3*Math.floor(Qn(i,e)/3),e),i}function qC(t,n,e){let i=n;return"date"===i&&(i="day"),function cCe(t,n,e,i){return SH(t,_A(n,e),-1,i)}(Dc(hd(t,i,e),1,"isoWeek"===i?"week":i,e),1,"milliseconds",e)}function sA(t,n){const e=+hd(t,"day",n),i=+hd(t,"year",n);return Math.round((e-i)/864e5)+1}function KC(t,n,e){const i=n-e+7;return-(VC(t,0,i).getUTCDay()-n+7)%7+i-1}function Mm(t,n,e,i){const r=KC(Mr(t,i),n,e),a=Math.floor((sA(t,i)-r-1)/7)+1;let s,o;return a<1?(o=Mr(t,i)-1,s=a+nf(o,n,e)):a>nf(Mr(t,i),n,e)?(s=a-nf(Mr(t,i),n,e),o=Mr(t,i)+1):(o=Mr(t,i),s=a),{week:s,year:o}}function nf(t,n,e){const i=KC(t,n,e),r=KC(t+1,n,e);return(Lv(t)-i+r)/7}const JU=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,i1e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),eH="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),r1e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tH="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),a1e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),nH={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l1e=Pv,c1e=Pv;class iH{constructor(n){n&&this.set(n)}set(n){let e;for(e in n){if(!n.hasOwnProperty(e))continue;const i=n[e];this[Kh(i)?e:`_${e}`]=i}this._config=n}calendar(n,e,i){const r=this._calendar[n]||this._calendar.sameElse;return Kh(r)?r.call(null,e,i):r}longDateFormat(n){const e=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return e||!i?e:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(r){return r.slice(1)}),this._longDateFormat[n])}get invalidDate(){return this._invalidDate}set invalidDate(n){this._invalidDate=n}ordinal(n,e){return this._ordinal.replace("%d",n.toString(10))}preparse(n,e){return n}getFullYear(n,e=!1){return Mr(n,e)}postformat(n){return n}relativeTime(n,e,i,r){const a=this._relativeTime[i];return Kh(a)?a(n,e,i,r):a.replace(/%d/i,n.toString(10))}pastFuture(n,e){const i=this._relativeTime[n>0?"future":"past"];return Kh(i)?i(e):i.replace(/%s/i,e)}months(n,e,i=!1){if(!n)return yr(this._months)?this._months:this._months.standalone;if(yr(this._months))return this._months[Qn(n,i)];const r=(this._months.isFormat||JU).test(e)?"format":"standalone";return this._months[r][Qn(n,i)]}monthsShort(n,e,i=!1){if(!n)return yr(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(yr(this._monthsShort))return this._monthsShort[Qn(n,i)];const r=JU.test(e)?"format":"standalone";return this._monthsShort[r][Qn(n,i)]}monthsParse(n,e,i){let r,a,s;if(this._monthsParseExact)return this.handleMonthStrictParse(n,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=new Date(Date.UTC(2e3,s)),i&&!this._longMonthsParse[s]){const o=this.months(r,"",!0).replace(".",""),l=this.monthsShort(r,"",!0).replace(".","");this._longMonthsParse[s]=new RegExp(`^${o}$`,"i"),this._shortMonthsParse[s]=new RegExp(`^${l}$`,"i")}if(!i&&!this._monthsParse[s]&&(a=`^${this.months(r,"",!0)}|^${this.monthsShort(r,"",!0)}`,this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(n)||i&&"MMM"===e&&this._shortMonthsParse[s].test(n)||!i&&this._monthsParse[s].test(n))return s}}monthsRegex(n){return this._monthsParseExact?(is(this,"_monthsRegex")||this.computeMonthsParse(),n?this._monthsStrictRegex:this._monthsRegex):(is(this,"_monthsRegex")||(this._monthsRegex=c1e),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(n){return this._monthsParseExact?(is(this,"_monthsRegex")||this.computeMonthsParse(),n?this._monthsShortStrictRegex:this._monthsShortRegex):(is(this,"_monthsShortRegex")||(this._monthsShortRegex=l1e),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}week(n,e){return Mm(n,this._week.dow,this._week.doy,e).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(n,e,i){if(!n)return yr(this._weekdays)?this._weekdays:this._weekdays.standalone;if(yr(this._weekdays))return this._weekdays[bc(n,i)];const r=this._weekdays.isFormat.test(e)?"format":"standalone";return this._weekdays[r][bc(n,i)]}weekdaysMin(n,e,i){return n?this._weekdaysMin[bc(n,i)]:this._weekdaysMin}weekdaysShort(n,e,i){return n?this._weekdaysShort[bc(n,i)]:this._weekdaysShort}weekdaysParse(n,e,i){let r,a;
1if(this._weekdaysParseExact)return this.handleWeekStrictParse(n,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){const s=Hv(new Date(Date.UTC(2e3,1)),r,null,!0);if(i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(`^${this.weekdays(s,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[r]=new RegExp(`^${this.weekdaysShort(s,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[r]=new RegExp(`^${this.weekdaysMin(s,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[r]||(a=`^${this.weekdays(s,"",!0)}|^${this.weekdaysShort(s,"",!0)}|^${this.weekdaysMin(s,"",!0)}`,this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),!(yr(this._fullWeekdaysParse)&&yr(this._shortWeekdaysParse)&&yr(this._minWeekdaysParse)&&yr(this._weekdaysParse)))return;if(i&&"dddd"===e&&this._fullWeekdaysParse[r].test(n))return r;if(i&&"ddd"===e&&this._shortWeekdaysParse[r].test(n))return r;if(i&&"dd"===e&&this._minWeekdaysParse[r].test(n))return r;if(!i&&this._weekdaysParse[r].test(n))return r}}weekdaysRegex(n){return this._weekdaysParseExact?(is(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysStrictRegex:this._weekdaysRegex):(is(this,"_weekdaysRegex")||(this._weekdaysRegex=Pv),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(n){return this._weekdaysParseExact?(is(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(is(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pv),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(n){return this._weekdaysParseExact?(is(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(is(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pv),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(n){return"p"===n.toLowerCase().charAt(0)}meridiem(n,e,i){return n>11?i?"pm":"PM":i?"am":"AM"}formatLongDate(n){this._longDateFormat=this._longDateFormat?this._longDateFormat:nH;const e=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return e||!i?e:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,r=>r.slice(1)),this._longDateFormat[n])}handleMonthStrictParse(n,e,i){const r=n.toLocaleLowerCase();let a,s,o;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)o=new Date(2e3,a),this._shortMonthsParse[a]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?(s=this._shortMonthsParse.indexOf(r),-1!==s?s:null):(s=this._longMonthsParse.indexOf(r),-1!==s?s:null):"MMM"===e?(s=this._shortMonthsParse.indexOf(r),-1!==s?s:(s=this._longMonthsParse.indexOf(r),-1!==s?s:null)):(s=this._longMonthsParse.indexOf(r),-1!==s?s:(s=this._shortMonthsParse.indexOf(r),-1!==s?s:null))}handleWeekStrictParse(n,e,i){let r;const a=n.toLocaleLowerCase();if(!this._weekdaysParse){let s;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s){const o=Hv(new Date(Date.UTC(2e3,1)),s,null,!0);this._minWeekdaysParse[s]=this.weekdaysMin(o).toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o).toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase()}}if(yr(this._weekdaysParse)&&yr(this._shortWeekdaysParse)&&yr(this._minWeekdaysParse))return i?"dddd"===e?(r=this._weekdaysParse.indexOf(a),-1!==r?r:null):"ddd"===e?(r=this._shortWeekdaysParse.indexOf(a),-1!==r?r:null):(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null):"dddd"===e?(r=this._weekdaysParse.indexOf(a),-1!==r||(r=this._shortWeekdaysParse.indexOf(a),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null)):"ddd"===e?(r=this._shortWeekdaysParse.indexOf(a),-1!==r||(r=this._weekdaysParse.indexOf(a),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(a),-1!==r?r:null)):(r=this._minWeekdaysParse.indexOf(a),-1!==r||(r=this._weekdaysParse.indexOf(a),-1!==r)?r:(r=this._shortWeekdaysParse.indexOf(a),-1!==r?r:null))}computeMonthsParse(){const n=[],e=[],i=[];let r,a;for(a=0;a<12;a++)r=new Date(2e3,a),n.push(this.monthsShort(r,"")),e.push(this.months(r,"")),i.push(this.months(r,"")),i.push(this.monthsShort(r,""));for(n.sort(rf),e.sort(rf),i.sort(rf),a=0;a<12;a++)n[a]=ef(n[a]),e[a]=ef(e[a]);for(a=0;a<24;a++)i[a]=ef(i[a]);this._monthsRegex=new RegExp(`^(${i.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${n.join("|")})`,"i")}computeWeekdaysParse(){const n=[],e=[],i=[],r=[];let a;for(a=0;a<7;
1a++){const s=Hv(new Date(Date.UTC(2e3,1)),a,null,!0),o=this.weekdaysMin(s),l=this.weekdaysShort(s),d=this.weekdays(s);n.push(o),e.push(l),i.push(d),r.push(o),r.push(l),r.push(d)}for(n.sort(rf),e.sort(rf),i.sort(rf),r.sort(rf),a=0;a<7;a++)e[a]=ef(e[a]),i[a]=ef(i[a]),r[a]=ef(r[a]);this._weekdaysRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${n.join("|")})`,"i")}}function rf(t,n){return n.length-t.length}const rH={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:nH,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:i1e,monthsShort:eH,week:{dow:0,doy:6},weekdays:r1e,weekdaysMin:a1e,weekdaysShort:tH,meridiemParse:/[ap]\.?m?\.?/i};function d1e(t,n,e){const i=Math.min(t.length,n.length),r=Math.abs(t.length-n.length);let s,a=0;for(s=0;s<i;s++)(e&&t[s]!==n[s]||!e&&Kn(t[s])!==Kn(n[s]))&&a++;return a+r}function ZC(t,n){gn(null,[t,t.length,!1],null,n)}function aH(t,n){return lA(t,n.locale).toString()}function sH(t){return oH(t).toString()}function lA(t,n=xa(),e){return Mm(t,n.firstDayOfWeek(),n.firstDayOfYear(),e).year}function oH(t,n){return Mm(t,1,4,n).year}function cH(t,n){gn(t,null,null,function(e,i){let r=function sf(t,n={}){return n._isUTC?n._offset||0:function dH(t){return 15*-Math.round(t.getTimezoneOffset()/15)}(t)}(e,{_isUTC:i.isUTC,_offset:i.offset}),a="+";return r<0&&(r=-r,a="-"),a+cd(~~(r/60),2)+n+cd(~~r%60,2)})}const b1e=/([\+\-]|\d\d)/gi;const Fa={},Fv={};let Bv;function uH(t){return t&&t.toLowerCase().replace("_","-")}function fH(t){return Fa[t]||console.error(`Khronos locale error: please load locale "${t}" before using it`),Fa[t]}function dA(t,n){let e;return t&&(YU(n)?e=xa(t):ks(t)&&(e=pH(t,n)),e&&(Bv=e)),Bv&&Bv._abbr}function pH(t,n){if(null===n)return delete Fa[t],Bv=xa("en"),null;if(!n)return;let e=rH;if(n.abbr=t,null!=n.parentLocale){if(null==Fa[n.parentLocale])return Fv[n.parentLocale]||(Fv[n.parentLocale]=[]),Fv[n.parentLocale].push({name:t,config:n}),null;e=Fa[n.parentLocale]._config}return Fa[t]=new iH(function hH(t,n){const e=Object.assign({},t);for(const i in n)is(n,i)&&(Qh(t[i])&&Qh(n[i])?(e[i]={},Object.assign(e[i],t[i]),Object.assign(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(const i in t)is(t,i)&&!is(n,i)&&Qh(t[i])&&(e[i]=Object.assign({},e[i]));return e}(e,n)),Fv[t]&&Fv[t].forEach(function(i){pH(i.name,i.config)}),dA(t),Fa[t]}function xa(t){return function x1e(){Fa.en||(dA("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(t){const n=t%10;return t+(1===Kn(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),function u1e(){gn("w",["ww",2,!1],"wo",function(t,n){return function af(t,n=xa(),e){return n.week(t,e)}(t,n.locale).toString(10)}),gn("W",["WW",2,!1],"Wo",function(t){return function oA(t,n){return Mm(t,1,4,n).week}(t).toString(10)}),rs("week","w"),rs("isoWeek","W"),as("week",5),as("isoWeek",5),Wt("w",Ji),Wt("ww",Ji,_o),Wt("W",Ji),Wt("WW",Ji,_o),Ov(["w","ww","W","WW"],function(t,n,e,i){return n[i.substr(0,1)]=Kn(t),e})}(),function h1e(){gn(null,["gg",2,!1],null,function(t,n){return(lA(t,n.locale)%100).toString()}),gn(null,["GG",2,!1],null,function(t){return(oH(t)%100).toString()}),ZC("gggg",aH),ZC("ggggg",aH),ZC("GGGG",sH),ZC("GGGGG",sH),rs("weekYear","gg"),rs("isoWeekYear","GG"),as("weekYear",1),as("isoWeekYear",1),Wt("G",YC),Wt("g",YC),Wt("GG",Ji,_o),Wt("gg",Ji,_o),Wt("GGGG",eA,JI),Wt("gggg",eA,JI),Wt("GGGGG",zC,HC),Wt("ggggg",zC,HC),Ov(["gggg","ggggg","GGGG","GGGGG"],function(t,n,e,i){return n[i.substr(0,2)]=Kn(t),e}),Ov(["gg","GG"],function(t,n,e,i){return n[i]=iA(t),e})}(),function W0e(){gn("Y",null,null,function(t,n){const e=Mr(t,n.isUTC);return e<=9999?e.toString(10):`+${e}`}),gn(null,["YY",2,!1],null,function(t,n){return(Mr(t,n.isUTC)%100).toString(10)}),gn(null,["YYYY",4,!1],null,nA),gn(null,["YYYYY",5,!1],null,nA),gn(null,["YYYYYY",6,!0],null,nA),rs("year","y"),as("year",1),Wt("Y",YC),Wt("YY",Ji,_o),Wt("YYYY",eA,JI),Wt("YYYYY",zC,HC),Wt("YYYYYY",zC,HC),er(["YYYYY","YYYYYY"],0),er("YYYY",function(t,n,e){return n[0]=2===t.length?
1iA(t):Kn(t),e}),er("YY",function(t,n,e){return n[0]=iA(t),e}),er("Y",function(t,n,e){return n[0]=parseInt(t,10),e})}(),function p1e(){gn("z",null,null,function(t,n){return n.isUTC?"UTC":""}),gn("zz",null,null,function(t,n){return n.isUTC?"Coordinated Universal Time":""})}(),function m1e(){gn("X",null,null,function(t){return function R0e(t){return Math.floor(t.valueOf()/1e3)}(t).toString(10)}),gn("x",null,null,function(t){return t.valueOf().toString(10)}),Wt("x",YC),Wt("X",V0e),er("X",function(t,n,e){return e._d=new Date(1e3*parseFloat(t)),e}),er("x",function(t,n,e){return e._d=new Date(Kn(t)),e})}(),function g1e(){gn("s",["ss",2,!1],null,function(t,n){return XI(t,n.isUTC).toString(10)}),rs("second","s"),as("second",15),Wt("s",Ji),Wt("ss",Ji,_o),er(["s","ss"],5)}(),function _1e(){gn("Q",null,"Qo",function(t,n){return function v1e(t,n=!1){return Math.ceil((Qn(t,n)+1)/3)}(t,n.isUTC).toString(10)}),rs("quarter","Q"),as("quarter",7),Wt("Q",qU),er("Q",function(t,n,e){return n[1]=3*(Kn(t)-1),e})}(),function y1e(){cH("Z",":"),cH("ZZ",""),Wt("Z",$C),Wt("ZZ",$C),er(["Z","ZZ"],function(t,n,e){return e._useUTC=!0,e._tzm=function cA(t,n){const e=(n||"").match(t);if(null===e)return null;const r=e[e.length-1].match(b1e)||["-","0","0"],a=60*parseInt(r[1],10)+Kn(r[2]);return 0===a?0:"+"===r[0]?a:-a}($C,t),e})}(),function G0e(){gn("M",["MM",2,!1],"Mo",function(t,n){return(Qn(t,n.isUTC)+1).toString(10)}),gn("MMM",null,null,function(t,n){return n.locale.monthsShort(t,n.format,n.isUTC)}),gn("MMMM",null,null,function(t,n){return n.locale.months(t,n.format,n.isUTC)}),rs("month","M"),as("month",8),Wt("M",Ji),Wt("MM",Ji,_o),Wt("MMM",function(t,n){return n.monthsShortRegex(t)}),Wt("MMMM",function(t,n){return n.monthsRegex(t)}),er(["M","MM"],function(t,n,e){return n[1]=Kn(t)-1,e}),er(["MMM","MMMM"],function(t,n,e,i){const r=e._locale.monthsParse(t,i,e._strict);return null!=r?n[1]=r:pi(e).invalidMonth=!!t,e})}(),function w1e(){gn("m",["mm",2,!1],null,function(t,n){return Dm(t,n.isUTC).toString(10)}),rs("minute","m"),as("minute",14),Wt("m",Ji),Wt("mm",Ji,_o),er(["m","mm"],4)}(),function D1e(){let t;for(gn("S",null,null,function(e,i){return(~~(dd(e,i.isUTC)/100)).toString(10)}),gn(null,["SS",2,!1],null,function(e,i){return(~~(dd(e,i.isUTC)/10)).toString(10)}),gn(null,["SSS",3,!1],null,function(e,i){return dd(e,i.isUTC).toString(10)}),gn(null,["SSSS",4,!1],null,function(e,i){return(10*dd(e,i.isUTC)).toString(10)}),gn(null,["SSSSS",5,!1],null,function(e,i){return(100*dd(e,i.isUTC)).toString(10)}),gn(null,["SSSSSS",6,!1],null,function(e,i){return(1e3*dd(e,i.isUTC)).toString(10)}),gn(null,["SSSSSSS",7,!1],null,function(e,i){return(1e4*dd(e,i.isUTC)).toString(10)}),gn(null,["SSSSSSSS",8,!1],null,function(e,i){return(1e5*dd(e,i.isUTC)).toString(10)}),gn(null,["SSSSSSSSS",9,!1],null,function(e,i){return(1e6*dd(e,i.isUTC)).toString(10)}),rs("millisecond","ms"),as("millisecond",16),Wt("S",jC,qU),Wt("SS",jC,_o),Wt("SSS",jC,KU),t="SSSS";t.length<=9;t+="S")Wt(t,F0e);function n(e,i,r){return i[6]=Kn(1e3*parseFloat(`0.${e}`)),r}for(t="S";t.length<=9;t+="S")er(t,n)}(),function S1e(){function t(r,a){return Zn(r,a)%12||12}function e(r,a){gn(r,null,null,function(s,o){return o.locale.meridiem(Zn(s,o.isUTC),Dm(s,o.isUTC),a)})}function i(r,a){return a._meridiemParse}gn("H",["HH",2,!1],null,function(r,a){return Zn(r,a.isUTC).toString(10)}),gn("h",["hh",2,!1],null,function(r,a){return t(r,a.isUTC).toString(10)}),gn("k",["kk",2,!1],null,function(r,a){return function n(r,a){return Zn(r,a)||24}(r,a.isUTC).toString(10)}),gn("hmm",null,null,function(r,a){return`${t(r,a.isUTC)}${cd(Dm(r,a.isUTC),2)}`}),gn("hmmss",null,null,function(r,a){return`${t(r,a.isUTC)}${cd(Dm(r,a.isUTC),2)}${cd(XI(r,a.isUTC),2)}`}),gn("Hmm",null,null,function(r,a){return`${Zn(r,a.isUTC)}${cd(Dm(r,a.isUTC),2)}`}),gn("Hmmss",null,null,function(r,a){return`${Zn(r,a.isUTC)}${cd(Dm(r,a.isUTC),2)}${cd(XI(r,a.isUTC),2)}`}),e("a",!0),e("A",!1),rs("hour","h"),as("hour",13),Wt("a",i),Wt("A",i),Wt("H",Ji),Wt("h",Ji),Wt("k",Ji),Wt("HH",Ji,_o),Wt("hh",Ji,_o),Wt("kk",Ji,_o),Wt("hmm",ZU),Wt("hmmss",QU),Wt("Hmm",ZU),Wt("Hmmss",QU),er(["H","HH"],3),er(["k","kk"],function(r,a,s){const o=Kn(r);return a[3]=24===o?0:o,s}),er(["a","A"],function(r,a,s){return s._isPm=s._locale.isPM(r),s._meridiem=r,s}),er(["h","hh"],function(r,a,s){return a[3]=Kn(r),pi(s).bigHour=!0,s}),er("hmm",function(r,a,s){const o=r.length-2;return a[3]=Kn(r.substr(0,o)),a[4]=Kn(r.substr(o)),pi(s).bigHour=!0,s}),er("hmmss",function(r,a,s){const o=r.length-4,l=r.length-2;return a[3]=Kn(r.substr(0,o)),a[4]=Kn(r.substr(o,2)),a[5]=Kn(r.substr(l)),pi(s).bigHour=!0,s}),er("Hmm",function(r,a,s){const o=r.length-2;return a[3]=Kn(r.substr(0,o)),a[4]=Kn(r.substr(o)),s}),er("Hmmss",function(r,a,s){const o=r.length-4,l=r.length-2;return a[3]=Kn(r.substr(0,o)),a[4]=Kn(r.substr(o,2)),a[5]=Kn(r.substr(l)),s})}(),function n1e(){gn("DDD",["DDDD",3,!1],"DDDo",function(t){return sA(t).toString(10)}),rs("dayOfYear","DDD"),as("dayOfYear",4),Wt("DDD",jC),Wt("DDDD",KU),er(["DDD","DDDD"],function(t,n,e){return e._dayOfYear=Kn(t),e})}
1(),function dCe(){gn("d",null,"do",function(t,n){return bc(t,n.isUTC).toString(10)}),gn("dd",null,null,function(t,n){return n.locale.weekdaysMin(t,n.format,n.isUTC)}),gn("ddd",null,null,function(t,n){return n.locale.weekdaysShort(t,n.format,n.isUTC)}),gn("dddd",null,null,function(t,n){return n.locale.weekdays(t,n.format,n.isUTC)}),gn("e",null,null,function(t,n){return vA(t,n.locale,n.isUTC).toString(10)}),gn("E",null,null,function(t,n){return function TH(t,n){return bc(t,n)||7}(t,n.isUTC).toString(10)}),rs("day","d"),rs("weekday","e"),rs("isoWeekday","E"),as("day",11),as("weekday",11),as("isoWeekday",11),Wt("d",Ji),Wt("e",Ji),Wt("E",Ji),Wt("dd",function(t,n){return n.weekdaysMinRegex(t)}),Wt("ddd",function(t,n){return n.weekdaysShortRegex(t)}),Wt("dddd",function(t,n){return n.weekdaysRegex(t)}),Ov(["dd","ddd","dddd"],function(t,n,e,i){const r=e._locale.weekdaysParse(t,i,e._strict);return null!=r?n.d=r:pi(e).invalidWeekday=!!t,e}),Ov(["d","e","E"],function(t,n,e,i){return n[i]=Kn(t),e})}(),function Y0e(){gn("D",["DD",2,!1],"Do",function(t,n){return Jh(t,n.isUTC).toString(10)}),rs("date","D"),as("date",9),Wt("D",Ji),Wt("DD",Ji,_o),Wt("Do",function(t,n){return n._dayOfMonthOrdinalParse||n._ordinalParse}),er(["D","DD"],2),er("Do",function(t,n,e){return n[2]=Kn(t.match(Ji)[0]),e})}())}(),t?function T1e(t){let n,e,i=0;for(;i<t.length;){const r=uH(t[i]).split("-");let a=r.length;for(n=uH(t[i+1]),n=n?n.split("-"):null;a>0;){if(e=fH(r.slice(0,a).join("-")),e)return e;if(n&&n.length>=a&&d1e(r,n,!0)>=a-1)break;a--}i++}return null}(yr(t)?t:[t]):Bv}const Vv=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],M1e=Vv.reduce((t,n)=>(t[n]=!0,t),{});function mH(t){return t<0?Math.floor(t):Math.ceil(t)}function gH(t){return 4800*t/146097}function uA(t){return 146097*t/4800}let gu=Math.round;const Cc_ss=44,Cc_s=45,Cc_m=45,Cc_h=22,Cc_d=26,Cc_M=11;function A1e(t,n,e,i,r){return r.relativeTime(n||1,!!e,t,i)}class _H{constructor(n,e={}){this._data={},this._locale=xa(),this._locale=e&&e._locale||xa();const r=n.year||0,a=n.quarter||0,s=n.month||0,o=n.week||0,l=n.day||0,d=n.hours||0,h=n.minutes||0,_=n.seconds||0,b=n.milliseconds||0;return this._isValid=function E1e(t){if(Object.keys(t).some(i=>i in M1e&&null===t[i]||isNaN(t[i])))return!1;let e=!1;for(let i=0;i<Vv.length;++i)if(t[Vv[i]]){if(e)return!1;t[Vv[i]]!==Kn(t[Vv[i]])&&(e=!0)}return!0}(n),this._milliseconds=+b+1e3*_+60*h*1e3+1e3*d*60*60,this._days=+l+7*o,this._months=+s+3*a+12*r,function I1e(t){let n=t._milliseconds,e=t._days,i=t._months;const r=t._data;n>=0&&e>=0&&i>=0||n<=0&&e<=0&&i<=0||(n+=864e5*mH(uA(i)+e),e=0,i=0),r.milliseconds=n%1e3;const a=qh(n/1e3);r.seconds=a%60;const s=qh(a/60);r.minutes=s%60;const o=qh(s/60);r.hours=o%24,e+=qh(o/24);const l=qh(gH(e));i+=l,e-=mH(uA(l));const d=qh(i/12);return i%=12,r.day=e,r.month=i,r.year=d,t}(this)}isValid(){return this._isValid}humanize(n){if(!this.isValid())return this.localeData().invalidDate;const e=this.localeData();let i=function k1e(t,n,e){const i=_A(t).abs(),r=gu(i.as("s")),a=gu(i.as("m")),s=gu(i.as("h")),o=gu(i.as("d")),l=gu(i.as("M")),d=gu(i.as("y")),h=r<=Cc_ss&&["s",r]||r<Cc_s&&["ss",r]||a<=1&&["m"]||a<Cc_m&&["mm",a]||s<=1&&["h"]||s<Cc_h&&["hh",s]||o<=1&&["d"]||o<Cc_d&&["dd",o]||l<=1&&["M"]||l<Cc_M&&["MM",l]||d<=1&&["y"]||["yy",d];return A1e.apply(null,[h[0],h[1],n,+t>0,e])}(this,!n,e);return n&&(i=e.pastFuture(+this,i)),e.postformat(i)}localeData(){return this._locale}locale(n){return n?(this._locale=xa(n)||this._locale,this):this._locale._abbr}abs(){const n=Math.abs,e=this._data;return this._milliseconds=n(this._milliseconds),this._days=n(this._days),this._months=n(this._months),e.milliseconds=n(e.milliseconds),e.seconds=n(e.seconds),e.minutes=n(e.minutes),e.hours=n(e.hours),e.month=n(e.month),e.year=n(e.year),this}as(n){if(!this.isValid())return NaN;let e,i;const r=this._milliseconds,a=WU(n);if("month"===a||"year"===a)return e=this._days+r/864e5,i=this._months+gH(e),"month"===a?i:i/12;switch(e=this._days+Math.round(uA(this._months)),a){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hours":return 24*e+r/36e5;case"minutes":return 1440*e+r/6e4;case"seconds":return 86400*e+r/1e3;case"milliseconds":return Math.floor(864e5*e)+r;default:throw new Error(`Unknown unit ${a}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Kn(this._months/12):NaN}}function hA(t){if(null==t._isValid){const n=pi(t),e=Array.prototype.some.call(n.parsedDateParts,function(r){return null!=r});let i=!isNaN(t._d&&t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&e);
1if(t._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function XC(t,n){return t._d=new Date(NaN),Object.assign(pi(t),n||{userInvalidated:!0}),t}const P1e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,O1e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,L1e=/Z|[+-]\d\d(?::?\d\d)?/,JC=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],fA=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],F1e=/^\/?Date\((\-?\d+)/i,B1e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},V1e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function vH(t){if(!ks(t._i))return t;const n=t._i,e=P1e.exec(n)||O1e.exec(n);let i,r,a,s,o,l;if(!e)return t._isValid=!1,t;for(o=0,l=JC.length;o<l;o++)if(JC[o][1].exec(e[1])){r=JC[o][0],i=!1!==JC[o][2];break}if(null==r)return t._isValid=!1,t;if(e[3]){for(o=0,l=fA.length;o<l;o++)if(fA[o][1].exec(e[3])){a=(e[2]||" ")+fA[o][0];break}if(null==a)return t._isValid=!1,t}if(!i&&null!=a)return t._isValid=!1,t;if(e[4]){if(!L1e.exec(e[4]))return t._isValid=!1,t;s="Z"}return t._f=r+(a||"")+(s||""),mA(t)}function H1e(t){const n=parseInt(t,10);return n<=49?n+2e3:n}function yH(t){if(!ks(t._i))return t;const n=V1e.exec(function j1e(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t._i));if(!n)return function R1e(t){return t._isValid=!1,t}(t);const e=function U1e(t,n,e,i,r,a){const s=[H1e(t),eH.indexOf(n),parseInt(e,10),parseInt(i,10),parseInt(r,10)];return a&&s.push(parseInt(a,10)),s}(n[4],n[3],n[2],n[5],n[6],n[7]);return function z1e(t,n,e){return!t||tH.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(pi(e).weekdayMismatch=!0,e._isValid=!1,!1)}(n[1],e,t)&&(t._a=e,t._tzm=function Y1e(t,n,e){if(t)return B1e[t];if(n)return 0;{const i=parseInt(e,10),r=i%100;return(i-r)/100*60+r}}(n[8],n[9],n[10]),t._d=VC.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),pi(t).rfc2822=!0),t}function Zo(t,n,e,i,r=0){const a=xa(e||"en");if(!a)throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);const o=function W1e(t,n,e,i,r=0){if(!pu(t))return e.invalidDate;const a=bH(n,e);return QI[a]=QI[a]||function A0e(t){const n=t.match(GU),e=n.length,i=new Array(e);for(let r=0;r<e;r++)i[r]=wm[n[r]]?wm[n[r]]:k0e(n[r]);return function(r,a,s,o=0){let l="";for(let d=0;d<e;d++)l+=Kh(i[d])?i[d].call(null,r,{format:t,locale:a,isUTC:s,offset:o}):i[d];return l}}(a),QI[a](t,e,i,r)}(t,n||(i?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),a,i,r);return o&&a.postformat(o)}function bH(t,n){let e=t,i=5;const r=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,a=s=>n.formatLongDate(s)||s;for(r.lastIndex=0;i>=0&&r.test(e);)e=e.replace(r,a),r.lastIndex=0,i-=1;return e}function Em(t,n,e){return t??n??e}function pA(t){const n=[];let e,i,r;if(t._d)return t;const a=function G1e(t){const n=new Date;return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t);for(t._w&&null==t._a[2]&&null==t._a[1]&&function q1e(t){let n,e,i,r,a,s,o;const l=t._w;if(null!=l.GG||null!=l.W||null!=l.E)r=1,a=4,n=Em(l.GG,t._a[0],Mm(new Date,1,4).year),e=Em(l.W,1),i=Em(l.E,1),(i<1||i>7)&&(o=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;const d=Mm(new Date,r,a);n=Em(l.gg,t._a[0],d.year),e=Em(l.w,d.week),null!=l.d?(i=l.d,(i<0||i>6)&&(o=!0)):null!=l.e?(i=l.e+r,(l.e<0||l.e>6)&&(o=!0)):i=r}e<1||e>nf(n,r,a)?pi(t)._overflowWeeks=!0:null!=o?pi(t)._overflowWeekday=!0:(s=function XU(t,n,e,i,r){const o=1+7*(n-1)+(7+e-i)%7+KC(t,i,r);let l,d;return o<=0?(l=t-1,d=Lv(l)+o):o>Lv(t)?(l=t+1,d=o-Lv(t)):(l=t,d=o),{year:l,dayOfYear:d}}(n,e,i,r,a),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(r=Em(t._a[0],a[0]),(t._dayOfYear>Lv(r)||0===t._dayOfYear)&&(pi(t)._overflowDayOfYear=!0),i=new Date(Date.UTC(r,0,t._dayOfYear)),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=a[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?VC:UC).apply(null,n);const s=t._useUTC?t._d.getUTCDay():t._d.getDay();return null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==s&&(pi(t).weekdayMismatch=!0),t}function CH(t){let n;const e=t._a;return e&&-2===pi(t).overflow&&(n=e[1]<0||e[1]>11?1:e[2]<1||e[2]>GC(e[0],e[1])?2:e[3]<0||e[3]>24||24===e[3]&&(0!==e[4]||0!==e[5]||0!==e[6])?3:e[4]<0||e[4]>59?4:e[5]<0||e[5]>59?5:e[6]<0||e[6]>999?6:-1,pi(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),pi(t)._overflowWeeks&&-1===n&&(n=7),pi(t)._overflowWeekday&&-1===n&&(n=8),pi(t).overflow=n),t}const K1e="ISO_8601",Z1e="RFC_2822";function mA(t){if(t._f===K1e)return vH(t);if(t._f===Z1e)return yH(t);if(t._a=[],pi(t).empty=!0,yr(t._f)||!t._i&&0!==t._i)return t;let n=t._i.toString(),e=0;const i=n.length,r=bH(t._f,t._locale).match(GU)||[];let a,s,o,l;for(a=0;a<r.length;a++)s=r[a],o=(n.match(U0e(s,t._locale))||[])[0],o&&(l=n.substr(0,n.indexOf(o)),l.length>0&&pi(t).unusedInput.push(l),n=n.slice(n.indexOf(o)+o.length),e+=o.length),wm[s]?(o?pi(t).empty=!1:pi(t).unusedTokens.push(s),j0e(s,o,t)):t._strict&&!o&&pi(t).unusedTokens.push(s);return pi(t).charsLeftOver=i-e,n.length>0&&pi(t).unusedInput.push(n),t._a[3]<=12&&!0===pi(t).bigHour&&t._a[3]>0&&(pi(t).bigHour=void 0),pi(t).parsedDateParts=t._a.slice(0),pi(t).meridiem=t._meridiem,t._a[3]=function Q1e(t,n,e){let i=n;if(null==e)return i;if(null!=t.meridiemHour)return t.meridiemHour(i,e);if(null==t.isPM)return i;const r=t.isPM(e);return r&&i<12&&(i+=12),!r&&12===i&&(i=0),i}(t._locale,t._a[3],t._meridiem),pA(t),CH(t)}function eCe(t){const n=CH(function tCe(t){let n=t._i;const e=t._f;return t._locale=t._locale||xa(t._l),null===n||void 0===e&&""===n?XC(t,{nullInput:!0}):(ks(n)&&(t._i=n=t._locale.preparse(n,e)),BC(n)?(t._d=ud(n),t):(yr(e)?function X1e(t){let n,e,i,r,a;if(!t._f||0===t._f.length)return pi(t).invalidFormat=!0,XC(t);for(a=0;a<t._f.length;a++)r=0,n=Object.assign({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[a],mA(n),hA(n)&&(r+=pi(n).charsLeftOver,r+=10*pi(n).unusedTokens.length,pi(n).score=r,(null==i||r<i)&&(i=r,e=n));Object.assign(t,e||n)}(t):e?mA(t):function nCe(t){const n=t._i;if(YU(n))t._d=new Date;else if(BC(n))t._d=ud(n);else if(ks(n))!function $1e(t){if(!ks(t._i))return t;const n=F1e.exec(t._i);null!==n?t._d=new Date(+n[1]):(vH(t),!1!==t._isValid||(delete t._isValid,yH(t),!1!==t._isValid||(delete t._isValid,XC(t))))}(t);else if(yr(n)&&n.length){const e=n.slice(0);t._a=e.map(i=>ks(i)?parseInt(i,10):i),pA(t)}else if(Qh(n))!function J1e(t){if(t._d)return t;const n=t._i;if(Qh(n)){const e=function M0e(t){const n={};let e,i;for(i in t)is(t,i)&&(e=WU(i),e&&(n[e]=t[i]));return n}(n);t._a=[e.year,e.month,e.day,e.hours,e.minutes,e.seconds,e.milliseconds].map(i=>ks(i)?parseInt(i,10):i)}return pA(t)}(t);else{if(!Zh(n))return XC(t);t._d=new Date(n)}}(t),hA(t)||(t._d=null),t))}(t));return n._d=new Date(null!=n._d?n._d.getTime():NaN),hA(Object.assign({},n,{_isValid:null}))||(n._d=new Date(NaN)),n}function Uv(t,n,e,i,r){return BC(t)?t:function iCe(t,n,e,i,r){const a={};let s=t;return(Qh(s)&&function x0e(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;let n;for(n in t)if(t.hasOwnProperty(n))return!1;return!0}(s)||yr(s)&&0===s.length)&&(s=void 0),a._useUTC=a._isUTC=r,a._l=e,a._i=s,a._f=n,a._strict=i,e
1Ce(a)}(t,n,e,i,r)._d}function wH(t){return t instanceof Date?new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):null}function gA(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Pl(t,n,e="milliseconds"){return!(!t||!n)&&("milliseconds"===e?t.valueOf()>n.valueOf():n.valueOf()<hd(t,e).valueOf())}function wc(t,n,e="milliseconds"){return!(!t||!n)&&("milliseconds"===e?t.valueOf()<n.valueOf():qC(t,e).valueOf()<n.valueOf())}function Im(t,n,e="milliseconds"){if(!t||!n)return!1;if("milliseconds"===e)return t.valueOf()===n.valueOf();const i=n.valueOf();return hd(t,e).valueOf()<=i&&i<=qC(t,e).valueOf()}const aCe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,sCe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function _A(t,n,e={}){const i=function oCe(t,n){if(null==t)return{};if(function N1e(t){return t instanceof _H}(t))return{milliseconds:t._milliseconds,day:t._days,month:t._months};if(Zh(t))return n?{[n]:t}:{milliseconds:t};if(ks(t)){let e=aCe.exec(t);if(e){const i="-"===e[1]?-1:1;return{year:0,day:Kn(e[2])*i,hours:Kn(e[3])*i,minutes:Kn(e[4])*i,seconds:Kn(e[5])*i,milliseconds:Kn(gA(1e3*Kn(e[6])))*i}}if(e=sCe.exec(t),e){const i="-"===e[1]?-1:1;return{year:lf(e[2],i),month:lf(e[3],i),week:lf(e[4],i),day:lf(e[5],i),hours:lf(e[6],i),minutes:lf(e[7],i),seconds:lf(e[8],i)}}}if(Qh(t)&&("from"in t||"to"in t)){const e=function lCe(t,n){if(!pu(t)||!pu(n))return{milliseconds:0,months:0};let e;const i=function C1e(t,n,e={}){if(!e._isUTC)return t;const i=ud(n),r=6e4*(e._offset||0),a=t.valueOf()-i.valueOf()+r;return i.setTime(i.valueOf()+a),i}(n,t,{_offset:t.getTimezoneOffset()});return wc(t,i)?e=DH(t,i):(e=DH(i,t),e.milliseconds=-e.milliseconds,e.months=-e.months),e}(Uv(t.from),Uv(t.to));return{milliseconds:e.milliseconds,month:e.months}}return t}(t,n);return new _H(i,e)}function lf(t,n){const e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n}function DH(t,n){const e={milliseconds:0,months:0};return e.months=Qn(n)-Qn(t)+12*(Mr(n)-Mr(t)),Pl(Dc(ud(t),e.months,"month"),n)&&--e.months,e.milliseconds=+n-+Dc(ud(t),e.months,"month"),e}function Dc(t,n,e,i){return SH(t,_A(n,e),1,i)}function SH(t,n,e,i){const r=n._milliseconds,a=gA(n._days),s=gA(n._months);return s&&tf(t,Qn(t,i)+s*e,i),a&&aA(t,Jh(t,i)+a*e,i),r&&function t1e(t,n){t.setTime(n)}(t,function N0e(t){return t.getTime()}(t)+r*e),ud(t)}function Hv(t,n,e=xa(),i){const r=bc(t,i),a=function uCe(t,n){if(!ks(t))return t;const e=parseInt(t,10);if(!isNaN(e))return e;const i=n.weekdaysParse(t);return Zh(i)?i:null}(n,e);return Dc(t,a-r,"day")}function vA(t,n=xa(),e){return(bc(t,e)+7-n.firstDayOfWeek())%7}const xH=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},_Ce={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},Qo=function(t){return function(n,e){const i=xH(n);let r=_Ce[t][xH(n)];return 2===i&&(r=r[e?0:1]),r.replace(/%d/i,n.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),Qo("s"),Qo("s"),Qo("m"),Qo("m"),Qo("h"),Qo("h"),Qo("d"),Qo("d"),Qo("M"),Qo("M"),Qo("y"),Qo("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const bA="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),CA="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(t,n){let e,i=[];for(e=0;e<12;e++)i[e]=new RegExp("^"+t[e]+"$|^"+n[e]+"$","i")})(bA,CA),function(t){let n,e=[];for(n=0;n<12;n++)e[n]=new RegExp("^"+t[n]+"$","i")}(CA),function(t){let n,e=[];for(n=0;n<12;n++)e[n]=new RegExp("^"+t[n]+"$","i")}(bA),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
1split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u
105d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spali
1o_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".
1split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const $H={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:t=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t,meri
1diem:(t,n,e)=>t<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(t,n){const e=$H.longDateFormat[n]?$H.longDateFormat[n]:n;return-1!==e.indexOf("YYYY",e.length-4)?t.substr(0,t.length-4)+(parseInt(t.substr(t.length-4),10)-543):t},getFullYear:(t,n=!1)=>543+(n?t.getUTCFullYear():t.getFullYear())};function Om(t){return function(n){return t+"\u043e"+(11===Zn(n)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Om("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Om("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Om("[\u0412\u0447\u043e\u0440\u0430 "),Om("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");const WH=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5};var UCe={s:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062b\u0627\u0646\u06cc\u0647","\u06cc\u06a9 \u062b\u0627\u0646\u06cc\u0647",["\u062f\u0648 \u062b\u0627\u0646\u06cc\u0647","\u062f\u0648 \u062b\u0627\u0646\u06cc\u0647"],"%d \u062b\u0627\u0646\u06cc\u0647","%d \u062b\u0627\u0646\u06cc\u0647","%d \u062b\u0627\u0646\u06cc\u0647"],m:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647","\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",["\u062f\u0648 \u062f\u0642\u06cc\u0642\u0647","\u062f\u0648 \u062f\u0642\u06cc\u0642\u0647"],"%d \u062f\u0642\u06cc\u0642\u0647","%d \u062f\u0642\u06cc\u0642\u0647","%d \u062f\u0642\u06cc\u0642\u0647"],h:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u0633\u0627\u0639\u062a","\u06cc\u06a9 \u0633\u0627\u0639\u062a",["\u062f\u0648 \u0633\u0627\u0639\u062a","\u062f\u0648 \u0633\u0627\u0639\u062a"],"%d \u0633\u0627\u0639\u062a","%d \u0633\u0627\u0639\u062a","%d \u0633\u0627\u0639\u062a"],d:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u0631\u0648\u0632","\u06cc\u06a9 \u0631\u0648\u0632",["\u062f\u0648 \u0631\u0648\u0632","\u062f\u0648 \u0631\u0648\u0632"],"%d \u0631\u0648\u0632","%d \u0631\u0648\u0632","%d \u0631\u0648\u0632"],M:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u0645\u0627\u0647","\u06cc\u06a9 \u0645\u0627\u0647",["\u062f\u0648 \u0645\u0627\u0647","\u062f\u0648 \u0645\u0627\u0647"],"%d \u0645\u0627\u0647","%d \u0645\u0627\u0647","%d \u0645\u0627\u0647"],y:["\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u0633\u0627\u0644","\u06cc\u06a9 \u0633\u0627\u0644",["\u062f\u0648 \u0633\u0627\u0644","\u062f\u0648 \u0633\u0627\u0644"],"%d \u0633\u0627\u0644","%d \u0633\u0627\u0644","%d \u0633\u0627\u0644"]};const rl=function(t){return function(n,e){const i=WH(n);let r=UCe[t][WH(n)];return 2===i&&(r=r[e?0:1]),r.replace(/%d/i,n.toString())}};"\u06cc\u06a9\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647 \u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c \u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),"\u06cc\u06a9\u0634\u0646\u0628\u0647_\u062f\u0648\u200c\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u200c\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),rl("s"),rl("s"),rl("m"),rl("m"),rl("h"),rl("h"),rl("d"),rl("d"),rl("M"),rl("M"),rl("y"),rl("y");class HCe{constructor(n,e){this.open=n,this.close=e||n}isManual(){return"manual"===this.open||"manual"===this.close}}const jCe={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function kA(t,n=jCe){const e=(t||"").trim();if(0===e.length)return[];const i=e.split(/\s+/).map(a=>a.split(":")).map(a=>{const s=n[a[0]]||a;return new HCe(s[0],s[1])}),r=i.filter(a=>a.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}const Ma=typeof window<"u"&&window||{};let fd;function KH(){const t=Ma.document.createElement("span");t.innerText="testing bs version",t.classList.add("d-none"),t.classList.add("pl-1"),Ma.document.head.appendChild(t);const n=Ma.getComputedStyle(t).paddingLeft;return n&&parseFloat(n)?(Ma.document.head.removeChild(t),"bs4"):(Ma.document.head.removeChild(t),"bs5")}function Lm(){return{isBs4:(fd||(fd=KH()),"bs4"===fd),isBs5:(fd||(fd=KH()),"bs5"===fd)}}function KCe(){const t="Change";return function(e,i){const r=` __${i}Value`;Object.defineProperty(e,i,{get(){return this[r]},set(a){const s=this[r];
1this[r]=a,s!==a&&this[i+t]&&this[i+t].emit(a)}})}}typeof console>"u"||console;var QH=function(t){return t.top="top",t.bottom="bottom",t.left="left",t.right="right",t.auto="auto",t.end="right",t.start="left",t["top left"]="top left",t["top right"]="top right",t["right top"]="right top",t["right bottom"]="right bottom",t["bottom right"]="bottom right",t["bottom left"]="bottom left",t["left bottom"]="left bottom",t["left top"]="left top",t["top start"]="top left",t["top end"]="top right",t["end top"]="right top",t["end bottom"]="right bottom",t["bottom end"]="bottom right",t["bottom start"]="bottom left",t["start bottom"]="start bottom",t["start top"]="left top",t}(QH||{}),tw=function(t){return t.top="top",t.bottom="bottom",t.left="start",t.right="end",t.auto="auto",t.end="end",t.start="start",t["top left"]="top start",t["top right"]="top end",t["right top"]="end top",t["right bottom"]="end bottom",t["bottom right"]="bottom end",t["bottom left"]="bottom start",t["left bottom"]="start bottom",t["left top"]="start top",t["top start"]="top start",t["top end"]="top end",t["end top"]="end top",t["end bottom"]="end bottom",t["bottom end"]="bottom end",t["bottom start"]="bottom start",t["start bottom"]="start bottom",t["start top"]="start top",t}(tw||{});function hf(t,n){if(1!==t.nodeType)return[];const i=t.ownerDocument.defaultView?.getComputedStyle(t,null);return n?i&&i[n]:i}function NA(t){if(!t)return document.documentElement;let i,e=t?.offsetParent;for(;null===e&&t.nextElementSibling&&i!==t.nextElementSibling;)i=t.nextElementSibling,e=i.offsetParent;const r=e&&e.nodeName;return r&&"BODY"!==r&&"HTML"!==r?e&&-1!==["TH","TD","TABLE"].indexOf(e.nodeName)&&"static"===hf(e,"position")?NA(e):e:i?i.ownerDocument.documentElement:document.documentElement}function RA(t){return null!==t.parentNode?RA(t.parentNode):t}function nw(t,n){if(!(t&&t.nodeType&&n&&n.nodeType))return document.documentElement;const e=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING,i=e?t:n,r=e?n:t,a=document.createRange();a.setStart(i,0),a.setEnd(r,0);const s=a.commonAncestorContainer;if(t!==s&&n!==s||i.contains(r))return function QCe(t){const{nodeName:n}=t;return"BODY"!==n&&("HTML"===n||NA(t.firstElementChild)===t)}(s)?s:NA(s);const o=RA(t);return o.host?nw(o.host,n):nw(t,RA(n).host)}function XH(t){if(!t||!t.parentElement)return document.documentElement;let n=t.parentElement;for(;n?.parentElement&&"none"===hf(n,"transform");)n=n.parentElement;return n||document.documentElement}function JH(t,n){const e="x"===n?"Left":"Top",i="Left"===e?"Right":"Bottom";return parseFloat(t[`border${e}Width`])+parseFloat(t[`border${i}Width`])}function ej(t,n,e){return Math.max(n[`offset${t}`],n[`scroll${t}`],e[`client${t}`],e[`offset${t}`],e[`scroll${t}`],0)}function tj(t){const n=t.body,e=t.documentElement;return{height:ej("Height",n,e),width:ej("Width",n,e)}}function zv(t){return{...t,right:(t.left||0)+t.width,bottom:(t.top||0)+t.height}}function br(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function nj(t){const n=t.getBoundingClientRect();if(!(n&&br(n.top)&&br(n.left)&&br(n.bottom)&&br(n.right)))return n;const e={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},i="HTML"===t.nodeName?tj(t.ownerDocument):void 0,r=i?.width||t.clientWidth||br(n.right)&&br(e.left)&&n.right-e.left||0,a=i?.height||t.clientHeight||br(n.bottom)&&br(e.top)&&n.bottom-e.top||0;let s=t.offsetWidth-r,o=t.offsetHeight-a;if(s||o){const l=hf(t);s-=JH(l,"x"),o-=JH(l,"y"),e.width-=s,e.height-=o}return zv(e)}function PA(t,n,e=!1){const i="HTML"===n.nodeName,r=nj(t),a=nj(n),s=hf(n),o=parseFloat(s.borderTopWidth),l=parseFloat(s.borderLeftWidth);e&&i&&(a.top=Math.max(a.top??0,0),a.left=Math.max(a.left??0,0));const d=zv({top:(r.top??0)-(a.top??0)-o,left:(r.left??0)-(a.left??0)-l,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,i){const h=parseFloat(s.marginTop),_=parseFloat(s.marginLeft);br(d.top)&&(d.top-=o-h),br(d.bottom)&&(d.bottom-=o-h),br(d.left)&&(d.left-=l-_),br(d.right)&&(d.right-=l-_),d.marginTop=h,d.marginLeft=_}return d}function OA(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function ij(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:n,overflowX:e,overflowY:i}=hf(t);return/(auto|scroll|overlay)/.test(String(n)+String(i)+String(e))?t:ij(OA(t))}function rj(t,n="top"){const e="top"===n?"scrollTop":"scrollLeft",i=t.nodeName;return"BODY"===i||"HTML"===i?(t.ownerDocument.scrollingElement||t.ownerDocument.documentElement)[e]:t[e]}function aj(t){const n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===hf(t,"position")||aj(OA(t)))}function LA(t,n,e=0,i,r=!1){let a={top:0,left:0};const s=r?XH(t):nw(t,n);if("viewport"===i)a=function JCe(t,n=!1){const e=t.ownerDocument.documentElement,i=PA(t,e),r=Math.max(e.clientWidth,window.innerWidth||0),a=Math.max(e.clientHeight,window.innerHeight||0),s=n?0:rj(e),o=n?0:rj(e,"left");
1return zv({top:s-Number(i?.top)+Number(i?.marginTop),left:o-Number(i?.left)+Number(i?.marginLeft),width:r,height:a})}(s,r);else{let o;"scrollParent"===i?(o=ij(OA(n)),"BODY"===o.nodeName&&(o=t.ownerDocument.documentElement)):o="window"===i?t.ownerDocument.documentElement:i;const l=PA(o,s,r);if(l&&"HTML"===o.nodeName&&!aj(s)){const{height:d,width:h}=tj(t.ownerDocument);br(a.top)&&br(l.top)&&br(l.marginTop)&&(a.top+=l.top-l.marginTop),br(a.top)&&(a.bottom=Number(d)+Number(l.top)),br(a.left)&&br(l.left)&&br(l.marginLeft)&&(a.left+=l.left-l.marginLeft),br(a.top)&&(a.right=Number(h)+Number(l.left))}else l&&(a=l)}return br(a.left)&&(a.left+=e),br(a.top)&&(a.top+=e),br(a.right)&&(a.right-=e),br(a.bottom)&&(a.bottom-=e),a}function ewe({width:t,height:n}){return t*n}function sj(t,n,e,i,r=["top","bottom","right","left"],a="viewport",s=0){if(-1===t.indexOf("auto"))return t;const o=LA(e,i,s,a),l={top:{width:o?.width??0,height:(n?.top??0)-(o?.top??0)},right:{width:(o?.right??0)-(n?.right??0),height:o?.height??0},bottom:{width:o?.width??0,height:(o?.bottom??0)-(n?.bottom??0)},left:{width:(n.left??0)-(o?.left??0),height:o?.height??0}},d=Object.keys(l).map(C=>({position:C,...l[C],area:ewe(l[C])})).sort((C,k)=>k.area-C.area);let h=d.filter(({width:C,height:k})=>C>=e.clientWidth&&k>=e.clientHeight);h=h.filter(({position:C})=>r.some(k=>k===C));const _=h.length>0?h[0].position:d[0].position,b=t.split(" ")[1];return e.className=e.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${Lm().isBs5?tw[_]:_}`),_+(b?`-${b}`:"")}const iw=(t,n=0)=>t?parseFloat(t):n;function oj(t){const e=t.ownerDocument.defaultView?.getComputedStyle(t),i=iw(e?.marginTop)+iw(e?.marginBottom),r=iw(e?.marginLeft)+iw(e?.marginRight);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+i}}function lj(t,n,e){return PA(n,e?XH(t):nw(t,n),e)}function FA(t,n,e){const i=e.split(" ")[0],r=oj(t),a={width:r.width,height:r.height},s=-1!==["right","left"].indexOf(i),o=s?"top":"left",l=s?"left":"top",d=s?"height":"width",h=s?"width":"height";return a[o]=(n[o]??0)+n[d]/2-r[d]/2,a[l]=i===l?(n[l]??0)-r[h]:n[function nwe(t){const n={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,e=>n[e])}(l)]??0,a}function cj(t,n){return!!t.modifiers[n]?.enabled}const rwe={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function rw(t,n){return!!Lm().isBs5&&rwe[n].includes(t)}function dj(t,n,e){!t||!n||Object.keys(n).forEach(i=>{let r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&function XCe(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(Number(t))}(n[i])&&(r="px"),e?e.setStyle(t,i,`${String(n[i])}${r}`):t.style[i]=String(n[i])+r})}function owe(t){let n=t.offsets.target;const e=t.instance.target.querySelector(".arrow");if(!e)return t;const i=-1!==["left","right"].indexOf(t.placement.split(" ")[0]),r=i?"height":"width",a=i?"Top":"Left",s=a.toLowerCase(),o=i?"left":"top",l=i?"bottom":"right",d=oj(e)[r],h=t.placement.split(" ")[1];(t.offsets.host[l]??0)-d<(n[s]??0)&&(n[s]-=(n[s]??0)-((t.offsets.host[l]??0)-d)),Number(t.offsets.host[s])+Number(d)>(n[l]??0)&&(n[s]+=Number(t.offsets.host[s])+Number(d)-Number(n[l])),n=zv(n);const _=hf(t.instance.target),b=parseFloat(_[`margin${a}`])||0,C=parseFloat(_[`border${a}Width`])||0;let k;if(h){const Q=parseFloat(_.borderRadius)||0,de=Number(b+C+Q);k=s===h?Number(t.offsets.host[s])+de:Number(t.offsets.host[s])+Number(t.offsets.host[r]-de)}else k=Number(t.offsets.host[s])+Number(t.offsets.host[r]/2-d/2);let U=k-(n[s]??0)-b-C;return U=Math.max(Math.min(n[r]-(d+5),U),0),t.offsets.arrow={[s]:Math.round(U),[o]:""},t.instance.arrow=e,t}function lwe(t){if(t.offsets.target=zv(t.offsets.target),!cj(t.options,"flip"))return t.offsets.target={...t.offsets.target,...FA(t.instance.target,t.offsets.host,t.placement)},t;const n=LA(t.instance.target,t.instance.host,0,"viewport",!1);let e=t.placement.split(" ")[0],i=t.placement.split(" ")[1]||"";const o=sj("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),l=[e,o];return l.forEach((d,h)=>
1{if(e!==d||l.length===h+1)return;e=t.placement.split(" ")[0];const _="left"===e&&Math.floor(t.offsets.target.right??0)>Math.floor(t.offsets.host.left??0)||"right"===e&&Math.floor(t.offsets.target.left??0)<Math.floor(t.offsets.host.right??0)||"top"===e&&Math.floor(t.offsets.target.bottom??0)>Math.floor(t.offsets.host.top??0)||"bottom"===e&&Math.floor(t.offsets.target.top??0)<Math.floor(t.offsets.host.bottom??0),b=Math.floor(t.offsets.target.left??0)<Math.floor(n.left??0),C=Math.floor(t.offsets.target.right??0)>Math.floor(n.right??0),k=Math.floor(t.offsets.target.top??0)<Math.floor(n.top??0),U=Math.floor(t.offsets.target.bottom??0)>Math.floor(n.bottom??0),Q="left"===e&&b||"right"===e&&C||"top"===e&&k||"bottom"===e&&U,de=-1!==["top","bottom"].indexOf(e),he=de&&"left"===i&&b||de&&"right"===i&&C||!de&&"left"===i&&k||!de&&"right"===i&&U;(_||Q||he)&&((_||Q)&&(e=l[h+1]),he&&(i=function iwe(t){return"right"===t?"left":"left"===t?"right":t}(i)),t.placement=e+(i?` ${i}`:""),t.offsets.target={...t.offsets.target,...FA(t.instance.target,t.offsets.host,t.placement)})}),t}function dwe(t){if(!cj(t.options,"preventOverflow"))return t;const n="transform",e=t.instance.target.style,{top:i,left:r,[n]:a}=e;e.top="",e.left="",e[n]="";const s=LA(t.instance.target,t.instance.host,0,t.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);e.top=i,e.left=r,e[n]=a;const l={primary(d){let h=t.offsets.target[d];return(t.offsets.target[d]??0)<(s[d]??0)&&(h=Math.max(t.offsets.target[d]??0,s[d]??0)),{[d]:h}},secondary(d){const h="right"===d,_=h?"left":"top";let C=t.offsets.target[_];return(t.offsets.target[d]??0)>(s[d]??0)&&(C=Math.min(t.offsets.target[_]??0,(s[d]??0)-t.offsets.target[h?"width":"height"])),{[_]:C}}};return["left","right","top","bottom"].forEach(d=>{const h=-1!==["left","top","start"].indexOf(d)?l.primary:l.secondary;t.offsets.target={...t.offsets.target,...h(d)}}),t}function uwe(t){const n=t.placement,e=n.split(" ")[0],i=n.split(" ")[1];if(i){const{host:r,target:a}=t.offsets,s=-1!==["bottom","top"].indexOf(e),o=s?"left":"top",l=s?"width":"height",d={start:{[o]:r[o]},end:{[o]:(r[o]??0)+r[l]-a[l]}};t.offsets.target={...a,[o]:o===i?d.start[o]:d.end[o]}}return t}const fwe=new class hwe{position(n,e){return this.offset(n,e)}offset(n,e){return lj(e,n)}positionElements(n,e,i,r,a){const s=[lwe,uwe,dwe,owe],l=function cwe(t,n,e,i){if(!t||!n)return;const r=lj(t,n);!e.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!e.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(e="auto");const a=!!e.match(/auto/g);let s=e.match(/auto\s(left|right|top|bottom|start|end)/)?e.split(" ")[1]||"auto":e;const o=s.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return o&&(s=o[1]+(o[2]?` ${o[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(s)&&(s="auto"),s=sj(s,r,t,n,i?i.allowedPositions:void 0),{options:i||{modifiers:{}},instance:{target:t,host:n,arrow:void 0},offsets:{target:FA(t,r,s),host:r,arrow:void 0},positionFixed:!1,placement:s,placementAuto:a}}(e,n,QH[i],a);if(l)return s.reduce((d,h)=>h(d),l)}};function pwe(t,n,e,i,r,a){const s=fwe.positionElements(t,n,e,i,r);if(!s)return;const o=function twe(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left??0),top:Math.round(t.offsets.target.top??0),bottom:Math.round(t.offsets.target.bottom??0),right:Math.floor(t.offsets.target.right??0)}}(s);dj(n,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${o.left}px, ${o.top}px, 0px)`},a),s.instance.arrow&&dj(s.instance.arrow,s.offsets.arrow,a),function swe(t,n){const e=t.instance.target;let i=e.className;const r=Lm().isBs5?tw[t.placement]:t.placement;t.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${r}`),i=i.replace(/ms-2|me-2|mb-2|mt-2/g,""),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${r}`),i=i.replace(/\sauto/g,` ${r}`),-1!==i.indexOf("popover")&&(i=i+" "+function awe(t){return Lm().isBs5?rw(t,"end")?"ms-2":rw(t,"start")?"me-2":rw(t,"top")?"mb-2":rw(t,"bottom")?"mt-2":"":""}(r)),-1!==i.indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom|end|start/g,`${r.split(" ")[0]}`),n?n.setAttribute(e,"class",i):e.className=i}(s,a)}let Ll=(()=>{class t{constructor(e,i,r){this.update$$=new nt,this.positionElements=new Map,this.isDisabled=!1,k0(r)&&e.runOutsideAngular(()=>{this.triggerEvent$=dm(Jr(window,"scroll",{passive:!0}),Jr(window,"resize",{passive:!0}),At(0,T8),this.update$$),this.triggerEvent$.subscribe(()=>
1{this.isDisabled||this.positionElements.forEach(a=>{pwe(aw(a.target),aw(a.element),a.attachment,a.appendToBody,this.options,i.createRenderer(null,null))})})})}position(e){this.addPositionElement(e)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(e){this.positionElements.set(aw(e.element),e)}calcPosition(){this.update$$.next(null)}deletePositionElement(e){this.positionElements.delete(aw(e))}setOptions(e){this.options=e}static{this.\u0275fac=function(i){return new(i||t)(Fe(_t),Fe(ih),Fe(Ku))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function aw(t){return"string"==typeof t?document.querySelector(t):t instanceof Bt?t.nativeElement:t??null}const _we=new class gwe extends tC{}(class mwe extends eC{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!=i&&i>0||null==i&&this.delay>0?super.requestAsyncId(n,e,i):(n.flush(this),0)}});class uj extends an{constructor(n,e,i){super(n),e.pipe(IM(_we)).pipe(M4((s,o)=>o?i(s,o):s,n)).subscribe(s=>this.next(s))}}class sw extends Jt{constructor(n,e,i){super(),this._dispatcher=n,this._reducer=e,this.source=i}select(n){return(this.source?.pipe(Ot(n))||(new Jt).pipe(Ot(n))).pipe(om())}lift(n){const e=new sw(this._dispatcher,this._reducer,this);return e.operator=n,e}dispatch(n){this._dispatcher.next(n)}next(n){this._dispatcher.next(n)}error(n){this._dispatcher.error(n)}complete(){}}function vwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0\xa0\xa0"),p())}function ywe(t,n){if(1&t){const e=qe();m(0,"td")(1,"a",1),be("click",function(){Ce(e);const r=B();return we(r.changeMinutes(r.minuteStep))}),fe(2,"span",2),p()()}if(2&t){const e=B();u(),Ct("disabled",!e.canIncrementMinutes||!e.isEditable)}}function bwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0"),p())}function Cwe(t,n){if(1&t){const e=qe();m(0,"td")(1,"a",1),be("click",function(){Ce(e);const r=B();return we(r.changeSeconds(r.secondsStep))}),fe(2,"span",2),p()()}if(2&t){const e=B();u(),Ct("disabled",!e.canIncrementSeconds||!e.isEditable)}}function wwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0\xa0\xa0"),p())}function Dwe(t,n){1&t&&fe(0,"td")}function Swe(t,n){1&t&&(m(0,"td"),v(1,"\xa0:\xa0"),p())}function Twe(t,n){if(1&t){const e=qe();m(0,"td",4)(1,"input",5),be("wheel",function(r){Ce(e);const a=B();return a.prevDef(r),we(a.changeMinutes(a.minuteStep*a.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){Ce(e);const r=B();return we(r.changeMinutes(r.minuteStep,"key"))})("keydown.ArrowDown",function(){Ce(e);const r=B();return we(r.changeMinutes(-r.minuteStep,"key"))})("change",function(r){return Ce(e),we(B().updateMinutes(r.target))}),p()()}if(2&t){const e=B();Ct("has-error",e.invalidMinutes),u(),Ct("is-invalid",e.invalidMinutes),T("placeholder",e.minutesPlaceholder)("readonly",e.readonlyInput)("disabled",e.disabled)("value",e.minutes),Kt("aria-label",e.labelMinutes)}}function xwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0:\xa0"),p())}function Mwe(t,n){if(1&t){const e=qe();m(0,"td",4)(1,"input",5),be("wheel",function(r){Ce(e);const a=B();return a.prevDef(r),we(a.changeSeconds(a.secondsStep*a.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){Ce(e);const r=B();return we(r.changeSeconds(r.secondsStep,"key"))})("keydown.ArrowDown",function(){Ce(e);const r=B();return we(r.changeSeconds(-r.secondsStep,"key"))})("change",function(r){return Ce(e),we(B().updateSeconds(r.target))}),p()()}if(2&t){const e=B();Ct("has-error",e.invalidSeconds),u(),Ct("is-invalid",e.invalidSeconds),T("placeholder",e.secondsPlaceholder)("readonly",e.readonlyInput)("disabled",e.disabled)("value",e.seconds),Kt("aria-label",e.labelSeconds)}}function Ewe(t,n){1&t&&(m(0,"td"),v(1,"\xa0\xa0\xa0"),p())}function Iwe(t,n){if(1&t){const e=qe();m(0,"td")(1,"button",8),be("click",function(){return Ce(e),we(B().toggleMeridian())}),v(2),p()()}if(2&t){const e=B();u(),Ct("disabled",!e.isEditable||!e.canToggleMeridian),T("disabled",!e.isEditable||!e.canToggleMeridian),u(),_e("",e.meridian," ")}}function Awe(t,n){1&t&&(m(0,"td"),v(1,"\xa0\xa0\xa0"),p())}function kwe(t,n){if(1&t){const e=qe();m(0,"td")(1,"a",1),be("click",function(){Ce(e);const r=B();return we(r.changeMinutes(-r.minuteStep))}),fe(2,"span",7),p()()}if(2&t){const e=B();u(),Ct("disabled",!e.canDecrementMinutes||!e.isEditable)}}function Nwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0"),p())}function Rwe(t,n){if(1&t){const e=qe();m(0,"td")(1,"a",1),be("click",function(){Ce(e);const r=B();
1return we(r.changeSeconds(-r.secondsStep))}),fe(2,"span",7),p()()}if(2&t){const e=B();u(),Ct("disabled",!e.canDecrementSeconds||!e.isEditable)}}function Pwe(t,n){1&t&&(m(0,"td"),v(1,"\xa0\xa0\xa0"),p())}function Owe(t,n){1&t&&fe(0,"td")}let yu=(()=>{class t{static{this.WRITE_VALUE="[timepicker] write value from ng model"}static{this.CHANGE_HOURS="[timepicker] change hours"}static{this.CHANGE_MINUTES="[timepicker] change minutes"}static{this.CHANGE_SECONDS="[timepicker] change seconds"}static{this.SET_TIME_UNIT="[timepicker] set time unit"}static{this.UPDATE_CONTROLS="[timepicker] update controls"}writeValue(e){return{type:t.WRITE_VALUE,payload:e}}changeHours(e){return{type:t.CHANGE_HOURS,payload:e}}changeMinutes(e){return{type:t.CHANGE_MINUTES,payload:e}}changeSeconds(e){return{type:t.CHANGE_SECONDS,payload:e}}setTime(e){return{type:t.SET_TIME_UNIT,payload:e}}updateControls(e){return{type:t.UPDATE_CONTROLS,payload:e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function BA(t){return!(!t||t instanceof Date&&isNaN(t.getHours()))&&("string"!=typeof t||BA(new Date(t)))}function VA(t,n){return!(t.min&&n<t.min||t.max&&n>t.max)}function ff(t){return typeof t>"u"?NaN:"number"==typeof t?t:parseInt(t,10)}function fj(t,n=!1){const e=ff(t);return isNaN(e)||e<0||e>(n?12:24)?NaN:e}function pj(t){const n=ff(t);return isNaN(n)||n<0||n>60?NaN:n}function mj(t){const n=ff(t);return isNaN(n)||n<0||n>60?NaN:n}function gj(t){return"string"==typeof t?new Date(t):t}function al(t,n){if(!t)return al(ow(new Date,0,0,0),n);if(!n)return t;let e=t.getHours(),i=t.getMinutes(),r=t.getSeconds();return n.hour&&(e+=ff(n.hour)),n.minute&&(i+=ff(n.minute)),n.seconds&&(r+=ff(n.seconds)),ow(t,e,i,r)}function _j(t,n){let e=fj(n.hour);const i=pj(n.minute),r=mj(n.seconds)||0;return n.isPM&&12!==e&&(e+=12),t?isNaN(e)||isNaN(i)?t:ow(t,e,i,r):isNaN(e)||isNaN(i)?t:ow(new Date,e,i,r)}function ow(t,n,e,i){const r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,e,i,t.getMilliseconds());return r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(t.getDate()),r}function UA(t){const n=t.toString();return n.length>1?n:`0${n}`}function vj(t,n){return!isNaN(fj(t,n))}function yj(t){return!isNaN(pj(t))}function bj(t){return!isNaN(mj(t))}function Cj(t,n="0",e="0",i){return vj(t,i)&&yj(n)&&bj(e)}function lw(t,n){return!(t.readonlyInput||t.disabled||n&&("wheel"===n.source&&!t.mousewheel||"key"===n.source&&!t.arrowkeys))}function wj(t){const{hourStep:n,minuteStep:e,secondsStep:i,readonlyInput:r,disabled:a,mousewheel:s,arrowkeys:o,showSpinners:l,showMeridian:d,showSeconds:h,meridians:_,min:b,max:C}=t;return{hourStep:n,minuteStep:e,secondsStep:i,readonlyInput:r,disabled:a,mousewheel:s,arrowkeys:o,showSpinners:l,showMeridian:d,showSeconds:h,meridians:_,min:b,max:C}}let Dj=(()=>{class t{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Sj={value:void 0,config:new Dj,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function Tj(t=Sj,n){switch(n.type){case yu.WRITE_VALUE:return Object.assign({},t,{value:n.payload});case yu.CHANGE_HOURS:{if(!lw(t.config,n.payload)||!function jwe(t,n){return!(!t.step||t.step>0&&!n.canIncrementHours||t.step<0&&!n.canDecrementHours)}(n.payload,t.controls))return t;const e=al(t.value,{hour:n.payload.step});return!t.config.max&&!t.config.min||VA(t.config,e)?Object.assign({},t,{value:e}):t}case yu.CHANGE_MINUTES:{if(!lw(t.config,n.payload)||!function zwe(t,n){return!(!t.step||t.step>0&&!n.canIncrementMinutes||t.step<0&&!n.canDecrementMinutes)}(n.payload,t.controls))return t;const e=al(t.value,{minute:n.payload.step});return!t.config.max&&!t.config.min||VA(t.config,e)?Object.assign({},t,{value:e}):t}case yu.CHANGE_SECONDS:{if(!lw(t.config,n.payload)||!function Ywe(t,n){return!(!t.step||t.step>0&&!n.canIncrementSeconds||t.step<0&&!n.canDecrementSeconds)}(n.payload,t.controls))return t;const e=al(t.value,{seconds:n.payload.step});return!t.config.max&&!t.config.min||VA(t.config,e)?Object.assign({},t,{value:e}):t}case yu.SET_TIME_UNIT:{if(!lw(t.config))return t;const e=_j(t.value,n.payload);return Object.assign({},t,{value:e})}case yu.UPDATE_CONTROLS:{const e=function $we(t,n){const{min:r,max:a,hourStep:s,minuteStep:o,secondsStep:l,showSeconds:d}=n,h={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!t)return h;if(a){const _=al(t,{hour:s});if(h.canIncrementHours=a>_&&t.getHours()+s<24,!h.canIncrementHours){const b=al(t,{minute:o});h.canIncrementMinutes=d?a>b:a>=b}if(!h.canIncrementMinutes){const b=al(t,{seconds:l});h.canIncrementSeconds=a>=b}t.getHours()<12&&(h.canToggleMeridian=al(t,{hour:12})<a)}if(r){const _=al(t,{hour:-s}
1);if(h.canDecrementHours=r<_,!h.canDecrementHours){const b=al(t,{minute:-o});h.canDecrementMinutes=d?r<b:r<=b}if(!h.canDecrementMinutes){const b=al(t,{seconds:-l});h.canDecrementSeconds=r<=b}t.getHours()>=12&&(h.canToggleMeridian=al(t,{hour:-12})>r)}return h}(t.value,n.payload),i={value:t.value,config:n.payload,controls:e};return t.config.showMeridian!==i.config.showMeridian&&t.value&&(i.value=new Date(t.value)),Object.assign({},t,i)}default:return t}}let xj=(()=>{class t extends sw{constructor(){const e=new an({type:"[mini-ngrx] dispatcher init"});super(e,Tj,new uj(Sj,e,Tj))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const Wwe={provide:ns,useExisting:qt(()=>Yv),multi:!0};let Yv=(()=>{class t{constructor(e,i,r,a){this._cd=i,this._store=r,this._timepickerActions=a,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new Xe,this.meridianChange=new Xe,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=e,Object.assign(this,this.config),this.timepickerSub=r.select(s=>s.value).subscribe(s=>{this._renderTime(s),this.onChange(s),this._store.dispatch(this._timepickerActions.updateControls(wj(this)))}),r.select(s=>s.controls).subscribe(s=>{const o=Cj(this.hours,this.minutes,this.seconds,this.isPM()),l=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||o;this.isValid.emit(l),Object.assign(this,s),i.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(e){e.preventDefault()}wheelSign(e){return-1*Math.sign(e.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(wj(this)))}changeHours(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:e,source:i}))}changeMinutes(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:e,source:i}))}changeSeconds(e,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:e,source:i}))}updateHours(e){this.resetValidation(),this.hours=e.value;const i=vj(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(e){this.resetValidation(),this.minutes=e.value;const i=yj(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(e){this.resetValidation(),this.seconds=e.value;const i=bj(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Uwe(t,n,e){const i=_j(new Date,t);return!(!i||n&&i>n||e&&i<e)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function Hwe(t,n,e){return 0===t.length||0===n.length||0===e.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const r=Cj(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||r))return this.isValid.emit(!1),void this.onChange(null);this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){this.showMeridian&&this.isEditable&&this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(e){BA(e)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(gj(e)))):null==e&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(e){if(!e||!BA(e))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const i=gj(e);if(!i)return;let a=i.getHours();this.showMeridian&&(this.meridian=this.meridians[a>=12?1:0],this.meridianChange.emit(this.meridian),a%=12,0===a&&(a=12)),this.hours=UA(a),this.minutes=UA(i.getMinutes()),this.seconds=UA(i.getUTCSeconds())}static{this.\u0275fac=function(i){return new(i||t)(G(Dj),G(gr),G(xj),G(yu))}}static{this.\u0275cmp=vt({type:t,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meri
1dians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[fn([Wwe,xj,yu]),ci],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"wheel","keydown.ArrowUp","keydown.ArrowDown","change","placeholder","readonly","disabled","value"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"click","disabled"]],template:function(i,r){1&i&&(m(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),be("click",function(){return r.changeHours(r.hourStep)}),fe(5,"span",2),p()(),oe(6,vwe,2,0,"td",3)(7,ywe,3,2,"td",3)(8,bwe,2,0,"td",3)(9,Cwe,3,2,"td",3)(10,wwe,2,0,"td",3)(11,Dwe,1,0,"td",3),p(),m(12,"tr")(13,"td",4)(14,"input",5),be("wheel",function(s){return r.prevDef(s),r.changeHours(r.hourStep*r.wheelSign(s),"wheel")})("keydown.ArrowUp",function(){return r.changeHours(r.hourStep,"key")})("keydown.ArrowDown",function(){return r.changeHours(-r.hourStep,"key")})("change",function(s){return r.updateHours(s.target)}),p()(),oe(15,Swe,2,0,"td",3)(16,Twe,2,9,"td",6)(17,xwe,2,0,"td",3)(18,Mwe,2,9,"td",6)(19,Ewe,2,0,"td",3)(20,Iwe,3,4,"td",3),p(),m(21,"tr",0)(22,"td")(23,"a",1),be("click",function(){return r.changeHours(-r.hourStep)}),fe(24,"span",7),p()(),oe(25,Awe,2,0,"td",3)(26,kwe,3,2,"td",3)(27,Nwe,2,0,"td",3)(28,Rwe,3,2,"td",3)(29,Pwe,2,0,"td",3)(30,Owe,1,0,"td",3),p()()()),2&i&&(u(2),T("hidden",!r.showSpinners),u(2),Ct("disabled",!r.canIncrementHours||!r.isEditable),u(2),T("ngIf",r.showMinutes),u(),T("ngIf",r.showMinutes),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showMeridian),u(),T("ngIf",r.showMeridian),u(2),Ct("has-error",r.invalidHours),u(),Ct("is-invalid",r.invalidHours),T("placeholder",r.hoursPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.hours),Kt("aria-label",r.labelHours),u(),T("ngIf",r.showMinutes),u(),T("ngIf",r.showMinutes),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showMeridian),u(),T("ngIf",r.showMeridian),u(),T("hidden",!r.showSpinners),u(2),Ct("disabled",!r.canDecrementHours||!r.isEditable),u(2),T("ngIf",r.showMinutes),u(),T("ngIf",r.showMinutes),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showSeconds),u(),T("ngIf",r.showMeridian),u(),T("ngIf",r.showMeridian))},dependencies:[Zt],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{-webkit-transform:rotate(45deg);transform:rotate(45deg);top:2px}.bs-chevron-down{-webkit-transform:rotate(-135deg);transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}}return t})(),$v=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({})}}return t})();class Wv{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}class Gwe{constructor(n,e,i,r,a,s,o,l,d){this._viewContainerRef=n,this._renderer=e,this._elementRef=i,this._injector=r,this._componentFactoryResolver=a,this._ngZone=s,this._applicationRef=o,this._posService=l,this._document=d,this.onBeforeShow=new Xe,this.onShown=new Xe,this.onBeforeHide=new Xe,this.onHidden=new Xe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(n){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(n),this}to(n){return this.container=n||this.container,this}position(n){return n?(this.attachment=n.attachment||this.attachment,this._elementRef=n.target||this._elementRef,this):this}provide(n){return this._providers.push(n),this}show(n={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(n.content,n.context,n.initialState);const e=Ln.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(e,this._contentRef.n
1odes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,n),this.container instanceof Bt&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const i=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!i)return;i.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(n.id?{id:n.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(n){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const e=this._componentRef.location.nativeElement;return e.parentNode?.removeChild(e),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(n?{id:n}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(n){this.triggers=n.triggers||this.triggers,this._listenOpts.outsideClick=n.outsideClick,this._listenOpts.outsideEsc=n.outsideEsc,n.target=n.target||this._elementRef?.nativeElement;const e=this._listenOpts.hide=()=>n.hide?n.hide():void this.hide(),i=this._listenOpts.show=a=>{n.show?n.show(a):this.show(a),a()};return this._renderer&&(this._unregisterListenersFn=function zCe(t,n){const e=kA(n.triggers),i=n.target;if(1===e.length&&e[0].isManual())return Function.prototype;const r=[],a=[],s=()=>{a.forEach(o=>r.push(o())),a.length=0};return e.forEach(o=>{const l=o.open===o.close,d=l?n.toggle:n.show;if(!l&&o.close&&n.hide){const h=o.close,_=n.hide;a.push(()=>t.listen(i,h,_))}d&&r.push(t.listen(i,o.open,()=>d(s)))}),()=>{r.forEach(o=>o())}}(this._renderer,{target:n.target,triggers:n.triggers,show:i,hide:e,toggle:a=>{this.isShown?e():i(a)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(n,e){return n&&e&&(this._inlineViewRef=n.createEmbeddedView(e)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let n=Function.prototype,e=Function.prototype;if(this._listenOpts.outsideClick){const i=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(n=function YCe(t,n){return n.outsideClick?t.listen("document","click",e=>{n.target&&n.target.contains(e.target)||n.targets&&n.targets.some(i=>i.contains(e.target))||n.hide&&n.hide()}):Function.prototype}(this._renderer,{targets:[i,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(e=function $Ce(t,n){return n.outsideEsc?t.listen("document","keyup.esc",e=>{n.target&&n.target.contains(e.target)||n.targets&&n.targets.some(i=>i.contains(e.target))||n.hide&&n.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})),this._globalListener=()=>{n(),e()}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(n,e,i){if(!n)return new Wv([]);if(n instanceof Pr){if(this._viewContainerRef){const s=this._viewContainerRef.createEmbeddedView(n,e);return s.markForCheck(),new Wv([s.rootNodes],s)}const a=n.createEmbeddedView({});return this._applicationRef.attachView(a),new Wv([a.rootNodes],a)}if("function"==typeof n){const a=this._componentFactoryResolver.resolve
1ComponentFactory(n),s=Ln.create({providers:this._providers,parent:this._injector}),o=a.create(s);return Object.assign(o.instance,i),this._applicationRef.attachView(o.hostView),new Wv([[o.location.nativeElement]],o.hostView,o)}const r=this._renderer?[this._renderer.createText(`${n}`)]:[];return new Wv([r])}}let Fm=(()=>{class t{constructor(e,i,r,a,s,o){this._componentFactoryResolver=e,this._ngZone=i,this._injector=r,this._posService=a,this._applicationRef=s,this._document=o}createLoader(e,i,r){return new Gwe(i,r,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(i){return new(i||t)(Fe(nh),Fe(_t),Fe(Ln),Fe(Ll),Fe(Ga),Fe(Tn))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const qwe=["*"];let HA=(()=>{class t{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Kwe=(()=>{class t{get _bsVersions(){return Lm()}constructor(e){Object.assign(this,e)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=tw[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static{this.\u0275fac=function(i){return new(i||t)(G(HA))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(i,r){2&i&&(Kt("id",r.id),Ys("show tooltip in tooltip-"+r.placement+" bs-tooltip-"+r.placement+" "+r.placement+" "+r.containerClass))},ngContentSelectors:qwe,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(i,r){1&i&&(Bo(),fe(0,"div",0),m(1,"div",1),Ss(2),p())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%]   .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return t})(),Zwe=0,Qwe=(()=>{class t{get isOpen(){return this._tooltip.isShown}set isOpen(e){e?this.show():this.hide()}set htmlContent(e){this.tooltip=e}set _placement(e){this.placement=e}set _isOpen(e){this.isOpen=e}get _isOpen(){return this.isOpen}set _enable(e){this.isDisabled=!e}get _enable(){return this.isDisabled}set _appendToBody(e){this.container=e?"body":this.container}get _appendToBody(){return"body"===this.container}set _popupClass(e){}set _tooltipContext(e){}set _tooltipPopupDelay(e){this.delay=e}get _tooltipTrigger(){return this.triggers}set _tooltipTrigger(e){this.triggers=(e||"").toString()}constructor(e,i,r,a,s,o){this._elementRef=a,this._renderer=s,this._positionService=o,this.tooltipId=Zwe++,this.adaptivePosition=!0,this.tooltipChange=new Xe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new Xe,this._tooltip=i.createLoader(this._elementRef,e,this._renderer).provide({provide:HA,useValue:r}),Object.assign(this,r),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(e=>{e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(Kwe).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},i=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=cC(this.delay).subscribe(()=>{e(),i()}
1),this.triggers&&kA(this.triggers).forEach(r=>{r.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,r.close,()=>{this._delaySubscription?.unsubscribe(),i()}))})):e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(G(Wa),G(Fm),G(HA),G(Bt),G(zn),G(Ll))}}static{this.\u0275dir=lt({type:t,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:[0,"tooltipHtml","htmlContent"],_placement:[0,"tooltipPlacement","_placement"],_isOpen:[0,"tooltipIsOpen","_isOpen"],_enable:[0,"tooltipEnable","_enable"],_appendToBody:[0,"tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:[0,"tooltipClass","_popupClass"],_tooltipContext:[0,"tooltipContext","_tooltipContext"],_tooltipPopupDelay:[0,"tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:[0,"tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"],features:[fn([Fm,Ll])]})}}return function r4(t,n,e,i){var s,r=arguments.length,a=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(n,e,a):s(n,e))||a);return r>3&&a&&Object.defineProperty(n,e,a),a}([KCe(),a4("design:type",Object)],t.prototype,"tooltip",void 0),t})(),Mj=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[yi]})}}return t})();function Xwe(t,n){if(1&t){const e=qe();m(0,"button",2),be("click",function(){const r=Ce(e).$implicit;return we(B().selectFromRanges(r))}),v(1),p()}if(2&t){const e=n.$implicit;Ct("selected",B().compareRanges(e)),u(),_e(" ",e.label," ")}}function Jwe(t,n){if(1&t){const e=qe();Gn(0),v(1," \u200b "),m(2,"button",2),be("click",function(){return Ce(e),we(B().view("month"))}),m(3,"span"),v(4),p()(),qn()}if(2&t){const e=B();u(2),T("disabled",e.isDisabled),u(2),P(e.calendar.monthTitle)}}const eDe=[[["bs-datepicker-navigation-view"]],"*"],tDe=["bs-datepicker-navigation-view","*"];function nDe(t,n){1&t&&fe(0,"bs-current-date",4)}function iDe(t,n){1&t&&fe(0,"bs-timepicker")}function rDe(t,n){if(1&t){const e=qe();m(0,"td",4),be("click",function(){const r=Ce(e).$implicit;return we(B(2).viewYear(r))})("mouseenter",function(){const r=Ce(e).$implicit;return we(B(2).hoverYear(r,!0))})("mouseleave",function(){const r=Ce(e).$implicit;return we(B(2).hoverYear(r,!1))}),m(1,"span"),v(2),p()()}if(2&t){const e=n.$implicit;Ct("disabled",e.isDisabled)("is-highlighted",e.isHovered),u(),Ct("selected",e.isSelected),u(),P(e.label)}}function aDe(t,n){if(1&t&&(m(0,"tr"),oe(1,rDe,3,7,"td",3),p()),2&t){const e=n.$implicit;u(),T("ngForOf",e)}}function sDe(t,n){if(1&t){const e=qe();m(0,"td",4),be("click",function(){const r=Ce(e).$implicit;return we(B(2).viewMonth(r))})("mouseenter",function(){const r=Ce(e).$implicit;return we(B(2).hoverMonth(r,!0))})("mouseleave",function(){const r=Ce(e).$implicit;return we(B(2).hoverMonth(r,!1))}),m(1,"span"),v(2),p()()}if(2&t){const e=n.$implicit;Ct("disabled",e.isDisabled)("is-highlighted",e.isHovered),u(),Ct("selected",e.isSelected),u(),P(e.label)}}function oDe(t,n){if(1&t&&(m(0,"tr"),oe(1,sDe,3,7,"td",3),p()),2&t){const e=n.$implicit;u(),T("ngForOf",e)}}const lDe=["bsDatepickerDayDecorator",""];function cDe(t,n){1&t&&fe(0,"th")}function dDe(t,n){if(1&t&&(m(0,"th",5),v(1),p()),2&t){const e=n.index,i=B();u(),_e("",i.calendar.weekdays[e]," ")}}function uDe(t,n){if(1&t){const e=qe();m(0,"span",11),be("click",function(){Ce(e);const r=B(2).$implicit;return we(B().selectWeek(r))}),v(1),p()}if(2&t){const e=B(2).index,i=B();u(),P(i.calendar.weekNumbers[e])}}function hDe(t,n){if(1&t){const e=qe();m(0,"span",12),be("click",function(){Ce(e);const r=B(2).$implicit;return we(B().selectWeek(r))})("mouseenter",function(){Ce(e);const r=B(2).$implicit;return we(B().weekHoverHandler(r,!0))})("mouseleave",function(){Ce(e);const r=B(2).$implicit;return we(B().weekHoverHandler(r,!1))}),v(1),p()}if(2&t){const e=B(2).index,i=B();u(),P(i.calendar.weekNumbers[e])}}function fDe(t,n){if(1&t&&(m(0,"td",8),oe(1,uDe,2,1,"span",9)(2,hDe,2,1,"span",10),p()),2&t){const e=B(2);
1Ct("active-week",e.isWeekHovered),u(),T("ngIf",e.isiOS),u(),T("ngIf",!e.isiOS)}}function pDe(t,n){if(1&t){const e=qe();m(0,"span",17),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).selectDay(r))})("mouseenter",function(){Ce(e);const r=B().$implicit;return we(B(2).hoverDay(r,!0))})("mouseleave",function(){Ce(e);const r=B().$implicit;return we(B(2).hoverDay(r,!1))}),v(1),p()}if(2&t){const e=B().$implicit;Ex("tooltip",e.tooltipText),T("day",e),u(),_e("",e.label," 3")}}function mDe(t,n){if(1&t){const e=qe();m(0,"span",18),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).selectDay(r))})("mouseenter",function(){Ce(e);const r=B().$implicit;return we(B(2).hoverDay(r,!0))})("mouseleave",function(){Ce(e);const r=B().$implicit;return we(B(2).hoverDay(r,!1))}),v(1),p()}if(2&t){const e=B().$implicit;T("day",e),u(),_e("",e.label," 2")}}function gDe(t,n){if(1&t){const e=qe();m(0,"span",19),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).selectDay(r))}),v(1),p()}if(2&t){const e=B().$implicit;T("day",e),u(),_e("",e.label," 1")}}function _De(t,n){if(1&t&&(m(0,"td",13),oe(1,pDe,2,3,"span",14)(2,mDe,2,2,"span",15)(3,gDe,2,2,"span",16),p()),2&t){const e=B(2);u(),T("ngIf",!e.isiOS&&e.isShowTooltip),u(),T("ngIf",!e.isiOS&&!e.isShowTooltip),u(),T("ngIf",e.isiOS)}}function vDe(t,n){if(1&t&&(m(0,"tr"),oe(1,fDe,3,4,"td",6)(2,_De,4,3,"td",7),p()),2&t){const e=n.$implicit,i=B();u(),T("ngIf",i.options&&i.options.showWeekNumbers),u(),T("ngForOf",e.days)}}const Ej=["startTP"];function yDe(t,n){if(1&t){const e=qe();m(0,"bs-days-calendar-view",13),M(1,"async"),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).dayHoverHandler(r))})("onHoverWeek",function(r){return Ce(e),we(B(3).weekHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).daySelectHandler(r))}),p()}if(2&t){const e=n.$implicit,i=B(3);Ct("bs-datepicker-multiple",i.multipleCalendars),T("calendar",e)("isDisabled",i.isDatePickerDisabled)("options",E(1,5,i.options$))}}function bDe(t,n){1&t&&fe(0,"timepicker",15,1),2&t&&T("disabled",B(4).isDatePickerDisabled)}function CDe(t,n){if(1&t&&(m(0,"div",14),fe(1,"timepicker",15,0),oe(3,bDe,2,1,"timepicker",16),p()),2&t){const e=B(3);u(),T("disabled",e.isDatePickerDisabled),u(2),T("ngIf",e.isRangePicker)}}function wDe(t,n){if(1&t&&(Gn(0),m(1,"div",10),oe(2,yDe,2,7,"bs-days-calendar-view",11),M(3,"async"),p(),oe(4,CDe,4,2,"div",12),qn()),2&t){const e=B(2);u(2),T("ngForOf",E(3,2,e.daysCalendar$)),u(2),T("ngIf",e.withTimepicker)}}function DDe(t,n){if(1&t){const e=qe();m(0,"bs-month-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).monthHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).monthSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function SDe(t,n){if(1&t&&(m(0,"div",10),oe(1,DDe,1,3,"bs-month-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.monthsCalendar))}}function TDe(t,n){if(1&t){const e=qe();m(0,"bs-years-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).yearHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).yearSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function xDe(t,n){if(1&t&&(m(0,"div",10),oe(1,TDe,1,3,"bs-years-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.yearsCalendar))}}function MDe(t,n){1&t&&(m(0,"div",19)(1,"button",20),v(2,"Apply"),p(),m(3,"button",21),v(4,"Cancel"),p()())}function EDe(t,n){if(1&t){const e=qe();m(0,"div",24)(1,"button",25),be("click",function(){return Ce(e),we(B(3).setToday())}),v(2),p()()}if(2&t){const e=B(3);Ct("today-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),u(2),P(e.todayBtnLbl)}}function IDe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"button",25),be("click",function(){return Ce(e),we(B(3).clearDate())}),v(2),p()()}if(2&t){const e=B(3);Ct("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),u(2),P(e.clearBtnLbl)}}function ADe(t,n){if(1&t&&(m(0,"div",19),oe(1,EDe,3,7,"div",22)(2,IDe,3,7,"div",23),p()),2&t){const e=B(2);u(),T("ngIf",e.showTodayBtn),u(),T("ngIf",e.showClearBtn)}}function kDe(t,n){if(1&t){const e=qe();m(0,"div",27)(1,"bs-custom-date-view",28),be("onSelect",function(r){return Ce(e),we(B(2).setRangeOnCalendar(r))}),p()()}if(2&t){const e=B(2);u(),T("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function NDe(t,n){if(1&t){const e=qe();m(0,"div",3)(1,"div",4),be("@datepickerAnimation.done",function(){return Ce(e),we(B().positionServiceEnable())}),m(2,"div",5),M(3,"async"),oe(4,wDe,5,4,"ng-container",6)(5,SDe,3,3,"div",7)(6,xDe,3,3,"div",7),p(),oe(7,MDe,5,0,"div",8)(8,ADe,3,2,"div",8),p(),oe(9,kDe,2,3,"div",9),p()}if(2&t){const e=B();T("ngClass",e.containerClass),u(),T("@datepickerAnimation",e.animationState),u(),T("ngSwitch",E(3,9,e.viewMode)),u(2),T("ngSwitchCase","day"),u(),T("ngSwitchCase","month"),u(),T("ngSwitchCase","year"),u(),T("ngIf",!1),u(),T("ngIf",e.showTodayBtn||e.showClearBtn),u(),T("ngIf",e.customRanges&&e.customRanges.length>0)}}function RDe(t,n){if(1&t){const e=qe();m(0,"bs-days-calendar-view",13),M(1,"async"),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).dayHoverHandler(r))})("onHoverWeek",function(r){return Ce(e),we(B(3).weekHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).daySelectHandler(r))}),p()}if(2&t){const e=n.$implicit,i=B(3);Ct("bs-datepicker-multiple",i.multipleCalendars),T("calendar",e)("isDisabled",i.isDatePickerDisabled)("options",E(1,5,i.options$))}}function PDe(t,n){1&t&&fe(0,"timepicker",15,1),2&t&&T("disabled",B(4).isDatePickerDisabled)}function ODe(t,n){if(1&t&&(m(0,"div",14),fe(1,"timepicker",15,0),oe(3,PDe,2,1,"timepicker",16),p()),2&t){const e=B(3);u(),T("disabled",e.isDatePickerDisabled),u(2),T("ngIf",e.isRangePicker)}}function LDe(t,n){if(1&t&&(Gn(0),m(1,"div",10),oe(2,RDe,2,7,"bs-days-calendar-view",11),M(3,"async"),p(),oe(4,ODe,4,2,"div",12),qn()),2&t){const e=B(2);u(2),T("ngForOf",E(3,2,e.daysCalendar$)),u(2),T("ngIf",e.withTimepicker)}}function FDe(t,n){if(1&t){const e=qe();m(0,"bs-month-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).monthHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).monthSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function BDe(t,n){if(1&t&&(m(0,"div",10),oe(1,FDe,1,3,"bs-month-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.monthsCalendar))}}function VDe(t,n){if(1&t){const e=qe();m(0,"bs-years-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).yearHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).yearSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function UDe(t,n){if(1&t&&(m(0,"div",10),oe(1,VDe,1,3,"bs-years-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.yearsCalendar))}}function HDe(t,n){1&t&&(m(0,"div",19)(1,"button",20),v(2,"Apply"),p(),m(3,"button",21),v(4,"Cancel"),p()())}function jDe(t,n){if(1&t){const e=qe();m(0,"div",24)(1,"button",25),be("click",function(){return Ce(e),we(B(3).setToday())}),v(2),p()()}if(2&t){const e=B(3);Ct("today-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),u(2),P(e.todayBtnLbl)}}function zDe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"button",25),be("click",function(){return Ce(e),we(B(3).clearDate())}),v(2),p()()}if(2&t){const e=B(3);Ct("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),u(2),P(e.clearBtnLbl)}}function YDe(t,n){if(1&t&&(m(0,"div",19),oe(1,jDe,3,7,"div",22)(2,zDe,3,7,"div",23),p()),2&t){const e=B(2);u(),T("ngIf",e.showTodayBtn),u(),T("ngIf",e.showClearBtn)}}function $De(t,n){if(1&t){const e=qe();m(0,"div",27)(1,"bs-custom-date-view",28),be("onSelect",function(r){return Ce(e),we(B(2).setRangeOnCalendar(r))}),p()()}if(2&t){const e=B(2);u(),T("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function WDe(t,n){if(1&t){const e=qe();m(0,"div",3)(1,"div",4),be("@datepickerAnimation.done",function(){return Ce(e),we(B().positionServiceEnable())}),m(2,"div",5),M(3,"async"),oe(4,LDe,5,4,"ng-container",6)(5,BDe,3,3,"div",7)(6,UDe,3,3,"div",7),p(),oe(7,HDe,5,0,"div",8)(8,YDe,3,2,"div",8),p(),oe(9,$De,2,3,"div",9),p()}if(2&t){const e=B();T("ngClass",e.containerClass),u(),T("@datepickerAnimation",e.animationState),u(),T("ngSwitch",E(3,9,e.viewMode)),u(2),T("ngSwitchCase","day"),u(),T("ngSwitchCase","month"),u(),T("ngSwitchCase","year"),u(),T("ngIf",!1),u(),T("ngIf",e.showTodayBtn||e.showClearBtn),u(),T("ngIf",e.customRanges&&e.customRanges.length>0)}}const GDe=["endTP"];function qDe(t,n){if(1&t){const e=qe();m(0,"bs-days-calendar-view",13),M(1,"async"),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).dayHoverHandler(r))})("onHoverWeek",function(r){return Ce(e),we(B(3).weekHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).daySelectHandler(r))}),p()}if(2&t){const e=n.$implicit,i=B(3);Ct("bs-datepicker-multiple",i.multipleCalendars),T("calendar",e)("isDisabled",i.isDatePickerDisabled)("options",E(1,5,i.options$))}}function KDe(t,n){1&t&&fe(0,"timepicker",15,1),2&t&&T("disabled",B(4).isDatePickerDisabled)}function ZDe(t,n){if(1&t&&(m(0,"div",14),fe(1,"timepicker",15,0),oe(3,KDe,2,1,"timepicker",16),p()),2&t){const e=B(3);u(),T("disabled",e.isDatePickerDisabled),u(2),T("ngIf",e.isRangePicker)}}function QDe(t,n){if(1&t&&(Gn(0),m(1,"div",10),oe(2,qDe,2,7,"bs-days-calendar-view",11),M(3,"async"),p(),oe(4,ZDe,4,2,"div",12),qn()),2&t){const e=B(2);u(2),T("ngForOf",E(3,2,e.daysCalendar$)),u(2),T("ngIf",e.withTimepicker)}}function XDe(t,n){if(1&t){const e=qe();m(0,"bs-month-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).monthHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).monthSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function JDe(t,n){if(1&t&&(m(0,"div",10),oe(1,XDe,1,3,"bs-month-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.monthsCalendar))}}function eSe(t,n){if(1&t){const e=qe();m(0,"bs-years-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).yearHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).yearSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function tSe(t,n){if(1&t&&(m(0,"div",10),oe(1,eSe,1,3,"bs-years-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.yearsCalendar))}}function nSe(t,n){1&t&&(m(0,"div",19)(1,"button",20),v(2,"Apply"),p(),m(3,"button",21),v(4,"Cancel"),p()())}function iSe(t,n){if(1&t){const e=qe();m(0,"div",24)(1,"button",25),be("click",function(){return Ce(e),we(B(3).setToday())}),v(2),p()()}if(2&t){const e=B(3);Ct("today-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),u(2),P(e.todayBtnLbl)}}function rSe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"button",25),be("click",function(){return Ce(e),we(B(3).clearDate())}),v(2),p()()}if(2&t){const e=B(3);Ct("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),u(2),P(e.clearBtnLbl)}}function aSe(t,n){if(1&t&&(m(0,"div",19),oe(1,iSe,3,7,"div",22)(2,rSe,3,7,"div",23),p()),2&t){const e=B(2);u(),T("ngIf",e.showTodayBtn),u(),T("ngIf",e.showClearBtn)}}function sSe(t,n){if(1&t){const e=qe();m(0,"div",27)(1,"bs-custom-date-view",28),be("onSelect",function(r){return Ce(e),we(B(2).setRangeOnCalendar(r))}),p()()}if(2&t){const e=B(2);u(),T("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function oSe(t,n){if(1&t){const e=qe();m(0,"div",3)(1,"div",4),be("@datepickerAnimation.done",function(){return Ce(e),we(B().positionServiceEnable())}),m(2,"div",5),M(3,"async"),oe(4,QDe,5,4,"ng-container",6)(5,JDe,3,3,"div",7)(6,tSe,3,3,"div",7),p(),oe(7,nSe,5,0,"div",8)(8,aSe,3,2,"div",8),p(),oe(9,sSe,2,3,"div",9),p()}if(2&t){const e=B();T("ngClass",e.containerClass),u(),T("@datepickerAnimation",e.animationState),u(),T("ngSwitch",E(3,9,e.viewMode)),u(2),T("ngSwitchCase","day"),u(),T("ngSwitchCase","month"),u(),T("ngSwitchCase","year"),u(),T("ngIf",!1),u(),T("ngIf",e.showTodayBtn||e.showClearBtn),u(),T("ngIf",e.customRanges&&e.customRanges.length>0)}}function lSe(t,n){if(1&t){const e=qe();m(0,"bs-days-calendar-view",13),M(1,"async"),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).dayHoverHandler(r))})("onHoverWeek",function(r){return Ce(e),we(B(3).weekHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).daySelectHandler(r))}),p()}if(2&t){const e=n.$implicit,i=B(3);Ct("bs-datepicker-multiple",i.multipleCalendars),T("calendar",e)("isDisabled",i.isDatePickerDisabled)("options",E(1,5,i.options$))}}function cSe(t,n){1&t&&fe(0,"timepicker",15,1),2&t&&T("disabled",B(4).isDatePickerDisabled)}function dSe(t,n){if(1&t&&(m(0,"div",14),fe(1,"timepicker",15,0),oe(3,cSe,2,1,"timepicker",16),p()),2&t){const e=B(3);u(),T("disabled",e.isDatePickerDisabled),u(2),T("ngIf",e.isRangePicker)}}function uSe(t,n){if(1&t&&(Gn(0),m(1,"div",10),oe(2,lSe,2,7,"bs-days-calendar-view",11),M(3,"async"),p(),oe(4,dSe,4,2,"div",12),qn()),2&t){const e=B(2);u(2),T("ngForOf",E(3,2,e.daysCalendar$)),u(2),T("ngIf",e.withTimepicker)}}function hSe(t,n){if(1&t){const e=qe();m(0,"bs-month-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).monthHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).monthSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function fSe(t,n){if(1&t&&(m(0,"div",10),oe(1,hSe,1,3,"bs-month-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.monthsCalendar))}}function pSe(t,n){if(1&t){const e=qe();m(0,"bs-years-calendar-view",18),be("onNavigate",function(r){return Ce(e),we(B(3).navigateTo(r))})("onViewMode",function(r){return Ce(e),we(B(3).setViewMode(r))})("onHover",function(r){return Ce(e),we(B(3).yearHoverHandler(r))})("onSelect",function(r){return Ce(e),we(B(3).yearSelectHandler(r))}),p()}if(2&t){const e=n.$implicit;Ct("bs-datepicker-multiple",B(3).multipleCalendars),T("calendar",e)}}function mSe(t,n){if(1&t&&(m(0,"div",10),oe(1,pSe,1,3,"bs-years-calendar-view",17),M(2,"async"),p()),2&t){const e=B(2);u(),T("ngForOf",E(2,1,e.yearsCalendar))}}function gSe(t,n){1&t&&(m(0,"div",19)(1,"button",20),v(2,"Apply"),p(),m(3,"button",21),v(4,"Cancel"),p()())}function _Se(t,n){if(1&t){const e=qe();m(0,"div",24)(1,"button",25),be("click",function(){return Ce(e),we(B(3).setToday())}),v(2),p()()}if(2&t){const e=B(3);Ct("tod
1ay-left","left"===e.todayPos)("today-right","right"===e.todayPos)("today-center","center"===e.todayPos),u(2),P(e.todayBtnLbl)}}function vSe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"button",25),be("click",function(){return Ce(e),we(B(3).clearDate())}),v(2),p()()}if(2&t){const e=B(3);Ct("clear-left","left"===e.clearPos)("clear-right","right"===e.clearPos)("clear-center","center"===e.clearPos),u(2),P(e.clearBtnLbl)}}function ySe(t,n){if(1&t&&(m(0,"div",19),oe(1,_Se,3,7,"div",22)(2,vSe,3,7,"div",23),p()),2&t){const e=B(2);u(),T("ngIf",e.showTodayBtn),u(),T("ngIf",e.showClearBtn)}}function bSe(t,n){if(1&t){const e=qe();m(0,"div",27)(1,"bs-custom-date-view",28),be("onSelect",function(r){return Ce(e),we(B(2).setRangeOnCalendar(r))}),p()()}if(2&t){const e=B(2);u(),T("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function CSe(t,n){if(1&t){const e=qe();m(0,"div",3)(1,"div",4),be("@datepickerAnimation.done",function(){return Ce(e),we(B().positionServiceEnable())}),m(2,"div",5),M(3,"async"),oe(4,uSe,5,4,"ng-container",6)(5,fSe,3,3,"div",7)(6,mSe,3,3,"div",7),p(),oe(7,gSe,5,0,"div",8)(8,ySe,3,2,"div",8),p(),oe(9,bSe,2,3,"div",9),p()}if(2&t){const e=B();T("ngClass",e.containerClass),u(),T("@datepickerAnimation",e.animationState),u(),T("ngSwitch",E(3,9,e.viewMode)),u(2),T("ngSwitchCase","day"),u(),T("ngSwitchCase","month"),u(),T("ngSwitchCase","year"),u(),T("ngIf",!1),u(),T("ngIf",e.showTodayBtn||e.showClearBtn),u(),T("ngIf",e.customRanges&&e.customRanges.length>0)}}let Fl=(()=>{class t{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Ij="220ms cubic-bezier(0, 0, 0.2, 1)",cw=vv("datepickerAnimation",[Oh("animated-down",Sa({height:"*",overflow:"hidden"})),gc("* => animated-down",[Sa({height:0,overflow:"hidden"}),mc(Ij)]),Oh("animated-up",Sa({height:"*",overflow:"hidden"})),gc("* => animated-up",[Sa({height:"*",overflow:"hidden"}),mc(Ij)]),gc("* => unanimated",mc("0s"))]);class Aj{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new jt,this.selectedTimeSub=new jt}set minDate(n){this._effects?.setMinDate(n)}set maxDate(n){this._effects?.setMaxDate(n)}set daysDisabled(n){this._effects?.setDaysDisabled(n)}set datesDisabled(n){this._effects?.setDatesDisabled(n)}set datesEnabled(n){this._effects?.setDatesEnabled(n)}set isDisabled(n){this._effects?.setDisabled(n)}set dateCustomClasses(n){this._effects?.setDateCustomClasses(n)}set dateTooltipTexts(n){this._effects?.setDateTooltipTexts(n)}set daysCalendar$(n){this._daysCalendar$=n,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(e=>{this.multipleCalendars=!!e&&e.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(n){}navigateTo(n){}dayHoverHandler(n){}weekHoverHandler(n){}monthHoverHandler(n){}yearHoverHandler(n){}timeSelectHandler(n,e){}daySelectHandler(n){}monthSelectHandler(n){}yearSelectHandler(n){}setRangeOnCalendar(n){}setToday(){}clearDate(){}_stopPropagation(n){n.stopPropagation()}}let Cr=(()=>{class t{static{this.CALCULATE="[datepicker] calculate dates matrix"}static{this.FORMAT="[datepicker] format datepicker values"}static{this.FLAG="[datepicker] set flags"}static{this.SELECT="[datepicker] select date"}static{this.NAVIGATE_OFFSET="[datepicker] shift view date"}static{this.NAVIGATE_TO="[datepicker] change view date"}static{this.SET_OPTIONS="[datepicker] update render options"}static{this.HOVER="[datepicker] hover date"}static{this.CHANGE_VIEWMODE="[datepicker] switch view mode"}static{this.SET_MIN_DATE="[datepicker] set min date"}static{this.SET_MAX_DATE="[datepicker] set max date"}static{this.SET_DAYSDISABLED="[datepicker] set days disabled"}static{this.SET_DATESDISABLED="[datepicker] set dates disabled"}static{this.SET_DATESENABLED="[datepicker] set dates enabled"}static{this.SET_IS_DISABLED="[datepicker] set is disabled"}static{this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes"}static{this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts"}static{this.SET_LOCALE="[datepicker] set datepicker locale"}static{this.SELECT_TIME="[datepicker] select time"}static{this.SELECT_RANGE="[daterangepicker] select dates range"}calculate(){return{type:t.CALCULATE}}format(){return{type:t.FORMAT}}
1flag(){return{type:t.FLAG}}select(e){return{type:t.SELECT,payload:e}}selectTime(e,i){return{type:t.SELECT_TIME,payload:{date:e,index:i}}}changeViewMode(e){return{type:t.CHANGE_VIEWMODE,payload:e}}navigateTo(e){return{type:t.NAVIGATE_TO,payload:e}}navigateStep(e){return{type:t.NAVIGATE_OFFSET,payload:e}}setOptions(e){return{type:t.SET_OPTIONS,payload:e}}selectRange(e){return{type:t.SELECT_RANGE,payload:e}}hoverDay(e){return{type:t.HOVER,payload:e.isHovered?e.cell.date:null}}minDate(e){return{type:t.SET_MIN_DATE,payload:e}}maxDate(e){return{type:t.SET_MAX_DATE,payload:e}}daysDisabled(e){return{type:t.SET_DAYSDISABLED,payload:e}}datesDisabled(e){return{type:t.SET_DATESDISABLED,payload:e}}datesEnabled(e){return{type:t.SET_DATESENABLED,payload:e}}isDisabled(e){return{type:t.SET_IS_DISABLED,payload:e}}setDateCustomClasses(e){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:e}}setDateTooltipTexts(e){return{type:t.SET_DATE_TOOLTIP_TEXTS,payload:e}}setLocale(e){return{type:t.SET_LOCALE,payload:e}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),jA=(()=>{class t{constructor(){this._defaultLocale="en",this._locale=new an(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(e){e!==this.currentLocale&&this._locale.next(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),bu=(()=>{class t{constructor(e,i){this._actions=e,this._localeService=i,this._subs=[]}init(e){return this._store=e,this}setValue(e){this._store?.dispatch(this._actions.select(e))}setRangeValue(e){this._store?.dispatch(this._actions.selectRange(e))}setMinDate(e){return this._store?.dispatch(this._actions.minDate(e)),this}setMaxDate(e){return this._store?.dispatch(this._actions.maxDate(e)),this}setDaysDisabled(e){return this._store?.dispatch(this._actions.daysDisabled(e)),this}setDatesDisabled(e){return this._store?.dispatch(this._actions.datesDisabled(e)),this}setDatesEnabled(e){return this._store?.dispatch(this._actions.datesEnabled(e)),this}setDisabled(e){return this._store?.dispatch(this._actions.isDisabled(e)),this}setDateCustomClasses(e){return this._store?.dispatch(this._actions.setDateCustomClasses(e)),this}setDateTooltipTexts(e){return this._store?.dispatch(this._actions.setDateTooltipTexts(e)),this}setOptions(e){const i=Object.assign({locale:this._localeService.currentLocale},e);return this._store?.dispatch(this._actions.setOptions(i)),this}setBindings(e){return this._store?(e.selectedTime=this._store.select(i=>i.selectedTime).pipe(Cn(i=>!!i)),e.daysCalendar$=this._store.select(i=>i.flaggedMonths).pipe(Cn(i=>!!i)),e.monthsCalendar=this._store.select(i=>i.flaggedMonthsCalendar).pipe(Cn(i=>!!i)),e.yearsCalendar=this._store.select(i=>i.yearsCalendarFlagged).pipe(Cn(i=>!!i)),e.viewMode=this._store.select(i=>i.view?.mode),e.options$=Tl([this._store.select(i=>i.showWeekNumbers),this._store.select(i=>i.displayMonths)]).pipe(Ot(i=>({showWeekNumbers:i[0],displayMonths:i[1]}))),this):this}setEventHandlers(e){return e.setViewMode=i=>{this._store?.dispatch(this._actions.changeViewMode(i))},e.navigateTo=i=>{this._store?.dispatch(this._actions.navigateStep(i.step))},e.dayHoverHandler=i=>{const r=i.cell;r.isOtherMonth||r.isDisabled||(this._store?.dispatch(this._actions.hoverDay(i)),r.isHovered=i.isHovered)},e.monthHoverHandler=i=>{i.cell.isHovered=i.isHovered},e.yearHoverHandler=i=>{i.cell.isHovered=i.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(e=>e.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(e=>e.monthsModel).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(e=>e.formattedMonths).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.selectedDate).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.selectedRange).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.yearsCalendarModel).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.hoveredDate).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.dateCustomClasses).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.dateTooltipTexts).pipe(Cn(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(e=>this._store?.dispatch(this._actions.setLocale(e)))),this):this}destroy(){for(const e of this._subs)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(Fe(Cr),Fe(jA))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const SSe={date:new Date,mode:"day"},kj=Object.assign(new Fl,{locale:"en",view:SSe,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function zA(t,n,e){const i=n&&wc(qC(t,"month"),n,"day"),r=e&&Pl(hd(t,"month"),e,"day");return i||r||!1}function Gv(t,n,e){const i=n&&wc(qC(t,"year"),n,"day"),r=e&&Pl(hd(t,"year"),e,"day");return i||r||!1}function YA(t,n,e){return!!(n&&yr(n)&&n.length)&&(e&&"year"===e&&!n[0].getDate()?n.some(i=>Im(t,i,"year")):n.some(i=>Im(t,i,"date")))}function $A(t,n,e){return!!(n&&yr(n)&&n.length)&&!n.some(i=>Im(t,i,e||"date"))}function Nj(t,n=0){const e=t&&t.yearsCalendarModel&&t.yearsCalendarModel[n];return e?.years[0]&&e.years[0][0]&&e.years[0][0].date}function MSe(t,n){return!t||!n||!t.length&&!t[0].value||t.forEach(e
1=>(!e||!e.value||e.value instanceof Date||!(e.value instanceof Array&&e.value.length)||(e.value=Pj(e.value,n)),t)),t}function Rj(t,n){return!t||!n||t instanceof Array&&!t.length||t instanceof Date?t:Pj(t,n)}function Pj(t,n){return t instanceof Array?t.map(i=>i&&(Pl(i,n,"date")&&(i=n),i)):t}function Oj(t){return t&&Fj(t)}function Lj(t){return t?.length&&t.map(n=>n&&Fj(n)),t}function Fj(t){const n=new Date;return t.setMilliseconds(n.getMilliseconds()),t.setSeconds(n.getSeconds()),t.setMinutes(n.getMinutes()),t.setHours(n.getHours()),t}function WA(t,n){let e=t.initialDate;const i=new Array(t.height);for(let r=0;r<t.height;r++){i[r]=new Array(t.width);for(let a=0;a<t.width;a++)i[r][a]=n(e),e=La(e,t.shift)}return i}function GA(t,n){const e=function P0e(t){return UC(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes(),t.getSeconds())}(t),i=function TSe(t,n){if(function L0e(t,n){return t.getDay()===Number(n)}(t,n.firstDayOfWeek))return t;const i=function xSe(t,n){const e=Number(n);if(isNaN(e))return 0;if(0===e)return t;const i=t-e%7;return i<0?i+7:i}(bc(t),n.firstDayOfWeek);return La(t,{day:-i})}(e,n);return{daysMatrix:WA({width:n.width||0,height:n.height||0,initialDate:i,shift:{day:1}},s=>s),month:e}}function ISe(t,n,e){return t.map(i=>i[0]?Zo(i[0],n,e):"")}function ASe(t){const n=xa(t),e=n.weekdaysShort(),i=n.firstDayOfWeek();return[...e.slice(i),...e.slice(0,i)]}function Bj(t,n){return!n||t>=n}const OSe={month:1};function Vj(t,n){return{months:WA({width:3,height:4,initialDate:hd(t,"year"),shift:OSe},a=>({date:a,label:Zo(a,n.monthLabel,n.locale)})),monthTitle:"",yearTitle:Zo(t,n.yearTitle,n.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const Uj=-1*(Math.floor(8)-1),FSe={year:1};function Hj(t,n,e){const i=function BSe(t,n){return n&&t.getFullYear()>=n.getFullYear()&&t.getFullYear()<n.getFullYear()+16?n:La(t,{year:Uj})}(t,e),a=WA({width:4,height:4,initialDate:i,shift:FSe},o=>({date:o,label:Zo(o,n.yearLabel,n.locale)})),s=function VSe(t,n){return`${Zo(t[0][0].date,n.yearTitle,n.locale)} - ${Zo(t[3][3].date,n.yearTitle,n.locale)}`}(a,n);return{years:a,monthTitle:"",yearTitle:s,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function ZA(t,n){!t||!isNaN(t.getTime())||(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds()))}function jj(t=kj,n){switch(n.type){case Cr.CALCULATE:return function HSe(t){if(!t.view)return t;let n;n=t.displayOneMonthRange&&zj(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths||1;let e=t.view.date;if("day"===t.view.mode&&t.monthViewOptions){t.showPreviousMonth&&t.selectedRange&&0===t.selectedRange.length&&(e=La(e,{month:-1})),t.monthViewOptions.firstDayOfWeek=xa(t.locale).firstDayOfWeek();let i=new Array(n);for(let r=0;r<n;r++)i[r]=GA(e,t.monthViewOptions),e=La(e,{month:1});if(t.preventChangeToNextMonth&&t.flaggedMonths&&t.hoveredDate){const r=GA(t.view.date,t.monthViewOptions);t.flaggedMonths.length&&t.flaggedMonths[1].month.getMonth()===r.month.getMonth()&&(i=t.flaggedMonths.map(a=>t.monthViewOptions?GA(a.month,t.monthViewOptions):null).filter(a=>null!==a))}return Object.assign({},t,{monthsModel:i})}if("month"===t.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=Vj(e,qv(t)),e=La(e,{year:1});return Object.assign({},t,{monthsCalendar:i})}if("year"===t.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=Hj(e,qv(t),"year"===t.minMode?Nj(t,r):void 0),e=La(e,{year:16});return Object.assign({},t,{yearsCalendarModel:i})}return t}(t);case Cr.FORMAT:return function jSe(t){if(!t.view)return t;if("day"===t.view.mode&&t.monthsModel){const i=t.monthsModel.map((r,a)=>function ESe(t,n,e){return{month:t.month,monthTitle:Zo(t.month,n.monthTitle,n.locale),yearTitle:Zo(t.month,n.yearTitle,n.locale),weekNumbers:ISe(t.daysMatrix,n.weekNumbers,n.locale),weekdays:ASe(n.locale),weeks:t.daysMatrix.map((i,r)=>({days:i.map((a,s)=>({date:a,label:Zo(a,n.dayLabel,n.locale),monthIndex:e,weekIndex:r,dayIndex:s}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(r,qv(t),a));return Object.assign({},t,{formattedMonths:i})}const n=t.displayMonths||1;let e=t.view.date;if("month"===t.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=Vj(e,qv(t)),e=La(e,{year:1});return Object.assign({},t,{monthsCalendar:i})}if("year"===t.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=Hj(e,qv(t)),e=La(e,{year:16});return Object.assign({},t,{yearsCalendarModel:i})}return t}(t);case Cr.FLAG:return function zSe(t){if(!t.view)return t;const n=zj(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths;if(t.formattedMonths&&"day"===t.view.mode){const e=t.formattedMonths.map((i,r)=>
1function kSe(t,n){return t.weeks.forEach(e=>{e.days.forEach((i,r)=>{const a=!Sm(i.date,t.month),s=!a&&mu(i.date,n.hoveredDate),o=!a&&n.selectedRange&&mu(i.date,n.selectedRange[0]),l=!a&&n.selectedRange&&mu(i.date,n.selectedRange[1]),d=!a&&mu(i.date,n.selectedDate)||o||l,h=!a&&n.selectedRange&&function NSe(t,n,e){return!!(t&&n&&n[0])&&(n[1]?t>n[0]&&t<=n[1]:!!e&&t>n[0]&&t<=e)}(i.date,n.selectedRange,n.hoveredDate),_=n.isDisabled||wc(i.date,n.minDate,"day")||Pl(i.date,n.maxDate,"day")||function rCe(t,n){return!(typeof n>"u"||!n||!n.length)&&n.some(e=>e===t.getDay())}(i.date,n.daysDisabled)||YA(i.date,n.datesDisabled)||$A(i.date,n.datesEnabled),C=!a&&mu(i.date,new Date),k=n.dateCustomClasses&&n.dateCustomClasses.map(de=>mu(i.date,de.date)?de.classes:[]).reduce((de,he)=>de.concat(he),[]).join(" ")||"",U=n.dateTooltipTexts&&n.dateTooltipTexts.map(de=>mu(i.date,de.date)?de.tooltipText:"").reduce((de,he)=>(de.push(he),de),[]).join(" ")||"",Q=Object.assign({},i,{isOtherMonth:a,isHovered:s,isSelected:d,isSelectionStart:o,isSelectionEnd:l,isInRange:h,isDisabled:_,isToday:C,customClasses:k,tooltipText:U});(i.isOtherMonth!==Q.isOtherMonth||i.isHovered!==Q.isHovered||i.isSelected!==Q.isSelected||i.isSelectionStart!==Q.isSelectionStart||i.isSelectionEnd!==Q.isSelectionEnd||i.isDisabled!==Q.isDisabled||i.isInRange!==Q.isInRange||i.customClasses!==Q.customClasses||i.tooltipText!==Q.tooltipText)&&(e.days[r]=Q)})}),t.hideLeftArrow=n.isDisabled||!!n.monthIndex&&n.monthIndex>0&&n.monthIndex!==n.displayMonths,t.hideRightArrow=n.isDisabled||(!!n.monthIndex||0===n.monthIndex)&&!!n.displayMonths&&n.monthIndex<n.displayMonths&&n.monthIndex+1!==n.displayMonths,t.disableLeftArrow=zA(La(t.month,{month:-1}),n.minDate,n.maxDate),t.disableRightArrow=zA(La(t.month,{month:1}),n.minDate,n.maxDate),t}(i,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,daysDisabled:t.daysDisabled,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,hoveredDate:t.hoveredDate,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,dateCustomClasses:t.dateCustomClasses,dateTooltipTexts:t.dateTooltipTexts,monthIndex:r}));return Object.assign({},t,{flaggedMonths:e})}if("month"===t.view.mode&&t.monthsCalendar){const e=t.monthsCalendar.map((i,r)=>function LSe(t,n){return t.months.forEach((e,i)=>{e.forEach((r,a)=>{let s;const o=Sm(r.date,n.hoveredMonth),l=n.isDisabled||YA(r.date,n.datesDisabled)||$A(r.date,n.datesEnabled,"month")||zA(r.date,n.minDate,n.maxDate);!n.selectedDate&&n.selectedRange?(s=Sm(r.date,n.selectedRange[0]),s||(s=Sm(r.date,n.selectedRange[1]))):s=Sm(r.date,n.selectedDate);const d=Object.assign(r,{isHovered:o,isDisabled:l,isSelected:s});(r.isHovered!==d.isHovered||r.isDisabled!==d.isDisabled||r.isSelected!==d.isSelected)&&(t.months[i][a]=d)})}),t.hideLeftArrow=!!n.monthIndex&&n.monthIndex>0&&n.monthIndex!==n.displayMonths,t.hideRightArrow=(!!n.monthIndex||0===n.monthIndex)&&(!!n.displayMonths||0===n.displayMonths)&&n.monthIndex<n.displayMonths&&n.monthIndex+1!==n.displayMonths,t.disableLeftArrow=Gv(La(t.months[0][0].date,{year:-1}),n.minDate,n.maxDate),t.disableRightArrow=Gv(La(t.months[0][0].date,{year:1}),n.minDate,n.maxDate),t}(i,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredMonth:t.hoveredMonth,selectedDate:t.selectedDate,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,selectedRange:t.selectedRange,displayMonths:n,monthIndex:r}));return Object.assign({},t,{flaggedMonthsCalendar:e})}if("year"===t.view.mode&&t.yearsCalendarModel){const e=t.yearsCalendarModel.map((i,r)=>function USe(t,n){t.years.forEach((r,a)=>{r.forEach((s,o)=>{let l;const d=Tm(s.date,n.hoveredYear),h=n.isDisabled||YA(s.date,n.datesDisabled,"year")||$A(s.date,n.datesEnabled,"year")||Gv(s.date,n.minDate,n.maxDate);!n.selectedDate&&n.selectedRange?(l=Tm(s.date,n.selectedRange[0]),l||(l=Tm(s.date,n.selectedRange[1]))):l=Tm(s.date,n.selectedDate);const _=Object.assign(s,{isHovered:d,isDisabled:h,isSelected:l});(s.isHovered!==_.isHovered||s.isDisabled!==_.isDisabled||s.isSelected!==_.isSelected)&&(t.years[a][o]=_)})}),t.hideLeftArrow=!!n.yearIndex&&n.yearIndex>0&&n.yearIndex!==n.displayMonths,t.hideRightArrow=!!n.yearIndex&&!!n.displayMonths&&n.yearIndex<n.displayMonths&&n.yearIndex+1!==n.displayMonths,t.disableLeftArrow=Gv(La(t.years[0][0].date,{year:-1}),n.minDate,n.maxDate);const e=t.years.length-1;return t.disableRightArrow=Gv(La(t.years[e][t.years[e].length-1].date,{year:1}),n.minDate,n.maxDate),t}(i,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredYear:t.hoveredYear,selectedDate:t.selectedDate,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,selectedRange:t.selectedRange,displayMonths:n,yearIndex:r}));return Object.assign({},t,{yearsCalendarFlagged:e})}return t}(t);case Cr.NAVIGATE_OFFSET:return function YSe(t,n){if(!t.view)return t;const e=function $Se(t,n){if(t.view){if("year"===t.view.mode&&"year"===t.minMode){const e=Nj(t,0);if(e){const i=La(e,{year:-Uj});return La(i,n.payload)}}return La(hd(t.view.date,"month"),n.payload)}}(t,n);if(!e)return t;return Object.assign({},t,{view:{mode:t.view.mode,date:e}})}(t,n);case Cr.NAVIGATE_TO:{const e=n.payload;if(!t.view||!e.unit)return t;const i=function K0e(t,n){return UC(xm(t.getFullYear(),n.year),xm(t.getMonth(),n.month),1,xm(t.getHours(),n.hour),xm(t.getMinutes(),n.minute),xm(t.getSeconds(),n.seconds),xm(t.getMilliseconds(),n.milliseconds))}(t.view.date,e.unit);let r,a;
1return Bj(e.viewMode,t.minMode)?(a=e.viewMode,r={view:{date:i,mode:a}}):(a=t.view.mode,r={selectedDate:i,view:{date:i,mode:a}}),Object.assign({},t,r)}case Cr.CHANGE_VIEWMODE:return Bj(n.payload,t.minMode)&&t.view?Object.assign({},t,{view:{date:t.view.date,mode:n.payload}}):t;case Cr.HOVER:return Object.assign({},t,{hoveredDate:n.payload});case Cr.SELECT:{if(!t.view)return t;const e={selectedDate:n.payload,view:t.view};if(Array.isArray(t.selectedTime)){const s=t.selectedTime[0];e.selectedDate&&s&&ZA(e.selectedDate,s)}const i=t.view.mode,a=QA(n.payload||t.view.date,t.minDate,t.maxDate);return e.view={mode:i,date:a},Object.assign({},t,e)}case Cr.SELECT_TIME:{const{date:e,index:i}=n.payload,r=t.selectedTime?[...t.selectedTime]:[];return r[i]=e,Object.assign({},t,{selectedTime:r})}case Cr.SET_OPTIONS:{if(!t.view)return t;const e=n.payload,i=e.minMode?e.minMode:t.view.mode,a=QA(pu(e.value)&&e.value||yr(e.value)&&pu(e.value[0])&&e.value[0]||t.view.date,e.minDate,e.maxDate);return e.view={mode:i,date:a},e.value&&(yr(e.value)&&(e.selectedRange=e.value,e.selectedTime=e.value.map(s=>s)),e.value instanceof Date&&(e.selectedDate=e.value,e.selectedTime=[e.value])),Object.assign({},t,e)}case Cr.SELECT_RANGE:{if(!t.view)return t;const e={selectedRange:n.payload,view:t.view};e.selectedRange?.forEach((s,o)=>{if(Array.isArray(t.selectedTime)){const l=t.selectedTime[o];l&&ZA(s,l)}});const i=t.view.mode,a=QA(n.payload&&n.payload[0]||t.view.date,t.minDate,t.maxDate);return e.view={mode:i,date:a},Object.assign({},t,e)}case Cr.SET_MIN_DATE:return Object.assign({},t,{minDate:n.payload});case Cr.SET_MAX_DATE:return Object.assign({},t,{maxDate:n.payload});case Cr.SET_IS_DISABLED:return Object.assign({},t,{isDisabled:n.payload});case Cr.SET_DATE_CUSTOM_CLASSES:return Object.assign({},t,{dateCustomClasses:n.payload});case Cr.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},t,{dateTooltipTexts:n.payload});default:return t}}function qv(t){return{locale:t.locale,monthTitle:t.monthTitle,yearTitle:t.yearTitle,dayLabel:t.dayLabel,monthLabel:t.monthLabel,yearLabel:t.yearLabel,weekNumbers:t.weekNumbers}}function QA(t,n,e){const i=Array.isArray(t)?t[0]:t;return n&&Pl(n,i,"day")?n:e&&wc(e,i,"day")?e:i}function zj(t,n,e){return!(!e||!Im(e,t,"day"))||n&&e&&n.getMonth()===e.getMonth()}let Cu=(()=>{class t extends sw{constructor(){const e=new an({type:"[datepicker] dispatcher init"});super(e,jj,new uj(kj,e,jj))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),uw=(()=>{class t{constructor(){this.onSelect=new Xe}selectFromRanges(e){this.onSelect.emit(e)}compareRanges(e){return JSON.stringify(e?.value)===JSON.stringify(this.selectedRange)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(i,r){1&i&&(m(0,"div",0),oe(1,Xwe,2,3,"button",1),p()),2&i&&(u(),T("ngForOf",r.ranges))},dependencies:[Un],encapsulation:2,changeDetection:0})}}return t})();var Bm=function(t){return t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t}(Bm||{});let Vm,XA=(()=>{class t{constructor(){this.isDisabled=!1,this.onNavigate=new Xe,this.onViewMode=new Xe}navTo(e){this.onNavigate.emit(e?Bm.DOWN:Bm.UP)}view(e){this.isDisabled||this.onViewMode.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"click","disabled"],[4,"ngIf"],["type","button",1,"current",3,"click","disabled"],["type","button",1,"next",3,"click","disabled"]],template:function(i,r){1&i&&(m(0,"button",0),be("click",function(){return r.navTo(!0)}),m(1,"span"),v(2,"\u2039"),p()(),oe(3,Jwe,5,2,"ng-container",1),v(4," \u200b "),m(5,"button",2),be("click",function(){return r.view("year")}),m(6,"span"),v(7),p()(),v(8," \u200b "),m(9,"button",3),be("click",function(){return r.navTo(!1)}),m(10,"span"),v(11,"\u203a"),p()()),2&i&&(dh("visibility",r.calendar.hideLeftArrow?"hidden":"visible"),T("disabled",r.calendar.disableLeftArrow),u(3),T("ngIf",r.calendar&&r.calendar.monthTitle),u(2),T("disabled",r.isDisabled),u(2),P(r.calendar.yearTitle),u(2),dh("visibility",r.calendar.hideRightArrow?"hidden":"visible"),T("disabled",r.calendar.disableRightArrow))},dependencies:[Zt],encapsulation:2,changeDetection:0})}}return t})(),WSe=(()=>{class t{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-control
1s"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"button",2),v(3,"-"),p(),fe(4,"input",3),m(5,"button",4),v(6,"+"),p()(),m(7,"div",1)(8,"button",2),v(9,"-"),p(),fe(10,"input",3),m(11,"button",4),v(12,"+"),p()(),m(13,"button",5),v(14),fe(15,"img",6),p()()),2&i&&(u(4),T("value",r.hours),u(6),T("value",r.minutes),u(4),_e("",r.ampm," "))},encapsulation:2})}}return t})(),GSe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"span"),v(2),p()()),2&i&&(u(2),P(r.title))},encapsulation:2})}}return t})(),JA=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-calendar-layout"]],ngContentSelectors:tDe,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(i,r){1&i&&(Bo(eDe),oe(0,nDe,1,0,"bs-current-date",0),m(1,"div",1),Ss(2),p(),m(3,"div",2),Ss(4,1),p(),oe(5,iDe,1,0,"bs-timepicker",3)),2&i&&(T("ngIf",!1),u(5),T("ngIf",!1))},dependencies:[Zt,GSe,WSe],encapsulation:2})}}return t})(),hw=(()=>{class t{constructor(){this.onNavigate=new Xe,this.onViewMode=new Xe,this.onSelect=new Xe,this.onHover=new Xe}navigateTo(e){this.onNavigate.emit({step:{year:16*(Bm.DOWN===e?-1:1)}})}viewYear(e){this.onSelect.emit(e)}hoverYear(e,i){this.onHover.emit({cell:e,isHovered:i})}changeViewMode(e){this.onViewMode.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),be("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),p(),m(2,"table",1)(3,"tbody"),oe(4,aDe,2,1,"tr",2),p()()()),2&i&&(u(),T("calendar",r.calendar),u(3),T("ngForOf",null==r.calendar?null:r.calendar.years))},dependencies:[JA,XA,Un],encapsulation:2})}}return t})(),fw=(()=>{class t{constructor(){this.onNavigate=new Xe,this.onViewMode=new Xe,this.onSelect=new Xe,this.onHover=new Xe}navigateTo(e){this.onNavigate.emit({step:{year:Bm.DOWN===e?-1:1}})}viewMonth(e){this.onSelect.emit(e)}hoverMonth(e,i){this.onHover.emit({cell:e,isHovered:i})}changeViewMode(e){this.onViewMode.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),be("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),p(),m(2,"table",1)(3,"tbody"),oe(4,oDe,2,1,"tr",2),p()()()),2&i&&(u(),T("calendar",r.calendar),u(3),T("ngForOf",null==r.calendar?null:r.calendar.months))},dependencies:[JA,XA,Un],encapsulation:2})}}return t})(),qSe=(()=>{class t{constructor(e,i,r){this._config=e,this._elRef=i,this._renderer=r,this.day={date:new Date,label:""}}
1ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(e=>e).forEach(e=>{this._renderer.addClass(this._elRef.nativeElement,e)})}static{this.\u0275fac=function(i){return new(i||t)(G(Fl),G(Bt),G(zn))}}static{this.\u0275cmp=vt({type:t,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(i,r){2&i&&Ct("disabled",r.day.isDisabled)("is-highlighted",r.day.isHovered)("is-other-month",r.day.isOtherMonth)("is-active-other-month",r.day.isOtherMonthHovered)("in-range",r.day.isInRange)("select-start",r.day.isSelectionStart)("select-end",r.day.isSelectionEnd)("selected",r.day.isSelected)},inputs:{day:"day"},attrs:lDe,decls:1,vars:1,template:function(i,r){1&i&&v(0),2&i&&P(r.day&&r.day.label||"")},encapsulation:2,changeDetection:0})}}return t})(),Kv=(()=>{class t{constructor(e){this._config=e,this.onNavigate=new Xe,this.onViewMode=new Xe,this.onSelect=new Xe,this.onHover=new Xe,this.onHoverWeek=new Xe,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(e){this.onNavigate.emit({step:{month:Bm.DOWN===e?-1:1}})}changeViewMode(e){this.onViewMode.emit(e)}selectDay(e){this.onSelect.emit(e)}selectWeek(e){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===e.days.length)return;if(this._config.selectWeek&&e.days[0]&&!e.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(e.days[0]);const i=e.days.find(r=>(this._config.selectFromOtherMonth||!r.isOtherMonth)&&!r.isDisabled);if(this.onSelect.emit(i),this._config.selectWeekDateRange){const a=e.days.slice(0).reverse().find(s=>(this._config.selectFromOtherMonth||!s.isOtherMonth)&&!s.isDisabled);this.onSelect.emit(a)}}weekHoverHandler(e,i){(this._config.selectWeek||this._config.selectWeekDateRange)&&e.days.find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled)&&(e.isHovered=i,this.isWeekHovered=i,this.onHoverWeek.emit(e))}hoverDay(e,i){this._config.selectFromOtherMonth&&e.isOtherMonth&&(e.isOtherMonthHovered=i),this._config.dateTooltipTexts&&(e.tooltipText="",this._config.dateTooltipTexts.forEach(r=>{mu(r.date,e.date)&&(e.tooltipText=r.tooltipText)})),this.onHover.emit({cell:e,isHovered:i})}static{this.\u0275fac=function(i){return new(i||t)(G(Fl))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"onNavigate","onViewMode","calendar","isDisabled"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day","tooltip"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day"],["bsDatepickerDayDecorator","",3,"click","day"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),be("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),p(),m(2,"table",1)(3,"thead")(4,"tr"),oe(5,cDe,1,0,"th",2)(6,dDe,2,1,"th",3),p()(),m(7,"tbody"),oe(8,vDe,3,2,"tr",4),p()()()),2&i&&(u(),T("calendar",r.calendar)("isDisabled",!!r.isDisabled),u(4),T("ngIf",r.options&&r.options.showWeekNumbers),u(),T("ngForOf",r.calendar.weekdays),u(2),T("ngForOf",r.calendar.weeks))},dependencies:[JA,XA,Zt,Un,qSe,Mj,Qwe],encapsulation:2})}}return t})(),ek=(()=>{class t extends Aj{set value(e){this._effects?.setValue(e)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(e,i,r,a,s,o,l){super(),this._config=i,this._store=r,this._element=a,this._actions=s,this._positionService=l,this.valueChange=new Xe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=o,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){let e;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(Yn(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedDate).subscribe(i=>{e=i,this.valueChange.emit(i)})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i||!i[0]||!(i[0]instanceof Date)||i[0]===e||this.valueChange.emit(i[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(e=>{Array.isArray(e)&&e.length>=1&&this.startTimepicker?.writeValue(e[0])})),this.startTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}
1timeSelectHandler(e,i){this._store.dispatch(this._actions.selectTime(e,i))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this._store.dispatch(this._actions.select(e.date))}monthSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Qn(e.date),year:Mr(e.date)},viewMode:"day"}))}yearSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:Mr(e.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const e of this._subs)e.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static{this.\u0275fac=function(i){return new(i||t)(G(zn),G(Fl),G(Cu),G(Bt),G(Cr),G(bu),G(Ll))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-datepicker-container"]],viewQuery:function(i,r){if(1&i&&En(Ej,5),2&i){let a;Vt(a=Ut())&&(r.startTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&be("click",function(s){return r._stopPropagation(s)}),2&i&&Kt("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[fn([Cu,bu,Cr,Ll]),Sn],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(oe(0,NDe,10,11,"div",2),M(1,"async")),2&i&&T("ngIf",E(1,1,r.viewMode))},dependencies:[Zt,oa,mh,I_,Un,Kv,$v,Yv,fw,hw,uw,Ii],encapsulation:2,data:{animation:[cw]}})}}return t})(),wu=(()=>{class t{get readonlyValue(){return this.isDisabled?"":null}constructor(e,i,r,a,s){this._config=e,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new nt,this.isDisabled=!1,this.bsValueChange=new Xe,this._subs=[],this._dateInputFormat$=new nt,Object.assign(this,this._config),this._datepicker=s.createLoader(i,a,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new an(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){this._bsValue&&e&&this._bsValue.getTime()===e.getTime()||(!this._bsValue&&e&&!this._config.withTimepicker&&ZA(e,new Date),e&&this.bsConfig?.initCurrentTime&&(e=Oj(e)),this.initPreviousValue(),this._bsValue=e,this.bsValueChange.emit(e))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){Vm=this._bsValue}ngOnChanges(e){e.bsConfig&&(e.bsConfig.currentValue?.initCurrentTime&&e.bsConfig.currentValue?.initCurrentTime!==e.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Oj(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),e.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(e=>{this.initPreviousValue(),this.bsValue=e,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(Vm&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return Vm instanceof Date&&this._bsValue?.getDate()===Vm?.getDate()&&this._bsValue?.getMonth()===Vm?.getMonth()&&this._bsValue?.getFullYear()===Vm?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe(Cn(e=>e!==this.isOpen),Lt(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Fl,useValue:this._config}).attach(ek).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const e of this._subs)e.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:Rj(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(e=>e.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(i){return new(i||t)(G(Fl),G(Bt),G(zn),G(Wa),G(Fm))}}static{this.\u0275dir=lt({type:t,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&Kt("readonly",r.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",ignoreMinMaxErrors:"ignoreMinMaxErrors",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[fn([Fm]),ci]})}}return t})(),KSe=(()=>{class t extends ek{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(e,i,r,a,s,o,l){super(e,i,r,a,s,o,l),e.setStyle(a.nativeElement,"display","inline-block"),e.setStyle(a.nativeElement,"position","static")}static{this.\u0275fac=function(i){return new(i||t)(G(zn),G(Fl),G(Cu),G(Bt),G(Cr),G(bu),G(Ll))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-datepicker-inline-container"]],hostVars:2,hostBindings:function(i,r){1&i&&be("click",function(s){return r._stopPropagation(s)}),2&i&&Kt("disabled",r.disabledValue)("readonly",r.readonlyValue)}
1,features:[fn([Cu,bu,Ll]),Sn],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(oe(0,WDe,10,11,"div",2),M(1,"async")),2&i&&T("ngIf",E(1,1,r.viewMode))},dependencies:[Zt,oa,mh,I_,Un,Kv,$v,Yv,fw,hw,uw,Ii],encapsulation:2,data:{animation:[cw]}})}}return t})(),tk=(()=>{class t extends Aj{set value(e){this._effects?.setRangeValue(e)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(e,i,r,a,s,o,l){super(),this._config=i,this._store=r,this._element=a,this._actions=s,this._positionService=l,this.valueChange=new Xe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=o,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){let e;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(Yn(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedRange).subscribe(i=>{e=i,this.valueChange.emit(i),this.chosenRange=i||[]})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i||!i[0]||!i[1]||!(i[0]instanceof Date)||!(i[1]instanceof Date)||e&&i[0]===e[0]&&i[1]===e[1]||(this.valueChange.emit(i),this.chosenRange=i||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(e=>{Array.isArray(e)&&e.length>=2&&(this.startTimepicker?.writeValue(e[0]),this.endTimepicker?.writeValue(e[1]))})),this.startTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,0)}),this.endTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(e,i){this._store.dispatch(this._actions.selectTime(e,i))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this.rangesProcessing(e)}monthSelectHandler(e){if(e&&!e.isDisabled){if(e.isSelected=!0,"month"!==this._config.minMode){if(e.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Qn(e.date),year:Mr(e.date)},viewMode:"day"}))}this.rangesProcessing(e)}}yearSelectHandler(e){if(e&&!e.isDisabled){if(e.isSelected=!0,"year"!==this._config.minMode){if(e.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:Mr(e.date)},viewMode:"month"}))}this.rangesProcessing(e)}}rangesProcessing(e){1===this._rangeStack.length&&(this._rangeStack=e.date>=this._rangeStack[0]?[this._rangeStack[0],e.date]:[e.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date),0===this._rangeStack.length&&(this._rangeStack=[e.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const e of this._subs)e.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(e){e&&(this._rangeStack=e.value instanceof Date?[e.value]:e.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(e){let i=new Date(e);if(this._config.maxDate){const r=this._config.maxDate.getTime(),a=e.getTime()+864e5*(this._config.maxDateRange||0);i=a>r?new Date(this._config.maxDate):new Date(a)}else i.setDate(e.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(i)}static{this.\u0275fac=function(i){return new(i||t)(G(zn),G(Fl),G(Cu),G(Bt),G(Cr),G(bu),G(Ll))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-daterangepicker-container"]],viewQuery:function(i,r){if(1&i&&(En(Ej,5),En(GDe,5)),2&i){let a;
1Vt(a=Ut())&&(r.startTimepicker=a.first),Vt(a=Ut())&&(r.endTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&be("click",function(s){return r._stopPropagation(s)}),2&i&&Kt("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[fn([Cu,bu,Cr,Ll]),Sn],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(oe(0,oSe,10,11,"div",2),M(1,"async")),2&i&&T("ngIf",E(1,1,r.viewMode))},dependencies:[Zt,oa,mh,I_,Un,Kv,$v,Yv,fw,hw,uw,Ii],encapsulation:2,data:{animation:[cw]}})}}return t})(),ZSe=(()=>{class t extends tk{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(e,i,r,a,s,o,l){super(e,i,r,a,s,o,l),e.setStyle(a.nativeElement,"display","inline-block"),e.setStyle(a.nativeElement,"position","static")}static{this.\u0275fac=function(i){return new(i||t)(G(zn),G(Fl),G(Cu),G(Bt),G(Cr),G(bu),G(Ll))}}static{this.\u0275cmp=vt({type:t,selectors:[["bs-daterangepicker-inline-container"]],hostVars:2,hostBindings:function(i,r){1&i&&be("click",function(s){return r._stopPropagation(s)}),2&i&&Kt("disabled",r.disabledValue)("readonly",r.readonlyValue)},features:[fn([Cu,bu,Cr,Ll]),Sn],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(i,r){1&i&&(oe(0,CSe,10,11,"div",2),M(1,"async")),2&i&&T("ngIf",E(1,
11,r.viewMode))},dependencies:[Zt,oa,mh,I_,Un,Kv,$v,Yv,fw,hw,uw,Ii],encapsulation:2,data:{animation:[cw]}})}}return t})();const QSe={provide:ns,useExisting:qt(()=>pd),multi:!0},XSe={provide:ua,useExisting:qt(()=>pd),multi:!0};let Du,pd=(()=>{class t{constructor(e,i,r,a,s){this._picker=e,this._localeService=i,this._renderer=r,this._elRef=a,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new jt}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}ngOnInit(){const e=i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&e(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(e)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(om()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}_setInputValue(e){const i=e?Zo(e,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",i)}validate(e){const i=e.value;if(null==i||""===i)return null;if(BC(i)){if(!pu(i))return{bsDate:{invalid:i}};if(this._picker&&this._picker.minDate&&wc(i,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Pl(i,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(e){const i=this._localeService.currentLocale;if(!xa(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);if(this._value=Uv(e,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc){const a=wH(this._value);this._value=null===a?void 0:a}}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(e){this._picker.isDisabled=e,e?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}static{this.\u0275fac=function(i){return new(i||t)(G(wu,1),G(jA),G(zn),G(Bt),G(gr))}}static{this.\u0275dir=lt({type:t,selectors:[["input","bsDatepicker",""]],hostBindings:function(i,r){1&i&&be("change",function(s){return r.onChange(s)})("blur",function(){return r.onBlur()})("keyup.esc",function(){return r.hide()})("keydown.enter",function(){return r.hide()})},features:[fn([QSe,XSe])]})}}return t})(),JSe=(()=>{class t extends Fl{constructor(){super(...arguments),this.displayMonths=2}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=vi(t)))(r||t)}})()}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),eTe=(()=>{class t{get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){this._bsValue!==e&&(e&&this.bsConfig?.initCurrentTime&&(e=Lj(e)),this.initPreviousValue(),this._bsValue=e,this.bsValueChange.emit(e))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(e,i,r,a,s){this._config=e,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new nt,this.isDisabled=!1,this.bsValueChange=new Xe,this._subs=[],this._rangeInputFormat$=new nt,this._datepicker=s.createLoader(i,a,r),Object.assign(this,e),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new an(this.isOpen)}ngOnInit(){this.isDestroy$=new nt,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(e){e.bsConfig&&(e.bsConfig.currentValue?.initCurrentTime&&e.bsConfig.currentValue?.initCurrentTime!==e.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Lj(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(e.bsConfig.currentValue&&e.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(Cn(e=>e!==this.isOpen),Lt(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Fl,useValue:this._config}).attach(tk).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(Cn(e=>e&&e[0]&&!!e[1])).subscribe(e=>{this.initPreviousValue(),this.bsValue=e,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){Du=this._bsValue}keepDatepickerModalOpened(){return!!(Du&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===Du?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===Du?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===Du?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===Du?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===Du?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===Du?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:Rj(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:MSe(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const e of this._subs)e.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(e=>e.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(i){return new(i||t)(G(JSe),G(Bt),G(zn),G(Wa),G(Fm))}}static{this.\u0275dir=lt({type:t,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&Kt("readonly",r.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[fn([Fm]),ci]})}}return t})();const tTe={provide:ns,useExisting:qt(()=>Yj),multi:!0},nTe={provide:ua,useExisting:qt(()=>Yj),multi:!0};let Yj=(()=>{class t{constructor(e,i,r,a,s){this._picker=e,this._localeService=i,this._renderer=r,this._elRef=a,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._val
1idatorChange=Function.prototype,this._subs=new jt}ngOnInit(){this._picker._bsValue&&(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(om()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(e){(13===e.keyCode||"Enter"===e.code)&&this.hide()}_setInputValue(e){let i="";if(e){const r=e[0]?Zo(e[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",a=e[1]?Zo(e[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";i=r&&a?r+this._picker._config.rangeSeparator+a:""}this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(e){let i=e.value;const r=[];if(null==i||!yr(i))return null;i=i.slice().sort((o,l)=>o.getTime()-l.getTime());const a=pu(i[0]),s=pu(i[1]);return a?s?(this._picker&&this._picker.minDate&&wc(i[0],this._picker.minDate,"date")&&(i[0]=this._picker.minDate,r.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Pl(i[1],this._picker.maxDate,"date")&&(i[1]=this._picker.maxDate,r.push({bsDate:{maxDate:this._picker.maxDate}})),r.length>0?(this.writeValue(i),r):null):{bsDate:{invalid:i[1]}}:{bsDate:{invalid:i[0]}}}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(e){const i=this._localeService.currentLocale;if(!xa(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);let a=[];if("string"==typeof e){const s=this._picker._config.rangeSeparator.trim();a=e.replace(/[^-]/g,"").length>1?e.split(this._picker._config.rangeSeparator):e.split(s.length>0?s:this._picker._config.rangeSeparator).map(o=>o.trim())}Array.isArray(e)&&(a=e),this._value=a.map(s=>this._picker._config.useUtc?wH(Uv(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):Uv(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(s=>isNaN(s.valueOf())?void 0:s)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(e){this._picker.isDisabled=e,e?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static{this.\u0275fac=function(i){return new(i||t)(G(eTe,1),G(jA),G(zn),G(Bt),G(gr))}}static{this.\u0275dir=lt({type:t,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(i,r){1&i&&be("change",function(s){return r.onChange(s)})("keyup.esc",function(){return r.hide()})("keydown",function(s){return r.onKeydownEvent(s)})("blur",function(){return r.onBlur()})},features:[fn([tTe,nTe])]})}}return t})(),Bl=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=bn({type:t})}static{this.\u0275inj=Ft({imports:[yi,Mj,$v,Kv,ek,KSe,tk,ZSe]})}}return t})();function iTe(t,n){1&t&&fe(0,"app-notifications")}function rTe(t,n){1&t&&(m(0,"div",64),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"FromDateRequired")," "))}function aTe(t,n){if(1&t&&(m(0,"div",20)(1,"label"),v(2),M(3,"translate"),p(),m(4,"div",61),fe(5,"input",62)(6,"img",63),oe(7,rTe,3,3,"div",25),p()()),2&t){let e;const i=B();u(2),P(E(3,2,"LeaveDate")),u(5),T("ngIf",(null==(e=i.form.get("startDate"))?null:e.invalid)&&
1(null==(e=i.form.get("startDate"))?null:e.touched))}}function sTe(t,n){if(1&t&&(m(0,"option",66),v(1),p()),2&t){const e=n.$implicit;T("value",e),u(),P(e)}}function oTe(t,n){1&t&&(m(0,"div",64),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NoOfRequired")," "))}function lTe(t,n){if(1&t&&(m(0,"div",20)(1,"label"),v(2),M(3,"translate"),m(4,"span",64),v(5," *"),p()(),m(6,"select",65)(7,"option",66),v(8),M(9,"translate"),p(),oe(10,sTe,2,2,"option",67),p(),m(11,"span",68),fe(12,"img",69),v(13),M(14,"translate"),m(15,"b"),v(16),p()(),oe(17,oTe,3,3,"div",25),p()),2&t){let e;const i=B();u(2),P(E(3,8,"NumberDaysRequired")),u(4),T("disabled",!(null!=i.response&&i.response.canTakeLeaveFlg)),u(),T("value",null),u(),P(E(9,10,"Select")),u(2),T("ngForOf",i.requestedDaysOptions),u(3),_e(" ",E(14,12,"MaximumNumber"),""),u(3),P(i.eligibleDays),u(),T("ngIf",0==(null==(e=i.form.get("requestedDays"))?null:e.value)&&i.isSubmitted)}}function cTe(t,n){if(1&t&&(m(0,"div",70),v(1),p()),2&t){const e=B();u(),_e(" ",null==e.response?null:e.response.emergencyString," ")}}function dTe(t,n){if(1&t&&(m(0,"div",64),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}function uTe(t,n){if(1&t){const e=qe();m(0,"div",71)(1,"button",72),v(2),M(3,"translate"),p(),m(4,"button",73),be("click",function(){return Ce(e),we(B().goBack())}),v(5),M(6,"translate"),p()()}if(2&t){const e=B();u(),T("disabled",!(null!=e.response&&e.response.canTakeLeaveFlg)),u(),P(E(3,3,"Submit")),u(3),_e(" ",E(6,5,"Cancel")," ")}}function hTe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),_e(" ",e.inTime," ")}}function fTe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),_e(" ",e.outTime," ")}}function pTe(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td"),oe(4,hTe,2,1,"div",74),p(),m(5,"td"),oe(6,fTe,2,1,"div",74),p()()),2&t){const e=n.$implicit;u(2),P(e.attendanceDate),u(2),T("ngForOf",e.inOutInfo),u(2),T("ngForOf",e.inOutInfo)}}function mTe(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,pTe,7,3,"tr",74),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.myAttendance.attendanceData)}}function gTe(t,n){1&t&&(m(0,"div",75)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}let _Te=(()=>{class t{notificationService;_httpService;fb;http;renderer;router;translate;route;datePipe;form;isSubmitted=!1;errorMessage="";title="";leaveType=0;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";leaveBalance="";emergencyLeave=id.EmergencyLeave;eligibleDays=0;myAttendance;requestedDaysOptions=[];response;emergencyString="";destroy$=new nt;constructor(e,i,r,a,s,o,l,d,h){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.router=o,this.translate=l,this.route=d,this.datePipe=h,this.translate.get("modalTitle").subscribe(C=>{this.modalTitle=C}),this.translate.get("emergencyLeaveRequestMessage").subscribe(C=>{this.modalMessage=C}),this.translate.get("successMessage").subscribe(C=>{this.subMessage=C}),this.myAttendance={availableExceseBalance:"",tolalExecese:"",lateBalance:"",emergencyBalance:"",emergencyTransffered:"",emergencyLeaveAvailableDays:"",emergencyLeaveAvailableHours:"",emergencyLeaveAvailableMinutes:"",attendanceData:[{attendanceDate:"",inOutInfo:[{inTime:"",outTime:""}]}]};const _=Wo(new Date),b=this.datePipe.transform(_,"dd/MM/yyyy");this.form=this.fb.group({startDate:[{value:b,disabled:!0},at.required],requestedDays:[{value:null,disabled:!0}]})}ngOnInit(){this.getLeaveEligibleDays(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getLeaveEligibleDays(),this.translate.get("modalTitle").subscribe(i=>{this.modalTitle=i}),this.translate.get("emergencyLeaveRequestMessage").subscribe(i=>{this.modalMessage=i}),this.translate.get("successMessage").subscribe(i=>{this.subMessage=i})})}getMyAttendance(){this.router.navigate(["my-attendance"])}myAttendanceInfo(){this._httpService.getAll("/api/myattendance").subscribe({next:e=>{200==e.code&&0===e.apiCode?(this.myAttendance=e.data,this.myAttendance&&(this.myAttendance.attendanceData=e.data.attendanceData.slice(0,3))):this.myAttendance=null},error:e=>
1{this.myAttendance=null}})}onSubmit(){if(!this.response?.canTakeLeaveFlg)return;this.isSubmitted=!1;const{requestedDays:i}=this.form.value;if(!this.form.valid||0==i||!i)return this.isSubmitted=!0,void this.translate.get("MandatoryFields").subscribe(r=>{this.errorMessage=r});if(this.form.valid){const{startDate:r,requestedDays:a}=this.form.value;this._httpService.post("/api/leaveRequest/emergency-leave-request",{startDate:r,requestedDays:a}).subscribe({next:s=>{200==s.code&&0===s.apiCode?this.openModal():this.isSubmitted=!0},error:s=>{this.isSubmitted=!0}})}else this.form.markAllAsTouched()}openLeaveModal(){const e=document.getElementById("myAttendenceModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["home"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}getLeaveBalance(){this._httpService.getAll("/api/leaveRequest").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.leaveBalance=e.data)},error:e=>{this.errorMessage=e}})}generateDropdown(e){this.requestedDaysOptions=Array.from({length:e},(i,r)=>r+1)}goBack(){this.router.navigate(["home"])}getLeaveEligibleDays(){this._httpService.getAll("/api/leaveRequest/get-emergency-eligible-days").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.response=e.data,this.response&&(this.eligibleDays=e.data.allowedDays,this.leaveBalance=e.data.availableDays),this.eligibleDays>0&&this.generateDropdown(this.eligibleDays),this.response?.canTakeLeaveFlg?this.form.get("requestedDays")?.enable():this.form.get("requestedDays")?.disable())},error:e=>{}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-emergency-leave-request"]],features:[fn([es])],decls:123,vars:73,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[3,"ngSubmit","formGroup"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-lg-6"],["class","form-group",4,"ngIf"],["class","text-center text-danger small",4,"ngIf"],[1,"row","el-brdr-t"],[1,"col-12"],[1,"form-group"],[1,"lbd-r-leaves"],[1,"pbi-n"],[1,"vma",2,"cursor","pointer",3,"click"],["src","./assets/images/cal-check-icon.svg"],["class","text-danger small",4,"ngIf"],["class","col-12 mb-4 mt-2 ppp-btns d-flex",4,"ngIf"],[3,"close","isVisible","title","message","subMessage"],["id","myAttendenceModal","tabindex","-1","role","dialog","aria-labelledby","myAttendenceModal","aria-modal","true",1,"modal","fade","show",2,"padding-right","0.200073px"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[1,"modal-body"],[1,"lb-border"],[1,"leave-b-sec"],[1,"lbd-sec",2,"padding-top","1vw"],[1,"lbd-pb"],[1,"my-attendance","attendance"],[1,"value"],[1,"lbd-pb","sl"],[1,"lbd-pb","vu"],[2,"padding-top","2vw"],[1,"text-center"],[1,"cr-sec"],["id","collapseTwo",1,"accordion-collapse",2,"padding","0"],[1,"accordion-header"],["type","button",1,"accordion-button-inner"],[1,"emergency-leave-summary","text-center"],[1,"text-center",2,"font-weight","bold","color","#1F3870"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[1,"in-icon"],["src","./assets/images/enter.svg",1,"in-out-icons"],[1,"out-icon"],["src","./assets/images/exit.svg",1,"in-out-icons"],[4,"ngIf","ngIfElse"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-outline-gray","mb-3","w-50",3,"click"],[1,"iwi"],["formControlName","startDate","type","text","id","fromDate","disabled","",1,"form-control"],["src","./assets/images/calendar-gray.svg"],[1,"text-danger","small"],["formControlName","requestedDays",1,"form-select",3,"disabled"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],[1,"if-info"],["src","./assets/images/info-icon.svg"],[1,"text-center","text-danger","small"],[1,"col-12","mb-4","mt-2","ppp-btns","d-flex"],["type","submit",1,"btn","btn-secondary",3,"disabled"],["type","button",1,"btn","btn-outline-secondary","ms-auto-style",3,"click"],[4,"ngFor","ngForOf"],[1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,iTe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()()(),m(19,"form",11),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(20,"div",12)(21,"h4",13),v(22),M(23,"translate"),p(),m(24,"div",14)(25,"div",15),oe(26,aTe,8,4,"div",16),p(),m(27,"div",15),oe(28,lTe,18,14,"div",16),p()(),oe(29,cTe,2,1,"div",17),m(30,"div",18)(31,"div",19)(32,"div",20)(33,"div",21)(34,"p"),v(35),M(36,"translate"),m(37,"span",22),v(38),p()()(),m(39,"a",23),be("click",function(){return Ce(a),r.myAttend
1anceInfo(),we(r.openLeaveModal())}),fe(40,"img",24),v(41),M(42,"translate"),p()()(),oe(43,dTe,2,1,"div",25)(44,uTe,7,7,"div",26),p()()()()(),m(45,"app-modal",27),be("close",function(){return Ce(a),we(r.onModalClose())}),p(),m(46,"div",28)(47,"div",29)(48,"div",30)(49,"div",31)(50,"h5"),v(51),M(52,"translate"),p(),m(53,"button",32)(54,"span",33),fe(55,"img",34),p()()(),m(56,"div",35)(57,"div",36)(58,"div",37)(59,"h5"),v(60),M(61,"translate"),p()(),m(62,"div",38)(63,"div",39),fe(64,"span",40),m(65,"span",41),v(66),p(),m(67,"p"),v(68),M(69,"translate"),p()(),m(70,"div",42),fe(71,"span",40),m(72,"span",41),v(73),p(),m(74,"p"),v(75),M(76,"translate"),p()(),m(77,"div",43),fe(78,"span",40),m(79,"span",41),v(80),p(),m(81,"p"),v(82),M(83,"translate"),p()()(),m(84,"div",44)(85,"p",45),v(86),M(87,"translate"),p()(),m(88,"div",46)(89,"div",47)(90,"h2",48)(91,"button",49),v(92),M(93,"translate"),p()(),m(94,"div",50)(95,"span",51),v(96),p()()()()(),m(97,"div",36)(98,"div",52)(99,"div",53)(100,"table",54)(101,"thead")(102,"tr")(103,"th"),v(104),M(105,"translate"),p(),m(106,"th",55),v(107),M(108,"translate"),fe(109,"img",56),p(),m(110,"th",57),v(111),M(112,"translate"),fe(113,"img",58),p()()(),oe(114,mTe,3,1,"ng-container",59)(115,gTe,4,3,"ng-template",null,0,ni),p()()()(),fe(117,"br"),m(118,"div",45)(119,"button",60),be("click",function(){return Ce(a),we(r.getMyAttendance())}),v(120),M(121,"translate"),p()()()()()()(),fe(122,"app-footer")}if(2&i){let a;const s=Di(116);u(),T("ngIf",null==(a=E(2,37,r.notificationService.notification$))?null:a.show),u(8),P(E(10,39,"CreateRequest")),u(4),T("routerLink","/home"),u(),P(E(15,41,"Home")),u(3),P(E(18,43,"EmergencyLeaveRequest")),u(2),T("formGroup",r.form),u(3),P(E(23,45,"EmergencyLeave")),u(4),T("ngIf",null==r.response?null:r.response.canTakeLeaveFlg),u(2),T("ngIf",null==r.response?null:r.response.canTakeLeaveFlg),u(),T("ngIf",!(null!=r.response&&r.response.canTakeLeaveFlg)),u(6),_e("",E(36,47,"AvailableDays")," "),u(3),P(r.leaveBalance||"-"),u(3),_e(" ",E(42,49,"ViewMyAttendance")," "),u(2),T("ngIf",r.errorMessage),u(),T("ngIf",null==r.response?null:r.response.canTakeLeaveFlg),u(),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage),u(6),P(E(52,51,"AttendanceSummary")),u(9),P(E(61,53,"MyAttendance")),u(6),P((null==r.myAttendance?null:r.myAttendance.availableExceseBalance)||"-"),u(2),_e("",E(69,55,"Availableleavehoursuntiltoday")," "),u(5),P((null==r.myAttendance?null:r.myAttendance.tolalExecese)||"-"),u(2),_e("",E(76,57,"Totalhoursofleaveused")," "),u(5),P((null==r.myAttendance?null:r.myAttendance.lateBalance)||"-"),u(2),_e("",E(83,59,"Totalhoursofdelay")," "),u(4),Vi("",E(87,61,"emergencyTransferred")," ",(null==r.myAttendance?null:r.myAttendance.emergencyTransffered)||"-"," "),u(6),_e(" ",E(93,63,"EmergencyLeaveAvailableDaysLabel")," "),u(4),_e(" ",(null==r.myAttendance?null:r.myAttendance.emergencyBalance)||"-"," "),u(8),P(E(105,65,"Date")),u(3),P(E(108,67,"Enter")),u(4),P(E(112,69,"Exit")),u(3),T("ngIf",r.myAttendance&&(null==r.myAttendance.attendanceData?null:r.myAttendance.attendanceData.length)>0)("ngIfElse",s),u(6),P(E(121,71,"ViewAll"))}},dependencies:[ri,ii,fi,Qr,uc,hc,da,zo,Ur,Zr,_r,Hr,Zs,hi,ui,Zt,pn,dn,Un,Bl,yi,Ii,jr],encapsulation:2})}return t})();const vTe=["dp"],yTe=["to"],bTe=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t,showWeekNumbers:!1});function CTe(t,n){1&t&&fe(0,"app-notifications")}function wTe(t,n){1&t&&(m(0,"div",23),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ExtendDateRe")," "))}function DTe(t,n){1&t&&(m(0,"div",23),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DateValidation")," "))}let STe=(()=>{class t{notificationService;_httpService;fb;http;renderer;router;translate;route;datePipe;datepicker;todatepicker;minDate=new Date;form;isSubmitted=!1;errorMessage="";title="Extend Leave request";leaveType=0;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";leaveBalance="";currentLeave={};destroy$=new nt;constructor(e,i,r,a,s,o,l,d,h){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.router=o,this.translate=l,this.route=d,this.datePipe=h,this.translate.get("modalTitle").subscribe(_=>{this.modalTitle=_}),this.translate.get("modalMessage").subscribe(_=>{this.modalMessage=_}),this.translate.get("successMessage").subscribe(_=>{this.subMessage=_}),this.translate.get("ExtendLeaverequest").subscribe(_=>{this.title=_}),this.form=this.fb.group({startDate:[{value:(new Date).toISOString().split("T")[0],disabled:!0}],endDate:[{value:(new Date).toISOString().split("T")[0],disabled:!0}],type:[{value:(new Date).toISOString().split("T")[0],disabled:!0}],extendDate:["",at.required]},{validator:n8})}ngOnInit(){this.translate.get("modalTitle").subscribe(e=>{this.modalTitle=e}),this.translate.get("ExtendLeaverequesthas").subscribe(e=>{this.modalMessage=e}),this.translate.get("successMessage").subscribe(e=>{this.subMessage=e}),this.translate.get("ExtendLeaverequest").subscribe(e=>{this.title=e}
1),this.getExtendLeave(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.translate.get("modalTitle").subscribe(i=>{this.modalTitle=i}),this.translate.get("ExtendLeaverequesthas").subscribe(i=>{this.modalMessage=i}),this.translate.get("successMessage").subscribe(i=>{this.subMessage=i}),this.translate.get("ExtendLeaverequest").subscribe(i=>{this.title=i}),this.getExtendLeave()})}getExtendLeave(){const e=JSON.parse(localStorage.getItem("ExtendItem")||""),[i,r,a]=e?.leaveEndDate.split("/");this.minDate=new Date(`${a}-${r}-${i}`),this.form.patchValue({startDate:e?.leaveStartDate||""}),this.form.patchValue({endDate:e?.leaveEndDate||""}),this.form.patchValue({type:e?.requestType})}getLeaveBalance(){this._httpService.getAll("/api/leaveRequest/GetCurrentLeave").subscribe({next:e=>{if(200==e.code&&0===e.apiCode){this.currentLeave=e.data;var i=this.datePipe.transform(this.currentLeave?.startDate,"MM-dd-yyyy")||"",r=this.datePipe.transform(this.currentLeave?.endDate,"MM-dd-yyyy")||"";this.form.patchValue({startDate:i}),this.form.patchValue({endDate:r}),this.form.patchValue({type:this.currentLeave?.type})}},error:e=>{this.isSubmitted=!0,this.errorMessage=e.statusText}})}onSubmit(){if(this.isSubmitted=!1,this.form.valid){if(this.form.valid){const e=this.form.get("extendDate")?.value,i=co(e),a=JSON.parse(localStorage.getItem("ExtendItem")||"").leaveID;this._httpService.post("/api/leaveRequest/ExtendLeave",{extendDate:i,leaveRequestId:a}).subscribe({next:s=>{200==s.code&&0===s.apiCode?this.openModal():(this.isSubmitted=!0,this.errorMessage=s.message)},error:s=>{this.isSubmitted=!0,this.errorMessage=s}})}}else this.isSubmitted=!0}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["my-requests"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.key)||e.preventDefault()}goBack(){this.router.navigate(["my-requests"])}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-extend-leave-request"]],viewQuery:function(i,r){if(1&i&&(En(vTe,5),En(yTe,5)),2&i){let a;Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first)}},features:[fn([es])],decls:72,vars:42,consts:[["dp","bsDatepicker"],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[3,"ngSubmit","formGroup"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],[1,"iwi"],["formControlName","startDate","type","text","id","fromDate","disabled","",1,"form-control"],["src","./assets/images/calendar-gray.svg"],["formControlName","endDate","type","text","id","fromDate","autocomplete","off",1,"form-control"],["src","./assets/images/calendar-gray.svg",3,"click"],["formControlName","type","type","text","id","fromDate",1,"form-control"],[1,"text-danger","small"],["formControlName","extendDate","type","text","bsDatepicker","","id","toDate","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["class","text-danger small",4,"ngIf"],[1,"row"],[1,"col-12","mb-4","mt-2","ppp-btns","d-flex"],["type","submit",1,"btn","btn-secondary"],["type","button",1,"btn","btn-outline-secondary","ms-auto-style",3,"click"],[3,"close","isVisible","title","message","subMessage"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,CTe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()()(),m(19,"form",11),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(20,"div",12)(21,"h4",13),v(22),p(),m(23,"div",14)(24,"div",15)(25,"div",16)(26,"label"),v(27),M(28,"translate"),p(),m(29,"div",17),fe(30,"input",18)(31,"img",19),p()()(),m(32,"div",15)(33,"div",16)(34,"label"),v(35),M(36,"translate"),p(),m(37,"div",17),fe(38,"input",20),m(39,"img",21),be("click",function(){return Ce(a),we(r.openToDatePicker())}),p()()()(),m(40,"div",15)(41,"div",16)(42,"label"),v(43),M(44,"translate"),p(),m(45,"div",17),fe(46,"input",22)(47,"img",19),p()()(),m(48,"div",15)(49,"div",16)(50,"label"),v(51),M(52,"translate"),m(53,"span",23),v(54," *"),p()(),m(55,"div",17)(56,"input",24,0),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}
1),p(),m(58,"img",21),be("click",function(){return Ce(a),we(r.openDatePicker())}),p(),oe(59,wTe,3,3,"div",25),p()()()(),m(60,"div",26),oe(61,DTe,3,3,"div",25),p(),m(62,"div",26)(63,"div",27)(64,"button",28),v(65),M(66,"translate"),p(),m(67,"button",29),be("click",function(){return Ce(a),we(r.goBack())}),v(68),M(69,"translate"),p()()()()()()(),m(70,"app-modal",30),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(71,"app-footer")}if(2&i){let a,s;u(),T("ngIf",null==(a=E(2,20,r.notificationService.notification$))?null:a.show),u(8),P(E(10,22,"CreateRequest")),u(4),T("routerLink","/home"),u(),P(E(15,24,"Home")),u(3),P(E(18,26,"ExtendLeave")),u(2),T("formGroup",r.form),u(3),P(r.title),u(5),P(E(28,28,"FromDate")),u(8),P(E(36,30,"ToDate")),u(8),P(E(44,32,"Type")),u(8),_e("",E(52,34,"ExtendDate")," "),u(5),T("bsConfig",In(40,bTe,r.minDate)),u(3),T("ngIf",(null==(s=r.form.get("extendDate"))?null:s.invalid)&&(null==(s=r.form.get("extendDate"))?null:s.touched)||!(null!=(s=r.form.get("extendDate"))&&s.value)&&r.isSubmitted),u(2),T("ngIf",null==r.form.errors?null:r.form.errors.dateRangeInvalid),u(4),P(E(66,36,"Submit")),u(3),_e(" ",E(69,38,"Cancel")," "),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[jr,yi,Zt,Ii,ri,ii,fi,Qr,da,Ur,Zr,_r,Hr,Zs,pn,dn,Bl,wu,pd,hi,ui],encapsulation:2})}return t})();const TTe=["fileInput"],xTe=["dp"],MTe=["to"],ETe=["exit"],ITe=(t,n)=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t,maxDate:n,showWeekNumbers:!1}),ATe=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t,showWeekNumbers:!1}),kTe=()=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1});function NTe(t,n){1&t&&fe(0,"app-notifications")}function RTe(t,n){1&t&&(m(0,"li",37),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"AnnualLeaveRequest")))}function PTe(t,n){1&t&&(m(0,"li",37),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"SickLeaveRequest")))}function OTe(t,n){1&t&&(m(0,"div",20),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"FromDateRequired")," "))}function LTe(t,n){1&t&&(m(0,"div",20),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ToDateRequired")," "))}function FTe(t,n){1&t&&(m(0,"div",31)(1,"div",20),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e(" ",E(3,1,"DateValidation")," "))}function BTe(t,n){if(1&t){const e=qe();m(0,"div",18)(1,"div",19)(2,"label"),v(3),M(4,"translate"),p(),m(5,"div",21),fe(6,"input",38,2),m(8,"img",23),be("click",function(){return Ce(e),we(B().openExitDatePicker())}),p()()()()}2&t&&(u(3),P(E(4,2,"exitDate")),u(3),T("bsConfig",Up(4,kTe)))}function VTe(t,n){if(1&t&&(m(0,"div",19)(1,"label"),v(2),M(3,"translate"),p()()),2&t){const e=B();u(2),Vi("",E(3,2,"SupervisorName"),": ",null==e.leaveInfo?null:e.leaveInfo.supervisorName," ")}}function UTe(t,n){if(1&t&&(m(0,"label"),fe(1,"input",39),v(2),p()),2&t){const e=B();u(2),_e(" ",null==e.leaveInfo?null:e.leaveInfo.confirmation1," ")}}function HTe(t,n){if(1&t&&(m(0,"label"),fe(1,"input",40),v(2),p()),2&t){const e=B();u(2),_e(" ",null==e.leaveInfo?null:e.leaveInfo.confirmation2," ")}}function jTe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.images[0].title," ")}}function zTe(t,n){if(1&t){const e=qe();m(0,"div",41)(1,"input",42,3),be("change",function(r){return Ce(e),we(B().onFileSelected(r))}),p(),oe(3,jTe,2,1,"div",4),p()}if(2&t){const e=B();u(3),T("ngIf",e.images.length>0)}}function YTe(t,n){if(1&t&&(m(0,"div",20),v(1),p()),2&t){const e=B();u(),_e(" ",e.fileError," ")}}function $Te(t,n){1&t&&(m(0,"div",43)(1,"p")(2,"strong"),v(3),M(4,"translate"),p()(),m(5,"ul",44)(6,"li"),v(7),M(8,"translate"),p(),m(9,"li"),v(10),M(11,"translate"),p()()()),2&t&&(u(3),P(E(4,3,"AllowedFileTypesSize")),u(4),P(E(8,5,"Acceptedfiletypes")),u(3),P(E(11,7,"MaximumFileSize")))}function WTe(t,n){if(1&t&&(m(0,"div",45)(1,"div",19)(2,"div",46)(3,"p"),v(4),M(5,"translate"),m(6,"span",47),v(7),p()()()()()),2&t){const e=B();u(4),_e("",E(5,2,"AvailableDays")," "),u(3),P((null==e.leaveInfo?null:e.leaveInfo.availableBalance)||"-")}}function GTe(t,n){if(1&t&&(m(0,"div",20),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}let qTe=(()=>{class t{notificationService;_httpService;fb;http;renderer;router;translate;route;fileInput;datepicker;todatepicker;exitdatepicker;minDate=null;maxDate=null;form;isSubmitted=!1;errorMessage="";title="";leaveType=0;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";leaveBalance="";emergencyLeave=id.EmergencyLeave;sickLeave=id.SickLeave;fileError="";maxFileSizeMB=1;leaveInfo={availableBalance:"0",displayExitDate:!1,supervisorName:"",supervisorUserName:"",confirmation1:"",confirmation2:"",isError:!1};type="";files=[];allowedExtensions=".jpeg,.jpg,.png,.pdf";images=[];fileExtension="";destroy$=new nt;minDates=Wo(new Date);constructor(e,i,r,a,s,o,l,d){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.router=o,this.translate=l,this.route=d,this.translate.get("modalTitle").subscribe(h=>{this.modalTitle=h}),this.translate.get("annualLeaveRequestMessage").subscribe(h=>{this.modalMessage=h}),this.form=this.fb.group({startDate:[{value:Wo(new Date),disabled:!0},at.required],endDate:["",at.required],supervisorName:[{value:"",disabled:!0}],exitDate:[null],confirm1:[!1],confirm2:[!1]},{validator:n8})}ngOnInit(){this.titleSet(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.titleSet(),this.translate.get("modalTitle").subscribe(i=>{this.modalTitle=i}),this.translate.get("annualLeaveRequestMessage").subscribe(i=>{this.modalMessage=i})}),this.form.get("startDate")?.valueChanges.subscribe(e=>{if(e){this.minDates=Wo(e);const i=this.form.get("endDate")?.value;i&&new Date(i)<new Date(e)&&this.form.get("endDate")?.reset()}})}getLeaveBalance(){this._httpService.getAll("/api/leaveRequest").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.leaveBalance=e.data||0)},error:e=>{this.isSubmitted=!0,this.errorMessage=e?.error?.message,this.errorMessage||this.translate.get("Somethingwentwrong").subscribe(i=>{this.errorMessage=i})}})}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}openExitDatePicker(){this.exitdatepicker.show()}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.ke
1y)||e.preventDefault()}removeImage(e){const i=this.images.indexOf(e);-1!==i&&(this.images.splice(i,1),this.files.splice(i,1))}onFileSelected(e){this.files=[],this.images=[],this.files||(this.files=[]),this.files=[...this.files,...e.target.files];const i=1024*this.maxFileSizeMB*1024;for(let r=0;r<this.files.length;r++){const a=this.files[r];if(a.size>i)return this.translate.get("Filesizeexceedslimit").subscribe(o=>{this.fileError=o}),this.files=[],void(this.images=[]);if(this.fileExtension=a.type.substring(a.type.lastIndexOf(".")).toLowerCase(),this.fileExtension=this.fileExtension.replace("image/",""),this.fileExtension=this.fileExtension.replace("application/",""),!this.allowedExtensions.includes(this.fileExtension))return void this.translate.get("Pleaseselectonly").subscribe(o=>{this.fileError=o});this.fileError="";const s=new FileReader;s.readAsDataURL(a),s.onload=()=>{this.fileInput.nativeElement.value="",this.images.push({url:s.result,title:a.name})}}}getAnnuaScreenInfo(){this._httpService.getAll("/api/leaveRequest/getAnnualLeaveRequestScreenInfo").subscribe(e=>{200===e.code&&0===e.apiCode&&(this.leaveInfo=e.data||{},null==this.leaveInfo?.availableBalance&&(this.leaveInfo.availableBalance="-"),this.form.patchValue({supervisorName:this.leaveInfo?.supervisorName}))})}titleSet(){const e=this.route.snapshot.paramMap.get("type");"annual"==e?this.translate.get("AnnualLeaveRequest").subscribe(i=>{this.title=i,this.leaveType=id.AnnualLeave,this.minDate=Wo(new Date),this.minDates=Wo(new Date),this.maxDate=null,this.getAnnuaScreenInfo()}):"sick"==e?this.translate.get("SickLeaveRequest").subscribe(i=>{this.title=i,this.leaveType=id.SickLeave,this.minDates=Wo(new Date),this.minDate=null,this.maxDate=Wo(new Date),this.form.get("startDate")?.enable(),this.form.patchValue({startDate:""})}):this.translate.get("EmergencyLeaveRequest").subscribe(i=>{this.title=i,this.leaveType=id.EmergencyLeave,this.form.get("noOfDays")?.setValidators([at.required]),this.form.get("endDate")?.clearValidators()})}onSubmit(){if(this.errorMessage="",this.isSubmitted=!1,this.leaveType==id.SickLeave){if(this.isSubmitted=!0,!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(l=>{this.fileError=l});const e=this.form.get("startDate")?.value,i=this.form.get("endDate")?.value;if(!e||!i)return;const r=co(e),a=co(i);this._httpService.post("/api/leaveRequest/create-sick-leave-request",{FileExtension:this.fileExtension,base64:this.images.length>0?this.images[0].url:"",startDate:r,endDate:a}).subscribe({next:l=>{200==l.code&&0===l.apiCode?(this.translate.get("sickLeaveRequestMessage").subscribe(d=>{this.modalMessage=d}),this.translate.get("successMessage").subscribe(d=>{this.subMessage=d}),this.openModal()):this.isSubmitted=!0},error:l=>{this.isSubmitted=!0}})}else if(this.form.valid){const e=this.form.get("startDate")?.value,i=this.form.get("endDate")?.value,r=this.form.get("exitDate")?.value,a=co(e),s=co(i),o=co(r);this.leaveType==id.AnnualLeave&&this._httpService.post("/api/leaveRequest",{startDate:a,endDate:s,leaveType:this.leaveType,exitDate:o}).subscribe({next:d=>{200==d.code&&0===d.apiCode?(this.translate.get("annualLeaveRequestMessage").subscribe(h=>{this.modalMessage=h}),this.translate.get("successMessage").subscribe(h=>{this.subMessage=h}),this.openModal()):this.isSubmitted=!0},error:d=>{this.isSubmitted=!0}})}else if(this.form.markAllAsTouched(),!this.form.valid)return void(this.isSubmitted=!0)}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=document.getElementById("exampleModal");if(e){const i=bootstrap.Modal.getInstance(e);i&&i.hide()}this.router.navigate(["my-requests"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}goBack(e){this.router.navigate(["my-requests"])}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-leave-request"]],viewQuery:function(i,r){if(1&i&&(En(TTe,5),En(xTe,5),En(MTe,5),En(ETe,5)),2&i){let a;
1Vt(a=Ut())&&(r.fileInput=a.first),Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first),Vt(a=Ut())&&(r.exitdatepicker=a.first)}},decls:69,vars:50,consts:[["dp","bsDatepicker"],["to","bsDatepicker"],["exit","bsDatepicker"],["fileInput",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["class","breadcrumb-item active","aria-current","page",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],[1,"text-danger","small"],[1,"iwi"],["bsDatepicker","","formControlName","startDate","type","text","id","fromDate","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["src","./assets/images/calendar-gray.svg",3,"click"],["class","text-danger small",4,"ngIf"],["formControlName","endDate","type","text","bsDatepicker","","id","toDate","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["class","row",4,"ngIf"],["class","col-lg-6",4,"ngIf"],["class","form-group",4,"ngIf"],["class","file-upload-wrapper file-alignment",4,"ngIf"],["class","file-upload-validation",4,"ngIf"],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12","mb-4","mt-2","ppp-btns","d-flex"],["type","submit",1,"btn","btn-secondary",3,"disabled"],["type","button",1,"btn","btn-outline-secondary","ms-auto-style",3,"click"],[3,"close","isVisible","title","message","subMessage"],["aria-current","page",1,"breadcrumb-item","active"],["formControlName","exitDate","type","text","bsDatepicker","","id","exitDate","autocomplete","off",1,"form-control",3,"bsConfig"],["type","checkbox","formControlName","confirm1"],["type","checkbox","formControlName","confirm2"],[1,"file-upload-wrapper","file-alignment"],["type","file","accept","image/*,.pdf,.doc,.docx","name","file-upload-field","value","",1,"file-upload-field",3,"change"],[1,"file-upload-validation"],[1,"list-style"],[1,"col-12"],[1,"lbd-r-leaves"],[1,"pbi-n"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,NTe,1,0,"app-notifications",4),M(2,"async"),m(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"div",9)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",10)(12,"li",11)(13,"a",12),v(14),M(15,"translate"),p()(),oe(16,RTe,3,3,"li",13)(17,PTe,3,3,"li",13),p()()(),m(18,"form",14),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(19,"div",15)(20,"h4",16),v(21),p(),m(22,"div",17)(23,"div",18)(24,"div",19)(25,"label"),v(26),M(27,"translate"),m(28,"span",20),v(29," *"),p()(),m(30,"div",21)(31,"input",22,0),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(33,"img",23),be("click",function(){return Ce(a),we(r.openDatePicker())}),p(),oe(34,OTe,3,3,"div",24),p()()(),m(35,"div",18)(36,"div",19)(37,"label"),v(38),M(39,"translate"),m(40,"span",20),v(41," *"),p()(),m(42,"div",21)(43,"input",25,1),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(45,"img",23),be("click",function(){return Ce(a),we(r.openToDatePicker())}),p(),oe(46,LTe,3,3,"div",24),p()()(),oe(47,FTe,4,3,"div",26)(48,BTe,9,5,"div",27)(49,VTe,4,4,"div",28)(50,UTe,3,1,"label",4)(51,HTe,3,1,"label",4)(52,zTe,4,1,"div",29)(53,YTe,2,1,"div",24)(54,$Te,12,9,"div",30),fe(55,"br")(56,"br"),p(),m(57,"div",31),oe(58,WTe,8,4,"div",32)(59,GTe,2,1,"div",24),m(60,"div",33)(61,"button",34),v(62),M(63,"translate"),p(),m(64,"button",35),be("click",function(){return Ce(a),we(r.goBack(r.leaveType))}),v(65),M(66,"translate"),p()()()()()()(),m(67,"app-modal",36),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(68,"app-footer")}if(2&i){let a,s,o,l;u(),T("ngIf",null==(a=E(2,31,r.notificationService.notification$))?null:a.show),u(8),P(E(10,33,"CreateRequest")),u(4),T("routerLink","/home"),u(),P(E(15,35,"Home")),u(2),T("ngIf",r.leaveType!=r.sickLeave),u(),T("ngIf",r.leaveType==r.sickLeave),u(),T("formGroup",r.form),u(3),P(r.title),u(5),P(E(27,37,"FromDate")),u(5),T("bsConfig",Zc(45,ITe,r.minDate,r.maxDate)),u(3),T("ngIf",(null==(s=r.form.get("startDate"))?null:s.invalid)&&(null==(s=r.form.get("startDate"))?null:s.touched)||
1!(null!=(s=r.form.get("startDate"))&&s.value)&&r.isSubmitted),u(4),P(E(39,39,"ToDate")),u(5),T("bsConfig",In(48,ATe,r.minDates)),u(3),T("ngIf",(null==(o=r.form.get("endDate"))?null:o.invalid)&&(null==(o=r.form.get("endDate"))?null:o.touched)||!(null!=(o=r.form.get("endDate"))&&o.value)&&r.isSubmitted),u(),T("ngIf",null==r.form.errors?null:r.form.errors.dateRangeInvalid),u(),T("ngIf",r.leaveType!=r.sickLeave&&(null==r.leaveInfo?null:r.leaveInfo.displayExitDate)),u(),T("ngIf",r.leaveType!=r.sickLeave),u(),T("ngIf",(null==r.leaveInfo?null:r.leaveInfo.confirmation1)&&r.leaveType!=r.sickLeave),u(),T("ngIf",(null==r.leaveInfo?null:r.leaveInfo.confirmation2)&&r.leaveType!=r.sickLeave),u(),T("ngIf",r.leaveType==r.sickLeave),u(),T("ngIf",r.fileError),u(),T("ngIf",r.leaveType==r.sickLeave),u(4),T("ngIf",r.leaveType!=r.sickLeave),u(),T("ngIf",r.isSubmitted),u(2),T("disabled",r.leaveType!=r.sickLeave&&((null==r.leaveInfo?null:r.leaveInfo.confirmation1)&&!(null!=(l=r.form.get("confirm1"))&&l.value)||(null==r.leaveInfo?null:r.leaveInfo.confirmation2)&&!(null!=(l=r.form.get("confirm2"))&&l.value))),u(),P(E(63,41,"Submit")),u(3),_e(" ",E(66,43,"Cancel")," "),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[jr,yi,Zt,Ii,ri,ii,fi,Qr,da,hE,Ur,Zr,_r,Hr,Zs,pn,dn,Bl,wu,pd,hi,ui],encapsulation:2})}return t})();function KTe(t,n){1&t&&(m(0,"div",27),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"LoanAmountRequiired")," "))}function ZTe(t,n){1&t&&(m(0,"div",27),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"No.ofInstallmentsRequiired")," "))}function QTe(t,n){if(1&t&&(m(0,"div",27),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function XTe(t,n){if(1&t&&(m(0,"div",14)(1,"h4",15),v(2),M(3,"translate"),p(),m(4,"div",16)(5,"div",17)(6,"div",18)(7,"label"),v(8),M(9,"translate"),p(),fe(10,"input",19),p()(),m(11,"div",17)(12,"div",18)(13,"label"),v(14),M(15,"translate"),p(),fe(16,"input",20),p(),oe(17,KTe,3,3,"div",21),p(),m(18,"div",17)(19,"div",18)(20,"label"),v(21),M(22,"translate"),p(),fe(23,"input",22),p(),oe(24,ZTe,3,3,"div",21),p(),m(25,"div",17)(26,"div",18)(27,"label"),v(28),M(29,"translate"),p(),fe(30,"input",23),p()(),m(31,"div",17)(32,"div",18)(33,"label"),v(34),M(35,"translate"),p(),fe(36,"input",24),p()(),m(37,"div",17)(38,"div",18)(39,"label"),v(40),M(41,"translate"),p(),fe(42,"input",25),p()(),m(43,"div",17)(44,"div",18)(45,"label"),v(46),M(47,"translate"),p(),fe(48,"input",26),p()()(),oe(49,QTe,2,1,"div",21),p()),2&t){let e,i;const r=B();u(2),P(E(3,11,"LoanRequest")),u(6),P(E(9,13,"loanNo")),u(6),P(E(15,15,"applicationDate")),u(3),T("ngIf",(null==(e=r.form.get("applicationDate"))?null:e.invalid)&&(null==(e=r.form.get("applicationDate"))?null:e.touched)),u(4),P(E(22,17,"loanAmount")),u(3),T("ngIf",(null==(i=r.form.get("loanAmount"))?null:i.invalid)&&(null==(i=r.form.get("loanAmount"))?null:i.touched)),u(4),P(E(29,19,"firstInstalmentDate")),u(6),P(E(35,21,"lastInstalmentDate")),u(6),P(E(41,23,"remainingPayment")),u(6),P(E(47,25,"remainingInstallment")),u(3),T("ngIf",r.isSubmitted)}}function JTe(t,n){1&t&&(m(0,"div",28)(1,"p"),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e(" ",E(3,1,"NoDataFound"),""))}let exe=(()=>{class t{_httpService;fb;router;renderer;http;translate;form;isSubmitted=!1;errorMessage="";loanReasonList=[];isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your loan request has";subMessage="been submitted successfully";loanInfo;constructor(e,i,r,a,s,o){this._httpService=e,this.fb=i,this.router=r,this.renderer=a,this.http=s,this.translate=o,this.form=this.fb.group({loanNo:[{value:"",disabled:!0},at.required],applicationDate:[{value:"",disabled:!0},at.required],loanAmount:[{value:"",disabled:!0},at.required],firstInstalmentDate:[{value:"",disabled:!0},at.required],lastInstalmentDate:[{value:"",disabled:!0},at.required],remainingPayment:[{value:"",disabled:!0},at.required],remainingInstallment:[{value:"",disabled:!0},at.required]})}ngOnInit(){this.getLoanInfo()}getLoanInfo(){this._httpService.getAll("/api/profile/get-personal-loan-detail
1s").subscribe({next:e=>{200==e.code&&0===e.apiCode?(this.loanInfo=e.data,this.form.patchValue({loanNo:this.loanInfo?.loanNo}),this.form.patchValue({applicationDate:this.loanInfo?.applicationDate}),this.form.patchValue({loanAmount:this.loanInfo?.loanAmount}),this.form.patchValue({firstInstalmentDate:this.loanInfo?.firstInstalmentDate}),this.form.patchValue({lastInstalmentDate:this.loanInfo?.lastInstalmentDate}),this.form.patchValue({remainingPayment:this.loanInfo?.remainingPayment}),this.form.patchValue({remainingInstallment:this.loanInfo?.remainingInstallment})):this.loanInfo=null},error:e=>{this.loanInfo=null}})}onSubmit(){if(this.isSubmitted=!1,this.form.valid){const{reason:e,reasonRemarks:i,loanAmount:r,noOfInstalments:a}=this.form.value;this.http.post("/api/loan",{applicationDate:this.form.value.applicationDate.value,reason:e,reasonRemarks:i,loanAmount:r,noOfInstalments:a}).subscribe(o=>{200==o.code&&0===o.apiCode?this.openModal():(this.isSubmitted=!0,this.errorMessage=o.message)},o=>{this.isSubmitted=!0,this.errorMessage=o})}else this.form.markAllAsTouched()}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["/home"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G(An),G(zn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-loan-request"]],decls:25,vars:21,consts:[[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[3,"ngSubmit","formGroup"],["class","whitebox cr-sec",4,"ngIf"],["class","container text-center",4,"ngIf"],[3,"close","isVisible","title","message","subMessage"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],["formControlName","loanNo","numbersOnly","","type","text",1,"form-control"],["formControlName","applicationDate","numbersOnly","","type","text",1,"form-control"],["class","text-danger small",4,"ngIf"],["formControlName","loanAmount","numbersOnly","","type","text",1,"form-control"],["type","text","formControlName","firstInstalmentDate","disabled","",1,"form-control"],["type","text","formControlName","lastInstalmentDate","disabled","",1,"form-control"],["type","text","formControlName","remainingPayment","disabled","",1,"form-control"],["type","text","formControlName","remainingInstallment","disabled","",1,"form-control"],[1,"text-danger","small"],[1,"container","text-center"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",5)(10,"li",6)(11,"a",7),v(12),M(13,"translate"),p()(),m(14,"li",8),v(15),M(16,"translate"),p()()(),m(17,"a",9),v(18),M(19,"translate"),p()(),m(20,"form",10),be("ngSubmit",function(){return r.onSubmit()}),oe(21,XTe,50,27,"div",11)(22,JTe,4,3,"div",12),p()()()(),m(23,"app-modal",13),be("close",function(){return r.onModalClose()}),p(),fe(24,"app-footer")),2&i&&(u(7),P(E(8,13,"PersonalLoanInfo")),u(4),T("routerLink","/home"),u(),P(E(13,15,"Home")),u(3),P(E(16,17,"PersonalLoanInfo")),u(2),T("routerLink","/home"),u(),P(E(19,19,"Back")),u(2),T("formGroup",r.form),u(),T("ngIf",r.loanInfo),u(),T("ngIf",!r.loanInfo),u(),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage))},dependencies:[Cm,fi,Qr,da,Ur,Zr,_r,Hr,Zs,hi,ui,ri,ii,pn,dn,Zt],encapsulation:2})}return t})();function Um(t){return t+.5|0}const md=(t,n,e)=>Math.max(Math.min(t,e),n);function Zv(t){return md(Um(2.55*t),0,255)}function Su(t){return md(Um(255*t),0,255)}function gd(t){return md(Um(t/2.55)/100,0,1)}function $j(t){return md(Um(100*t),0,100)}const sl={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},nk=[..."0123456789ABCDEF"],txe=t=>nk[15&t],nxe=t=>nk[(240&t)>>4]+nk[15&t],pw=t=>(240&t)>>4==(15&t);const oxe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Wj(t,n,e){const i=n*Math.min(e,1-e),r=(a,s=(a+t/30)%12)=>e-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function lxe(t,n,e){const i=(r,a=(r+t/60)%6)=>e-e*n*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function cxe(t,n,e){const i=Wj(t,1,.5);let r;for(n+e>1&&(r=1/(n+e),n*=r,e*=r),r=0;r<3;r++)i[r]*=1-n-e,i[r]+=n;return i}function ik(t){const e=t.r/255,i=t.g/255,r=t.b/255,a=Math.max(e,i,r),s=Math.min(e,i,r),o=(a+s)/2;let l,d,h;return a!==s&&(h=a-s,d=o>.5?h/(2-a-s):h/(a+s),l=function dxe(t,n,e,i,r){return t===r?(n-e)/i+(n<e?6:0):n===r?(e-t)/i+2:(t-n)/i+4}(e,i,r,h,a),l=60*l+.5),[0|l,d||0,o]}
1function rk(t,n,e,i){return(Array.isArray(n)?t(n[0],n[1],n[2]):t(n,e,i)).map(Su)}function ak(t,n,e){return rk(Wj,t,n,e)}function Gj(t){return(t%360+360)%360}const qj={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Kj={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let mw;const vxe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,sk=t=>
vendor: 11,138 bytes, line 1
1t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Hm=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function gw(t,n,e){if(t){let i=ik(t);i[n]=Math.max(0,Math.min(i[n]+i[n]*e,0===n?360:1)),i=ak(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Zj(t,n){return t&&Object.assign(n||{},t)}function Qj(t){var n={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(n={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(n.a=Su(t[3]))):(n=Zj(t,{r:0,g:0,b:0,a:1})).a=Su(n.a),n}function wxe(t){return"r"===t.charAt(0)?function yxe(t){const n=vxe.exec(t);let i,r,a,e=255;if(n){if(n[7]!==i){const s=+n[7];e=n[8]?Zv(s):md(255*s,0,255)}return i=+n[1],r=+n[3],a=+n[5],i=255&(n[2]?Zv(i):md(i,0,255)),r=255&(n[4]?Zv(r):md(r,0,255)),a=255&(n[6]?Zv(a):md(a,0,255)),{r:i,g:r,b:a,a:e}}}(t):function fxe(t){const n=oxe.exec(t);let i,e=255;if(!n)return;n[5]!==i&&(e=n[6]?Zv(+n[5]):Su(+n[5]));const r=Gj(+n[2]),a=+n[3]/100,s=+n[4]/100;return i="hwb"===n[1]?function uxe(t,n,e){return rk(cxe,t,n,e)}(r,a,s):"hsv"===n[1]?function hxe(t,n,e){return rk(lxe,t,n,e)}(r,a,s):ak(r,a,s),{r:i[0],g:i[1],b:i[2],a:e}}(t)}class jm{constructor(n){if(n instanceof jm)return n;const e=typeof n;let i;"object"===e?i=Qj(n):"string"===e&&(i=function rxe(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*sl[t[1]],g:255&17*sl[t[2]],b:255&17*sl[t[3]],a:5===n?17*sl[t[4]]:255}:(7===n||9===n)&&(e={r:sl[t[1]]<<4|sl[t[2]],g:sl[t[3]]<<4|sl[t[4]],b:sl[t[5]]<<4|sl[t[6]],a:9===n?sl[t[7]]<<4|sl[t[8]]:255})),e}(n)||function _xe(t){mw||(mw=function gxe(){const t={},n=Object.keys(Kj),e=Object.keys(qj);let i,r,a,s,o;for(i=0;i<n.length;i++){for(s=o=n[i],r=0;r<e.length;r++)a=e[r],o=o.replace(a,qj[a]);a=parseInt(Kj[s],16),t[o]=[a>>16&255,a>>8&255,255&a]}return t}(),mw.transparent=[0,0,0,0]);const n=mw[t.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}(n)||wxe(n)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var n=Zj(this._rgb);return n&&(n.a=gd(n.a)),n}set rgb(n){this._rgb=Qj(n)}rgbString(){return this._valid?function bxe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${gd(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function sxe(t){var n=(t=>pw(t.r)&&pw(t.g)&&pw(t.b)&&pw(t.a))(t)?txe:nxe;return t?"#"+n(t.r)+n(t.g)+n(t.b)+((t,n)=>t<255?n(t):"")(t.a,n):void 0}(this._rgb):void 0}hslString(){return this._valid?function mxe(t){if(!t)return;const n=ik(t),e=n[0],i=$j(n[1]),r=$j(n[2]);return t.a<255?`hsla(${e}, ${i}%, ${r}%, ${gd(t.a)})`:`hsl(${e}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(n,e){if(n){const i=this.rgb,r=n.rgb;let a;const s=e===a?.5:e,o=2*s-1,l=i.a-r.a,d=((o*l==-1?o:(o+l)/(1+o*l))+1)/2;a=1-d,i.r=255&d*i.r+a*r.r+.5,i.g=255&d*i.g+a*r.g+.5,i.b=255&d*i.b+a*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(n,e){return n&&(this._rgb=function Cxe(t,n,e){const i=Hm(gd(t.r)),r=Hm(gd(t.g)),a=Hm(gd(t.b));return{r:Su(sk(i+e*(Hm(gd(n.r))-i))),g:Su(sk(r+e*(Hm(gd(n.g))-r))),b:Su(sk(a+e*(Hm(gd(n.b))-a))),a:t.a+e*(n.a-t.a)}}(this._rgb,n._rgb,e)),this}clone(){return new jm(this.rgb)}alpha(n){return this._rgb.a=Su(n),this}clearer(n){return this._rgb.a*=1-n,this}greyscale(){const n=this._rgb,e=Um(.3*n.r+.59*n.g+.11*n.b);return n.r=n.g=n.b=e,this}opaquer(n){return this._rgb.a*=1+n,this}negate(){const n=this._rgb;return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,this}lighten(n){return gw(this._rgb,2,n),this}darken(n){return gw(this._rgb,2,-n),this}saturate(n){return gw(this._rgb,1,n),this}desaturate(n){return gw(this._rgb,1,-n),this}rotate(n){return function pxe(t,n){var e=ik(t);e[0]=Gj(e[0]+n),e=ak(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,n),this}}function _d(){}const Dxe=(()=>{let t=0;return()=>t++})();function Xn(t){return null==t}function tr(t){if(Array.isArray&&Array.isArray(t))return!0;const n=Object.prototype.toString.call(t);return"[object"===n.slice(0,7)&&"Array]"===n.slice(-6)}function ai(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function zr(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function yo(t,n){return zr(t)?t:n}function kn(t,n){return typeof t>"u"?n:t}const Xj=(t,n)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*n:+t;function Gi(t,n,e){if(t&&"function"==typeof t.call)return t.apply(e,n)}function Ai(t,n,e,i){let r,a,s;if(tr(t))if(a=t.length,i)for(r=a-1;r>=0;r--)n.call(e,t[r],r);else for(r=0;r<a;r++)n.call(e,t[r],r);else if(ai(t))for(s=Object.keys(t),a=s.length,r=0;r<a;r++)n.call(e,t[s[r]],s[r])}function _w(t,n){let e,i,r,a;if(!t||!n||t.length!==n.length)return!1;for(e=0,i=t.length;e<i;++e)if(r=t[e],a=n[e],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function vw(t){if(tr(t))return t.map(vw);if(ai(t)){const n=Object.create(null),e=Object.keys(t),i=e.length;let r=0;for(;r<i;++r)n[e[r]]=vw(t[e[r]]);return n}return t}function Jj(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Txe(t,n,e,i){if(!Jj(t))return;const r=n[t],a=e[t];ai(r)&&ai(a)?Qv(r,a,i):n[t]=vw(a)}function Qv(t,n,e){const i=tr(n)?n:[n],r=i.length;if(!ai(t))return t;const a=(e=e||{}).merger||Txe;let s;for(let o=0;o<r;++o){if(s=i[o],!ai(s))continue;const l=Object.keys(s);for(let d=0,h=l.length;d<h;++d)a(l[d],t,s,e)}return t}function Xv(t,n){return Qv(t,n,{merger:xxe})}function xxe(t,n,e){if(!Jj(t))return;const i=n[t],r=e[t];ai(i)&&ai(r)?Xv(i,r):Object.prototype.hasOwnProperty.call(n,t)||(n[t]=vw(r))}const ez={"":t=>t,x:t=>t.x,y:t=>t.y};function Tu(t,n){return(ez[n]||(ez[n]=function Exe(t){const n=function Mxe(t){const n=t.split("."),e=[];let i="";for(const r of n)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}(t);return e=>{for(const i of n){if(""===i)break;e=e&&e[i]}return e}}(n)))(t)}function ok(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Jv=t=>typeof t<"u",xu=t=>"function"==typeof t,tz=(t,n)=>{if(t.size!==n.size)return!1;for(const e of t)if(!n.has(e))return!1;return!0},nr=Math.PI,ir=2*nr,yw=Number.POSITIVE_INFINITY,kxe=nr/180,ea=nr/2,pf=nr/4,nz=2*nr/3,Mu=Math.log10,Sc=Math.sign;function zm(t){return!function Rxe(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Vl(t){return t*(nr/180)}function sz(t,n){const e=n.x-t.x,i=n.y-t.y,r=Math.sqrt(e*e+i*i);let a=Math.atan2(i,e);return a<-.5*nr&&(a+=ir),{angle:a,distance:r}}function ck(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))}function bo(t){return(t%ir+ir)%ir}function ty(t,n,e,i){const r=bo(t),a=bo(n),s=bo(e),o=bo(a-r),l=bo(s-r),d=bo(r-a),h=bo(r-s);return r===a||r===s||i&&a===s||o>l&&d<h}function Ba(t,n,e){return Math.max(n,Math.min(e,t))}function vd(t,n,e,i=1e-6){return t>=Math.min(n,e)-i&&t<=Math.max(n,e)+i}function dk(t,n,e){e=e||(s=>t[s]<n);let a,i=t.length-1,r=0;for(;i-r>1;)a=r+i>>1,e(a)?r=a:i=a;return{lo:r,hi:i}}const yd=(t,n,e,i)=>dk(t,e,i?r=>{const a=t[r][n];return a<e||a===e&&t[r+1][n]===e}:r=>t[r][n]<e),Fxe=(t,n,e)=>dk(t,e,i=>t[i][n]>=e),oz=["push","pop","shift","splice","unshift"];function lz(t,n){const e=t._chartjs;if(!e)return;const i=e.listeners,r=i.indexOf(n);-1!==r&&i.splice(r,1),!(i.length>0)&&(oz.forEach(a=>{delete t[a]}),delete t._chartjs)}const dz=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function uz(t,n){let e=[],i=!1;return function(...r){e=r,i||(i=!0,dz.call(window,()=>{i=!1,t.apply(n,e)}))}}const uk=t=>"start"===t?"left":"end"===t?"right":"center",ss=(t,n,e)=>"start"===t?n:"end"===t?e:(n+e)/2,bw=t=>0===t||1===t,pz=(t,n,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-n)*ir/e),mz=(t,n,e)=>Math.pow(2,-10*t)*Math.sin((t-n)*ir/e)+1,ny={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ea),easeOutSine:t=>Math.sin(t*ea),easeInOutSine:t=>-.5*(Math.cos(nr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>bw(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>bw(t)?t:pz(t,.075,.3),easeOutElastic:t=>bw(t)?t:mz(t,.075,.3),easeInOutElastic:t=>bw(t)?t:t<.5?.5*pz(2*t,.1125,.45):.5+.5*mz(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let n=1.70158;return(t/=.5)<1?t*t*((1+(n*=1.525))*t-n)*.5:.5*((t-=2)*t*((1+(n*=1.525))*t+n)+2)},easeInBounce:t=>1-ny.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*ny.easeInBounce(2*t):.5*ny.easeOutBounce(2*t-1)+.5};function hk(t){if(t&&"object"==typeof t){const n=t.toString();return"[object CanvasPattern]"===n||"[object CanvasGradient]"===n}return!1}function gz(t){return hk(t)?t:new jm(t)}function fk(t){return hk(t)?t:new jm(t).saturate(.5).darken(.1).hexString()}const jxe=["x","y","borderWidth","radius","tension"],zxe=["color","borderColor","backgroundColor"],_z=new Map;function iy(t,n,e){return function Wxe(t,n){n=n||{};const e=t+JSON.stringify(n);let i=_z.get(e);return i||(i=new Intl.NumberFormat(t,n),_z.set(e,i)),i}(n,e).format(t)}const vz={values:t=>tr(t)?t:""+t,numeric(t,n,e){if(0===t)return"0";const i=this.chart.options.locale;let r,a=t;if(e.length>1){const d=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(d<1e-4||d>1e15)&&(r="scientific"),a=function Gxe(t,n){let e=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const s=Mu(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),iy(t,i,l)},logarithmic(t,n,e){if(0===t)return"0";const i=e[n].significand||t/Math.pow(10,Math.floor(Mu(t)));return[1,2,3,5,10,15].includes(i)||n>.8*e.length?vz.numeric.call(this,t,n,e):""}};var Cw={formatters:vz};const mf=Object.create(null),pk=Object.create(null);function ry(t,n){if(!n)return t;const e=n.split(".");for(let i=0,r=e.length;i<r;++i){const a=e[i];t=t[a]||(t[a]=Object.create(null))}return t}function mk(t,n,e){return"string"==typeof n?Qv(ry(t,n),e):Qv(ry(t,""),n)}class Kxe{constructor(n,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 49,245 bytes, line 1
1,this.hoverBackgroundColor=(i,r)=>fk(r.backgroundColor),this.hoverBorderColor=(i,r)=>fk(r.borderColor),this.hoverColor=(i,r)=>fk(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n),this.apply(e)}set(n,e){return mk(this,n,e)}get(n){return ry(this,n)}describe(n,e){return mk(pk,n,e)}override(n,e){return mk(mf,n,e)}route(n,e,i,r){const a=ry(this,n),s=ry(this,i),o="_"+e;Object.defineProperties(a,{[o]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[o],d=s[r];return ai(l)?Object.assign({},d,l):kn(l,d)},set(l){this[o]=l}}})}apply(n){n.forEach(e=>e(this))}}var rr=new Kxe({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function Yxe(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),t.set("animations",{colors:{type:"color",properties:zxe},numbers:{type:"number",properties:jxe}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>0|n}}}})},function $xe(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function qxe(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,e)=>e.lineWidth,tickColor:(n,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cw.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n&&"dash"!==n}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n})}]);function ww(t,n,e,i,r){let a=n[r];return a||(a=n[r]=t.measureText(r).width,e.push(r)),a>i&&(i=a),i}function gf(t,n,e){const i=t.currentDevicePixelRatio,r=0!==e?Math.max(e/2,.5):0;return Math.round((n-r)*i)/i+r}function yz(t,n){!n&&!t||((n=n||t.getContext("2d")).save(),n.resetTransform(),n.clearRect(0,0,t.width,t.height),n.restore())}function gk(t,n,e,i){bz(t,n,e,i,null)}function bz(t,n,e,i,r){let a,s,o,l,d,h,_,b;const C=n.pointStyle,k=n.rotation,U=n.radius;let Q=(k||0)*kxe;if(C&&"object"==typeof C&&(a=C.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(e,i),t.rotate(Q),t.drawImage(C,-C.width/2,-C.height/2,C.width,C.height),void t.restore();if(!(isNaN(U)||U<=0)){switch(t.beginPath(),C){default:r?t.ellipse(e,i,r/2,U,0,0,ir):t.arc(e,i,U,0,ir),t.closePath();break;case"triangle":h=r?r/2:U,t.moveTo(e+Math.sin(Q)*h,i-Math.cos(Q)*U),Q+=nz,t.lineTo(e+Math.sin(Q)*h,i-Math.cos(Q)*U),Q+=nz,t.lineTo(e+Math.sin(Q)*h,i-Math.cos(Q)*U),t.closePath();break;case"rectRounded":d=.516*U,l=U-d,s=Math.cos(Q+pf)*l,_=Math.cos(Q+pf)*(r?r/2-d:l),o=Math.sin(Q+pf)*l,b=Math.sin(Q+pf)*(r?r/2-d:l),t.arc(e-_,i-o,d,Q-nr,Q-ea),t.arc(e+b,i-s,d,Q-ea,Q),t.arc(e+_,i+o,d,Q,Q+ea),t.arc(e-b,i+s,d,Q+ea,Q+nr),t.closePath();break;case"rect":if(!k){l=Math.SQRT1_2*U,h=r?r/2:l,t.rect(e-h,i-l,2*h,2*l);break}Q+=pf;case"rectRot":_=Math.cos(Q)*(r?r/2:U),s=Math.cos(Q)*U,o=Math.sin(Q)*U,b=Math.sin(Q)*(r?r/2:U),t.moveTo(e-_,i-o),t.lineTo(e+b,i-s),t.lineTo(e+_,i+o),t.lineTo(e-b,i+s),t.closePath();break;case"crossRot":Q+=pf;case"cross":_=Math.cos(Q)*(r?r/2:U),s=Math.cos(Q)*U,o=Math.sin(Q)*U,b=Math.sin(Q)*(r?r/2:U),t.moveTo(e-_,i-o),t.lineTo(e+_,i+o),t.moveTo(e+b,i-s),t.lineTo(e-b,i+s);break;case"star":_=Math.cos(Q)*(r?r/2:U),s=Math.cos(Q)*U,o=Math.sin(Q)*U,b=Math.sin(Q)*(r?r/2:U),t.moveTo(e-_,i-o),t.lineTo(e+_,i+o),t.moveTo(e+b,i-s),t.lineTo(e-b,i+s),Q+=pf,_=Math.cos(Q)*(r?r/2:U),s=Math.cos(Q)*U,o=Math.sin(Q)*U,b=Math.sin(Q)*(r?r/2:U),t.moveTo(e-_,i-o),t.lineTo(e+_,i+o),t.moveTo(e+b,i-s),t.lineTo(e-b,i+s);break;case"line":s=r?r/2:Math.cos(Q)*U,o=Math.sin(Q)*U,t.moveTo(e-s,i-o),t.lineTo(e+s,i+o);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(Q)*(r?r/2:U),i+Math.sin(Q)*U);break;case!1:t.closePath()}t.fill(),n.borderWidth>0&&t.stroke()}}function bd(t,n,e){return e=e||.5,!n||t&&t.x>n.left-e&&t.x<n.right+e&&t.y>n.top-e&&t.y<n.bottom+e}function Dw(t,n){t.save(),t.beginPath(),t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()}function Sw(t){t.restore()}function tMe(t,n,e,i,r){if(r.strikethrough||r.underline){const a=t.measureText(i),s=n-a.actualBoundingBoxLeft,o=n+a.actualBoundingBoxRight,d=e+a.actualBoundingBoxDescent,h=r.strikethrough?(e-a.actualBoundingBoxAscent+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,h),t.lineTo(o,h),t.stroke()}}function nMe(t,n){const e=t.fillStyle;t.fillStyle=n.color,t.fillRect(n.left,n.top,n.width,n.height),t.fillStyle=e}function _f(t,n,e,i,r,a={}){const s=tr(n)?n:[n],o=a.strokeWidth>0&&""!==a.strokeColor;let l,d;for(t.save(),t.font=r.string,function eMe(t,n){n.translation&&t.translate(n.translation[0],n.translation[1]),Xn(n.rotation)||t.rotate(n.rotation),n.color&&(t.fillStyle=n.color),n.textAlign&&(t.textAlign=n.textAlign),n.textBaseline&&(t.textBaseline=n.textBaseline)}(t,a),l=0;l<s.length;++l)d=s[l],a.backdrop&&nMe(t,a.backdrop),o&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),Xn(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(d,e,i,a.maxWidth)),t.fillText(d,e,i,a.maxWidth),tMe(t,e,i,d,a),i+=Number(r.lineHeight);t.restore()}function ay(t,n){const{x:e,y:i,w:r,h:a,radius:s}=n;t.arc(e+s.topLeft,i+s.topLeft,s.topLeft,1.5*nr,nr,!0),t.lineTo(e,i+a-s.bottomLeft),t.arc(e+s.bottomLeft,i+a-s.bottomLeft,s.bottomLeft,nr,ea,!0),t.lineTo(e+r-s.bottomRight,i+a),t.arc(e+r-s.bottomRight,i+a-s.bottomRight,s.bottomRight,ea,0,!0),t.lineTo(e+r,i+s.topRight),t.arc(e+r-s.topRight,i+s.topRight,s.topRight,0,-ea,!0),t.lineTo(e+s.topLeft,i)}const iMe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,rMe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function aMe(t,n){const e=(""+t).match(iMe);if(!e||"normal"===e[1])return 1.2*n;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100}return n*t}const sMe=t=>+t||0;function _k(t,n){const e={},i=ai(n),r=i?Object.keys(n):n,a=ai(t)?i?s=>kn(t[s],t[n[s]]):s=>t[s]:()=>t;for(const s of r)e[s]=sMe(a(s));return e}function vf(t){return _k(t,["topLeft","topRight","bottomLeft","bottomRight"])}function os(t){const n=function Cz(t){return _k(t,{top:"y",right:"x",bottom:"y",left:"x"})}(t);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Ea(t,n){let e=kn((t=t||{}).size,(n=n||rr.font).size);"string"==typeof e&&(e=parseInt(e,10));let i=kn(t.style,n.style);i&&!(""+i).match(rMe)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:kn(t.family,n.family),lineHeight:aMe(kn(t.lineHeight,n.lineHeight),e),size:e,style:i,weight:kn(t.weight,n.weight),string:""};return r.string=function Zxe(t){return!t||Xn(t.size)||Xn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function sy(t,n,e,i){let a,s,o,r=!0;for(a=0,s=t.length;a<s;++a)if(o=t[a],void 0!==o&&(void 0!==n&&"function"==typeof o&&(o=o(n),r=!1),void 0!==e&&tr(o)&&(o=o[e%o.length],r=!1),void 0!==o))return i&&!r&&(i.cacheable=!1),o}function Eu(t,n){return Object.assign(Object.create(t),n)}function vk(t,n=[""],e,i,r=()=>t[0]){const a=e||t;typeof i>"u"&&(i=xz("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:i,_getTarget:r,override:o=>vk([o,...t],n,a,i)};return new Proxy(s,{deleteProperty:(o,l)=>(delete o[l],delete o._keys,delete t[0][l],!0),get:(o,l)=>Dz(o,l,()=>function mMe(t,n,e,i){let r;for(const a of n)if(r=xz(lMe(a,t),e),typeof r<"u")return yk(t,r)?bk(e,i,t,r):r}(l,n,t,o)),getOwnPropertyDescriptor:(o,l)=>Reflect.getOwnPropertyDescriptor(o._scopes[0],l),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(o,l)=>Mz(o).includes(l),ownKeys:o=>Mz(o),set(o,l,d){const h=o._storage||(o._storage=r());return o[l]=h[l]=d,delete o._keys,!0}})}function Ym(t,n,e,i){const r={_cacheable:!1,_proxy:t,_context:n,_subProxy:e,_stack:new Set,_descriptors:wz(t,i),setContext:a=>Ym(t,a,e,i),override:a=>Ym(t.override(a),n,e,i)};return new Proxy(r,{deleteProperty:(a,s)=>(delete a[s],delete t[s],!0),get:(a,s,o)=>Dz(a,s,()=>function cMe(t,n,e){const{_proxy:i,_context:r,_subProxy:a,_descriptors:s}=t;let o=i[n];return xu(o)&&s.isScriptable(n)&&(o=function dMe(t,n,e,i){const{_proxy:r,_context:a,_subProxy:s,_stack:o}=e;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=n(a,s||i);return o.delete(t),yk(t,l)&&(l=bk(r._scopes,r,t,l)),l}(n,o,t,e)),tr(o)&&o.length&&(o=function uMe(t,n,e,i){const{_proxy:r,_context:a,_subProxy:s,_descriptors:o}=e;if(typeof a.index<"u"&&i(t))return n[a.index%n.length];if(ai(n[0])){const l=n,d=r._scopes.filter(h=>h!==l);n=[];for(const h of l){const _=bk(d,r,t,h);n.push(Ym(_,a,s&&s[t],o))}}return n}(n,o,t,s.isIndexable)),yk(n,o)&&(o=Ym(o,r,a&&a[n],s)),o}(a,s,o)),getOwnPropertyDescriptor:(a,s)=>a._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(a,s)=>Reflect.has(t,s),ownKeys:()=>Reflect.ownKeys(t),set:(a,s,o)=>(t[s]=o,delete a[s],!0)})}function wz(t,n={scriptable:!0,indexable:!0}){const{_scriptable:e=n.scriptable,_indexable:i=n.indexable,_allKeys:r=n.allKeys}=t;return{allKeys:r,scriptable:e,indexable:i,isScriptable:xu(e)?e:()=>e,isIndexable:xu(i)?i:()=>i}}const lMe=(t,n)=>t?t+ok(n):n,yk=(t,n)=>ai(n)&&"adapters"!==t&&(null===Object.getPrototypeOf(n)||n.constructor===Object);function Dz(t,n,e){if(Object.prototype.hasOwnProperty.call(t,n)||"constructor"===n)return t[n];const i=e();return t[n]=i,i}function Sz(t,n,e){return xu(t)?t(n,e):t}const hMe=(t,n)=>!0===t?n:"string"==typeof t?Tu(n,t):void 0;function fMe(t,n,e,i,r){for(const a of n){const s=hMe(e,a);if(s){t.add(s);const o=Sz(s._fallback,e,r);if(typeof o<"u"&&o!==e&&o!==i)return o}else if(!1===s&&typeof i<"u"&&e!==i)return null}return!1}function bk(t,n,e,i){const r=n._rootScopes,a=Sz(n._fallback,e,i),s=[...t,...r],o=new Set;o.add(i);let l=Tz(o,s,e,a||e,i);return!(null===l||typeof a<"u"&&a!==e&&(l=Tz(o,s,a,l,i),null===l))&&vk(Array.from(o),[""],r,a,()=>function pMe(t,n,e){const i=t._getTarget();n in i||(i[n]={});const r=i[n];return tr(r)&&ai(e)?e:r||{}}(n,e,i))}function Tz(t,n,e,i,r){for(;e;)e=fMe(t,n,e,i,r);return e}function xz(t,n){for(const e of n){if(!e)continue;const i=e[t];if(typeof i<"u")return i}}function Mz(t){let n=t._keys;return n||(n=t._keys=function gMe(t){const n=new Set;for(const e of t)for(const i of Object.keys(e).filter(r=>!r.startsWith("_")))n.add(i);return Array.from(n)}(t._scopes)),n}function Ck(){return typeof window<"u"&&typeof document<"u"}function wk(t){let n=t.parentNode;return n&&"[object ShadowRoot]"===n.toString()&&(n=n.host),n}function xw(t,n,e){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*n.parentNode[e])):i=t,i}const Mw=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),TMe=["top","right","bottom","left"];function yf(t,n,e){const i={};e=e?"-"+e:"";for(let r=0;r<4;r++){const a=TMe[r];i[a]=parseFloat(t[n+"-"+a+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function bf(t,n){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:i}=n,r=Mw(e),a="border-box"===r.boxSizing,s=yf(r,"padding"),o=yf(r,"border","width"),{x:l,y:d,box:h}=function MMe(t,n){const e=t.touches,i=e&&e.length?e[0]:t,{offsetX:r,offsetY:a}=i;let o,l,s=!1;if(((t,n,e)=>(t>0||n>0)&&(!e||!e.shadowRoot))(r,a,t.target))o=r,l=a;else{const d=n.getBoundingClientRect();o=i.clientX-d.left,l=i.clientY-d.top,s=!0}return{x:o,y:l,box:s}}(t,e),_=s.left+(h&&o.left),b=s.top+(h&&o.top);let{width:C,height:k}=n;return a&&(C-=s.width+o.width,k-=s.height+o.height),{x:Math.round((l-_)/C*e.width/i),y:Math.round((d-b)/k*e.height/i)}}const Ew=t=>Math.round(10*t)/10;function Az(t,n,e){const i=n||1,r=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(e||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==a)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const AMe=function(){let t=!1;try{const n={get passive(){return t=!0,!1}};Ck()&&(window.addEventListener("test",null,n),window.removeEventListener("test",null,n))}catch{}return t}();function kz(t,n){const e=function SMe(t,n){return Mw(t).getPropertyValue(n)}(t,n),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Wm(t,n,e){return t?function(t,n){return{x:e=>t+t+n-e,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,i)=>e-i,leftForLtr:(e,i)=>e-i}}(n,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,n)=>t+n,leftForLtr:(t,n)=>t}}function Nz(t,n){let e,i;("ltr"===n||"rtl"===n)&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",n,"important"),t.prevTextDirection=i)}function Rz(t,n){void 0!==n&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",n[0],n[1]))}function Iw(t,n,e){return t.options.clip?t[e]:n[e]}class jMe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,e,i,r){const s=e.duration;e.listeners[r].forEach(o=>o({chart:n,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=dz.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const a=i.items;let l,s=a.length-1,o=!1;for(;s>=0;--s)l=a[s],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(n),o=!0):(a[s]=a[a.length-1],a.pop());o&&(r.draw(),this._notify(r,i,n,"progress")),a.length||(i.running=!1,this._notify(r,i,n,"complete"),i.initial=!1),e+=a.length}),this._lastDate=n,0===e&&(this._running=!1)}_getAnims(n){const e=this._charts;let i=e.get(n);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(n,i)),i}listen(n,e,i){this._getAnims(n).listeners[e].push(i)}add(n,e){!e||!e.length||this._getAnims(n).items.push(...e)}has(n){return this._getAnims(n).items.length>0}start(n){const e=this._charts.get(n);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(n){if(!this._running)return!1;const e=this._charts.get(n);return!(!e||!e.running||!e.items.length)}stop(n){const e=this._charts.get(n);if(!e||!e.items.length)return;const i=e.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(n,e,Date.now(),"complete")}remove(n){return this._charts.delete(n)}}var Cd=new jMe;const Hz="transparent",zMe={boolean:(t,n,e)=>e>.5?n:t,color(t,n,e){const i=gz(t||Hz),r=i.valid&&gz(n||Hz);return r&&r.valid?r.mix(i,e).hexString():n},number:(t,n,e)=>t+(n-t)*e};class YMe{constructor(n,e,i,r){const a=e[i];r=sy([n.to,r,a,n.from]);const s=sy([n.from,a,r]);this._active=!0,this._fn=n.fn||zMe[n.type||typeof s],this._easing=ny[n.easing]||ny.linear,this._start=Math.floor(Date.now()+(n.delay||0)),this._duration=this._total=Math.floor(n.duration),this._loop=!!n.loop,this._target=e,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(n,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],a=i-this._start,s=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(s,n.duration)),this._total+=a,this._loop=!!n.loop,this._to=sy([n.to,e,r,n.from]),this._from=sy([n.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(n){const e=n-this._start,i=this._duration,r=this._prop,a=this._from,s=this._loop,o=this._to;let l;if(this._active=a!==o&&(s||e<i),!this._active)return this._target[r]=o,void this._notify(!0);e<0?this._target[r]=a:(l=e/i%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(a,o,l))}wait(){const n=this._promises||(this._promises=[]);return new Promise((e,i)=>{n.push({res:e,rej:i})})}_notify(n){const e=n?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}}class jz{constructor(n,e){this._chart=n,this._properties=new Map,this.configure(e)}configure(n){if(!ai(n))return;const e=Object.keys(rr.animation),i=this._properties;Object.getOwnPropertyNames(n).forEach(r=>{const a=n[r];if(!ai(a))return;const s={};for(const o of e)s[o]=a[o];(tr(a.properties)&&a.properties||[r]).forEach(o=>{(o===r||!i.has(o))&&i.set(o,s)})})}_animateOptions(n,e){const i=e.options,r=function WMe(t,n){if(!n)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=n}(n,i);if(!r)return[];const a=this._createAnimations(r,i);return i.$shared&&function $Me(t,n){const e=[],i=Object.keys(n);for(let r=0;r<i.length;r++){const a=t[i[r]];a&&a.active()&&e.push(a.wait())}return Promise.all(e)}(n.options.$animations,i).then(()=>{n.options=i},()=>{}),a}_createAnimations(n,e){const i=this._properties,r=[],a=n.$animations||(n.$animations={}),s=Object.keys(e),o=Date.now();let l;for(l=s.length-1;l>=0;--l){const d=s[l];if("$"===d.charAt(0))continue;if("options"===d){r.push(...this._animateOptions(n,e));continue}const h=e[d];let _=a[d];const b=i.get(d);if(_){if(b&&_.active()){_.update(b,h,o);continue}_.cancel()}b&&b.duration?(a[d]=_=new YMe(b,n,d,h),r.push(_)):n[d]=h}return r}update(n,e){if(0===this._properties.size)return void Object.assign(n,e);const i=this._createAnimations(n,e);return i.length?(Cd.add(this._chart,i),!0):void 0}}function zz(t,n){const e=t&&t.options||{},i=e.reverse,r=void 0===e.min?n:0,a=void 0===e.max?n:0;return{start:i?a:r,end:i?r:a}}function Yz(t,n){const e=[],i=t._getSortedDatasetMetas(n);let r,a;for(r=0,a=i.length;r<a;++r)e.push(i[r].index);return e}function $z(t,n,e,i={}){const r=t.keys,a="single"===i.mode;let s,o,l,d;if(null===n)return;let h=!1;for(s=0,o=r.length;s<o;++s){if(l=+r[s],l===e){if(h=!0,i.all)continue;break}d=t.values[l],zr(d)&&(a||0===n||Sc(n)===Sc(d))&&(n+=d)}return h||i.all?n:0}function Dk(t,n){const e=t&&t.options.stacked;return e||void 0===e&&void 0!==n.stack}function XMe(t,n,e){const i=t[n]||(t[n]={});return i[e]||(i[e]={})}function Wz(t,n,e,i){for(const r of n.getMatchingVisibleMetas(i).reverse()){const a=t[r.index];if(e&&a>0||!e&&a<0)return r.index}return null}function Gz(t,n){const{chart:e,_cachedMeta:i}=t,r=e._stacks||(e._stacks={}),{iScale:a,vScale:s,index:o}=i,l=a.axis,d=s.axis,h=function ZMe(t,n,e){return`${t.id}.${n.id}.${e.stack||e.type}`}(a,s,i),_=n.length;let b;for(let C=0;C<_;++C){const k=n[C],{[l]:U,[d]:Q}=k;b=(k._stacks||(k._stacks={}))[d]=XMe(r,h,U),b[o]=Q,b._top=Wz(b,s,!0,i.type),b._bottom=Wz(b,s,!1,i.type),(b._visualValues||(b._visualValues={}))[o]=Q}}function Sk(t,n){const e=t.scales;return Object.keys(e).filter(i=>e[i].axis===n).shift()}function oy(t,n){const e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){n=n||t._parsed;for(const r of n){const a=r._stacks;if(!a||void 0===a[i]||void 0===a[i][e])return;delete a[i][e],void 0!==a[i]._visualValues&&void 0!==a[i]._visualValues[e]&&delete a[i]._visualValues[e]}}}const Tk=t=>"reset"===t||"none"===t,qz=(t,n)=>n?t:Object.assign({},t);let Iu=(()=>class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Dk(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&oy(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,i=this._cachedMeta,r=this.getDataset(),a=(b,C,k,U)=>"x"===b?C:"r"===b?U:k,s=i.xAxisID=kn(r.xAxisID,Sk(e,"x")),o=i.yAxisID=kn(r.yAxisID,Sk(e,"y")),l=i.rAxisID=kn(r.rAxisID,Sk(e,"r")),d=i.indexAxis,h=i.iAxisID=a(d,s,o,l),_=i.vAxisID=a(d,o,s,l);i.xScale=this.getScaleForId(s),i.yScale=this.getScaleForId(o),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(h),i.vScale=this.getScaleForId(_)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&lz(this._data,this),e._stacked&&oy(e)}_dataCheck(){const e=this.getDataset(),i=e.data||(e.data=[]),r=this._data;if(ai(i))this._data=function KMe(t,n){const{iScale:e,vScale:i}=n,r="x"===e.axis?"x":"y",a="x"===i.axis?"x":"y",s=Object.keys(t),o=new Array(s.length);let l,d,h;for(l=0,d=s.length;l<d;++l)h=s[l],o[l]={[r]:h,[a]:t[h]};return o}(i,this._cachedMeta);else if(r!==i){if(r){lz(r,this);const a=this._cachedMeta;oy(a),a._parsed=[]}i&&Object.isExtensible(i)&&function Vxe(t,n){t._chartjs?t._chartjs.listeners.push(n):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),oz.forEach(e=>{const i="_onData"+ok(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...a){const s=r.apply(this,a);return t._chartjs.listeners.forEach(o=>{"function"==typeof o[i]&&o[i](...a)}),s}})}))}(i,this),this._syncList=[],this._data=i}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const i=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=i._stacked;i._stacked=Dk(i.vScale,i),i.stack!==r.stack&&(a=!0,oy(i),i.stack=r.stack),this._resyncElements(e),(a||s!==i._stacked)&&(Gz(this,i._parsed),i._stacked=Dk(i.vScale,i))}configure(){const e=this.chart.config,i=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:o}=r,l=s.axis;let _,b,C,d=0===e&&i===a.length||r._sorted,h=e>0&&r._parsed[e-1];if(!1===this._parsing)r._parsed=a,r._sorted=!0,C=a;else{C=tr(a[e])?this.parseArrayData(r,a,e,i):ai(a[e])?this.parseObjectData(r,a,e,i):this.parsePrimitiveData(r,a,e,i);const k=()=>null===b[l]||h&&b[l]<h[l];for(_=0;_<i;++_)r._parsed[_+e]=b=C[_],d&&(k()&&(d=!1),h=b);r._sorted=d}o&&Gz(this,C)}parsePrimitiveData(e,i,r,a){const{iScale:s,vScale:o}=e,l=s.axis,d=o.axis,h=s.getLabels(),_=s===o,b=new Array(a);let C,k,U;for(C=0,k=a;C<k;++C)U=C+r,b[C]={[l]:_||s.parse(h[U],U),[d]:o.parse(i[U],U)};return b}parseArrayData(e,i,r,a){const{xScale:s,yScale:o}=e,l=new Array(a);let d,h,_,b;for(d=0,h=a;d<h;++d)_=d+r,b=i[_],l[d]={x:s.parse(b[0],_),y:o.parse(b[1],_)};return l}parseObjectData(e,i,r,a){const{xScale:s,yScale:o}=e,{xAxisKey:l="x",yAxisKey:d="y"}=this._parsing,h=new Array(a);let _,b,C,k;for(_=0,b=a;_<b;++_)C=_+r,k=i[C],h[_]={x:s.parse(Tu(k,l),C),y:o.parse(Tu(k,d),C)};return h}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,i,r){const s=this._cachedMeta,o=i[e.axis];return $z({keys:Yz(this.chart,!0),values:i._stacks[e.axis]._visualValues},o,s.index,{mode:r})}updateRangeFromParsed(e,i,r,a){const s=r[i.axis];let o=null===s?NaN:s;const l=a&&r._stacks[i.axis];a&&l&&(a.values=l,o=$z(a,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,i){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&e===r.iScale,o=a.length,l=this._getOtherScale(e),d=((t,n)=>t&&!n.hidden&&n._stacked&&{keys:Yz(this.chart,!0),values:null})(i,r),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:_,max:b}=function QMe(t){const{min:n,max:e,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?n:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}(l);let C,k;function U(){k=a[C];const Q=k[l.axis];return!zr(k[e.axis])||_>Q||b<Q}for(C=0;C<o&&(U()||(this.updateRangeFromParsed(h,e,k,d),!s));++C);if(s)for(C=o-1;C>=0;--C)if(!U()){this.updateRangeFromParsed(h,e,k,d);break}return h}getAllParsedValues(e){const i=this._cachedMeta._parsed,r=[];let a,s,o;for(a=0,s=i.length;a<s;++a)o=i[a][e.axis],zr(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const i=this._cachedMeta,r=i.iScale,a=i.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(e){const i=this._cachedMeta;this.update(e||"default"),i._clip=function qMe(t){let n,e,i,r;return ai(t)?(n=t.top,e=t.right,i=t.bottom,r=t.left):n=e=i=r=t,{top:n,right:e,bottom:i,left:r,disabled:!1===t}}(kn(this.options.clip,function GMe(t,n,e){if(!1===e)return!1;const i=zz(t,e),r=zz(n,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(i.xScale,i.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,r=this._cachedMeta,a=r.data||[],s=this.chart.chartArea,o=[],l=this._drawStart||0,d=this._drawCount||a.length-l,h=this.options.drawActiveElementsOnTop;let _;for(r.dataset&&r.dataset.draw(e,s,l,d),_=l;_<l+d;++_){const b=a[_];b.hidden||(b.active&&h?o.push(b):b.draw(e,s))}for(_=0;_<o.length;++_)o[_].draw(e,s)}getStyle(e,i){const r=i?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,i,r){const a=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=function eEe(t,n,e){return Eu(t,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:e,index:n,mode:"default",type:"data"})}(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=a.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=function JMe(t,n){return Eu(t,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!i,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,i){return this._resolveElementOptions(this.dataElementType.id,i,e)}_resolveElementOptions(e,i="default",r){const a="active"===i,s=this._cachedDataOpts,o=e+"-"+i,l=s[o],d=this.enableOptionSharing&&Jv(r);if(l)return qz(l,d);const h=this.chart.config,_=h.datasetElementScopeKeys(this._type,e),b=a?[`${e}Hover`,"hover",e,""]:[e,""],C=h.getOptionScopes(this.getDataset(),_),k=Object.keys(rr.elements[e]),Q=h.resolveNamedOptions(C,k,()=>this.getContext(r,a,i),b);return Q.$shared&&(Q.$shared=d,s[o]=Object.freeze(qz(Q,d))),Q}_resolveAnimations(e,i,r){const a=this.chart,s=this._cachedDataOpts,o=`animation-${i}`,l=s[o];if(l)return l;let d;if(!1!==a.options.animation){const _=this.chart.config,b=_.datasetAnimationScopeKeys(this._type,i),C=_.getOptionScopes(this.getDataset(),b);d=_.createResolver(C,this.getContext(e,r,i))}const h=new jz(a,d&&d.animations);return d&&d._cacheable&&(s[o]=Object.freeze(h)),h}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||Tk(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){const r=this.resolveDataElementOptions(e,i),a=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(i,s)||s!==a;return this.updateSharedOptions(s,i,r),{sharedOptions:s,includeOptions:o}}updateElement(e,i,r,a){Tk(a)?Object.assign(e,r):this._resolveAnimations(i,a).update(e,r)}updateSharedOptions(e,i,r){e&&!Tk(i)&&this._resolveAnimations(void 0,i).update(e,r)}_setStyle(e,i,r,a){e.active=a;const s=this.getStyle(i,a);this._resolveAnimations(i,r,a).update(e,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(e,i,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,i,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const i=this._data,r=this._cachedMeta.data;for(const[l,d,h]of this._syncList)this[l](d,h);this._syncList=[];const a=r.length,s=i.length,o=Math.min(s,a);o&&this.parse(0,o),s>a?this._insertElements(a,s-a,e):s<a&&this._removeElements(s,a-s)}_insertElements(e,i,r=!0){const a=this._cachedMeta,s=a.data,o=e+i;let l;const d=h=>{for(h.length+=i,l=h.length-1;l>=o;l--)h[l]=h[l-i]};for(d(s),l=e;l<o;++l)s[l]=new this.dataElementType;this._parsing&&d(a._parsed),this.parse(e,i),r&&this.updateElements(s,e,i,"reset")}updateElements(e,i,r,a){}_removeElements(e,i){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(e,i);r._stacked&&oy(r,a)}r.data.splice(e,i)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[i,r,a]=e;this[i](r,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,i){i&&this._sync(["_removeElements",e,i]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})(),ly=(()=>class t extends Iu{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const i=e.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:r,color:a}}=e.legend.options;return i.labels.map((s,o)=>{const d=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:a,lineWidth:d.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,i,r){r.chart.toggleDataVisibility(i.index),r.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){const r=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=r;else{let o,l,s=d=>+r[d];if(ai(r[e])){const{key:d="value"}=this._parsing;s=h=>+Tu(r[h],d)}for(o=e,l=e+i;o<l;++o)a._parsed[o]=s(o)}}_getRotation(){return Vl(this.options.rotation-90)}_getCircumference(){return Vl(this.options.circumference)}_getRotationExtents(){let e=ir,i=-ir;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),o=a._getCircumference();e=Math.min(e,s),i=Math.max(i,s+o)}return{rotation:e,circumference:i-e}}update(e){const i=this.chart,{chartArea:r}=i,a=this._cachedMeta,s=a.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-o)/2,0),d=Math.min(((t,n)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/n)(this.options.cutout,l),1),h=this._getRingWeight(this.index),{circumference:_,rotation:b}=this._getRotationExtents(),{ratioX:C,ratioY:k,offsetX:U,offsetY:Q}=function pEe(t,n,e){let i=1,r=1,a=0,s=0;if(n<ir){const o=t,l=o+n,d=Math.cos(o),h=Math.sin(o),_=Math.cos(l),b=Math.sin(l),C=(Ae,Pe,Le)=>ty(Ae,o,l,!0)?1:Math.max(Pe,Pe*e,Le,Le*e),k=(Ae,Pe,Le)=>ty(Ae,o,l,!0)?-1:Math.min(Pe,Pe*e,Le,Le*e),U=C(0,d,_),Q=C(ea,h,b),de=k(nr,d,_),he=k(nr+ea,h,b);i=(U-de)/2,r=(Q-he)/2,a=-(U+de)/2,s=-(Q+he)/2}return{ratioX:i,ratioY:r,offsetX:a,offsetY:s}}(b,_,d),Ae=Math.max(Math.min((r.width-o)/C,(r.height-o)/k)/2,0),Pe=Xj(this.options.radius,Ae),$e=(Pe-Math.max(Pe*d,0))/this._getVisibleDatasetWeightTotal();this.offsetX=U*Pe,this.offsetY=Q*Pe,a.total=this.calculateTotal(),this.outerRadius=Pe-$e*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-$e*h,0),this.updateElements(s,0,s.length,e)}_circumference(e,i){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return i&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===a._parsed[e]||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*s/ir)}updateElements(e,i,r,a){const s="reset"===a,o=this.chart,l=o.chartArea,_=(l.left+l.right)/2,b=(l.top+l.bottom)/2,C=s&&o.options.animation.animateScale,k=C?0:this.innerRadius,U=C?0:this.outerRadius,{sharedOptions:Q,includeOptions:de}=this._getSharedOptions(i,a);let Ae,he=this._getRotation();for(Ae=0;Ae<i;++Ae)he+=this._circumference(Ae,s);for(Ae=i;Ae<i+r;++Ae){const Pe=this._circumference(Ae,s),Le=e[Ae],$e={x:_+this.offsetX,y:b+this.offsetY,startAngle:he,endAngle:he+Pe,circumference:Pe,outerRadius:U,innerRadius:k};de&&($e.options=Q||this.resolveDataElementOptions(Ae,Le.active?"active":a)),he+=Pe,this.updateElement(Le,Ae,$e,a)}}calculateTotal(){const e=this._cachedMeta,i=e.data;let a,r=0;for(a=0;a<i.length;a++){const s=e._parsed[a];null!==s&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!i[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(e){const i=this._cachedMeta.total;return i>0&&!isNaN(e)?ir*(Math.abs(e)/i):0}getLabelAndValue(e){const r=this.chart,a=r.data.labels||[],s=iy(this._cachedMeta._parsed[e],r.options.locale);return{label:a[e]||"",value:s}}getMaxBorderWidth(e){let i=0;const r=this.chart;let a,s,o,l,d;if(!e)for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){o=r.getDatasetMeta(a),e=o.data,l=o.controller;break}if(!e)return 0;for(a=0,s=e.length;a<s;++a)d=l.resolveDataElementOptions(a),"inner"!==d.borderAlign&&(i=Math.max(i,d.borderWidth||0,d.hoverBorderWidth||0));return i}getMaxOffset(e){let i=0;for(let r=0,a=e.length;r<a;++r){const s=this.resolveDataElementOptions(r);i=Math.max(i,s.offset||0,s.hoverOffset||0)}return i}_getRingWeightOffset(e){let i=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(i+=this._getRingWeight(r));return i}_getRingWeight(e){return Math.max(kn(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})();function vEe(t,n,e,i){const{controller:r,data:a,_sorted:s}=t,o=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&n===o.axis&&"r"!==n&&s&&a.length){const d=o._reversePixels?Fxe:yd;if(!i){const h=d(a,n,e);if(l){const{vScale:_}=r._cachedMeta,{_parsed:b}=t,C=b.slice(0,h.lo+1).reverse().findIndex(U=>!Xn(U[_.axis]));h.lo-=Math.max(0,C);const k=b.slice(h.hi).findIndex(U=>!Xn(U[_.axis]));h.hi+=Math.max(0,k)}return h}if(r._sharedOptions){const h=a[0],_="function"==typeof h.getRange&&h.getRange(n);if(_){const b=d(a,n,e-_),C=d(a,n,e+_);return{lo:b.lo,hi:C.hi}}}}return{lo:0,hi:a.length-1}}function cy(t,n,e,i,r){const a=t.getSortedVisibleDatasetMetas(),s=e[n];for(let o=0,l=a.length;o<l;++o){const{index:d,data:h}=a[o],{lo:_,hi:b}=vEe(a[o],n,s,r);for(let C=_;C<=b;++C){const k=h[C];k.skip||i(k,d,C)}}}function Ek(t,n,e,i,r){const a=[];return!r&&!t.isPointInArea(n)||cy(t,e,n,function(o,l,d){!r&&!bd(o,t.chartArea,0)||o.inRange(n.x,n.y,i)&&a.push({element:o,datasetIndex:l,index:d})},!0),a}function Ik(t,n,e,i,r,a){return a||t.isPointInArea(n)?"r"!==e||i?function CEe(t,n,e,i,r,a){let s=[];const o=function yEe(t){const n=-1!==t.indexOf("x"),e=-1!==t.indexOf("y");return function(i,r){const a=n?Math.abs(i.x-r.x):0,s=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}(e);let l=Number.POSITIVE_INFINITY;return cy(t,e,n,function d(h,_,b){const C=h.inRange(n.x,n.y,r);if(i&&!C)return;const k=h.getCenterPoint(r);if(!a&&!t.isPointInArea(k)&&!C)return;const Q=o(n,k);Q<l?(s=[{element:h,datasetIndex:_,index:b}],l=Q):Q===l&&s.push({element:h,datasetIndex:_,index:b})}),s}(t,n,e,i,r,a):function bEe(t,n,e,i){let r=[];return cy(t,e,n,function a(s,o,l){const{startAngle:d,endAngle:h}=s.getProps(["startAngle","endAngle"],i),{angle:_}=sz(s,{x:n.x,y:n.y});ty(_,d,h)&&r.push({element:s,datasetIndex:o,index:l})}),r}(t,n,e,r):[]}function e7(t,n,e,i,r){const a=[],s="x"===e?"inXRange":"inYRange";let o=!1;return cy(t,e,n,(l,d,h)=>{l[s]&&l[s](n[e],r)&&(a.push({element:l,datasetIndex:d,index:h}),o=o||l.inRange(n.x,n.y,r))}),i&&!o?[]:a}var wEe={evaluateInteractionItems:cy,modes:{index(t,n,e,i){const r=bf(n,t),a=e.axis||"x",s=e.includeInvisible||!1,o=e.intersect?Ek(t,r,a,i,s):Ik(t,r,a,!1,i,s),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const h=o[0].index,_=d.data[h];_&&!_.skip&&l.push({element:_,datasetIndex:d.index,index:h})}),l):[]},dataset(t,n,e,i){const r=bf(n,t),a=e.axis||"xy",s=e.includeInvisible||!1;let o=e.intersect?Ek(t,r,a,i,s):Ik(t,r,a,!1,i,s);if(o.length>0){const l=o[0].datasetIndex,d=t.getDatasetMeta(l).data;o=[];for(let h=0;h<d.length;++h)o.push({element:d[h],datasetIndex:l,index:h})}return o},point:(t,n,e,i)=>Ek(t,bf(n,t),e.axis||"xy",i,e.includeInvisible||!1),nearest:(t,n,e,i)=>Ik(t,bf(n,t),e.axis||"xy",e.intersect,i,e.includeInvisible||!1),x:(t,n,e,i)=>e7(t,bf(n,t),"x",e.intersect,i),y:(t,n,e,i)=>e7(t,bf(n,t),"y",e.intersect,i)}};const t7=["left","top","right","bottom"];function dy(t,n){return t.filter(e=>e.pos===n)}function n7(t,n){return t.filter(e=>-1===t7.indexOf(e.pos)&&e.box.axis===n)}function uy(t,n){return t.sort((e,i)=>{const r=n?i:e,a=n?e:i;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function i7(t,n,e,i){return Math.max(t[e],n[e])+Math.max(t[i],n[i])}function r7(t,n){t.top=Math.max(t.top,n.top),t.left=Math.max(t.left,n.left),t.bottom=Math.max(t.bottom,n.bottom),t.right=Math.max(t.right,n.right)}function MEe(t,n,e,i){const{pos:r,box:a}=e,s=t.maxPadding;if(!ai(r)){e.size&&(t[r]-=e.size);const _=i[e.stack]||{size:0,count:1};_.size=Math.max(_.size,e.horizontal?a.height:a.width),e.size=_.size/_.count,t[r]+=e.size}a.getPadding&&r7(s,a.getPadding());const o=Math.max(0,n.outerWidth-i7(s,t,"left","right")),l=Math.max(0,n.outerHeight-i7(s,t,"top","bottom")),d=o!==t.w,h=l!==t.h;return t.w=o,t.h=l,e.horizontal?{same:d,other:h}:{same:h,other:d}}function IEe(t,n){const e=n.maxPadding;return function i(r){const a={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{a[s]=Math.max(n[s],e[s])}),a}(t?["left","right"]:["top","bottom"])}function hy(t,n,e,i){const r=[];let a,s,o,l,d,h;for(a=0,s=t.length,d=0;a<s;++a){o=t[a],l=o.box,l.update(o.width||n.w,o.height||n.h,IEe(o.horizontal,n));const{same:_,other:b}=MEe(n,e,o,i);d|=_&&r.length,h=h||b,l.fullSize||r.push(o)}return d&&hy(r,n,e,i)||h}function Aw(t,n,e,i,r){t.top=e,t.left=n,t.right=n+i,t.bottom=e+r,t.width=i,t.height=r}function a7(t,n,e,i){const r=e.padding;let{x:a,y:s}=n;for(const o of t){const l=o.box,d=i[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/d.weight||1;if(o.horizontal){const _=n.w*h,b=d.size||l.height;Jv(d.start)&&(s=d.start),l.fullSize?Aw(l,r.left,s,e.outerWidth-r.right-r.left,b):Aw(l,n.left+d.placed,s,_,b),d.start=s,d.placed+=_,s=l.bottom}else{const _=n.h*h,b=d.size||l.width;Jv(d.start)&&(a=d.start),l.fullSize?Aw(l,a,r.top,b,e.outerHeight-r.bottom-r.top):Aw(l,a,n.top+d.placed,b,_),d.start=a,d.placed+=_,a=l.right}}n.x=a,n.y=s}var ls={addBox(t,n){t.boxes||(t.boxes=[]),n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(e){n.draw(e)}}]},t.boxes.push(n)},removeBox(t,n){const e=t.boxes?t.boxes.indexOf(n):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,n,e){n.fullSize=e.fullSize,n.position=e.position,n.weight=e.weight},update(t,n,e,i){if(!t)return;const r=os(t.options.layout.padding),a=Math.max(n-r.width,0),s=Math.max(e-r.height,0),o=function xEe(t){const n=function DEe(t){const n=[];let e,i,r,a,s,o;for(e=0,i=(t||[]).length;e<i;++e)r=t[e],({position:a,options:{stack:s,stackWeight:o=1}}=r),n.push({index:e,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&a+s,stackWeight:o});return n}(t),e=uy(n.filter(d=>d.box.fullSize),!0),i=uy(dy(n,"left"),!0),r=uy(dy(n,"right")),a=uy(dy(n,"top"),!0),s=uy(dy(n,"bottom")),o=n7(n,"x"),l=n7(n,"y");return{fullSize:e,leftAndTop:i.concat(a),rightAndBottom:r.concat(l).concat(s).concat(o),chartArea:dy(n,"chartArea"),vertical:i.concat(r).concat(l),horizontal:a.concat(s).concat(o)}}(t.boxes),l=o.vertical,d=o.horizontal;Ai(t.boxes,U=>{"function"==typeof U.beforeLayout&&U.beforeLayout()});const h=l.reduce((U,Q)=>Q.box.options&&!1===Q.box.options.display?U:U+1,0)||1,_=Object.freeze({outerWidth:n,outerHeight:e,padding:r,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),b=Object.assign({},r);r7(b,os(i));const C=Object.assign({maxPadding:b,w:a,h:s,x:r.left,y:r.top},r),k=function TEe(t,n){const e=function SEe(t){const n={};for(const e of t){const{stack:i,pos:r,stackWeight:a}=e;if(!i||!t7.includes(r))continue;const s=n[i]||(n[i]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return n}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=n;let a,s,o;for(a=0,s=t.length;a<s;++a){o=t[a];const{fullSize:l}=o.box,d=e[o.stack],h=d&&o.stackWeight/d.weight;o.horizontal?(o.width=h?h*i:l&&n.availableWidth,o.height=r):(o.width=i,o.height=h?h*r:l&&n.availableHeight)}return e}(l.concat(d),_);hy(o.fullSize,C,_,k),hy(l,C,_,k),hy(d,C,_,k)&&hy(l,C,_,k),function EEe(t){const n=t.maxPadding;function e(i){const r=Math.max(n[i]-t[i],0);return t[i]+=r,r}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}(C),a7(o.leftAndTop,C,_,k),C.x+=C.w,C.y+=C.h,a7(o.rightAndBottom,C,_,k),t.chartArea={left:C.left,top:C.top,right:C.left+C.w,bottom:C.top+C.h,height:C.h,width:C.w},Ai(o.chartArea,U=>{const Q=U.box;Object.assign(Q,t.chartArea),Q.update(C.w,C.h,{left:0,top:0,right:0,bottom:0})})}};class s7{acquireContext(n,e){}releaseContext(n){return!1}addEventListener(n,e,i){}removeEventListener(n,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(n,e,i,r){return e=Math.max(0,e||n.width),i=i||n.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(n){return!0}updateConfig(n){}}class AEe extends s7{acquireContext(n){return n&&n.getContext&&n.getContext("2d")||null}updateConfig(n){n.options.animation=!1}}const kw="$chartjs",kEe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o7=t=>null===t||""===t,l7=!!AMe&&{passive:!0};function PEe(t,n,e){t&&t.canvas&&t.canvas.removeEventListener(n,e,l7)}function Nw(t,n){for(const e of t)if(e===n||e.contains(n))return!0}function LEe(t,n,e){const i=t.canvas,r=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Nw(o.addedNodes,i),s=s&&!Nw(o.removedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function FEe(t,n,e){const i=t.canvas,r=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Nw(o.removedNodes,i),s=s&&!Nw(o.addedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}const fy=new Map;let c7=0;function d7(){const t=window.devicePixelRatio;t!==c7&&(c7=t,fy.forEach((n,e)=>{e.currentDevicePixelRatio!==t&&n()}))}function UEe(t,n,e){const i=t.canvas,r=i&&wk(i);if(!r)return;const a=uz((o,l)=>{const d=r.clientWidth;e(o,l),d<r.clientWidth&&e()},window),s=new ResizeObserver(o=>{const l=o[0],d=l.contentRect.width,h=l.contentRect.height;0===d&&0===h||a(d,h)});return s.observe(r),function BEe(t,n){fy.size||window.addEventListener("resize",d7),fy.set(t,n)}(t,a),s}function Ak(t,n,e){e&&e.disconnect(),"resize"===n&&function VEe(t){fy.delete(t),fy.size||window.removeEventListener("resize",d7)}(t)}function HEe(t,n,e){const i=t.canvas,r=uz(a=>{null!==t.ctx&&e(function OEe(t,n){const e=kEe[t.type]||t.type,{x:i,y:r}=bf(t,n);return{type:e,chart:n,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(a,t))},t);return function REe(t,n,e){t&&t.addEventListener(n,e,l7)}(i,n,r),r}class jEe extends s7{acquireContext(n,e){const i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(function NEe(t,n){const e=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[kw]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",o7(r)){const a=kz(t,"width");void 0!==a&&(t.width=a)}if(o7(i))if(""===t.style.height)t.height=t.width/(n||2);else{const a=kz(t,"height");void 0!==a&&(t.height=a)}}(n,e),i):null}releaseContext(n){const e=n.canvas;if(!e[kw])return!1;const i=e[kw].initial;["height","width"].forEach(a=>{const s=i[a];Xn(s)?e.removeAttribute(a):e.setAttribute(a,s)});const r=i.style||{};return Object.keys(r).forEach(a=>{e.style[a]=r[a]}),e.width=e.width,delete e[kw],!0}addEventListener(n,e,i){this.removeEventListener(n,e),(n.$proxies||(n.$proxies={}))[e]=({attach:LEe,detach:FEe,resize:UEe}[e]||HEe)(n,e,i)}removeEventListener(n,e){const i=n.$proxies||(n.$proxies={}),r=i[e];r&&(({attach:Ak,detach:Ak,resize:Ak}[e]||PEe)(n,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(n,e,i,r){return function IMe(t,n,e,i){const r=Mw(t),a=yf(r,"margin"),s=xw(r.maxWidth,t,"clientWidth")||yw,o=xw(r.maxHeight,t,"clientHeight")||yw,l=function EMe(t,n,e){let i,r;if(void 0===n||void 0===e){const a=t&&wk(t);if(a){const s=a.getBoundingClientRect(),o=Mw(a),l=yf(o,"border","width"),d=yf(o,"padding");n=s.width-d.width-l.width,e=s.height-d.height-l.height,i=xw(o.maxWidth,a,"clientWidth"),r=xw(o.maxHeight,a,"clientHeight")}else n=t.clientWidth,e=t.clientHeight}return{width:n,height:e,maxWidth:i||yw,maxHeight:r||yw}}(t,n,e);let{width:d,height:h}=l;if("content-box"===r.boxSizing){const b=yf(r,"border","width"),C=yf(r,"padding");d-=C.width+b.width,h-=C.height+b.height}return d=Math.max(0,d-a.width),h=Math.max(0,i?d/i:h-a.height),d=Ew(Math.min(d,s,l.maxWidth)),h=Ew(Math.min(h,o,l.maxHeight)),d&&!h&&(h=Ew(d/2)),(void 0!==n||void 0!==e)&&i&&l.height&&h>l.height&&(h=l.height,d=Ew(Math.floor(h*i))),{width:d,height:h}}(n,e,i,r)}isAttached(n){const e=n&&wk(n);return!(!e||!e.isConnected)}}class wd{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(n){const{x:e,y:i}=this.getProps(["x","y"],n);return{x:e,y:i}}hasValue(){return zm(this.x)&&zm(this.y)}getProps(n,e){const i=this.$animations;if(!e||!i)return this;const r={};return n.forEach(a=>{r[a]=i[a]&&i[a].active()?i[a]._to:this[a]}),r}}function Rw(t,n,e,i,r){const a=kn(i,0),s=Math.min(kn(r,t.length),t.length);let l,d,h,o=0;for(e=Math.ceil(e),r&&(l=r-i,e=l/Math.floor(l/e)),h=a;h<0;)o++,h=Math.round(a+o*e);for(d=Math.max(a,0);d<s;d++)d===h&&(n.push(t[d]),o++,h=Math.round(a+o*e))}const u7=(t,n,e)=>"top"===n||"left"===n?t[n]+e:t[n]-e,h7=(t,n)=>Math.min(n||t,t);function f7(t,n){const e=[],i=t.length/n,r=t.length;let a=0;for(;a<r;a+=i)e.push(t[Math.floor(a)]);return e}function QEe(t,n,e){const i=t.ticks.length,r=Math.min(n,i-1),a=t._startPixel,s=t._endPixel,o=1e-6;let d,l=t.getPixelForTick(r);if(!(e&&(d=1===i?Math.max(l-a,s-l):0===n?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,l+=r<n?d:-d,l<a-o||l>s+o)))return l}function py(t){return t.drawTicks?t.tickLength:0}function p7(t,n){if(!t.display)return 0;const e=Ea(t.font,n),i=os(t.padding);return(tr(t.text)?t.text.length:1)*e.lineHeight+i.height}function tIe(t,n,e){let i=uk(t);return(e&&"right"!==n||!e&&"right"===n)&&(i=(t=>
vendor: 1,295 bytes, line 1
1"left"===t?"right":"right"===t?"left":t)(i)),i}class Df extends wd{constructor(n){super(),this.id=n.id,this.type=n.type,this.options=void 0,this.ctx=n.ctx,this.chart=n.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(n){this.options=n.setContext(this.getContext()),this.axis=n.axis,this._userMin=this.parse(n.min),this._userMax=this.parse(n.max),this._suggestedMin=this.parse(n.suggestedMin),this._suggestedMax=this.parse(n.suggestedMax)}parse(n,e){return n}getUserBounds(){let{_userMin:n,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;
vendor: 23,350 bytes, line 1
1return n=yo(n,Number.POSITIVE_INFINITY),e=yo(e,Number.NEGATIVE_INFINITY),i=yo(i,Number.POSITIVE_INFINITY),r=yo(r,Number.NEGATIVE_INFINITY),{min:yo(n,i),max:yo(e,r),minDefined:zr(n),maxDefined:zr(e)}}getMinMax(n){let s,{min:e,max:i,minDefined:r,maxDefined:a}=this.getUserBounds();if(r&&a)return{min:e,max:i};const o=this.getMatchingVisibleMetas();for(let l=0,d=o.length;l<d;++l)s=o[l].controller.getMinMax(this,n),r||(e=Math.min(e,s.min)),a||(i=Math.max(i,s.max));return e=a&&e>i?i:e,i=r&&e>i?e:i,{min:yo(e,yo(i,e)),max:yo(i,yo(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels||[]}getLabelItems(n=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(n))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Gi(this.options.beforeUpdate,[this])}update(n,e,i){const{beginAtZero:r,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=n,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function oMe(t,n,e){const{min:i,max:r}=t,a=Xj(n,(r-i)/2),s=(o,l)=>e&&0===o?0:o+l;return{min:s(i,-Math.abs(a)),max:s(r,a)}}(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?f7(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function YEe(t,n){const e=t.options.ticks,i=function $Ee(t){const n=t.options.offset,e=t._tickSize();return Math.floor(Math.min(t._length/e+(n?0:1),t._maxLength/e))}(t),r=Math.min(e.maxTicksLimit||i,i),a=e.major.enabled?function GEe(t){const n=[];let e,i;for(e=0,i=t.length;e<i;e++)t[e].major&&n.push(e);return n}(n):[],s=a.length,o=a[0],l=a[s-1],d=[];if(s>r)return function qEe(t,n,e,i){let s,r=0,a=e[0];for(i=Math.ceil(i),s=0;s<t.length;s++)s===a&&(n.push(t[s]),r++,a=e[r*i])}(n,d,a,s/r),d;const h=function WEe(t,n,e){const i=function KEe(t){const n=t.length;let e,i;if(n<2)return!1;for(i=t[0],e=1;e<n;++e)if(t[e]-t[e-1]!==i)return!1;return i}(t),r=n.length/e;if(!i)return Math.max(r,1);const a=function Nxe(t){const n=[],e=Math.sqrt(t);let i;for(i=1;i<e;i++)t%i==0&&(n.push(i),n.push(t/i));return e===(0|e)&&n.push(e),n.sort((r,a)=>r-a).pop(),n}(i);for(let s=0,o=a.length-1;s<o;s++){const l=a[s];if(l>r)return l}return Math.max(r,1)}(a,n,r);if(s>0){let _,b;const C=s>1?Math.round((l-o)/(s-1)):null;for(Rw(n,d,h,Xn(C)?0:o-C,o),_=0,b=s-1;_<b;_++)Rw(n,d,h,a[_],a[_+1]);return Rw(n,d,h,l,Xn(C)?n.length:l+C),d}return Rw(n,d,h),d}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,i,n=this.options.reverse;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,n=!n),this._startPixel=e,this._endPixel=i,this._reversePixels=n,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Gi(this.options.afterUpdate,[this])}beforeSetDimensions(){Gi(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Gi(this.options.afterSetDimensions,[this])}_callHooks(n){this.chart.notifyPlugins(n,this.getContext()),Gi(this.options[n],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Gi(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(n){const e=this.options.ticks;let i,r,a;for(i=0,r=n.length;i<r;i++)a=n[i],a.label=Gi(e.callback,[a.value,i,n],this)}afterTickToLabelConversion(){Gi(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Gi(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const n=this.options,e=n.ticks,i=h7(this.ticks.length,n.ticks.maxTicksLimit),r=e.minRotation||0,a=e.maxRotation;let o,l,d,s=r;if(!this._isVisible()||!e.display||r>=a||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const h=this._getLabelSizes(),_=h.widest.width,b=h.highest.height,C=Ba(this.chart.width-_,0,this.maxWidth);o=n.offset?this.maxWidth/i:C/(i-1),_+6>o&&(o=C/(i-(n.offset?.5:1)),l=this.maxHeight-py(n.grid)-e.padding-p7(n.title,this.chart.options.font),d=Math.sqrt(_*_+b*b),s=function lk(t){return t*(180/nr)}(Math.min(Math.asin(Ba((h.highest.height+6)/o,-1,1)),Math.asin(Ba(l/d,-1,1))-Math.asin(Ba(b/d,-1,1)))),s=Math.max(r,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Gi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Gi(this.options.beforeFit,[this])}fit(){const n={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const l=p7(r,e.options.font);if(o?(n.width=this.maxWidth,n.height=py(a)+l):(n.height=this.maxHeight,n.width=py(a)+l),i.display&&this.ticks.length){const{first:d,last:h,widest:_,highest:b}=this._getLabelSizes(),C=2*i.padding,k=Vl(this.labelRotation),U=Math.cos(k),Q=Math.sin(k);o?n.height=Math.min(this.maxHeight,n.height+(i.mirror?0:Q*_.width+U*b.height)+C):n.width=Math.min(this.maxWidth,n.width+(i.mirror?0:U*_.width+Q*b.height)+C),this._calculatePadding(d,h,Q,U)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=n.height):(this.width=n.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(n,e,i,r){const{ticks:{align:a,padding:s},position:o}=this.options,l=0!==this.labelRotation,d="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,_=this.right-this.getPixelForTick(this.ticks.length-1);let b=0,C=0;l?d?(b=r*n.width,C=i*e.height):(b=i*n.height,C=r*e.width):"start"===a?C=e.width:"end"===a?b=n.width:"inner"!==a&&(b=n.width/2,C=e.width/2),this.paddingLeft=Math.max((b-h+s)*this.width/(this.width-h),0),this.paddingRight=Math.max((C-_+s)*this.width/(this.width-_),0)}else{let h=e.height/2,_=n.height/2;"start"===a?(h=0,_=n.height):"end"===a&&(h=e.height,_=0),this.paddingTop=h+s,this.paddingBottom=_+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Gi(this.options.afterFit,[this])}isHorizontal(){const{axis:n,position:e}=this.options;return"top"===e||"bottom"===e||"x"===n}isFullSize(){return this.options.fullSize}_convertTicksToLabels(n){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(n),e=0,i=n.length;e<i;e++)Xn(n[e].label)&&(n.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let n=this._labelSizes;if(!n){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=f7(i,e)),this._labelSizes=n=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return n}_computeLabelSizes(n,e,i){const{ctx:r,_longestTextCache:a}=this,s=[],o=[],l=Math.floor(e/h7(e,i));let _,b,C,k,U,Q,de,he,Ae,Pe,Le,d=0,h=0;for(_=0;_<e;_+=l){if(k=n[_].label,U=this._resolveTickFontOptions(_),r.font=Q=U.string,de=a[Q]=a[Q]||{data:{},gc:[]},he=U.lineHeight,Ae=Pe=0,Xn(k)||tr(k)){if(tr(k))for(b=0,C=k.length;b<C;++b)Le=k[b],!Xn(Le)&&!tr(Le)&&(Ae=ww(r,de.data,de.gc,Ae,Le),Pe+=he)}else Ae=ww(r,de.data,de.gc,Ae,k),Pe=he;s.push(Ae),o.push(Pe),d=Math.max(Ae,d),h=Math.max(Pe,h)}!function XEe(t,n){Ai(t,e=>{const i=e.gc,r=i.length/2;let a;if(r>n){for(a=0;a<r;++a)delete e.data[i[a]];i.splice(0,r)}})}(a,e);const $e=s.indexOf(d),et=o.indexOf(h),Je=gt=>({width:s[gt]||0,height:o[gt]||0});return{first:Je(0),last:Je(e-1),widest:Je($e),highest:Je(et),widths:s,heights:o}}getLabelForValue(n){return n}getPixelForValue(n,e){return NaN}getValueForPixel(n){}getPixelForTick(n){const e=this.ticks;return n<0||n>e.length-1?null:this.getPixelForValue(e[n].value)}getPixelForDecimal(n){this._reversePixels&&(n=1-n);const e=this._startPixel+n*this._length;return function Lxe(t){return Ba(t,-32768,32767)}(this._alignToPixels?gf(this.chart,e,0):e)}getDecimalForPixel(n){const e=(n-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:n,max:e}=this;return n<0&&e<0?e:n>0&&e>0?n:0}getContext(n){const e=this.ticks||[];if(n>=0&&n<e.length){const i=e[n];return i.$context||(i.$context=function eIe(t,n,e){return Eu(t,{tick:e,index:n,type:"tick"})}(this.getContext(),n,i))}return this.$context||(this.$context=function JEe(t,n){return Eu(t,{scale:n,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const n=this.options.ticks,e=Vl(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),a=this._getLabelSizes(),s=n.autoSkipPadding||0,o=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return this.isHorizontal()?l*i>o*r?o/i:l/r:l*r<o*i?l/i:o/r}_isVisible(){const n=this.options.display;return"auto"!==n?!!n:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(n){const e=this.axis,i=this.chart,r=this.options,{grid:a,position:s,border:o}=r,l=a.offset,d=this.isHorizontal(),_=this.ticks.length+(l?1:0),b=py(a),C=[],k=o.setContext(this.getContext()),U=k.display?k.width:0,Q=U/2,de=function(mt){return gf(i,mt,U)};let he,Ae,Pe,Le,$e,et,Je,gt,Rt,zt,Qt,Jn;if("top"===s)he=de(this.bottom),et=this.bottom-b,gt=he-Q,zt=de(n.top)+Q,Jn=n.bottom;else if("bottom"===s)he=de(this.top),zt=n.top,Jn=de(n.bottom)-Q,et=he+Q,gt=this.top+b;else if("left"===s)he=de(this.right),$e=this.right-b,Je=he-Q,Rt=de(n.left)+Q,Qt=n.right;else if("right"===s)he=de(this.left),Rt=n.left,Qt=de(n.right)-Q,$e=he+Q,Je=this.left+b;else if("x"===e){if("center"===s)he=de((n.top+n.bottom)/2+.5);else if(ai(s)){const mt=Object.keys(s)[0];he=de(this.chart.scales[mt].getPixelForValue(s[mt]))}zt=n.top,Jn=n.bottom,et=he+Q,gt=et+b}else if("y"===e){if("center"===s)he=de((n.left+n.right)/2);else if(ai(s)){const mt=Object.keys(s)[0];he=de(this.chart.scales[mt].getPixelForValue(s[mt]))}$e=he-Q,Je=$e-b,Rt=n.left,Qt=n.right}const wr=kn(r.ticks.maxTicksLimit,_),Hn=Math.max(1,Math.ceil(_/wr));for(Ae=0;Ae<_;Ae+=Hn){const mt=this.getContext(Ae),wt=a.setContext(mt),Pt=o.setContext(mt),$t=wt.lineWidth,Ti=wt.color,Ia=Pt.dash||[],qi=Pt.dashOffset,Aa=wt.tickWidth,Wn=wt.tickColor,Za=wt.tickBorderDash||[],Ns=wt.tickBorderDashOffset;Pe=QEe(this,Ae,l),void 0!==Pe&&(Le=gf(i,Pe,$t),d?$e=Je=Rt=Qt=Le:et=gt=zt=Jn=Le,C.push({tx1:$e,ty1:et,tx2:Je,ty2:gt,x1:Rt,y1:zt,x2:Qt,y2:Jn,width:$t,color:Ti,borderDash:Ia,borderDashOffset:qi,tickWidth:Aa,tickColor:Wn,tickBorderDash:Za,tickBorderDashOffset:Ns}))}return this._ticksLength=_,this._borderValue=he,C}_computeLabelItems(n){const e=this.axis,i=this.options,{position:r,ticks:a}=i,s=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:d,padding:h,mirror:_}=a,b=py(i.grid),C=b+h,k=_?-h:C,U=-Vl(this.labelRotation),Q=[];let de,he,Ae,Pe,Le,$e,et,Je,gt,Rt,zt,Qt,Jn="middle";if("top"===r)$e=this.bottom-k,et=this._getXAxisLabelAlignment();else if("bottom"===r)$e=this.top+k,et=this._getXAxisLabelAlignment();else if("left"===r){const Hn=this._getYAxisLabelAlignment(b);et=Hn.textAlign,Le=Hn.x}else if("right"===r){const Hn=this._getYAxisLabelAlignment(b);et=Hn.textAlign,Le=Hn.x}else if("x"===e){if("center"===r)$e=(n.top+n.bottom)/2+C;else if(ai(r)){const Hn=Object.keys(r)[0];$e=this.chart.scales[Hn].getPixelForValue(r[Hn])+C}et=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)Le=(n.left+n.right)/2-C;else if(ai(r)){const Hn=Object.keys(r)[0];Le=this.chart.scales[Hn].getPixelForValue(r[Hn])}et=this._getYAxisLabelAlignment(b).textAlign}"y"===e&&("start"===l?Jn="top":"end"===l&&(Jn="bottom"));const wr=this._getLabelSizes();for(de=0,he=o.length;de<he;++de){Ae=o[de],Pe=Ae.label;const Hn=a.setContext(this.getContext(de));Je=this.getPixelForTick(de)+a.labelOffset,gt=this._resolveTickFontOptions(de),Rt=gt.lineHeight,zt=tr(Pe)?Pe.length:1;const mt=zt/2,wt=Hn.color,Pt=Hn.textStrokeColor,$t=Hn.textStrokeWidth;let Ia,Ti=et;if(s?(Le=Je,"inner"===et&&(Ti=de===he-1?this.options.reverse?"left":"right":0===de?this.options.reverse?"right":"left":"center"),Qt="top"===r?"near"===d||0!==U?-zt*Rt+Rt/2:"center"===d?-wr.highest.height/2-mt*Rt+Rt:Rt/2-wr.highest.height:"near"===d||0!==U?Rt/2:"center"===d?wr.highest.height/2-mt*Rt:wr.highest.height-zt*Rt,_&&(Qt*=-1),0!==U&&!Hn.showLabelBackdrop&&(Le+=Rt/2*Math.sin(U))):($e=Je,Qt=(1-zt)*Rt/2),Hn.showLabelBackdrop){const qi=os(Hn.backdropPadding),Aa=wr.heights[de],Wn=wr.widths[de];let Za=Qt-qi.top,Ns=0-qi.left;switch(Jn){case"middle":Za-=Aa/2;break;case"bottom":Za-=Aa}switch(et){case"center":Ns-=Wn/2;break;case"right":Ns-=Wn;break;case"inner":de===he-1?Ns-=Wn:de>0&&(Ns-=Wn/2)}Ia={left:Ns,top:Za,width:Wn+qi.width,height:Aa+qi.height,color:Hn.backdropColor}}Q.push({label:Pe,font:gt,textOffset:Qt,options:{rotation:U,color:wt,strokeColor:Pt,strokeWidth:$t,textAlign:Ti,textBaseline:Jn,translation:[Le,$e],backdrop:Ia}})}return Q}_getXAxisLabelAlignment(){const{position:n,ticks:e}=this.options;if(-Vl(this.labelRotation))return"top"===n?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(n){const{position:e,ticks:{crossAlign:i,mirror:r,padding:a}}=this.options,o=n+a,l=this._getLabelSizes().widest.width;let d,h;return"left"===e?r?(h=this.right+a,"near"===i?d="left":"center"===i?(d="center",h+=l/2):(d="right",h+=l)):(h=this.right-o,"near"===i?d="right":"center"===i?(d="center",h-=l/2):(d="left",h=this.left)):"right"===e?r?(h=this.left+a,"near"===i?d="right":"center"===i?(d="center",h-=l/2):(d="left",h-=l)):(h=this.left+o,"near"===i?d="left":"center"===i?(d="center",h+=l/2):(d="right",h=this.right)):d="right",{textAlign:d,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const n=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:n.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:n.width}:void 0}drawBackground(){const{ctx:n,options:{backgroundColor:e},left:i,top:r,width:a,height:s}=this;e&&(n.save(),n.fillStyle=e,n.fillRect(i,r,a,s),n.restore())}getLineWidthForValue(n){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex(a=>a.value===n);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(n){const e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(n));let a,s;const o=(l,d,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(d.x,d.y),i.stroke(),i.restore())};if(e.display)for(a=0,s=r.length;a<s;++a){const l=r[a];e.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&o({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:n,ctx:e,options:{border:i,grid:r}}=this,a=i.setContext(this.getContext()),s=i.display?a.width:0;if(!s)return;const o=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let d,h,_,b;this.isHorizontal()?(d=gf(n,this.left,s)-s/2,h=gf(n,this.right,o)+o/2,_=b=l):(_=gf(n,this.top,s)-s/2,b=gf(n,this.bottom,o)+o/2,d=h=l),e.save(),e.lineWidth=a.width,e.strokeStyle=a.color,e.beginPath(),e.moveTo(d,_),e.lineTo(h,b),e.stroke(),e.restore()}drawLabels(n){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Dw(i,r);const a=this.getLabelItems(n);for(const s of a)_f(i,s.label,0,s.textOffset,s.font,s.options);r&&Sw(i)}drawTitle(){const{ctx:n,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const a=Ea(i.font),s=os(i.padding),o=i.align;let l=a.lineHeight/2;"bottom"===e||"center"===e||ai(e)?(l+=s.bottom,tr(i.text)&&(l+=a.lineHeight*(i.text.length-1))):l+=s.top;const{titleX:d,titleY:h,maxWidth:_,rotation:b}=function nIe(t,n,e,i){const{top:r,left:a,bottom:s,right:o,chart:l}=t,{chartArea:d,scales:h}=l;let b,C,k,_=0;const U=s-r,Q=o-a;if(t.isHorizontal()){if(C=ss(i,a,o),ai(e)){const de=Object.keys(e)[0];k=h[de].getPixelForValue(e[de])+U-n}else k="center"===e?(d.bottom+d.top)/2+U-n:u7(t,e,n);b=o-a}else{if(ai(e)){const de=Object.keys(e)[0];C=h[de].getPixelForValue(e[de])-Q+n}else C="center"===e?(d.left+d.right)/2-Q+n:u7(t,e,n);k=ss(i,s,r),_="left"===e?-ea:ea}return{titleX:C,titleY:k,maxWidth:b,rotation:_}}(this,l,e,o);_f(n,i.text,0,0,a,{color:i.color,maxWidth:_,rotation:b,textAlign:tIe(o,e,r),textBaseline:"middle",translation:[d,h]})}draw(n){this._isVisible()&&(this.drawBackground(),this.drawGrid(n),this.drawBorder(),this.drawTitle(),this.drawLabels(n))}_layers(){const n=this.options,e=n.ticks&&n.ticks.z||0,i=kn(n.grid&&n.grid.z,-1),r=kn(n.border&&n.border.z,0);return this._isVisible()&&this.draw===Df.prototype.draw?[{z:i,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:a=>{this.drawLabels(a)}}]:[{z:e,draw:a=>{this.draw(a)}}]}getMatchingVisibleMetas(n){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let a,s;for(a=0,s=e.length;a<s;++a){const o=e[a];o[i]===this.id&&(!n||o.type===n)&&r.push(o)}return r}_resolveTickFontOptions(n){return Ea(this.options.ticks.setContext(this.getContext(n)).font)}_maxDigits(){const n=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/n}}class Pw{constructor(n,e,i){this.type=n,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(n){return Object.prototype.isPrototypeOf.call(this.type.prototype,n.prototype)}register(n){const e=Object.getPrototypeOf(n);let i;(function aIe(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const r=this.items,a=n.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+n);return a in r||(r[a]=n,function iIe(t,n,e){const i=Qv(Object.create(null),[e?rr.get(e):{},rr.get(n),t.defaults]);rr.set(n,i),t.defaultRoutes&&function rIe(t,n){Object.keys(n).forEach(e=>{const i=e.split("."),r=i.pop(),a=[t].concat(i).join("."),s=n[e].split("."),o=s.pop(),l=s.join(".");rr.route(a,r,l,o)})}(n,t.defaultRoutes),t.descriptors&&rr.describe(n,t.descriptors)}(n,s,i),this.override&&rr.override(n.id,n.overrides)),s}get(n){return this.items[n]}unregister(n){const e=this.items,i=n.id,r=this.scope;i in e&&delete e[i],r&&i in rr[r]&&(delete rr[r][i],this.override&&delete mf[i])}}class sIe{constructor(){this.controllers=new Pw(Iu,"datasets",!0),this.elements=new Pw(wd,"elements"),this.plugins=new Pw(Object,"plugins"),this.scales=new Pw(Df,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,e,i){[...e].forEach(r=>{const a=i||this._getRegistryForType(r);i||a.isForType(r)||a===this.plugins&&r.id?this._exec(n,a,r):Ai(r,s=>{const o=i||this._getRegistryForType(s);this._exec(n,o,s)})})}_exec(n,e,i){const r=ok(n);Gi(i["before"+r],[],i),e[n](i),Gi(i["after"+r],[],i)}_getRegistryForType(n){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(n))return i}return this.plugins}_get(n,e,i){const r=e.get(n);if(void 0===r)throw new Error('"'+n+'" is not a registered '+i+".");return r}}var Tc=new sIe;class oIe{constructor(){this._init=[]}notify(n,e,i,r){"beforeInit"===e&&(this._init=this._createDescriptors(n,!0),this._notify(this._init,n,"install"));const a=r?this._descriptors(n).filter(r):this._descriptors(n),s=this._notify(a,n,e,i);return"afterDestroy"===e&&(this._notify(a,n,"stop"),this._notify(this._init,n,"uninstall")),s}_notify(n,e,i,r){r=r||{};for(const a of n){const s=a.plugin;if(!1===Gi(s[i],[e,r,a.options],s)&&r.cancelable)return!1}return!0}invalidate(){Xn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(n){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(n);return this._notifyStateChanges(n),e}_createDescriptors(n,e){const i=n&&n.config,r=kn(i.options&&i.options.plugins,{}),a=function lIe(t){const n={},e=[],i=Object.keys(Tc.plugins.items);for(let a=0;a<i.length;a++)e.push(Tc.getPlugin(i[a]));const r=t.plugins||[];for(let a=0;a<r.length;a++){const s=r[a];-1===e.indexOf(s)&&(e.push(s),n[s.id]=!0)}return{plugins:e,localIds:n}}(i);return!1!==r||e?function dIe(t,{plugins:n,localIds:e},i,r){const a=[],s=t.getContext();for(const o of n){const l=o.id,d=cIe(i[l],r);null!==d&&a.push({plugin:o,options:uIe(t.config,{plugin:o,local:e[l]},d,s)})}return a}(n,a,r,e):[]}_notifyStateChanges(n){const e=this._oldCache||[],i=this._cache,r=(a,s)=>a.filter(o=>!s.some(l=>o.plugin.id===l.plugin.id));this._notify(r(e,i),n,"stop"),this._notify(r(i,e),n,"start")}}function cIe(t,n){return n||!1!==t?!0===t?{}:t:null}function uIe(t,{plugin:n,local:e},i,r){const a=t.pluginScopeKeys(n),s=t.getOptionScopes(i,a);return e&&n.defaults&&s.push(n.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function kk(t,n){return((n.datasets||{})[t]||{}).indexAxis||n.indexAxis||(rr.datasets[t]||{}).indexAxis||"x"}function m7(t){if("x"===t||"y"===t||"r"===t)return t}function pIe(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Nk(t,...n){if(m7(t))return t;for(const e of n){const i=e.axis||pIe(e.position)||t.length>1&&m7(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function g7(t,n,e){if(e[n+"AxisID"]===t)return{axis:n}}
1function _7(t){const n=t.options||(t.options={});n.plugins=kn(n.plugins,{}),n.scales=function gIe(t,n){const e=mf[t.type]||{scales:{}},i=n.scales||{},r=kk(t.type,n),a=Object.create(null);return Object.keys(i).forEach(s=>{const o=i[s];if(!ai(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Nk(s,o,function mIe(t,n){if(n.data&&n.data.datasets){const e=n.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return g7(t,"x",e[0])||g7(t,"y",e[0])}return{}}(s,t),rr.scales[o.type]),d=function fIe(t,n){return t===n?"_index_":"_value_"}(l,r),h=e.scales||{};a[s]=Xv(Object.create(null),[{axis:l},o,h[l],h[d]])}),t.data.datasets.forEach(s=>{const o=s.type||t.type,l=s.indexAxis||kk(o,n),h=(mf[o]||{}).scales||{};Object.keys(h).forEach(_=>{const b=function hIe(t,n){let e=t;return"_index_"===t?e=n:"_value_"===t&&(e="x"===n?"y":"x"),e}(_,l),C=s[b+"AxisID"]||b;a[C]=a[C]||Object.create(null),Xv(a[C],[{axis:b},i[C],h[_]])})}),Object.keys(a).forEach(s=>{const o=a[s];Xv(o,[rr.scales[o.type],rr.scale])}),a}(t,n)}function v7(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const y7=new Map,b7=new Set;function Ow(t,n){let e=y7.get(t);return e||(e=n(),y7.set(t,e),b7.add(e)),e}const my=(t,n,e)=>{const i=Tu(n,e);void 0!==i&&t.add(i)};class vIe{constructor(n){this._config=function _Ie(t){return(t=t||{}).data=v7(t.data),_7(t),t}(n),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(n){this._config.type=n}get data(){return this._config.data}set data(n){this._config.data=v7(n)}get options(){return this._config.options}set options(n){this._config.options=n}get plugins(){return this._config.plugins}update(){const n=this._config;this.clearCache(),_7(n)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(n){return Ow(n,()=>[[`datasets.${n}`,""]])}datasetAnimationScopeKeys(n,e){return Ow(`${n}.transition.${e}`,()=>[[`datasets.${n}.transitions.${e}`,`transitions.${e}`],[`datasets.${n}`,""]])}datasetElementScopeKeys(n,e){return Ow(`${n}-${e}`,()=>[[`datasets.${n}.elements.${e}`,`datasets.${n}`,`elements.${e}`,""]])}pluginScopeKeys(n){const e=n.id;return Ow(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...n.additionalOptionScopes||[]]])}_cachedScopes(n,e){const i=this._scopeCache;let r=i.get(n);return(!r||e)&&(r=new Map,i.set(n,r)),r}getOptionScopes(n,e,i){const{options:r,type:a}=this,s=this._cachedScopes(n,i),o=s.get(e);if(o)return o;const l=new Set;e.forEach(h=>{n&&(l.add(n),h.forEach(_=>my(l,n,_))),h.forEach(_=>my(l,r,_)),h.forEach(_=>my(l,mf[a]||{},_)),h.forEach(_=>my(l,rr,_)),h.forEach(_=>my(l,pk,_))});const d=Array.from(l);return 0===d.length&&d.push(Object.create(null)),b7.has(e)&&s.set(e,d),d}chartOptionScopes(){const{options:n,type:e}=this;return[n,mf[e]||{},rr.datasets[e]||{},{type:e},rr,pk]}resolveNamedOptions(n,e,i,r=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=C7(this._resolverCache,n,r);let l=s;(function bIe(t,n){const{isScriptable:e,isIndexable:i}=wz(t);for(const r of n){const a=e(r),s=i(r),o=(s||a)&&t[r];if(a&&(xu(o)||yIe(o))||s&&tr(o))return!0}return!1})(s,e)&&(a.$shared=!1,l=Ym(s,i=xu(i)?i():i,this.createResolver(n,i,o)));for(const d of e)a[d]=l[d];return a}createResolver(n,e,i=[""],r){const{resolver:a}=C7(this._resolverCache,n,i);return ai(e)?Ym(a,e,void 0,r):a}}function C7(t,n,e){let i=t.get(n);i||(i=new Map,t.set(n,i));const r=e.join();let a=i.get(r);
vendor: 4,281 bytes, line 1
1return a||(a={resolver:vk(n,e),subPrefixes:e.filter(o=>!o.toLowerCase().includes("hover"))},i.set(r,a)),a}const yIe=t=>ai(t)&&Object.getOwnPropertyNames(t).some(n=>xu(t[n])),wIe=["top","bottom","left","right","chartArea"];function w7(t,n){return"top"===t||"bottom"===t||-1===wIe.indexOf(t)&&"x"===n}function D7(t,n){return function(e,i){return e[t]===i[t]?e[n]-i[n]:e[t]-i[t]}}function S7(t){const n=t.chart,e=n.options.animation;n.notifyPlugins("afterRender"),Gi(e&&e.onComplete,[t],n)}function DIe(t){const n=t.chart,e=n.options.animation;Gi(e&&e.onProgress,[t],n)}function T7(t){return Ck()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Lw={},x7=t=>{const n=T7(t);return Object.values(Lw).filter(e=>e.canvas===n).pop()};function SIe(t,n,e){const i=Object.keys(t);for(const r of i){const a=+r;if(a>=n){const s=t[r];delete t[r],(e>0||a>n)&&(t[a+e]=s)}}}let gy=(()=>class t{static defaults=rr;static instances=Lw;static overrides=mf;static registry=Tc;static version="4.4.9";static getChart=x7;static register(...e){Tc.add(...e),M7()}static unregister(...e){Tc.remove(...e),M7()}constructor(e,i){const r=this.config=new vIe(i),a=T7(e),s=x7(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function zEe(t){return!Ck()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?AEe:jEe}(a)),this.platform.updateConfig(r);const l=this.platform.acquireContext(a,o.aspectRatio),d=l&&l.canvas,h=d&&d.height,_=d&&d.width;this.id=Dxe(),this.ctx=l,this.canvas=d,this.width=_,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new oIe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Uxe(t,n){let e;return function(...i){return n?(clearTimeout(e),e=setTimeout(t,n,i)):t.apply(this,i),n}}(b=>this.update(b),o.resizeDelay||0),this._dataChanges=[],Lw[this.id]=this,l&&d?(Cd.listen(this,"complete",S7),Cd.listen(this,"progress",DIe),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:i},width:r,height:a,_aspectRatio:s}=this;return Xn(e)?i&&s?s:a?r/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Tc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Az(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yz(this.canvas,this.ctx),this}stop(){return Cd.stop(this),this}resize(e,i){Cd.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){const r=this.options,o=this.platform.getMaximumSize(this.canvas,e,i,r.maintainAspectRatio&&this.aspectRatio),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Az(this,l,!0)&&(this.notifyPlugins("resize",{size:o}),Gi(r.onResize,[this,o],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){Ai(this.options.scales||{},(r,a)=>{r.id=a})}buildOrUpdateScales(){const e=this.options,i=e.scales,r=this.scales,a=Object.keys(r).reduce((o,l)=>(o[l]=!1,o),{});let s=[];i&&(s=s.concat(Object.keys(i).map(o=>{const l=i[o],d=Nk(o,l),h="r"===d,_="x"===d;return{options:l,dposition:h?"chartArea":_?"bottom":"left",dtype:h?"radialLinear":_?"category":"linear"}}))),Ai(s,o=>{const l=o.options,d=l.id,h=Nk(d,l),_=kn(l.type,o.dtype);(void 0===l.position||w7(l.position,h)!==w7(o.dposition))&&(l.position=o.dposition),a[d]=!0;let b=null;d in r&&r[d].type===_?b=r[d]:(b=new(Tc.getScale(_))({id:d,type:_,ctx:this.ctx,
1chart:this}),r[b.id]=b),b.init(l,e)}),Ai(a,(o,l)=>{o||delete r[l]}),Ai(r,o=>{ls.configure(this,o,o.options),ls.addBox(this,o)})}_updateMetasets(){const e=this._metasets,i=this.data.datasets.length,r=e.length;if(e.sort((a,s)=>a.index-s.index),r>i){for(let a=i;a<r;++a)this._destroyDatasetMeta(a);e.splice(i,r-i)}this._sortedMetasets=e.slice(0).sort(D7("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:i}}=this;e.length>i.length&&delete this._stacks,e.forEach((r,a)=>{0===i.filter(s=>s===r._dataset).length&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],i=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=i.length;r<a;r++){const s=i[r];let o=this.getDatasetMeta(r);const l=s.type||this.config.type;if(o.type&&o.type!==l&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=l,o.indexAxis=s.indexAxis||kk(l,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const d=Tc.getController(l),{datasetElementType:h,dataElementType:_}=rr.datasets[l];Object.assign(d,{dataElementType:Tc.getElement(_),datasetElementType:h&&Tc.getElement(h)}),o.controller=new d(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Ai(this.data.datasets,(e,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const i=this.config;i.update();const r=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let h=0,_=this.data.datasets.length;h<_;h++){const{controller:b}=this.getDatasetMeta(h),C=!a&&-1===s.indexOf(b);b.buildOrUpdateElements(C),o=Math.max(+b.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),a||Ai(s,h=>{h.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(D7("z","_idx"));const{_active:l,_lastEvent:d}=this;d?this._eventHandler(d,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Ai(this.scales,e=>{ls.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,i=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!tz(i,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of i)SIe(e,a,"_removeElements"===r?-s:s)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const i=this.data.datasets.length,r=s=>new Set(e.filter(o=>o[0]===s).map((o,l)=>l+","+o.splice(1).join(","))),a=r(0);for(let s=1;s<i;s++)if(!tz(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ls.update(this,this.width,this.height,e);const i=this.chartArea,r=i.width<=0||i.height<=0;this._layers=[],Ai(this.boxes,a=>{r&&"chartArea"===a.position||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let i=0,r=this.data.datasets.length;i<r;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,r=this.data.datasets.length;i<r;++i)this._updateDataset(i,xu(e)?e({datasetIndex:i}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}
vendor: 5,345 bytes, line 1
1_updateDataset(e,i){const r=this.getDatasetMeta(e),a={meta:r,index:e,mode:i,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",a)&&(r.controller._update(i),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Cd.has(this)?this.attached&&!Cd.running(this)&&Cd.start(this):(this.draw(),S7({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const i=this._sortedMetasets,r=[];let a,s;for(a=0,s=i.length;a<s;++a){const o=i[a];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const i=this.ctx,r={meta:e,index:e.index,cancelable:!0},a=function Uz(t,n){const e=n._clip;if(e.disabled)return!1;const i=function HMe(t,n){const{xScale:e,yScale:i}=t;return e&&i?{left:Iw(e,n,"left"),right:Iw(e,n,"right"),top:Iw(i,n,"top"),bottom:Iw(i,n,"bottom")}:n}(n,t.chartArea);return{left:!1===e.left?0:i.left-(!0===e.left?0:e.left),right:!1===e.right?t.width:i.right+(!0===e.right?0:e.right),top:!1===e.top?0:i.top-(!0===e.top?0:e.top),bottom:!1===e.bottom?t.height:i.bottom+(!0===e.bottom?0:e.bottom)}}(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(a&&Dw(i,a),e.controller.draw(),a&&Sw(i),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return bd(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,r,a){const s=wEe.modes[i];return"function"==typeof s?s(this,e,r,a):[]}getDatasetMeta(e){const i=this.data.datasets[e],r=this._metasets;let a=r.filter(s=>s&&s._dataset===i).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Eu(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const i=this.data.datasets[e];if(!i)return!1;const r=this.getDatasetMeta(e);return"boolean"==typeof r.hidden?!r.hidden:!i.hidden}setDatasetVisibility(e,i){this.getDatasetMeta(e).hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,r){const a=r?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,a);Jv(i)?(s.data[i].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(s,{visible:r}),this.update(l=>l.datasetIndex===e?a:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){const i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Cd.remove(this),e=0,i=this.data.datasets.length;e<i;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:i}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),yz(e,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete Lw[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,i=this.platform,r=(s,o)=>{i.addEventListener(this,s,o),e[s]=o},a=(s,o,l)=>{s.offsetX=o,s.offsetY=l,this._eventHandler(s)};Ai(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,i=this.platform,r=(d,h)=>{i.addEventListener(this,d,h),e[d]=h},a=(d,h)=>{e[d]&&(i.removeEventListener(this,d,h),delete e[d])},s=(d,h)=>{this.canvas&&this.resize(d,h)};let o;const l=()=>{a("attach",l),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",l)},i.isAttached(this.canvas)?l():o()}unbindEvents(){Ai(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},Ai(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,r){const a=r?"set":"remove";let s,o,l,d;for("dataset"===i&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),l=0,d=e.length;l<d;++l){o=e[l];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[a+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const i=this._active||[],r=e.map(({datasetIndex:s,index:o})=>{const l=this.getDatasetMeta(s);if(!l)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:l.data[o],index:o}});
vendor: 9,906 bytes, line 1
1!_w(r,i)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,i))}notifyPlugins(e,i,r){return this._plugins.notify(this,e,i,r)}isPluginEnabled(e){return 1===this._plugins._cache.filter(i=>i.plugin.id===e).length}_updateHoverStyles(e,i,r){const a=this.options.hover,s=(d,h)=>d.filter(_=>!h.some(b=>_.datasetIndex===b.datasetIndex&&_.index===b.index)),o=s(i,e),l=r?e:s(e,i);o.length&&this.updateHoverStyle(o,a.mode,!1),l.length&&a.mode&&this.updateHoverStyle(l,a.mode,!0)}_eventHandler(e,i){const r={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},a=o=>(o.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",r,a))return;const s=this._handleEvent(e,i,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(e,i,r){const{_active:a=[],options:s}=this,l=this._getActiveElements(e,a,r,i),d=function Ixe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(e),h=function TIe(t,n,e,i){return e&&"mouseout"!==t.type?i?n:t:null}(e,this._lastEvent,r,d);r&&(this._lastEvent=null,Gi(s.onHover,[e,l,this],this),d&&Gi(s.onClick,[e,l,this],this));const _=!_w(l,a);return(_||i)&&(this._active=l,this._updateHoverStyles(l,a,i)),this._lastEvent=h,_}_getActiveElements(e,i,r,a){if("mouseout"===e.type)return[];if(!r)return i;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,a)}})();function M7(){return Ai(gy.instances,t=>t._plugins.invalidate())}function Gm(t,n,e,i){return{x:e+t*Math.cos(n),y:i+t*Math.sin(n)}}function Fw(t,n,e,i,r,a){const{x:s,y:o,startAngle:l,pixelMargin:d,innerRadius:h}=n,_=Math.max(n.outerRadius+i+e-d,0),b=h>0?h+i+e+d:0;let C=0;const k=r-l;if(i){const wt=((h>0?h-i:0)+(_>0?_-i:0))/2;C=(k-(0!==wt?k*wt/(wt+i):k))/2}const Q=(k-Math.max(.001,k*_-e/nr)/_)/2,de=l+Q+C,he=r-Q-C,{outerStart:Ae,outerEnd:Pe,innerStart:Le,innerEnd:$e}=function EIe(t,n,e,i){const r=function MIe(t){return _k(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),a=(e-n)/2,s=Math.min(a,i*n/2),o=l=>{const d=(e-Math.min(a,l))*i/2;return Ba(l,0,Math.min(a,d))};return{outerStart:o(r.outerStart),outerEnd:o(r.outerEnd),innerStart:Ba(r.innerStart,0,s),innerEnd:Ba(r.innerEnd,0,s)}}(n,b,_,he-de),et=_-Ae,Je=_-Pe,gt=de+Ae/et,Rt=he-Pe/Je,zt=b+Le,Qt=b+$e,Jn=de+Le/zt,wr=he-$e/Qt;if(t.beginPath(),a){const Hn=(gt+Rt)/2;if(t.arc(s,o,_,gt,Hn),t.arc(s,o,_,Hn,Rt),Pe>0){const $t=Gm(Je,Rt,s,o);t.arc($t.x,$t.y,Pe,Rt,he+ea)}const mt=Gm(Qt,he,s,o);if(t.lineTo(mt.x,mt.y),$e>0){const $t=Gm(Qt,wr,s,o);t.arc($t.x,$t.y,$e,he+ea,wr+Math.PI)}const wt=(he-$e/b+(de+Le/b))/2;if(t.arc(s,o,b,he-$e/b,wt,!0),t.arc(s,o,b,wt,de+Le/b,!0),Le>0){const $t=Gm(zt,Jn,s,o);t.arc($t.x,$t.y,Le,Jn+Math.PI,de-ea)}const Pt=Gm(et,de,s,o);if(t.lineTo(Pt.x,Pt.y),Ae>0){const $t=Gm(et,gt,s,o);t.arc($t.x,$t.y,Ae,de-ea,gt)}}else{t.moveTo(s,o);const Hn=Math.cos(gt)*_+s,mt=Math.sin(gt)*_+o;t.lineTo(Hn,mt);const wt=Math.cos(Rt)*_+s,Pt=Math.sin(Rt)*_+o;t.lineTo(wt,Pt)}t.closePath()}class Rk extends wd{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:n=>"borderDash"!==n};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(n){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,e,i){const r=this.getProps(["x","y"],i),{angle:a,distance:s}=sz(r,{x:n,y:e}),{startAngle:o,endAngle:l,innerRadius:d,outerRadius:h,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),b=(this.options.spacing+this.options.borderWidth)/2,C=kn(_,l-o),k=ty(a,o,l)&&o!==l,U=C>=ir||k,Q=vd(s,d+b,h+b);return U&&Q}getCenterPoint(n){const{x:e,y:i,startAngle:r,endAngle:a,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:l,spacing:d}=this.options,h=(r+a)/2,_=(s+o+d+l)/2;return{x:e+Math.cos(h)*_,y:i+Math.sin(h)*_}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:e,circumference:i}=this,r=(e.offset||0)/4,a=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>ir?Math.floor(i/ir):0,0===i||this.innerRadius<0||this.outerRadius<0)return;n.save();const o=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(o)*r,Math.sin(o)*r);const d=r*(1-Math.sin(Math.min(nr,i||0)));n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,function IIe(t,n,e,i,r){const{fullCircles:a,startAngle:s,circumference:o}=n;let l=n.endAngle;if(a){Fw(t,n,e,i,l,r);for(let d=0;d<a;++d)t.fill();isNaN(o)||(l=s+(o%ir||ir))}Fw(t,n,e,i,l,r),t.fill()}(n,this,d,a,s),function AIe(t,n,e,i,r){const{fullCircles:a,startAngle:s,circumference:o,options:l}=n,{borderWidth:d,borderJoinStyle:h,borderDash:_,borderDashOffset:b}=l,C="inner"===l.borderAlign;if(!d)return;t.setLineDash(_||[]),t.lineDashOffset=b,C?(t.lineWidth=2*d,t.lineJoin=h||"round"):(t.lineWidth=d,t.lineJoin=h||"bevel");let k=n.endAngle;if(a){Fw(t,n,e,i,k,r);for(let U=0;U<a;++U)t.stroke();isNaN(o)||(k=s+(o%ir||ir))}C&&function xIe(t,n,e){const{startAngle:i,pixelMargin:r,x:a,y:s,outerRadius:o,innerRadius:l}=n;let d=r/o;t.beginPath(),t.arc(a,s,o,i-d,e+d),l>r?(d=r/l,t.arc(a,s,l,e+d,i-d,!0)):t.arc(a,s,r,e+ea,i-ea),t.closePath(),t.clip()}(t,n,k),a||(Fw(t,n,e,i,k,r),t.stroke())}(n,this,d,a,s),n.restore()}}const $7=(t,n)=>{let{boxHeight:e=n,boxWidth:i=n}=t;return t.usePointStyle&&(e=Math.min(e,n),i=t.pointStyleWidth||Math.min(i,n)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(n,e)}};class W7 extends wd{constructor(n){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=n.chart,this.options=n.options,this.ctx=n.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(n,e,i){this.maxWidth=n,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const n=this.options.labels||{};let e=Gi(n.generateLabels,[this.chart],this)||[];n.filter&&(e=e.filter(i=>n.filter(i,this.chart.data))),n.sort&&(e=e.sort((i,r)=>n.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:n,ctx:e}=this;if(!n.display)return void(this.width=this.height=0);const i=n.labels,r=Ea(i.font),a=r.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=$7(i,a);let d,h;e.font=r.string,this.isHorizontal()?(d=this.maxWidth,h=this._fitRows(s,a,o,l)+10):(h=this.maxHeight,d=this._fitCols(s,r,o,l)+10),this.width=Math.min(d,n.maxWidth||this.maxWidth),this.height=Math.min(h,n.maxHeight||this.maxHeight)}_fitRows(n,e,i,r){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],d=this.lineWidths=[0],h=r+o;let _=n;a.textAlign="left",a.textBaseline="middle";let b=-1,C=-h;return this.legendItems.forEach((k,U)=>{const Q=i+e/2+a.measureText(k.text).width;(0===U||d[d.length-1]+Q+2*o>s)&&(_+=h,d[d.length-(U>0?0:1)]=0,C+=h,b++),l[U]={left:0,top:C,row:b,width:Q,height:r},d[d.length-1]+=Q+o}),_}_fitCols(n,e,i,r){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],d=this.columnSizes=[],h=s-n;let _=o,b=0,C=0,k=0,U=0;return this.legendItems.forEach((Q,de)=>{const{itemWidth:he,itemHeight:Ae}=function xAe(t,n,e,i,r){const a=function MAe(t,n,e,i){let r=t.text;return r&&"string"!=typeof r&&(r=r.reduce((a,s)=>a.length>s.length?a:s)),n+e.size/2+i.measureText(r).width}(i,t,n,e),s=function EAe(t,n,e){let i=t;return"string"!=typeof n.text&&(i=G7(n,e)),i}(r,i,n.lineHeight);return{itemWidth:a,itemHeight:s}}(i,e,a,Q,r);de>0&&C+Ae+2*o>h&&(_+=b+o,d.push({width:b,height:C}),k+=b+o,U++,b=C=0),l[de]={left:k,top:C,col:U,width:he,height:Ae},b=Math.max(b,he),C+=Ae+o}),_+=b,d.push({width:b,height:C}),_}adjustHitBoxes(){if(!this.options.display)return;const n=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:a}}=this,s=Wm(a,this.left,this.width);if(this.isHorizontal()){let o=0,l=ss(i,this.left+r,this.right-this.lineWidths[o]);for(const d of e)o!==d.row&&(o=d.row,l=ss(i,this.left+r,this.right-this.lineWidths[o])),d.top+=this.top+n+r,d.left=s.leftForLtr(s.x(l),d.width),l+=d.width+r}else{let o=0,l=ss(i,this.top+n+r,this.bottom-this.columnSizes[o].height);for(const d of e)d.col!==o&&(o=d.col,l=ss(i,this.top+n+r,this.bottom-this.columnSizes[o].height)),d.top=l,d.left+=this.left+r,d.left=s.leftForLtr(s.x(d.left),d.width),l+=d.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const n=this.ctx;Dw(n,this),this._draw(),Sw(n)}}_draw(){const{options:n,columnSizes:e,lineWidths:i,ctx:r}=this,{align:a,labels:s}=n,o=rr.color,l=Wm(n.rtl,this.left,this.width),d=Ea(s.font),{padding:h}=s,_=d.size,b=_/2;let C;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=d.string;const{boxWidth:k,boxHeight:U,itemHeight:Q}=$7(s,_),Ae=this.isHorizontal(),Pe=this._computeTitleHeight();C=Ae?{x:ss(a,this.left+h,this.right-i[0]),y:this.top+h+Pe,line:0}:{x:this.left+h,y:ss(a,this.top+Pe+h,this.bottom-e[0].height),line:0},Nz(this.ctx,n.textDirection);const Le=Q+h;
vendor: 6,778 bytes, line 1
1this.legendItems.forEach(($e,et)=>{r.strokeStyle=$e.fontColor,r.fillStyle=$e.fontColor;const Je=r.measureText($e.text).width,gt=l.textAlign($e.textAlign||($e.textAlign=s.textAlign)),Rt=k+b+Je;let zt=C.x,Qt=C.y;l.setWidth(this.width),Ae?et>0&&zt+Rt+h>this.right&&(Qt=C.y+=Le,C.line++,zt=C.x=ss(a,this.left+h,this.right-i[C.line])):et>0&&Qt+Le>this.bottom&&(zt=C.x=zt+e[C.line].width+h,C.line++,Qt=C.y=ss(a,this.top+Pe+h,this.bottom-e[C.line].height)),function($e,et,Je){if(isNaN(k)||k<=0||isNaN(U)||U<0)return;r.save();const gt=kn(Je.lineWidth,1);if(r.fillStyle=kn(Je.fillStyle,o),r.lineCap=kn(Je.lineCap,"butt"),r.lineDashOffset=kn(Je.lineDashOffset,0),r.lineJoin=kn(Je.lineJoin,"miter"),r.lineWidth=gt,r.strokeStyle=kn(Je.strokeStyle,o),r.setLineDash(kn(Je.lineDash,[])),s.usePointStyle){const Rt={radius:U*Math.SQRT2/2,pointStyle:Je.pointStyle,rotation:Je.rotation,borderWidth:gt},zt=l.xPlus($e,k/2);bz(r,Rt,zt,et+b,s.pointStyleWidth&&k)}else{const Rt=et+Math.max((_-U)/2,0),zt=l.leftForLtr($e,k),Qt=vf(Je.borderRadius);r.beginPath(),Object.values(Qt).some(Jn=>0!==Jn)?ay(r,{x:zt,y:Rt,w:k,h:U,radius:Qt}):r.rect(zt,Rt,k,U),r.fill(),0!==gt&&r.stroke()}r.restore()}(l.x(zt),Qt,$e),zt=((t,n,e,i)=>t===(i?"left":"right")?e:"center"===t?(n+e)/2:n)(gt,zt+k+b,Ae?zt+Rt:this.right,n.rtl),function($e,et,Je){_f(r,Je.text,$e,et+Q/2,d,{strikethrough:Je.hidden,textAlign:l.textAlign(Je.textAlign)})}(l.x(zt),Qt,$e),Ae?C.x+=Rt+h:C.y+="string"!=typeof $e.text?G7($e,d.lineHeight)+h:Le}),Rz(this.ctx,n.textDirection)}drawTitle(){const n=this.options,e=n.title,i=Ea(e.font),r=os(e.padding);if(!e.display)return;const a=Wm(n.rtl,this.left,this.width),s=this.ctx,o=e.position,d=r.top+i.size/2;let h,_=this.left,b=this.width;if(this.isHorizontal())b=Math.max(...this.lineWidths),h=this.top+d,_=ss(n.align,_,this.right-b);else{const k=this.columnSizes.reduce((U,Q)=>Math.max(U,Q.height),0);h=d+ss(n.align,this.top,this.bottom-k-n.labels.padding-this._computeTitleHeight())}const C=ss(o,_,_+b);s.textAlign=a.textAlign(uk(o)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,_f(s,e.text,C,h,i)}_computeTitleHeight(){const n=this.options.title,e=Ea(n.font),i=os(n.padding);return n.display?e.lineHeight+i.height:0}_getLegendItemAt(n,e){let i,r,a;if(vd(n,this.left,this.right)&&vd(e,this.top,this.bottom))for(a=this.legendHitBoxes,i=0;i<a.length;++i)if(r=a[i],vd(n,r.left,r.left+r.width)&&vd(e,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(n){const e=this.options;if(!function IAe(t,n){return!(("mousemove"!==t&&"mouseout"!==t||!n.onHover&&!n.onLeave)&&(!n.onClick||"click"!==t&&"mouseup"!==t))}(n.type,e))return;const i=this._getLegendItemAt(n.x,n.y);if("mousemove"===n.type||"mouseout"===n.type){const r=this._hoveredItem,a=((t,n)=>null!==t&&null!==n&&t.datasetIndex===n.datasetIndex&&t.index===n.index)(r,i);r&&!a&&Gi(e.onLeave,[n,r,this],this),this._hoveredItem=i,i&&!a&&Gi(e.onHover,[n,i,this],this)}else i&&Gi(e.onClick,[n,i,this],this)}}function G7(t,n){return n*(t.text?t.text.length:0)}var Hk={id:"legend",_element:W7,start(t,n,e){const i=t.legend=new W7({ctx:t.ctx,options:e,chart:t});ls.configure(t,i,e),ls.addBox(t,i)},stop(t){ls.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,n,e){const i=t.legend;ls.configure(t,i,e),i.options=e},afterUpdate(t){const n=t.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(t,n){n.replay||t.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,n,e){const i=n.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),n.hidden=!0):(r.show(i),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const n=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:a,useBorderRadius:s,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const d=l.controller.getStyle(e?0:void 0),h=os(d.borderWidth);return{text:n[l.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:d.borderColor,pointStyle:i||d.pointStyle,rotation:d.rotation,textAlign:r||d.textAlign,borderRadius:s&&(o||d.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const _y={average(t){if(!t.length)return!1;let n,e,i=new Set,r=0,a=0;for(n=0,e=t.length;n<e;++n){const o=t[n].element;if(o&&o.hasValue()){const l=o.tooltipPosition();i.add(l.x),r+=l.y,++a}}return 0!==a&&0!==i.size&&{x:[...i].reduce((o,l)=>o+l)/i.size,y:r/a}},nearest(t,n){if(!t.length)return!1;let a,s,o,e=n.x,i=n.y,r=Number.POSITIVE_INFINITY;for(a=0,s=t.length;a<s;++a){const l=t[a].element;if(l&&l.hasValue()){const h=ck(n,l.getCenterPoint());h<r&&(r=h,o=l)}}if(o){const l=o.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function xc(t,n){return n&&(tr(n)?Array.prototype.push.apply(t,n):t.push(n)),t}function Dd(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function RAe(t,n){const{element:e,datasetIndex:i,index:r}=n,a=t.getDatasetMeta(i).controller,{label:s,value:o}=a.getLabelAndValue(r);return{chart:t,label:s,parsed:a.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:o,dataset:a.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function q7(t,n){const e=t.chart.ctx,{body:i,footer:r,title:a}=t,{boxWidth:s,boxHeight:o}=n,l=Ea(n.bodyFont),d=Ea(n.titleFont),h=Ea(n.footerFont),_=a.length,b=r.length,C=i.length,k=os(n.padding);let U=k.height,Q=0,de=i.reduce((Pe,Le)=>Pe+Le.before.length+Le.lines.length+Le.after.length,0);de+=t.beforeBody.length+t.afterBody.length,_&&(U+=_*d.lineHeight+(_-1)*n.titleSpacing+n.titleMarginBottom),de&&(U+=C*(n.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(de-C)*l.lineHeight+(de-1)*n.bodySpacing),b&&(U+=n.footerMarginTop+b*h.lineHeight+(b-1)*n.footerSpacing);let he=0;const Ae=function(Pe){Q=Math.max(Q,e.measureText(Pe).width+he)};return e.save(),e.font=d.string,Ai(t.title,Ae),e.font=l.string,Ai(t.beforeBody.concat(t.afterBody),Ae),he=n.displayColors?s+2+n.boxPadding:0,Ai(i,Pe=>{Ai(Pe.before,Ae),Ai(Pe.lines,Ae),Ai(Pe.after,Ae)}),he=0,e.font=h.string,Ai(t.footer,Ae),e.restore(),Q+=k.width,{width:Q,height:U}}function LAe(t,n,e,i){const{x:r,width:a}=e,{width:s,chartArea:{left:o,right:l}}=t;let d="center";return"center"===i?d=r<=(o+l)/2?"left":"right":r<=a/2?d="left":r>=s-a/2&&(d="right"),function OAe(t,n,e,i){const{x:r,width:a}=i,s=e.caretSize+e.caretPadding;if("left"===t&&r+a+s>n.width||"right"===t&&r-a-s<0)return!0}
vendor: 5,104 bytes, line 1
1(d,t,n,e)&&(d="center"),d}function K7(t,n,e){const i=e.yAlign||n.yAlign||function PAe(t,n){const{y:e,height:i}=n;return e<i/2?"top":e>t.height-i/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||n.xAlign||LAe(t,n,e,i),yAlign:i}}function Z7(t,n,e,i){const{caretSize:r,caretPadding:a,cornerRadius:s}=t,{xAlign:o,yAlign:l}=e,d=r+a,{topLeft:h,topRight:_,bottomLeft:b,bottomRight:C}=vf(s);let k=function FAe(t,n){let{x:e,width:i}=t;return"right"===n?e-=i:"center"===n&&(e-=i/2),e}(n,o);const U=function BAe(t,n,e){let{y:i,height:r}=t;return"top"===n?i+=e:i-="bottom"===n?r+e:r/2,i}(n,l,d);return"center"===l?"left"===o?k+=d:"right"===o&&(k-=d):"left"===o?k-=Math.max(h,b)+r:"right"===o&&(k+=Math.max(_,C)+r),{x:Ba(k,0,i.width-n.width),y:Ba(U,0,i.height-n.height)}}function Uw(t,n,e){const i=os(e.padding);return"center"===n?t.x+t.width/2:"right"===n?t.x+t.width-i.right:t.x+i.left}function Q7(t){return xc([],Dd(t))}function X7(t,n){const e=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return e?t.override(e):t}const J7={beforeTitle:_d,title(t){if(t.length>0){const n=t[0],e=n.chart.data.labels,i=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(i>0&&n.dataIndex<i)return e[n.dataIndex]}return""},afterTitle:_d,beforeBody:_d,beforeLabel:_d,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let n=t.dataset.label||"";n&&(n+=": ");const e=t.formattedValue;return Xn(e)||(n+=e),n},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:_d,afterBody:_d,beforeFooter:_d,footer:_d,afterFooter:_d};function Qs(t,n,e,i){const r=t[n].call(e,i);return typeof r>"u"?J7[n].call(e,i):r}let e9=(()=>class t extends wd{static positioners=_y;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&i.options.animation&&r.animations,s=new jz(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=function VAe(t,n,e){return Eu(t,{tooltip:n,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){const{callbacks:r}=i,a=Qs(r,"beforeTitle",this,e),s=Qs(r,"title",this,e),o=Qs(r,"afterTitle",this,e);let l=[];return l=xc(l,Dd(a)),l=xc(l,Dd(s)),l=xc(l,Dd(o)),l}getBeforeBody(e,i){return Q7(Qs(i.callbacks,"beforeBody",this,e))}getBody(e,i){const{callbacks:r}=i,a=[];return Ai(e,s=>{const o={before:[],lines:[],after:[]},l=X7(r,s);xc(o.before,Dd(Qs(l,"beforeLabel",this,s))),xc(o.lines,Qs(l,"label",this,s)),xc(o.after,Dd(Qs(l,"afterLabel",this,s))),a.push(o)}),a}getAfterBody(e,i){return Q7(Qs(i.callbacks,"afterBody",this,e))}getFooter(e,i){const{callbacks:r}=i,a=Qs(r,"beforeFooter",this,e),s=Qs(r,"footer",this,e),o=Qs(r,"afterFooter",this,e);let l=[];return l=xc(l,Dd(a)),l=xc(l,Dd(s)),l=xc(l,Dd(o)),l}_createItems(e){const i=this._active,r=this.chart.data,a=[],s=[],o=[];let d,h,l=[];for(d=0,h=i.length;d<h;++d)l.push(RAe(this.chart,i[d]));return e.filter&&(l=l.filter((_,b,C)=>e.filter(_,b,C,r))),e.itemSort&&(l=l.sort((_,b)=>e.itemSort(_,b,r))),Ai(l,_=>{const b=X7(e.callbacks,_);a.push(Qs(b,"labelColor",this,_)),s.push(Qs(b,"labelPointStyle",this,_)),o.push(Qs(b,"labelTextColor",this,_))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(e,i){const r=this.options.setContext(this.getContext()),a=this._active;let s,o=[];if(a.length){const l=_y[r.position].call(this,a,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const d=this._size=q7(this,r),h=Object.assign({},l,d),_=K7(this.chart,r,h),b=Z7(r,h,_,this.chart);this.xAlign=_.xAlign,this.yAlign=_.yAlign,s={opacity:1,x:b.x,y:b.y,width:d.width,height:d.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(s={opacity:0}
vendor: 4,442 bytes, line 1
1);this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,r,a){const s=this.getCaretPosition(e,r,a);i.lineTo(s.x1,s.y1),i.lineTo(s.x2,s.y2),i.lineTo(s.x3,s.y3)}getCaretPosition(e,i,r){const{xAlign:a,yAlign:s}=this,{caretSize:o,cornerRadius:l}=r,{topLeft:d,topRight:h,bottomLeft:_,bottomRight:b}=vf(l),{x:C,y:k}=e,{width:U,height:Q}=i;let de,he,Ae,Pe,Le,$e;return"center"===s?(Le=k+Q/2,"left"===a?(de=C,he=de-o,Pe=Le+o,$e=Le-o):(de=C+U,he=de+o,Pe=Le-o,$e=Le+o),Ae=de):(he="left"===a?C+Math.max(d,_)+o:"right"===a?C+U-Math.max(h,b)-o:this.caretX,"top"===s?(Pe=k,Le=Pe-o,de=he-o,Ae=he+o):(Pe=k+Q,Le=Pe+o,de=he+o,Ae=he-o),$e=Pe),{x1:de,x2:he,x3:Ae,y1:Pe,y2:Le,y3:$e}}drawTitle(e,i,r){const a=this.title,s=a.length;let o,l,d;if(s){const h=Wm(r.rtl,this.x,this.width);for(e.x=Uw(this,r.titleAlign,r),i.textAlign=h.textAlign(r.titleAlign),i.textBaseline="middle",o=Ea(r.titleFont),l=r.titleSpacing,i.fillStyle=r.titleColor,i.font=o.string,d=0;d<s;++d)i.fillText(a[d],h.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+l,d+1===s&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,i,r,a,s){const o=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:d,boxWidth:h}=s,_=Ea(s.bodyFont),b=Uw(this,"left",s),C=a.x(b),U=i.y+(d<_.lineHeight?(_.lineHeight-d)/2:0);if(s.usePointStyle){const Q={radius:Math.min(h,d)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},de=a.leftForLtr(C,h)+h/2,he=U+d/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,gk(e,Q,de,he),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,gk(e,Q,de,he)}else{e.lineWidth=ai(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const Q=a.leftForLtr(C,h),de=a.leftForLtr(a.xPlus(C,1),h-2),he=vf(o.borderRadius);Object.values(he).some(Ae=>0!==Ae)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,ay(e,{x:Q,y:U,w:h,h:d,radius:he}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ay(e,{x:de,y:U+1,w:h-2,h:d-2,radius:he}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(Q,U,h,d),e.strokeRect(Q,U,h,d),e.fillStyle=o.backgroundColor,e.fillRect(de,U+1,h-2,d-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,i,r){const{body:a}=this,{bodySpacing:s,bodyAlign:o,displayColors:l,boxHeight:d,boxWidth:h,boxPadding:_}=r,b=Ea(r.bodyFont);let C=b.lineHeight,k=0;const U=Wm(r.rtl,this.x,this.width),Q=function(gt){i.fillText(gt,U.x(e.x+k),e.y+C/2),e.y+=C+s},de=U.textAlign(o);let he,Ae,Pe,Le,$e,et,Je;for(i.textAlign=o,i.textBaseline="middle",i.font=b.string,e.x=Uw(this,de,r),i.fillStyle=r.bodyColor,Ai(this.beforeBody,Q),k=l&&"right"!==de?"center"===o?h/2+_:h+2+_:0,Le=0,et=a.length;Le<et;++Le){for(he=a[Le],Ae=this.labelTextColors[Le],i.fillStyle=Ae,Ai(he.before,Q),Pe=he.lines,l&&Pe.length&&(this._drawColorBox(i,e,Le,U,r),C=Math.max(b.lineHeight,d)),$e=0,Je=Pe.length;$e<Je;++$e)Q(Pe[$e]),C=b.lineHeight;Ai(he.after,Q)}k=0,C=b.lineHeight,Ai(this.afterBody,Q),e.y-=s}drawFooter(e,i,r){const a=this.footer,s=a.length;let o,l;if(s){const d=Wm(r.rtl,this.x,this.width);for(e.x=Uw(this,r.footerAlign,r),e.y+=r.footerMarginTop,i.textAlign=d.textAlign(r.footerAlign),i.textBaseline="middle",o=Ea(r.footerFont),i.fillStyle=r.footerColor,i.font=o.string,l=0;l<s;++l)i.fillText(a[l],d.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,i,r,a){const{xAlign:s,yAlign:o}=this,{x:l,y:d}=e,{width:h,height:_}=r,{topLeft:b,topRight:C,bottomLeft:k,bottomRight:U}=vf(a.cornerRadius);i.fillStyle=a.backgroundColor,i.strokeStyle=a.borderColor,i.lineWidth=a.borderWidth,i.beginPath(),i.moveTo(l+b,d),"top"===o&&this.drawCaret(e,i,r,a),i.lineTo(l+h-C,d),i.quadraticCurveTo(l+h,d,l+h,d+C),"center"===o&&"right"===s&&this.drawCaret(e,i,r,a),i.lineTo(l+h,d+_-U),i.quadraticCurveTo(l+h,d+_,l+h-U,d+_),"bottom"===o&&this.drawCaret(e,i,r,a),i.lineTo(l+k,d+_),i.quadraticCurveTo(l,d+_,l,d+_-k),"center"===o&&"left"===s&&this.drawCaret(e,i,r,a),i.lineTo(l,d+b),i.quadraticCurveTo(l,d,l+b,d),i.closePath(),i.fill(),a.borderWidth>0&&i.stroke()}_updateAnimationTarget(e){const i=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const o=_y[e.position].call(this,this._active,this._eventPosition);if(!o)return;const l=this._size=q7(this,e),d=Object.assign({},o,this._size),h=K7(i,e,d),_=Z7(e,d,h,i);
1(a._to!==_.x||s._to!==_.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=l.width,this.height=l.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,_))}}_willRender(){return!!this.opacity}draw(e){const i=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(i);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=os(i.padding);i.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,a,i),Nz(e,i.textDirection),s.y+=o.top,this.drawTitle(s,e,i),this.drawBody(s,e,i),this.drawFooter(s,e,i),Rz(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){const r=this._active,a=e.map(({datasetIndex:l,index:d})=>{const h=this.chart.getDatasetMeta(l);if(!h)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:h.data[d],index:d}}),s=!_w(r,a),o=this._positionChanged(a,i);(s||o)&&(this._active=a,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,r=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],o=this._getActiveElements(e,s,i,r),l=this._positionChanged(o,e),d=i||!_w(o,s)||l;return d&&(this._active=o,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),d}_getActiveElements(e,i,r,a){const s=this.options;if("mouseout"===e.type)return[];if(!a)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&void 0!==this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index));const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,i){const{caretX:r,caretY:a,options:s}=this,o=_y[s.position].call(this,e,i);return!1!==o&&(r!==o.x||a!==o.y)}})();var zk={id:"tooltip",_element:e9,positioners:_y,afterInit(t,n,e){e&&(t.tooltip=new e9({chart:t,options:e}))},beforeUpdate(t,n,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,n,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const n=t.tooltip;if(n&&n._willRender()){const e={tooltip:n};if(!1===t.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0}))return;n.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,n){t.tooltip&&t.tooltip.handleEvent(n.event,n.replay,n.inChartArea)&&(n.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,n)=>n.bodyFont.size,boxWidth:(t,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:J7},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Yw=function _ke(t,n){return t===n||t!=t&&n!=n},$w=function vke(t,n){for(var e=t.length;e--;)if(Yw(t[e][0],n))return e;return-1};var bke=Array.prototype.splice;function qm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var i=t[n];this.set(i[0],i[1])}}qm.prototype.clear=function mke(){this.__data__=[],this.size=0},qm.prototype.delete=function Cke(t){var n=this.__data__,e=$w(n,t);return!(e<0||(e==n.length-1?n.pop():bke.call(n,e,1),--this.size,0))},qm.prototype.get=function Dke(t){var n=this.__data__,e=$w(n,t);return e<0?void 0:n[e][1]},qm.prototype.has=function Tke(t){return $w(this.__data__,t)>-1}
1,qm.prototype.set=function Mke(t,n){var e=this.__data__,i=$w(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this};const Ww=qm,h9="object"==typeof global&&global&&global.Object===Object&&global;var Bke="object"==typeof self&&self&&self.Object===Object&&self;const Km=h9||Bke||Function("return this")();var Uke=Km.Symbol,f9=Object.prototype,Hke=f9.hasOwnProperty,jke=f9.toString,yy=Uke?Uke.toStringTag:void 0;var Wke=Object.prototype.toString;var p9=Uke?Uke.toStringTag:void 0;const qw=function Qke(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p9&&p9 in Object(t)?function zke(t){var n=Hke.call(t,yy),e=t[yy];try{t[yy]=void 0;var i=!0}catch{}var r=jke.call(t);return i&&(n?t[yy]=e:delete t[yy]),r}(t):function Gke(t){return Wke.call(t)}(t)},Tf=function Xke(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},Wk=function i2e(t){if(!Tf(t))return!1;var n=qw(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n};var t,r2e=Km["__core-js_shared__"],m9=(t=/[^.]+$/.exec(r2e&&r2e.keys&&r2e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";var l2e=Function.prototype.toString;var h2e=/^\[object .+?Constructor\]$/,_2e=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y2e=function v2e(t){return!(!Tf(t)||function a2e(t){return!!m9&&m9 in t}(t))&&(Wk(t)?_2e:h2e).test(function c2e(t){if(null!=t){try{return l2e.call(t)}catch{}try{return t+""}catch{}}return""}(t))},qk=function w2e(t,n){var e=function b2e(t,n){return t?.[n]}(t,n);return y2e(e)?e:void 0},g9=qk(Km,"Map"),by=qk(Object,"create");var k2e=Object.prototype.hasOwnProperty;var O2e=Object.prototype.hasOwnProperty;function Zm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var i=t[n];this.set(i[0],i[1])}}Zm.prototype.clear=function T2e(){this.__data__=by?by(null):{},this.size=0},Zm.prototype.delete=function M2e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},Zm.prototype.get=function N2e(t){var n=this.__data__;if(by){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return k2e.call(n,t)?n[t]:void 0},Zm.prototype.has=function L2e(t){var n=this.__data__;return by?void 0!==n[t]:O2e.call(n,t)},Zm.prototype.set=function V2e(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=by&&void 0===n?"__lodash_hash_undefined__":n,this};const _9=Zm,Kw=function $2e(t,n){var e=t.__data__;return function z2e(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}(n)?e["string"==typeof n?"string":"hash"]:e.map};function Qm(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var i=t[n];this.set(i[0],i[1])}}Qm.prototype.clear=function H2e(){this.size=0,this.__data__={hash:new _9,map:new(g9||Ww),string:new _9}},Qm.prototype.delete=function W2e(t){var n=Kw(this,t).delete(t);return this.size-=n?1:0,n},Qm.prototype.get=function q2e(t){return Kw(this,t).get(t)},Qm.prototype.has=function Z2e(t){return Kw(this,t).has(t)},Qm.prototype.set=function X2e(t,n){var e=Kw(this,t),i=e.size;return e.set(t,n),this.size+=e.size==i?0:1,this};const eNe=Qm;function Xm(t){var n=this.__data__=new Ww(t);this.size=n.size}Xm.prototype.clear=function Ike(){this.__data__=new Ww,this.size=0},Xm.prototype.delete=function kke(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Xm.prototype.get=function Rke(t){return this.__data__.get(t)},Xm.prototype.has=function Oke(t){return this.__data__.has(t)},Xm.prototype.set=function nNe(t,n){var e=this.__data__;if(e instanceof Ww){var i=e.__data__;if(!g9||i.length<199)return i.push([t,n]),this.size=++e.size,this;e=this.__data__=new eNe(i)}return e.set(t,n),this.size=e.size,this};const rNe=Xm;var aNe=function(){try{var t=qk(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Zw=aNe,Kk=function sNe(t,n,e){"__proto__"==n&&Zw?Zw(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e},Zk=function oNe(t,n,e){(void 0!==e&&!Yw(t[n],e)||void 0===e&&!(n in t))&&Kk(t,n,e)};var cNe=function lNe(t){return function(n,e,i){for(var r=-1,a=Object(n),s=i(n),o=s.length;o--;){var l=s[t?o:++r];if(!1===e(a[l],l,a))break}return n}}();const dNe=cNe;var v9="object"==typeof exports&&exports&&!exports.nodeType&&exports,y9=v9&&"object"==typeof module&&module&&!module.nodeType&&module,b9=y9&&y9.exports===v9?Km.Buffer:void 0,C9=b9?b9.allocUnsafe:void 0;const w9=Km.Uint8Array,vNe=function _Ne(t,n){var e=n?function mNe(t){var n=new t.constructor(t.byteLength);return new w9(n).set(new w9(t)),n}(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var D9=Object.create,CNe=function(){function t(){}return function(n){if(!Tf(n))return{};if(D9)return D9(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();const wNe=CNe;var SNe=function DNe(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);const S9=SNe;var TNe=Object.prototype;const T9=function xNe(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||TNe)},Cy=function INe(t){return null!=t&&"object"==typeof t},x9=function kNe(t){return Cy(t)&&"[object Arguments]"==qw(t)};var M9=Object.prototype,NNe=M9.hasOwnProperty,RNe=M9.propertyIsEnumerable,PNe=x9(function(){return arguments}())?x9:function(t){return Cy(t)&&NNe.call(t,"callee")&&!RNe.call(t,"callee")};const Qk=PNe,Xk=Array.isArray,E9=function FNe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Jk=function BNe(t){return null!=t&&E9(t.length)&&!Wk(t)};var I9="object"==typeof exports&&exports&&!exports.nodeType&&exports,A9=I9&&"object"==typeof module&&module&&!module.nodeType&&module,k9=A9&&A9.exports===I9?Km.Buffer:void 0;const N9=(k9?k9.isBuffer:void 0)||function HNe(){return!1};var R9=Function.prototype.toString,KNe=Object.prototype.hasOwnProperty,ZNe=R9.call(Object);var ar={};
1ar["[object Float32Array]"]=ar["[object Float64Array]"]=ar["[object Int8Array]"]=ar["[object Int16Array]"]=ar["[object Int32Array]"]=ar["[object Uint8Array]"]=ar["[object Uint8ClampedArray]"]=ar["[object Uint16Array]"]=ar["[object Uint32Array]"]=!0,ar["[object Arguments]"]=ar["[object Array]"]=ar["[object ArrayBuffer]"]=ar["[object Boolean]"]=ar["[object DataView]"]=ar["[object Date]"]=ar["[object Error]"]=ar["[object Function]"]=ar["[object Map]"]=ar["[object Number]"]=ar["[object Object]"]=ar["[object RegExp]"]=ar["[object Set]"]=ar["[object String]"]=ar["[object WeakMap]"]=!1;var P9="object"==typeof exports&&exports&&!exports.nodeType&&exports,wy=P9&&"object"==typeof module&&module&&!module.nodeType&&module,e2=wy&&wy.exports===P9&&h9.process,ERe=function(){try{return wy&&wy.require&&wy.require("util").types||e2&&e2.binding&&e2.binding("util")}catch{}}(),L9=ERe&&ERe.isTypedArray;const F9=L9?function TRe(t){return function(n){return t(n)}}(L9):function DRe(t){return Cy(t)&&E9(t.length)&&!!ar[qw(t)]},t2=function ARe(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]};var NRe=Object.prototype.hasOwnProperty;const PRe=function RRe(t,n,e){var i=t[n];(!NRe.call(t,n)||!Yw(i,e)||void 0===e&&!(n in t))&&Kk(t,n,e)};var URe=/^(?:0|[1-9]\d*)$/;const B9=function HRe(t,n){var e=typeof t;return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&URe.test(t))&&t>-1&&t%1==0&&t<n};var zRe=Object.prototype.hasOwnProperty;const $Re=function YRe(t,n){var e=Xk(t),i=!e&&Qk(t),r=!e&&!i&&N9(t),a=!e&&!i&&!r&&F9(t),s=e||i||r||a,o=s?function FRe(t,n){for(var e=-1,i=Array(t);++e<t;)i[e]=n(e);return i}(t.length,String):[],l=o.length;for(var d in t)(n||zRe.call(t,d))&&(!s||!("length"==d||r&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||B9(d,l)))&&o.push(d);return o};var KRe=Object.prototype.hasOwnProperty;const QRe=function ZRe(t){if(!Tf(t))return function WRe(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}(t);var n=T9(t),e=[];for(var i in t)"constructor"==i&&(n||!KRe.call(t,i))||e.push(i);return e},V9=function XRe(t){return Jk(t)?$Re(t,!0):QRe(t)},ePe=function JRe(t){return function ORe(t,n,e,i){var r=!e;e||(e={});for(var a=-1,s=n.length;++a<s;){var o=n[a],l=i?i(e[o],t[o],o,e,t):void 0;void 0===l&&(l=t[o]),r?Kk(e,o,l):PRe(e,o,l)}return e}(t,V9(t))},nPe=function tPe(t,n,e,i,r,a,s){var o=t2(t,e),l=t2(n,e),d=s.get(l);if(d)Zk(t,e,d);else{var h=a?a(o,l,e+"",t,n,s):void 0,_=void 0===h;if(_){var b=Xk(l),C=!b&&N9(l),k=!b&&!C&&F9(l);h=l,b||C||k?Xk(o)?h=o:function VNe(t){return Cy(t)&&Jk(t)}(o)?h=function yNe(t,n){var e=-1,i=t.length;for(n||(n=Array(i));++e<i;)n[e]=t[e];return n}(o):C?(_=!1,h=function hNe(t,n){if(n)return t.slice();var e=t.length,i=C9?C9(e):new t.constructor(e);return t.copy(i),i}(l,!0)):k?(_=!1,h=vNe(l,!0)):h=[]:function QNe(t){if(!Cy(t)||"[object Object]"!=qw(t))return!1;var n=S9(t);if(null===n)return!0;var e=KNe.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&R9.call(e)==ZNe}(l)||Qk(l)?(h=o,Qk(o)?h=ePe(o):(!Tf(o)||Wk(o))&&(h=function MNe(t){return"function"!=typeof t.constructor||T9(t)?{}:wNe(S9(t))}(l))):_=!1}_&&(s.set(l,h),r(h,l,i,a,s),s.delete(l)),Zk(t,e,h)}},iPe=function U9(t,n,e,i,r){t!==n&&dNe(n,function(a,s){if(r||(r=new rNe),Tf(a))nPe(t,n,s,e,U9,i,r);else{var o=i?i(t2(t,s),a,s+"",t,n,r):void 0;void 0===o&&(o=a),Zk(t,s,o)}},V9)},H9=function rPe(t){return t};var j9=Math.max;const dPe=function cPe(t){return function(){return t}};var uPe=Zw?function(t,n){return Zw(t,"toString",{configurable:!0,enumerable:!1,value:dPe(n),writable:!0})}:H9,mPe=Date.now,_Pe=function gPe(t){var n=0,e=0;return function(){var i=mPe(),r=16-(i-e);if(e=i,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(uPe);const vPe=_Pe,bPe=function yPe(t,n){return vPe(function oPe(t,n,e){return n=j9(void 0===n?t.length-1:n,0),function(){for(var i=arguments,r=-1,a=j9(i.length-n,0),s=Array(a);++r<a;)s[r]=i[n+r];r=-1;for(var o=Array(n+1);++r<n;)o[r]=i[r];return o[n]=e(s),function aPe(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}(t,this,o)}}(t,n,H9),t+"")};var SPe=function DPe(t){return bPe(function(n,e){var i=-1,r=e.length,a=r>1?e[r-1]:void 0,s=r>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,s&&function CPe(t,n,e){if(!Tf(e))return!1;var i=typeof n;return!!("number"==i?Jk(e)&&B9(n,e.length):"string"==i&&n in e)&&Yw(e[n],t)}(e[0],e[1],s)&&(a=r<3?void 0:a,r=1),n=Object(n);++i<r;){var o=e[i];o&&t(n,o,i,a)}return n})}(function(t,n,e){iPe(t,n,e)});const TPe=SPe,z9=new Qe("Configuration for ngCharts");let xPe=(()=>{class t{constructor(){this.colorschemesOptions=new an(void 0)}setColorschemesOptions(e){this.pColorschemesOptions=e,this.colorschemesOptions.next(e)}getColorschemesOptions(){return this.pColorschemesOptions}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),MPe=(()=>{class t{constructor(e,i,r,a){this.zone=i,this.themeService=r,this.type="bar",this.plugins=[],this.chartClick=new Xe,this.chartHover=new Xe,this.subs=[],this.themeOverrides={},a?.registerables&&gy.register(...a.registerables),a?.defaults&&rr.set(a.defaults),this.ctx=e.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe(om()).subscribe(s=>this.themeChanged(s)))}ngOnChanges(e){const i=["type"],r=Object.getOwnPropertyNames(e);if(r.some(a=>i.includes(a))||r.every(a=>e[a].isFirstChange()))this.render();else{const a=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,a.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,a.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,a.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEac
1h(e=>e.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new gy(this.ctx,this.getChartConfiguration()))}update(e){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(e))}hideDataset(e,i){this.chart&&(this.chart.getDatasetMeta(e).hidden=i,this.update())}isDatasetHidden(e){return this.chart?.getDatasetMeta(e)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(e){this.themeOverrides=e,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return TPe({onHover:(e,i)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:e,active:i}))},onClick:(e,i)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:e,active:i}))}},this.themeOverrides,this.options,{plugins:{legend:{display:this.legend}}})}getChartConfiguration(){return{type:this.type,data:this.getChartData(),options:this.getChartOptions(),plugins:this.plugins}}getChartData(){return this.data?this.data:{labels:this.labels||[],datasets:this.datasets||[]}}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(_t),G(xPe),G(z9,8))}}static{this.\u0275dir=lt({type:t,selectors:[["canvas","baseChart",""]],inputs:{type:"type",legend:"legend",data:"data",options:"options",plugins:"plugins",labels:"labels",datasets:"datasets"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[ci]})}}return t})();const Y9=t=>({active:t});function EPe(t,n){if(1&t&&(m(0,"div",19)(1,"div",20)(2,"h3"),v(3),M(4,"translate"),p(),m(5,"div",21),fe(6,"canvas",22),p()(),m(7,"div",23)(8,"h3"),v(9),M(10,"translate"),p(),m(11,"div",21),fe(12,"canvas",22),p()()()),2&t){const e=B();u(3),P(E(4,8,"LoansbySector")),u(3),T("data",e.chartSectorData)("options",e.chartSectorOptions)("type","doughnut"),u(3),P(E(10,10,"LoansbyRegion")),u(3),T("data",e.chartRegionData)("options",e.chartSectorOptions)("type","doughnut")}}function IPe(t,n){if(1&t&&(m(0,"div",19)(1,"div",24)(2,"h3"),v(3),M(4,"translate"),p(),m(5,"div",21),fe(6,"canvas",22),p()(),m(7,"div",25)(8,"h3"),v(9),M(10,"translate"),p(),m(11,"div",21),fe(12,"canvas",22),p()()()),2&t){const e=B();u(3),P(E(4,8,"GrantsbyInstitutions")),u(3),T("data",e.chartGrantsInstitutionsData)("options",e.chartSectorOptions)("type","doughnut"),u(3),P(E(10,10,"GrantsbyCountries")),u(3),T("data",e.chartGrantsCountriesData)("options",e.chartSectorOptions)("type","doughnut")}}let APe=(()=>{class t{http;renderer;router;translate;destroy$=new nt;loansResponse=[];grantsCountries=[];grantsInstitutions=[];sectorChartLabels=[];sectorChartData=[];grantsCountriesLabels=[];grantsCountriesData=[];chartSectorOptions;chartSectorData;chartGrantsCountriesData;grantsInstitutionsLabels=[];grantsInstitutionsData=[];chartGrantsInstitutionsData;regionChartLabels=[];regionChartData=[];chartRegionOptions;chartRegionData;type;constructor(e,i,r,a){this.http=e,this.renderer=i,this.router=r,this.translate=a,gy.register(ly,Rk,zk,Hk),this.loansResponse=[{divisionName:"",loanCountries:[]}],this.type="Loans"}ngOnInit(){this.getLoans(),this.getGrants(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getLoans(),this.getGrants()})}getLoans(){this.http.get("/api/general/get-loans").subscribe(e=>{200==e.code&&0===e.apiCode&&(this.loansResponse=e.data,this.prepareSectorData(),this.prepareRegionData())},e=>{})}prepareSectorData(){const e={};this.loansResponse[0].loanCountries.forEach(i=>{i.loanSectors.forEach(r=>{e[r.sectorName]||(e[r.sectorName]=0),e[r.sectorName]+=parseFloat(r.amount)})}),this.sectorChartLabels=Object.keys(e),this.sectorChartData=Object.values(e),this.chartSectorData={labels:this.sectorChartLabels,datasets:[{data:this.sectorChartData,backgroundColor:["#FF6384","#36A2EB","#FFCE56"]}]},this.chartSectorOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom"}}}}prepareGrantsCountriesData(){this.grantsCountries.forEach(i=>{this.grantsCountriesLabels.push(i.countryName);const r=Number(i.valueOfGrants.replace(/,/g,""));this.grantsCountriesData.push(r)}),this.chartGrantsCountriesData={labels:this.grantsCountriesLabels,datasets:[{data:this.grantsCountriesData,backgroundColor:["#FF6384","#36A2EB","#F
1FCE56"]}]}}prepareGrantsInstituionsData(){this.grantsInstitutions.forEach(i=>{this.grantsInstitutionsLabels.push(i.instituteName);const r=Number(i.valueOfGrants.replace(/,/g,""));this.grantsInstitutionsData.push(r)}),this.chartGrantsInstitutionsData={labels:this.grantsInstitutionsLabels,datasets:[{data:this.grantsInstitutionsData,backgroundColor:["#FF6384","#36A2EB","#FFCE56"]}]}}prepareRegionData(){const e={};this.loansResponse[0].loanCountries.forEach(i=>{const r=i.loanSectors.reduce((a,s)=>a+parseFloat(s.amount),0);e[i.countryName]=r}),this.regionChartLabels=Object.keys(e),this.regionChartData=Object.values(e),this.chartRegionData={labels:this.regionChartLabels,datasets:[{data:this.regionChartData,backgroundColor:["#FF6384","#36A2EB","#FFCE56"]}]}}getGrants(){this.http.get("/api/general/get-grant-countries").subscribe(e=>{200==e.code&&0===e.apiCode&&(this.grantsCountries=e.data,this.prepareGrantsCountriesData())},e=>{}),this.http.get("/api/general/get-grant-institutions").subscribe(e=>{200==e.code&&0===e.apiCode&&(this.grantsInstitutions=e.data,this.prepareGrantsInstituionsData())},e=>{})}openEvent(e){this.type=e}static \u0275fac=function(i){return new(i||t)(G($n),G(zn),G(An),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-loans-grants"]],decls:37,vars:31,consts:[[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[1,"wb-header"],[1,"tab"],[1,"tablinks","active",3,"click","ngClass"],[1,"tablinks",3,"click","ngClass"],["class","mb-4 mt-4 row",4,"ngIf"],[1,"text-center","mb-4","mt-4"],["href","https://www.kuwait-fund.org","target","_blank","rel","noopener noreferrer",1,"btn","btn-secondary","bgps","mb-4"],["src","./assets/images/globe-white.svg","alt","Globe Icon"],[1,"mb-4","mt-4","row"],["id","Loans",1,"tabcontent","text-center","my-5","display-block","col-6"],[1,"doughnut-chart"],["baseChart","",3,"data","options","type"],["id","Grants",1,"tabcontent","text-center","my-5","col-6","display-block"],["id","chartGrantsInstitutionsData",1,"tabcontent","text-center","my-5","display-block","col-6"],["id","chartGrantsCountriesData",1,"tabcontent","text-center","my-5","col-6","display-block"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",5)(10,"li",6)(11,"a",7),v(12),M(13,"translate"),p()(),m(14,"li",8),v(15),M(16,"translate"),p()()(),m(17,"a",9),v(18),M(19,"translate"),p()(),m(20,"div",10)(21,"div",11)(22,"div",12)(23,"button",13),be("click",function(){return r.openEvent("Loans")}),v(24),M(25,"translate"),p(),m(26,"button",14),be("click",function(){return r.openEvent("Grants")}),v(27),M(28,"translate"),p()()(),oe(29,EPe,13,12,"div",15)(30,IPe,13,12,"div",15),m(31,"div",16)(32,"a",17),fe(33,"img",18),v(34),M(35,"translate"),p()()()()()(),fe(36,"app-footer")),2&i&&(u(7),_e("",E(8,13,"LoansandGrants")," "),u(4),T("routerLink","/home"),u(),P(E(13,15,"Home")),u(3),_e("",E(16,17,"LoansandGrants")," "),u(2),T("routerLink","/home"),u(),P(E(19,19,"Back")),u(5),T("ngClass",In(27,Y9,"Loans"===r.type)),u(),_e("",E(25,21,"Loans")," "),u(2),T("ngClass",In(29,Y9,"Grants"===r.type)),u(),P(E(28,23,"Grants")),u(2),T("ngIf","Loans"===r.type),u(),T("ngIf","Grants"===r.type),u(4),_e(" ",E(35,25,"ReadMoreon")," kuwait-fund.org "))},dependencies:[ri,ii,fi,hi,ui,pn,dn,MPe,oa,Zt],encapsulation:2})}return t})();var Qw=ve(2114);function kPe(t,n){1&t&&(m(0,"div",22)(1,"small"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"UsernameRequired")))}function NPe(t,n){1&t&&(m(0,"div",22)(1,"small"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"PasswordRequired")))}function RPe(t,n){1&t&&(m(0,"div"),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"recaptchaRequired")," "))}function PPe(t,n){if(1&t&&(m(0,"div",23),oe(1,RPe,3,3,"div",24),p()),2&t){const e=B();u(),T("ngIf",!e.captchaToken&&e.captchaEnabled)}}function OPe(t,n){if(1&t&&(m(0,"div",22),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}let LPe=(()=>{class t{languageService;fb;_cacheService;_adapter;router;tokenservice;http;translate;_httpService;chatBoatService;loaderService;loginForm;showPassword=!1;isSubmitted=!1;errorMessage="";key="";captchaToken=null;SiteKey=xn_RecaptchaSettings_SiteKey;captchaEnabled=xn_RecaptchaSettings_Enabled;constructor(e,i,r,a,s,o,l,d,h,_,b){this.languageService=e,this.fb=i,this._cacheService=r,this._adapter=a,this.router=s,this.tokenservice=o,this.http=l,this.translate=d,this._httpService=h,this.chatBoatService=_,this.loaderService=b,this.tokenservice.clearToken(),this.loginForm=this.fb.group({username:["",[at.required,at.minLength(3),at.maxLength(50)]],password:["",[at.required,at.minLength(3),at.maxLength(100)]]})}ngAfterViewChecked(){this.chatBoatService.unloadChatBot()}setLanguage(e){"ar"===e&&this._adapter.setLocale("ar"),"en"===e&&this._adapter.setLocale("en"),this.languageService.language=e}get languageToSwitch(){return"ar"===this.languageService.language?"en":"ar"}onCaptchaResolved(e){this.captchaToken=e}onSubmit(){var e=this;return g(function*(){var o;if(e.isSubmitted=!1,!e.loginForm.valid||e.captchaEnabled&&!e.captchaToken)e.isSubmitted=!0;else if(e.loginForm.valid){e.isSubmitted=!1;let{username:i,password:r}=e.loginForm.value;const a=e.captchaToken;r=e.encryptPassword(r),e._httpService.post("/api/login",{userId:i,password:r,captchaToken:a}).subscribe({next:(o=g(function*(l){if(l&&200===l.code&&0===l.apiCode)l.data.tokenInfo.expireDate||(l.data.tokenInfo.expireDate=new Date(Date.now()+864e5).toISOString()),yield e.tokenservice.setToken(l.data.tokenInfo.token,l.data.tokenInfo.expireDate),e.setLocalStorage(l,i),yield e.getEmpolyeePhoto();else if(e.isSubmitted=!0,l){e.errorMessage=l.message;const d=$o(l.apiCode,l.message,e.translate);e.errorMessage=d,422!=l.status&&grecaptcha.reset()}else{const d=$o(l.apiCode,l.message,e.translate);e.errorMessage=d,422!=l.status&&grecaptcha.reset()}}),function(d){return o.apply(this,arguments)}),error:o=>{e.isSubmitted=!0;const l=$o(o?.status,o?.error?.message,e.translate);e.errorMessage=l,422!=o?.status&&grecaptcha.reset()}})}})()}getEmpolyeePhoto(){var e=this;return g(function*(){e._httpService.getAll("/api/home/GetEmployeePhoto").subscribe({next:i=>{i&&200===i.code&&0===i.apiCode?localStorage.setItem("employeePhto",i?.data?.photoURL):$o(i.apiCode,i.message,e.translate),e.router.navigate(["home"])}})})()}setLocalStorage(e,i){localStorage.setItem("tokenExpiredAt",e.data.tokenInfo.accessTokenExpiryTime),localStorage.setItem("loginUserInfo",JSON.stringify(e.data.userInfo)),localStorage.setItem("UserName",i),localStorage.setItem("isDirector",e.data.userInfo.isDirector),localStorage.setItem("lang",this.languageService.language),localStorage.setItem("isSupervisor",e.data.userInfo.isSupervisor),localStorage.setItem("RefreshToken",e.data.tokenInfo.refreshToken),localStorage.setItem("IsAllowedBot",e.data.userInfo.isAllowedBot)}togglePasswordVisibility(e){e.preventDefault(),this.showPassword=!this.showPassword}encryptPassword(e){const r=this.convertToPem(xn_PublicKey),s=Qw.pki.publicKeyFromPem(r).encrypt
1(e,"RSAES-PKCS1-V1_5");return Qw.util.encode64(s)}convertToPem(e){return`-----BEGIN PUBLIC KEY-----\n${e.match(/.{1,64}/g)?.join("\n")}\n-----END PUBLIC KEY-----`}static \u0275fac=function(i){return new(i||t)(G(hu),G(Xr),G(OC),G(Pa),G(An),G(Fh),G($n),G(cn),G(wn),G(T6),G(wv))};static \u0275cmp=vt({type:t,selectors:[["app-login"]],decls:55,vars:38,consts:[["captchaElem",""],[1,"login-page"],[1,"login-page-rs"],["aria-label","Change Language",1,"lang-switcher",3,"click"],["src","./assets/images/feather-globe.svg","alt","Language Icon"],["src","./assets/images/lp-logo.svg"],[1,"login-page-ls"],[1,"login-form"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12"],[1,"form-group"],["formControlName","username","minlength","3","maxlength","50","type","text",1,"form-control"],["class","text-danger small",4,"ngIf"],[1,"iwi"],["formControlName","password","minlength","3","maxlength","100",1,"form-control",3,"type"],[1,"show-pass",3,"click"],[3,"src"],[3,"resolved","siteKey","size","theme"],["class","text-danger",4,"ngIf"],["type","submit",1,"btn","btn-login"],[1,"ff",3,"routerLink"],[1,"text-danger","small"],[1,"text-danger"],[4,"ngIf"]],template:function(i,r){if(1&i){const a=qe();m(0,"div",1)(1,"div",2)(2,"a",3),be("click",function(){return Ce(a),we(r.setLanguage(r.languageToSwitch))}),v(3),M(4,"translate"),fe(5,"img",4),p(),fe(6,"img",5),m(7,"p")(8,"span"),v(9),M(10,"translate"),p(),m(11,"span"),v(12),M(13,"translate"),p()()(),m(14,"div",6)(15,"div",7)(16,"h4"),v(17),M(18,"translate"),p(),m(19,"p"),v(20),M(21,"translate"),p(),m(22,"form",8),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(23,"div",9)(24,"div",10)(25,"div",11)(26,"label"),v(27),M(28,"translate"),p(),fe(29,"input",12),oe(30,kPe,4,3,"div",13),p()(),m(31,"div",10)(32,"div",11)(33,"label"),v(34),M(35,"translate"),p(),m(36,"div",14),fe(37,"input",15),m(38,"a",16),be("click",function(o){return Ce(a),we(r.togglePasswordVisibility(o))}),fe(39,"img",17),p()(),oe(40,NPe,4,3,"div",13),p()(),m(41,"div",10)(42,"re-captcha",18,0),be("resolved",function(o){return Ce(a),we(r.onCaptchaResolved(o))}),p(),oe(44,PPe,2,1,"div",19),p(),oe(45,OPe,2,1,"div",13),m(46,"div",10)(47,"button",20),v(48),M(49,"translate"),p()(),m(50,"div",10)(51,"a",21),v(52),M(53,"translate"),p(),fe(54,"br"),p()()()()()()}2&i&&(u(3),_e(" ",E(4,20,"language")," "),u(6),P(E(10,22,"KuwaitFund")),u(3),P(E(13,24,"EmployeeSelfService")),u(5),P(E(18,26,"Login")),u(3),P(E(21,28,"PleasEenteryourUsernamePassword")),u(2),T("formGroup",r.loginForm),u(5),P(E(28,30,"Username")),u(3),T("ngIf",!r.loginForm.controls.username.value&&r.isSubmitted),u(4),P(E(35,32,"Password")),u(3),T("type",r.showPassword?"text":"password"),u(2),T("src",r.showPassword?"./assets/images/eye-icon-black.svg":"./assets/images/eye-icon.svg",js),u(),T("ngIf",!r.loginForm.controls.password.value&&r.isSubmitted),u(2),T("siteKey",r.SiteKey)("size","normal")("theme","light"),u(2),T("ngIf",r.isSubmitted),u(),T("ngIf",r.isSubmitted),u(3),P(E(49,34,"Login")),u(3),T("routerLink","/forget-password"),u(),P(E(53,36,"ForgetPassword?")))},dependencies:[pn,dn,hi,ui,Zt,fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,w6,W8,ZI,KI],encapsulation:2})}return t})();const FPe=()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BPe=(t,n)=>({"type-1":t,"type-2":n});function VPe(t,n){1&t&&fe(0,"app-notifications")}function UPe(t,n){if(1&t&&(m(0,"option",36),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.employeeId),u(),P(e.employeeName)}}function HPe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),P(e)}}function jPe(t,n){1&t&&fe(0,"span",40)}function zPe(t,n){1&t&&fe(0,"span",41)}function YPe(t,n){if(1&t&&(m(0,"span"),v(1),p()),2&t){const e=B().$implicit;u(),P(e.date.getDate())}}function $Pe(t,n){if(1&t){const e=qe();m(0,"div",37),be("click",function(){const r=Ce(e).$implicit;return we(B(2).changeDate(r))}),oe(1,jPe,1,0,"span",38)(2,zPe,1,0,"span",39)(3,YPe,2,1,"span",1),p()}if(2&t){const e=n.$implicit,i=B(2);Ct("selected",e.date.toDateString()===i.currentDate.toDateString())("today",e.date.toDateString()===i.today.toDateString()),u(),T("ngIf",e.visitType&&e.visitType.includes("Blue")),u(),T("ngIf",e.visitType&&e.visitType.includes("Red")),u(),T("ngIf",e.date.getMonth()==i.currentDate.getMonth())}}function WPe(t,n){if(1&t&&(m(0,"b"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Employee")," : ",e.employee_name,"")}}function GPe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Event")," : ",e.evant_name,"")}}function qPe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){const e=B().$implicit;u(),y0("",E(2,4,"From")," : ",e.from_date," - ",E(3,6,"To")," : ",e.to_date,"")}}function KPe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Location")," : ",e.location,"")}}function ZPe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Numberofdelegation")," : ",e.missionCount,"")}}function QPe(t,n){if(1&t&&(m(0,"div",43)(1,"div",44)(2,"div",45),oe(3,WPe,3,4,"b",1)(4,GPe,3,4,"p",1)(5,qPe,4,8,"p",1)(6,KPe,3,4,"p",1)(7,ZPe,3,4,"p",1),p()(),m(8,"span",46),v(9),p()()),2&t){const e=n.$implicit,i=B(3);u(3),T("ngIf",e.employee_name),u(),T("ngIf",e.evant_name),u(),T("ngIf",e.from_date),u(),T("ngIf",e.location),u(),T("ngIf",e.missionCount),u(),T("ngClass",Zc(7,BPe,e.leave_type===i.leaveType1||"Blue"===e.leave_type,e.leave_type===i.leaveType2||"Red"===e.leave_type)),u(),_e(" ","Blue"===e.leave_type?i.leaveType1:i.leaveType2," ")}}function XPe(t,n){if(1&t&&(Gn(0),oe(1,QPe,10,10,"div",42),qn()),2&t){const e=B(2);u(),T("ngForOf",e.missionsCalendarDetails)}}function JPe(t,n){1&t&&(m(0,"div",47)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function eOe(t,n){if(1&t){const e=qe();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4"),v(6),M(7,"translate"),p(),m(8,"ol",9)(9,"li",10)(10,"a",11),v(11),M(12,"translate"),p()(),m(13,"li",12),v(14),M(15,"translate"),p()()(),m(16,"a",13),v(17),M(18,"translate"),p()(),m(19,"div",14)(20,"form",15)(21,"div",16)(22,"div",17)(23,"div",18)(24,"div",19)(25,"div",20)(26,"button",21),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()-1),we(r.generateMonth())}),m(27,"span"),v(28,"\u2039"),p()(),m(29,"h2"),v(30),M(31,"date"),p(),m(32,"button",21),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()+1),we(r.generateMonth())}),m(33,"span"),v(34,"\u203a"),p()()()(),m(35,"div",19)(36,"div",22)(37,"select",23),be("change",function(){return Ce(e),we(B().getManagementCalendarDate())}),oe(38,UPe,2,2,"option",24),p()()()(),m(39,"div",25)(40,"div",26),oe(41,HPe,2,1,"div",27),p(),m(42,"div",28),oe(43,$Pe,4,7,"div",29),p()(),m(44,"div"),fe(45,"span",30),m(46,"label",31),v(47),p(),fe(48,"span",32),m(49,"label",31),v(50),p()()(),m(51,"div",33)(52,"div",34)(53,"h5"),v(54),M(55,"translate"),p(),m(56,"p"),v(57),M(58,"date"),p()(),oe(59,XPe,2,1,"ng-container",35)(60,JPe,4,3,"ng-template",null,0,ni),p()()()()()()()}if(2&t){const e=Di(61),i=B();u(6),P(E(7,17,"Direct.Mission")),u(4),T("routerLink","/home"),u(),P(E(12,19,"Home")),u(3),P(E(15,21,"Direct.Mission")),u(2),T("routerLink","/home"),u(),P(E(18,23,"Back")),u(3),T("formGroup",i.form),u(10),P(hh(31,25,i.currentDate,"MMMM y")),u(8),T("ngForOf",i.managementInfo),u(3),T("ngForOf",Up(33,FPe)),u(2),T("ngForOf",i.visits),u(4),P(i.leaveType1),u(3),P(i.leaveType2),u(4),P(E(55,28,"Workforce")),u(3),P(hh(58,30,i.currentDate,"d-MMM-yyyy")),u(2),T("ngIf",i.missionsCalendarDetails&&i.missionsCalendarDetails.length>0)("ngIfElse",e)}}function tOe(t,n){1&t&&fe(0,"app-unauthorized",48),2&t&&T("isShownWholePage",!1)}let nOe=(()=>{class t{notificationService;_httpService;fb;router;translate;http;datePipe;destroy$=new nt;managementInfo;missionsCalendarDetails;missionsCalendar;currentDate=new Date;today=new Date;monthDays=[];form;leaveType1="";leaveType2="";visits=[];constructor(e,i,r,a,s,o,l){this.notificationService=e,this._httpService=i,this.fb=r,this.router=a,this.translate=s,this.http=o,this.datePipe=l,this.form=this.fb.group({empID:["",at.required]}),this.translate.get("Leave").subscribe(d=>{this.leaveType1=d}),this.translate.get("Missions").subscribe(d=>{this.leaveType2=d})}ngOnInit(){this.generateMonth(!0),this.getAllManagement(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.generateMonth(!0),this.getAllManagement()})}get canAccessPage(){return"true"==localStorage.getItem("isDirector")||"false"!=localStorage.getItem("isDirector")&&void 0}getAllManagement(){this._httpService.getAll("/api/missions/get-all-management").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.managementInfo=e.data,this.form.patchValue({empID:this.managementInfo[0].employeeId}),this.getManagementCalendarDate())},error:e=>{}})}getManagementCalendarDate(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"",{empID:i}=this.form.value;this._httpService.post("/api/missions/get-management-calendar-data",{asDate:e,empID:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.missionsCalendar=r.data,this.translate.get("Leave").subscribe(a=>{this.leaveType1=a}),this.translate.get("Missions").subscribe(a=>{this.leaveType2=a}),this.visits=this.monthDays.map(a=>{const s=this.missionsCalendar?.filter(o=>this.isSameDate(this.convertToDate(o.asDate),a));return{date:a,visitType:s?.length>0?s.map(o=>o.leave_type).join(", "):null}}),this.getManagementMissionsCalender())},error:r=>{}})}getManagementMissionsCalender(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"",{empID:i}=this.form.value;this._httpService.post("/api/missions/get-managment-attendace-date",{asDate:e,empID:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.missionsCalendarDetails=r.data)},error:r=>{}})}changeDate(e){this.currentDate=e.date,this.getManagementMissionsCalender()}generateMonth(e){this.monthDays=[];const i=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),a=new Date(i,r,1),s=new Date(i,r+1,0),o=a.getDay(),l=s.getDate();for(let d=o-1;d>=0;d--)this.monthDays.push(new Date(i,r,-d));for(let d=1;d<=l;d++)this.monthDays.push(new Date(i,r,d));for(;this.monthDays.length%7!=0;){const d=new Date(i,r,l+(this.monthDays.length-l+1));this.monthDays.push(d)}e||(this.currentDate=a),this.visits=this.monthDays.map(d=>({date:d,visitType:null})),this.getManagementCalendarDate()}isSameDate(e,i){return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()&&e.getDate()===i.getDate()}convertToDate(e){if(!e||"string"!=typeof e)return new Date(1970,0,1);const i=e.split("/").map(Number);if(3!==i.length||i.some(isNaN))return new Date(1970,0,1);const[r,a,s]=i;return new Date(s,a-1,r)}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G(An),G(cn),G($n),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-missions"]],features:[fn([es])],decls:6,vars:5,consts:[["noData",""],[4,"ngIf"],["class","wrapper",4,"ngIf"],[3,"isShownWholePage",4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[3,"formGroup"],[1,"visiters-log-sec"],[1,"visiters-log-cal"],[1,"row"],[1,"col-6",2,"margin-top","1vw"],[1,"vl-select","vl-select-direcotr"],[1,"arrow-button","text-center",3,"click"],[1,"form-group"],["formControlName","empID",1,"form-select",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"calendar"],[1,"weekdays"],[4,"ngFor","ngForOf"],[1,"days-v1"],[3,"selected","today","click",4,"ngFor","ngForOf"],[1,"visitor-log-circle","type-1"],[1,"visitType"],[1,"visitor-log-circle","type-2"],[1,"visiters-log-list"],[1,"vl-date"],[4,"ngIf","ngIfElse"],[3,"ngValue"],[3,"click"],["class","visitor-log-circle type-1 margin-right-5",4,"ngIf"],["class","visitor-log-circle type-2 margin-right-5",4,"ngIf"],[1,"visitor-log-circle","type-1","margin-right-5"],[1,"visitor-log-circle","type-2","margin-right-5"],["class","vl-info",4,"ngFor","ngForOf"],[1,"vl-info"],[1,"vl-dtls"],[1,"vl-dtls-info"],[1,"vl-type",3,"ngClass"],[1,"text-center","mb-4","mt-4"],[3,"isShownWholePage"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,VPe,1,0,"app-notifications",1),M(2,"async"),oe(3,eOe,62,34,"div",2)(4,tOe,1,1,"app-unauthorized",3),fe(5,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,3,r.notificationService.notification$))?null:a.show),u(2),T("ngIf",1==r.canAccessPage),u(),T("ngIf",!r.canAccessPage)}},dependencies:[jr,bm,yi,oa,Un,Zt,Ii,es,hi,ui,fi,Qr,uc,hc,zo,Ur,Zr,_r,Hr,pn,dn,ri,ii],encapsulation:2})}return t})();function iOe(t,n){1&t&&fe(0,"app-notifications")}function rOe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),_e(" ",e.inTime," ")}}function aOe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),_e(" ",e.outTime," ")}}function sOe(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td"),oe(4,rOe,2,1,"div",38),p(),m(5,"td"),oe(6,aOe,2,1,"div",38),p()()),2&t){const e=n.$implicit;u(2),P(e.attendanceDate),u(2),T("ngForOf",e.inOutInfo),u(2),T("ngForOf",e.inOutInfo)}}function oOe(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,sOe,7,3,"tr",38),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.myAttendance.attendanceData)}}function lOe(t,n){1&t&&(m(0,"tbody")(1,"tr")(2,"td",39)(3,"div",40)(4,"h6"),v(5),M(6,"translate"),p()()()()()),2&t&&(u(5),P(E(6,1,"NoDataFound")))}let cOe=(()=>{class t{notificationService;_httpService;fb;http;translate;destroy$=new nt;employeeInfo={designationName:"",currentGrade:"",yearsInKuwaitFund:"",endService:"",name:"",photoURL:"",employeeName:""};myAttendance;initials="";constructor(e,i,r,a,s){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.translate=s,this.myAttendance={availableExceseBalance:"",tolalExecese:"",lateBalance:"",emergencyTransffered:"",emergencyBalance:"",emergencyLeaveAvailableDays:"",emergencyLeaveAvailableHours:"",emergencyLeaveAvailableMinutes:"",attendanceData:[{attendanceDate:"",inOutInfo:[{inTime:"",outTime:""}]}]},this.employeeInfo=JSON.parse(localStorage.getItem("UserInfo")||""),this.initials=localStorage.getItem("initials")||""}ngOnInit(){this.Init(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.Init()})}Init(){this._httpService.getAll("/api/myattendance").subscribe({next:e=>{200==e.code&&0===e.apiCode?this.myAttendance=e.data:401==e.code||(this.myAttendance=null)},error:e=>{this.myAttendance=null}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-my-attendance"]],decls:82,vars:47,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"rd-sec"],[1,"rd-sec-one"],[1,"whitebox"],[1,"leave-b-sec"],[1,"pt-3"],[1,"lbd-sec","mb-5"],[1,"lbd-pb"],[1,"my-attendance","attendance"],[1,"value"],[1,"lbd-pb","sl"],[1,"lbd-pb","vu",2,"margin-top","3vw"],[1,"text-center",2,"font-weight","bold","color","#333333"],["id","collapseTwo",1,"accordion-collapse",2,"padding","0"],[1,"accordion-header"],["type","button",1,"accordion-button-inner"],[1,"emergency-leave-summary","text-center"],[1,"text-center",2,"font-weight","bold","color","#1F3870"],[1,"rd-sec-two"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[1,"in-icon"],["src","./assets/images/enter.svg",1,"in-out-icons"],[1,"out-icon"],["src","./assets/images/exit.svg",1,"in-out-icons"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["colspan","3"],[1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,iOe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()()(),m(19,"div",11)(20,"div",12)(21,"div",13)(22,"div",14)(23,"h5",15),v(24),M(25,"translate"),p()(),m(26,"div",16)(27,"div",17),fe(28,"span",18),m(29,"span",19),v(30),p(),m(31,"p"),v(32),M(33,"translate"),p()(),m(34,"div",20),fe(35,"span",18),m(36,"span",19),v(37),p(),m(38,"p"),v(39),M(40,"translate"),p()(),m(41,"div",21),fe(42,"span",18),m(43,"span",19),v(44),p(),m(45,"p"),v(46),M(47,"translate"),p()()(),m(48,"div")(49,"p",22),v(50),M(51,"translate"),p()(),m(52,"div",23)(53,"h2",24)(54,"button",25),v(55),M(56,"translate"),p()(),m(57,"div",26)(58,"span",27),v(59),p()()()()(),m(60,"div",28)(61,"div",29)(62,"div",30)(63,"div",31)(64,"table",32)(65,"thead")(66,"tr")(67,"th"),v(68),M(69,"translate"),p(),m(70,"th",33),v(71),M(72,"translate"),fe(73,"img",34),p(),m(74,"th",35),v(75),M(76,"translate"),fe(77,"img",36),p()()(),oe(78,oOe,3,1,"ng-container",37)(79,lOe,7,3,"ng-template",null,0,ni),p()()()()()()()()(),fe(81,"app-footer")),2&i){let a;const s=Di(80);
1u(),T("ngIf",null==(a=E(2,21,r.notificationService.notification$))?null:a.show),u(8),P(E(10,23,"MyAttendance")),u(4),T("routerLink","/home"),u(),P(E(15,25,"Home")),u(3),P(E(18,27,"MyAttendance")),u(7),P(E(25,29,"AttendanceSummary")),u(6),P((null==r.myAttendance?null:r.myAttendance.availableExceseBalance)||"-"),u(2),_e("",E(33,31,"Availableleavehoursuntiltoday")," "),u(5),P((null==r.myAttendance?null:r.myAttendance.tolalExecese)||"-"),u(2),_e("",E(40,33,"Totalhoursofleaveused")," "),u(5),P((null==r.myAttendance?null:r.myAttendance.lateBalance)||"-"),u(2),_e("",E(47,35,"Totalhoursofdelay")," "),u(4),Vi("",E(51,37,"emergencyTransferred"),"",(null==r.myAttendance?null:r.myAttendance.emergencyTransffered)||"-"," "),u(5),_e(" ",E(56,39,"EmergencyLeaveAvailableDaysLabel")," "),u(4),_e(" ",(null==r.myAttendance?null:r.myAttendance.emergencyBalance)||"-"," "),u(9),P(E(69,41,"Date")),u(3),P(E(72,43,"Enter")),u(4),P(E(76,45,"Exit")),u(3),T("ngIf",r.myAttendance&&(null==r.myAttendance.attendanceData?null:r.myAttendance.attendanceData.length)>0)("ngIfElse",s)}},dependencies:[jr,yi,Un,Zt,Ii,hi,ui,fi,ri,ii,pn,dn],encapsulation:2})}return t})();const dOe=["dp"],uOe=["to"],hOe=(t,n,e)=>({grey:t,red:n,green:e});function fOe(t,n){1&t&&fe(0,"app-notifications")}function pOe(t,n){if(1&t&&(m(0,"option",13),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),_e(" ",e.name," ")}}function mOe(t,n){if(1&t){const e=qe();m(0,"a",65),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).cancelLeaveRequestModal(r.leaveID))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Cancel1")))}function gOe(t,n){if(1&t){const e=qe();m(0,"a",66),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).extendLeaveRequest(r))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Extend")))}function _Oe(t,n){if(1&t){const e=qe();m(0,"a",67),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).dutyResumeRequest(r))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"DutyResume")))}function vOe(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td")(4,"span",60),v(5),p()(),m(6,"td"),v(7),p(),m(8,"td"),v(9),p(),m(10,"td"),v(11),p(),m(12,"td"),v(13),p(),m(14,"td")(15,"span",61),v(16),p()(),m(17,"td",29),oe(18,mOe,3,3,"a",62)(19,gOe,3,3,"a",63)(20,_Oe,3,3,"a",64),p()()),2&t){const e=n.$implicit,i=B(2);u(2),P(null==e?null:e.requestDate),u(3),P(null==e?null:e.leaveType),u(2),Vi("",null==e?null:e.leaveStartDate," - ",null==e?null:e.leaveEndDate,""),u(2),P(null==e?null:e.supervisorName),u(2),P(null==e?null:e.rejectionReason),u(2),P(null==e?null:e.leaveExtendDate),u(2),T("ngClass",Hp(12,hOe,e.leaveStatus===i.cancel,e.leaveStatus===i.Rejected||e.leaveStatus===i.Deleted,e.leaveStatus===i.approve)),u(),P(e.leaveStatus),u(2),T("ngIf",e.showCancelButton),u(),T("ngIf",e.showExtendButton),u(),T("ngIf",e.showDutyResumeButton)}}function yOe(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,vOe,21,16,"tr",59),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.requestsList)}}function bOe(t,n){1&t&&(m(0,"tbody")(1,"tr")(2,"td",68)(3,"div",69)(4,"h6"),v(5),M(6,"translate"),p()()()()()),2&t&&(u(5),P(E(6,1,"NoDataFound")))}function COe(t,n){if(1&t&&(m(0,"option",13),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),_e(" ",e.name," ")}}function wOe(t,n){if(1&t&&(m(0,"option",13),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),_e(" ",e.name," ")}}let DOe=(()=>{class t{notificationService;_httpService;fb;http;renderer;translate;router;datepicker;todatepicker;isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your request has";subMessage="been deleted successfully";requestTypes=[];statusTypes=[];requestType=null;statusType=null;pageCount=1;requestsList=[];leaveRequestID=0;form;isWarningModal=!1;loginUserInfo={isError:!1,errorMsg:"",isValidUser:!1,isDirector:!1,isTrainingSupervisor:!1,isSupervisor:!1,name:"",designation:"",phoneNumber:"",photoURL:""};isWarning=!1;approve="";cancel="";fromDate="";toDate="";bsDatepickerConfig;Rejected="";Deleted="";destroy$=new nt;constructor(e,i,r,a,s,o,l){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.translate=o,this.router=l,localStorage.removeItem("DutyResumeItem"),localStorage.removeItem("ExtendItem"),this.bsDatepickerConfig={containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1},this.loginUserInfo=JSON.parse(localStorage.getItem("loginUserInfo")||"{}"),this.form=this.fb.group({rejectReson:""}),this.translate.get("modalTitle").subscribe(d=>{this.modalTitle=d}),this.translate.get("modalMessage").subscribe(d=>{this.modalMessage=d}),this.translate.get("subMessage").subscribe(d=>{this.subMessage=d}),this.translate.get("Approved").subscribe(d=>{this.approve=d}),this.translate.get("Canceled").subscribe(d=>{this.cancel=d}),this.translate.get("Rejected").subscribe(d=>{this.Rejected=d}),this.translate.get("Deleted").subscribe(d=>{this.Deleted=d})}ngOnInit(){this.setDefaultDates(),this.getRequestDetails(),this.getRequestTypes(),this.getRequestStatus(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getRequestDetails(),this.getRequestTypes(),this.getRequestStatus(),this.translate.get("modalTitle").subscribe(i=>{this.modalTitle=i}),this.translate.get("modalMessage").subscribe(i=>{this.modalMessage=i}),this.translate.get("subMessage").subscribe(i=>{this.subMessage=i}),this.translate.get("Approved").subscribe(i=>{this.approve=i}),this.translate.get("Canceled").subscribe(i=>{this.cancel=i}),this.translate.get("Rejected").subscribe(i=>{this.Rejected=i}),this.translate.get("Deleted").subscribe(i=>{this.Deleted=i})})}setDefaultDates(){const e=Wo(new Date);this.toDate=this.formatDateToDDMMYYYY(e);const i=Wo(new Date);i.setMonth(i.getMonth()-3),i.setDate(1),this.fromDate=this.formatDateToDDMMYYYY(i)}formatDateToDDMMYYYY(e){return`${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")}/${e.getFullYear()}`}getRequestStatus(){this._httpService.getAll("/api/requestDetails/request-status").subscribe(e=>{200===e.code&&0===e.apiCode&&(this.statusTypes=e.data)})}getRequestTypes(){this._httpService.getAll("/api/requestDetails/request-types").subscribe(e=>{200===e.code&&0===e.apiCode&&(this.requestTypes=e.data)})}approveLeaveRequest(e){this._httpService.getAll("/api/leaveRequest/ApproveLeaveRequest/"+e).subscribe(i=>{200===i.code&&0===i.apiCode?(this.translate.get("modalTitle").subscribe(r=>{this.modalTitle=r}),this.translate.get("modalMessage").subscribe(r=>{this.modalMessage=r}),this.translate.get("approveSubMessage").subscribe(r=>{this.subMessage=r}),this.openModal()):(this.translate.get("modalTitle").subscribe(r=>{this.modalTitle=r}
1),this.translate.get("errorModalMessage").subscribe(r=>{this.modalMessage=r}),this.translate.get("errorMessage").subscribe(r=>{this.subMessage=r}),this.isWarning=!0,this.openModal())})}cancelLeaveRequestModal(e){this.isWarningModal=!0,this.leaveRequestID=e,this.translate.get("warningMessage").subscribe(i=>{this.modalMessage=i}),this.openWarningModal()}cancelLeaveRequest(e){this.isWarningModal=!1,this._httpService.post("/api/leaveRequest/DeleteLeaveRequest/"+e,{}).subscribe(i=>{200===i.code&&0===i.apiCode?(this.isModalVisible=!0,this.translate.get("modalTitle").subscribe(r=>{this.modalTitle=r}),this.translate.get("cancelMessage").subscribe(r=>{this.modalMessage=r}),this.translate.get("subMessage").subscribe(r=>{this.subMessage=r}),this.openModal()):(this.translate.get("modalTitle").subscribe(r=>{this.modalTitle=r}),this.translate.get("errorModalMessage").subscribe(r=>{this.modalMessage=r}),this.translate.get("errorMessage").subscribe(r=>{this.subMessage=r}),this.isWarning=!0,this.openModal())})}extendLeaveRequest(e){localStorage.setItem("ExtendItem",JSON.stringify(e)),this.router.navigate(["extend-leave-request"])}preventTyping(e){["Tab","ArrowLeft","ArrowRight"].includes(e.key)||e.preventDefault()}dutyResumeRequest(e){localStorage.setItem("DutyResumeItem",JSON.stringify(e)),this.router.navigate(["duty-resume"])}rejectLeave(e){this.leaveRequestID=e,this.openRejectModal()}rejectLeaveRequest(){const{rejectReson:e}=this.form.value;this._httpService.post("api/leaveRequest/rejectLeaveRequest",{leaveRequestID:this.leaveRequestID,rejectReson:e}).subscribe(r=>{200===r.code&&0===r.apiCode&&this.hideRejectModal()})}getRequestDetails(){this.requestsList=[];const r=this.requestType,a=this.statusType,s=co(this.fromDate),o=co(this.toDate);this._httpService.post("/api/requestDetails/GetRequestDetails",{requestTypeId:r,statsuId:a,fromDate:s,toDate:o}).subscribe({next:l=>{l&&200===l.code&&0===l.apiCode&&(this.requestsList=l.data)},error:l=>{}})}toggleFilterClose(){var e=document.getElementById("filtersidebar");e&&(e.classList.remove("show"),e.classList.toggle("hide"))}toggleFilter(){var e=document.getElementById("filtersidebar");e&&e.classList.toggle("show")}openWarningModal(){const e=document.getElementById("warningModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideWarningModal(){const e=this.renderer.selectRootElement("#warningModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).hide(),this.renderer.setAttribute(e,"aria-hidden","true"),this.cancelLeaveRequest(this.leaveRequestID)}openRejectModal(){const e=document.getElementById("rejectModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideRejectModal(){const e=this.renderer.selectRootElement("#rejectModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).hide(),this.renderer.setAttribute(e,"aria-hidden","true"),this.getRequestDetails()}resetFilterRequestDetails(){this.statusType=null,this.requestType=null,this.setDefaultDates()}getFilterRequestDetails(){this.toggleFilterClose(),this.getRequestDetails()}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.getRequestDetails()}onModalClose(){this.isModalVisible=!1,this.isWarningModal?this.hideWarningModal():this.hideModal()}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(cn),G(An))};static \u0275cmp=vt({type:t,selectors:[["app-my-requests"]],viewQuery:function(i,r){if(1&i&&(En(dOe,5),En(uOe,5)),2&i){let a;Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first)}},decls:155,vars:109,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"pt-filters"],[1,"form-select",3,"ngModelChange","change","ngModel"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-yellow",3,"click"],["src","./assets/images/filter-icon.svg"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","fal
1se",1,"btn","btn-primary"],["src","./assets/images/plus-circle.svg"],[1,"dropdown-menu","cr-dd"],[1,"dd-menu-links"],["src","./assets/images/annual-leave.svg"],["src","./assets/images/EmergencyLeave.svg"],["src","./assets/images/sick-leave.svg"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[1,"action-button"],[4,"ngIf","ngIfElse"],[3,"close","isVisible","isWarning","title","message","subMessage"],["id","rejectModal","tabindex","-1","role","dialog","aria-labelledby","rejectModalLabel","aria-modal","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col-12"],[1,"form-group"],["formControlName","rejectReson","rows","5",1,"form-control"],[1,"modal-footer","df-btns"],["type","submit",1,"btn","btn-red"],["type","button",1,"btn","btn-outline-gray",3,"click"],["id","filtersidebar",1,"notifisidebar"],[1,"notifi-header"],[1,"close-btn",3,"click"],[1,"notifi-body"],[1,"filter-pop-sec"],[1,"iwi"],["bsDatepicker","","type","text","id","fromDate","autocomplete","off",1,"form-control",3,"ngModelChange","keydown","ngModel","bsConfig"],["bsDatepicker","","type","text","id","toDate","autocomplete","off",1,"form-control",3,"ngModelChange","keydown","ngModel","bsConfig"],[1,"form-select",3,"ngModelChange","ngModel"],["type","submit",1,"btn","btn-secondary","w-100","mt-4",3,"click"],["type","submit",1,"btn","btn-outline-secondary","w-100","mt-4",3,"click"],[4,"ngFor","ngForOf"],[1,"leave-type"],[1,"leave-stat",3,"ngClass"],["style","cursor: pointer;","class","vd-btn btn-red",3,"click",4,"ngIf"],["style","cursor: pointer;","class","vd-btn btn-green",3,"click",4,"ngIf"],["style","cursor: pointer;","class","vd-btn btn-orange",3,"click",4,"ngIf"],[1,"vd-btn","btn-red",2,"cursor","pointer",3,"click"],[1,"vd-btn","btn-green",2,"cursor","pointer",3,"click"],[1,"vd-btn","btn-orange",2,"cursor","pointer",3,"click"],["colspan","10"],[1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,fOe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()(),m(19,"div",11)(20,"label"),v(21),M(22,"translate"),p(),m(23,"select",12),Uo("ngModelChange",function(o){return Ce(a),wl(r.requestType,o)||(r.requestType=o),we(o)}),be("change",function(){return Ce(a),we(r.getRequestDetails())}),m(24,"option",13),v(25),M(26,"translate"),p(),oe(27,pOe,2,2,"option",14),p(),m(28,"button",15),be("click",function(){return Ce(a),we(r.toggleFilter())}),fe(29,"img",16),v(30),M(31,"translate"),p(),m(32,"div",17)(33,"button",18),fe(34,"img",19),v(35),M(36,"translate"),p(),m(37,"div",20)(38,"ul",21)(39,"li")(40,"a",9),fe(41,"img",22),v(42),M(43,"translate"),p()(),m(44,"li")(45,"a",9),fe(46,"img",23),v(47),M(48,"translate"),p()(),m(49,"li")(50,"a",9),fe(51,"img",24),v(52),M(53,"translate"),p()()()()()()(),m(54,"div",25)(55,"div",26)(56,"div",27)(57,"table",28)(58,"thead")(59,"tr")(60,"th"),v(61),M(62,"translate"),p(),m(63,"th"),v(64),M(65,"translate"),p(),m(66,"th"),v(67),M(68,"translate"),p(),m(69,"th"),v(70),M(71,"translate"),p(),m(72,"th"),v(73),M(74,"translate"),p(),m(75,"th"),v(76),M(77,"translate"),p(),m(78,"th"),v(79),M(80,"translate"),p(),m(81,"th",29),v(82),M(83,"translate"),p()()(),oe(84,yOe,3,1,"ng-container",30)(85,bOe,7,3,"ng-template",null,0,ni),p()()()()()(),m(87,"app-modal",31),be("close",function(){return Ce(a),we(r.onModalClose())}),p(),m(88,"div",32)(89,"div",33)(90,"div",34)(91,"div",35)(92,"h5"),v(93,"Reason of Rejection"),p(),m(94,"button",36)(95,"span",37),fe(96,"img",38),p()()(),m(97,"form",39),be("ngSubmit",function(){return Ce(a),we(r.rejectLeaveRequest())}),m(98,"div",40)(99,"div",41)(100,"div",42)(101,"div",43)(102,"label"),v(103,"Add Remarks "),p(),fe(104,"textarea",44),p()()()(),m(105,"div",45)(106,"button",46),v(107,"Reject Request"),p(),m(108,"button",47),be("click",function(){return Ce(a),we(r.hideRejectModal())}),v(109,"Cancel"),p()()()()()(),m(110,"div",48)(111,"div",49)(112,"p"),v(113),M(114,"translate"),p(),m(115,"button",50),be("click",function(){return Ce(a),we(r.toggleFilterClose())}),fe(116,"img",38),p()(),m(117,"div",51)(118,"div",52)(119,"div",43)(120,"label"),v(121),M(122,"translate"),p(),m(123,"div",53)(124,"input",54),Uo("ngModelChange",function(o){return Ce(a),wl(r.fromDate,o)||(r.fromDate=o),we(o)}),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p()()(),m(125,"div",43)(126,"label"),v(127),M(128,"translate"),p(),m(129,"input",55),Uo("ngModelChange",function(o){return Ce(a),wl(r.toDate,o)||(r.toDate=o),we(o)}),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p()(),m(130,"div",43)(131,"label"),v(132),M(133,"translate"),p(),m(134,"select",56),Uo("ngModelChange",function(o){return Ce(a),wl(r.requestType,o)||(r.requestType=
1o),we(o)}),m(135,"option",13),v(136),M(137,"translate"),p(),oe(138,COe,2,2,"option",14),p()(),m(139,"div",43)(140,"label"),v(141),M(142,"translate"),p(),m(143,"select",56),Uo("ngModelChange",function(o){return Ce(a),wl(r.statusType,o)||(r.statusType=o),we(o)}),m(144,"option",13),v(145),M(146,"translate"),p(),oe(147,wOe,2,2,"option",14),p()(),m(148,"button",57),be("click",function(){return Ce(a),we(r.getFilterRequestDetails())}),v(149),M(150,"translate"),p(),m(151,"button",58),be("click",function(){return Ce(a),we(r.resetFilterRequestDetails())}),v(152),M(153,"translate"),p()()()()(),fe(154,"app-footer")}if(2&i){let a;const s=Di(86);u(),T("ngIf",null==(a=E(2,53,r.notificationService.notification$))?null:a.show),u(8),P(E(10,55,"MyRequests")),u(4),T("routerLink","/home"),u(),P(E(15,57,"Home")),u(3),P(E(18,59,"MyRequests")),u(4),P(E(22,61,"RequestType")),u(2),Vo("ngModel",r.requestType),u(),T("ngValue",null),u(),P(E(26,63,"Select")),u(2),T("ngForOf",r.requestTypes),u(3),_e(" ",E(31,65,"Filter"),""),u(5),_e(" ",E(36,67,"CreateRequest"),""),u(5),T("routerLink","/leave-request/annual"),u(2),_e(" ",E(43,69,"AnnualLeave")," "),u(3),T("routerLink","/emergency-leave-request"),u(2),_e(" ",E(48,71,"EmergencyLeave")," "),u(3),T("routerLink","/leave-request/sick"),u(2),_e(" ",E(53,73,"SickLeave")," "),u(9),P(E(62,75,"RequestedDate")),u(3),P(E(65,77,"Type")),u(3),P(E(68,79,"LeaveDate")),u(3),P(E(71,81,"SupervisorName")),u(3),P(E(74,83,"ReasonofRejection")),u(3),P(E(77,85,"ExtensionDate")),u(3),P(E(80,87,"Status")),u(3),P(E(83,89,"Action")),u(2),T("ngIf",r.requestsList&&r.requestsList.length>0)("ngIfElse",s),u(3),T("isVisible",r.isModalVisible)("isWarning",r.isWarning)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage),u(10),T("formGroup",r.form),u(16),P(E(114,91,"Filter")),u(8),P(E(122,93,"FromDate")),u(3),Vo("ngModel",r.fromDate),T("bsConfig",r.bsDatepickerConfig),u(3),P(E(128,95,"ToDate")),u(2),Vo("ngModel",r.toDate),T("bsConfig",r.bsDatepickerConfig),u(3),P(E(133,97,"RequestType")),u(2),Vo("ngModel",r.requestType),u(),T("ngValue",null),u(),P(E(137,99,"Select")),u(2),T("ngForOf",r.requestTypes),u(3),P(E(142,101,"RequestStatus")),u(2),Vo("ngModel",r.statusType),u(),T("ngValue",null),u(),P(E(146,103,"Select")),u(2),T("ngForOf",r.statusTypes),u(2),P(E(150,105,"ApplyFilter")),u(3),P(E(153,107,"Reset"))}},dependencies:[jr,yi,oa,Un,Zt,Ii,Bl,wu,pd,kE,Qr,uc,hc,da,zo,Ur,Zr,iv,fi,_r,Hr,ri,ii,pn,dn,Zs,hi,ui],encapsulation:2})}return t})();const Xw=t=>({active:t});function SOe(t,n){1&t&&fe(0,"app-notifications")}function TOe(t,n){if(1&t&&(m(0,"tr")(1,"td",39),v(2),p(),m(3,"td",40),v(4),p(),m(5,"td"),v(6),p(),fe(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),p()),2&t){const e=n.$implicit;u(2),P(e.sectorName),u(2),P(e.number),u(2),P(e.amount)}}function xOe(t,n){if(1&t&&(m(0,"div",31)(1,"h2",27)(2,"button",32),v(3),p()(),m(4,"div",33)(5,"div",34)(6,"div",35)(7,"div",36)(8,"div",37)(9,"table",38)(10,"thead")(11,"tr")(12,"th",39),v(13),M(14,"translate"),p(),m(15,"th",40),v(16),M(17,"translate"),p(),m(18,"th"),v(19),M(20,"translate"),p(),fe(21,"th")(22,"th")(23,"th")(24,"th")(25,"th")(26,"th"),p()(),m(27,"tbody"),oe(28,TOe,13,3,"tr",41),p()()()()()()()()),2&t){const e=n.$implicit,i=n.index;u(3),_e(" ",e.countryName," "),u(),ba("id","collapseTwo-",i,""),u(9),P(E(14,7,"Sector")),u(3),P(E(17,9,"InMillions")),u(3),P(E(20,11,"Value(KD)")),u(9),T("ngForOf",e.loanSectors)}}function MOe(t,n){if(1&t&&(m(0,"div",26)(1,"h2",27)(2,"button",28),v(3),p()(),m(4,"div",29),oe(5,xOe,29,13,"div",30),p()()),2&t){const e=n.$implicit,i=n.index;u(2),Kt("data-bs-target","#collapseOne-"+i)("aria-controls","collapseOne-"+i),u(),_e(" ",e.divisionName," "),u(),ba("id","collapseOne-",i,""),u(),T("ngForOf",e.loanCountries)}}function EOe(t,n){if(1&t&&(Gn(0),oe(1,MOe,6,6,"div",25),qn()),2&t){const e=B(2);u(),T("ngForOf",e.loansResponse)}}function IOe(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function AOe(t,n){if(1&t&&(m(0,"div",22)(1,"div",23),oe(2,EOe,2,1,"ng-container",24)(3,IOe,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.loansResponse&&i.loansResponse.length>0)("ngIfElse",e)}}function kOe(t,n){if(1&t&&(m(0,"tr")(1,"td",44),v(2),p(),m(3,"td",45),v(4),p(),m(5,"td",46),v(6),p(),fe(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),p()),2&t){const e=n.$implicit;u(2),P(e.instituteName),u(2),P(e.numberOfGrants),u(2),P(e.valueOfGrants)}}function NOe(t,n){if(1&t&&(Gn(0),m(1,"div",36)(2,"div",37)(3,"table",38)(4,"thead")(5,"tr")(6,"th",44),v(7),M(8,"translate"),p(),m(9,"th",45),v(10),M(11,"translate"),p(),m(12,"th",46),v(13),M(14,"translate"),p(),fe(15,"th")(16,"th")(17,"th")(18,"th")(19,"th")(20,"th"),p()(),m(21,"tbody"),oe(22,kOe,13,3,"tr",41),p()()()(),qn()),2&t){const e=B(2);u(7),P(E(8,4,"InstituteName")),u(3),P(E(11,6,"InMillions")),u(3),P(E(14,8,"Value(KD)")),u(9),T("ngForOf",e.grantsInstitutions)}}function ROe(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function POe(t,n){if(1&t&&(m(0,"div",42)(1,"div",43),oe(2,NOe,23,10,"ng-container",24)(3,ROe,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.grantsInstitutions.length>0)("ngIfElse",e)}}function OOe(t,n){if(1&t&&(m(0,"tr")(1,"td",44),v(2),p(),m(3,"td",45),v(4),p(),m(5,"td",46),v(6),p(),fe(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),p()),2&t){const e=n.$implicit;u(2),P(e.countryName),u(2),P(e.numberOfGrants),u(2),P(e.valueOfGrants)}}function LOe(t,n){if(1&t&&(Gn(0),m(1,"div",36)(2,"div",37)(3,"table",38)(4,"thead")(5,"tr")(6,"th",44),v(7),M(8,"translate"),p(),m(9,"th",45),v(10),M(11,"translate"),p(),m(12,"th",46),v(13),M(14,"translate"),p(),fe(15,"th")(16,"th")(17,"th")(18,"th")(19,"th")(20,"th"),p()(),m(21,"tbody"),oe(22,OOe,13,3,"tr",41),p()()()(),qn()),2&t){const e=B(2);u(7),P(E(8,4,"CountryName")),u(3),P(E(11,6,"InMillions")),u(3),P(E(14,8,"Value(KD)")),u(9),T("ngForOf",e.grantsCountries)}}function FOe(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function BOe(t,n){if(1&t&&(m(0,"div",42)(1,"div",47),oe(2,LOe,23,10,"ng-container",24)(3,FOe,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.grantsCountries.length>0)("ngIfElse",e)}}function VOe(t,n){if(1&t&&(m(0,"tr")(1,"td",44),v(2),p(),m(3,"td",45),v(4),p(),m(5,"td",46),v(6),p(),fe(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),p()),2&t){const e=n.$implicit;u(2),P(e.foundationName),u(2),P(e.committedAmount),u(2),P(e.paidUpAmount)}}function UOe(t,n){if(1&t&&(Gn(0),m(1,"div",36)(2,"div",37)(3,"table",38)(4,"thead")(5,"tr")(6,"th",44),v(7),M(8,"translate"),p(),m(9,"th",45),v(10),M(11,"translate"),p(),m(12,"th",46),v(13),M(14,"translate"),p(),fe(15,"th")(16,"th")(17,"th")(18,"th")(19,"th")(20,"th"),p()(),m(21,"tbody"),oe(22,VOe,13,3,"tr",41),p()()()(),qn()),2&t){const e=B(2);u(7),P(E(8,4,"FoundationName")),u(3),P(E(11,6,"Committed")),u(3),P(E(14,8,"Paid")),u(9),T("ngForOf",e.contribution)}}function HOe(t,n){1&t&&(m(0,"div",19)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function jOe(t,n){if(1&t&&(m(0,"div",42)(1,"div",48),oe(2,UOe,23,10,"ng-container",24)(3,HOe,4,3,"ng-template",null,0,ni),p()()),2&t){const e=Di(4),i=B();u(2),T("ngIf",i.contribution&&i.contribution.length>0)("ngIfElse",e)}}let zOe=(()=>{class t{notificationService;_httpService;http;renderer;router;translate;selectedTab;loansResponse=[];grantsCountries=[];grantsInstitutions=[];contribution=[];destroy$=new nt;constructor(e,i,r,a,s,o){this.notificationService=e,this._httpService=i,this.http=r,this.renderer=a,this.router=s,this.translate=o,gy.register(ly,Rk,zk,Hk),this.loansResponse=[{divisionName:"",loanCountries:[]}],this.contribution=[{foundationName:"",paidUpAmount:"",committedAmount:""}],this.selectedTab="Loans"}ngOnInit(){this.getLoans(),this.getGrants(),this.getContribution(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getLoans(),this.getGrants(),this.getContribution()})}getLoans(){this.loansResponse=[],this._httpService.getAll("/api/general/get-loans").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.loansResponse=e.data.map(i=>({...i,loanCountries:i.loanCountries.map(r=>({...r,totalNumber:r.loanSectors.reduce((a,s)=>a+parseInt(s.number||"0",10),0)}))})))},error:e=>{this.loansResponse=[]}})}getGrants(){this._httpService.getAll("/api/general/get-grant-countries").subscribe({next:e=>{this.grantsCountries=200==e.code&&0===e.apiCode?e.data:[]},error:e=>{this.grantsCountries=[]}}),this._httpService.getAll("/api/general/get-grant-institutions").subscribe({next:e=>{this.grantsInstitutions=200==e.code&&0===e.apiCode?e.data:[]},error:e=>{this.grantsInstitutions=[]}})}getContribution(){this._httpService.getAll("/api/general/get-grant-contribution").subscribe({next:e=>{this.contribution=200==e.code&&0===e.apiCode?e.data:[]},error:e=>{this.contribution=[]}})}selectTab(e){this.selectedTab=e}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G($n),G(zn),G(An),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-operations-statistics"]],decls:47,vars:48,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[1,"wb-header"],[1,"tab"],[1,"tablinks","active",3,"click","ngClass"],[1,"tablinks",3,"click","ngClass"],["class","mb-4 mt-4",4,"ngIf"],["class","mb-4",4,"ngIf"],[1,"text-center","mb-4","mt-4"],["href","https://www.kuwait-fund.org","target","_blank","rel","noopener noreferrer",1,"btn","btn-secondary","bgps","mb-4"],["src","./assets/images/globe-white.svg","alt","Globe Icon"],[1,"mb-4","mt-4"],["id","Loans",1,"tabcontent","my-5","display-block","col-12"],[4,"ngIf","ngIfElse"],["class","accordion-item",4,"ngFor","ngForOf"],[1,"accordion-item"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","aria-expanded","fal
1se",1,"accordion-button","collapsed"],["data-bs-parent","#accordionExample",1,"accordion-collapse","collapse",3,"id"],["class","accordion-item","style","margin-top:1vw",4,"ngFor","ngForOf"],[1,"accordion-item",2,"margin-top","1vw"],["type","button",1,"accordion-button-inner"],[1,"accordion-collapse",3,"id"],[1,"accordion-body","py-0"],[1,"td-box","border-0","shadow-none"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[1,"ops-sta"],[1,"ops-sta-count","text-center"],[4,"ngFor","ngForOf"],[1,"mb-4"],["id","chartGrantsInstitutionsData"],["width","500px"],["width","250px",1,"text-center"],[1,"text-center"],["id","chartGrantsCountriesData"],["id","chartGrantscontribution"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,SOe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()(),m(19,"a",11),v(20),M(21,"translate"),p()(),m(22,"div",12)(23,"div",13)(24,"div",14)(25,"button",15),be("click",function(){return r.selectTab("Loans")}),v(26),M(27,"translate"),p(),m(28,"button",16),be("click",function(){return r.selectTab("GovtGrands")}),v(29),M(30,"translate"),p(),m(31,"button",16),be("click",function(){return r.selectTab("Grants")}),v(32),M(33,"translate"),p(),m(34,"button",16),be("click",function(){return r.selectTab("Contributions")}),v(35),M(36,"translate"),p()()(),oe(37,AOe,5,2,"div",17)(38,POe,5,2,"div",18)(39,BOe,5,2,"div",18)(40,jOe,5,2,"div",18),m(41,"div",19)(42,"a",20),fe(43,"img",21),v(44),M(45,"translate"),p()()()()()(),fe(46,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,20,r.notificationService.notification$))?null:a.show),u(8),_e("",E(10,22,"OperationsandStatistics")," "),u(4),T("routerLink","/home"),u(),P(E(15,24,"Home")),u(3),_e("",E(18,26,"OperationsandStatistics")," "),u(2),T("routerLink","/home"),u(),P(E(21,28,"Back")),u(5),T("ngClass",In(40,Xw,"Loans"===r.selectedTab)),u(),_e("",E(27,30,"Loans")," "),u(2),T("ngClass",In(42,Xw,"GovtGrands"===r.selectedTab)),u(),_e("",E(30,32,"GrantsCountries")," "),u(2),T("ngClass",In(44,Xw,"Grants"===r.selectedTab)),u(),P(E(33,34,"Grantsinstitute")),u(2),T("ngClass",In(46,Xw,"Contributions"===r.selectedTab)),u(),P(E(36,36,"GrantsContributions")),u(2),T("ngIf","Loans"===r.selectedTab),u(),T("ngIf","Grants"===r.selectedTab),u(),T("ngIf","GovtGrands"===r.selectedTab),u(),T("ngIf","Contributions"===r.selectedTab),u(4),_e(" ",E(45,38,"ReadMoreon")," kuwait-fund.org ")}},dependencies:[ri,ii,pn,dn,oa,Zt,Un,hi,ui,jr,yi,Ii],encapsulation:2})}return t})();function YOe(t,n){if(1&t&&(Gn(0),m(1,"tbody")(2,"tr")(3,"td"),v(4),p(),m(5,"td"),v(6),p(),m(7,"td"),v(8),p(),m(9,"td"),v(10),p(),m(11,"td"),v(12),p(),m(13,"td"),v(14),p(),m(15,"td")(16,"a",18),v(17),M(18,"translate"),p()()()(),qn()),2&t){const e=B();u(4),P(e.info.city),u(2),P(e.info.street),u(2),P(e.info.block),u(2),P(e.info.building),u(2),P(e.info.apartmentNumber),u(2),P(e.info.avenue),u(3),P(E(18,7,"Edit"))}}function $Oe(t,n){1&t&&(m(0,"tr")(1,"td",19)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}let WOe=(()=>{class t{_httpService;http;translate;isInfoFetched=!1;info={city:"",block:"",street:"",avenue:"",building:"",apartmentNumber:"",phone1:"",phone2:"",attachmentInfo:""};constructor(e,i,r){this._httpService=e,this.http=i,this.translate=r}ngOnInit(){this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-employee-address-details").subscribe({next:e=>{200==e.code?(this.info=e.data,this.isInfoFetched=!0):this.isInfoFetched=!1},error:e=>{this.isInfoFetched=!1}})}static \u0275fac=function(i){return new(i||t)(G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-address-info"]],decls:53,vars:35,consts:[["noData",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["routerLink","/home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"pt-filters"],["type","button",1,"btn","btn-outline-gray"],["src","./assets/images/paci-logo.svg"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[4,"ngIf","ngIfElse"],["routerLink","/edit-address",1,"t-btn","btn-l-green"],["colspan","100%",1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",6)(10,"li",7)(11,"a",8),v(12),M(13,"translate"),p()(),m(14,"li",9),v(15),M(16,"translate"),p()()(),m(1
17,"div",10)(18,"button",11),fe(19,"img",12),v(20),M(21,"translate"),p()()(),m(22,"div",13)(23,"div",14)(24,"div",15)(25,"table",16)(26,"thead")(27,"tr")(28,"th"),v(29),M(30,"translate"),p(),m(31,"th"),v(32),M(33,"translate"),p(),m(34,"th"),v(35),M(36,"translate"),p(),m(37,"th"),v(38),M(39,"translate"),p(),m(40,"th"),v(41),M(42,"translate"),p(),m(43,"th"),v(44),M(45,"translate"),p(),m(46,"th"),v(47),M(48,"translate"),p()()(),oe(49,YOe,19,9,"ng-container",17)(50,$Oe,5,3,"ng-template",null,0,ni),p()()()()()()(),fe(52,"app-footer")),2&i){const a=Di(51);u(7),P(E(8,13,"Address")),u(5),P(E(13,15,"Home")),u(3),P(E(16,17,"Address")),u(5),_e(" ",E(21,19,"UpdatewithPACI"),""),u(9),P(E(30,21,"Governate")),u(3),P(E(33,23,"Street")),u(3),P(E(36,25,"Block")),u(3),P(E(39,27,"BuildingNumber")),u(3),P(E(42,29,"Floor")),u(3),P(E(45,31,"Flat")),u(3),P(E(48,33,"Action")),u(2),T("ngIf",r.isInfoFetched)("ngIfElse",a)}},dependencies:[ri,ii,fi,hi,ui,pn,dn,Zt],encapsulation:2})}return t})();const GOe=["fileInput"],qOe=t=>({"margin-left":t});function KOe(t,n){1&t&&(m(0,"div",36),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CityRequired")," "))}function ZOe(t,n){1&t&&(m(0,"div",36),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"BlockRequired")," "))}function QOe(t,n){1&t&&(m(0,"div",36),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StreetRequired")," "))}function XOe(t,n){1&t&&(m(0,"div",36),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"BuildingRequired")," "))}function JOe(t,n){1&t&&(m(0,"div",36),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"PhonenumberRequired")," "))}function eLe(t,n){1&t&&(m(0,"div",37),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Invalidphonenumberformat")," "))}function tLe(t,n){1&t&&(m(0,"div",16)(1,"label"),v(2),M(3,"translate"),p(),fe(4,"input",38),p()),2&t&&(u(2),P(E(3,1,"Phone2")))}function nLe(t,n){1&t&&(m(0,"span",44),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"UplodedAttachments"),": "))}function iLe(t,n){if(1&t){const e=qe();m(0,"div",39)(1,"div",40),oe(2,nLe,3,3,"span",41),m(3,"label",42)(4,"span"),v(5),p(),m(6,"i",43),be("click",function(){const r=Ce(e).$implicit;return we(B().removeImage(r))}),p()()()()}if(2&t){const e=n.$implicit,i=n.index;u(2),T("ngIf",0==i),u(),T("ngClass",In(3,qOe,i>0)),u(2),P(e.title)}}function rLe(t,n){if(1&t&&(m(0,"div",36),v(1),p()),2&t){const e=B();u(),_e(" ",e.fileError," ")}}function aLe(t,n){if(1&t&&(m(0,"div",36),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}let sLe=(()=>{class t{_httpService;fb;http;renderer;router;translate;route;fileInput;showErrorMsg=!1;form;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";IsPhoneNumber=!1;files=[];allowedExtensions="jpeg,.jpg,.png,.pdf";errorMessage="";images=[];fileExtension="";fileError="";maxFileSizeMB=1;constructor(e,i,r,a,s,o,l){this._httpService=e,this.fb=i,this.http=r,this.renderer=a,this.router=s,this.translate=o,this.route=l,this.translate.get("modalTitle").subscribe(d=>{this.modalTitle=d}),this.translate.get("YourAddresshas").subscribe(d=>{this.modalMessage=d}),this.translate.get("updatesuccess").subscribe(d=>{this.subMessage=d}),this.form=this.fb.group({city:["",[at.required,at.minLength(1),at.maxLength(10)]],block:["",[at.required,at.minLength(1),at.maxLength(10)]],street:["",[at.required,at.minLength(1),at.maxLength(10)]],avenue:["",[at.required,at.minLength(1),at.maxLength(10)]],building:["",[at.required,at.minLength(1),at.maxLength(10)]],apartmentNumber:[""],phone1:["",[at.required,at.minLength(1),at.maxLength(8)]],phone2:[""]}),this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-employee-address-details").subscribe({next:e=>{200==e.code&&(this.form.patchValue({city:e.data.city}),this.form.patchValue({block:e.data.block}),this.form.patchValue({street:e.data.street}),this.form.patchValue({avenue:e.data.avenue}),this.form.patchValue({phone1:e.data.phone1}),this.form.patchValue({phone2:e.data.phone2}),this.form.patchValue({building:e.data.building}),this.form.patchValue({apartmentNumber:e.data.apartmentNumber}),e.data.phone1&&(this.IsPhoneNumber=!0))},error:e=>{}})}validateMobile(){const e=this.form.get("phone1")?.value||"";if(!e||!xn_Phonenumber.test(`+965${e}`))return this.showErrorMsg=!0,void this.form.get("phone1")?.setErrors({invalid:!0});this.showErrorMsg=!1,this.form.get("phone1")?.setErrors(null)}onSubmit(){if(this.validateMobile(),this.showErrorMsg)return;if(!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(b=>{this.errorMessage=b});const e=this.fileExtension,i=this.images.length>0?this.images[0].url:"",{city:r,block:a,street:s,avenue:o,phone1:l,phone2:d,building:h,apartmentNumber:_}=this.form.value;this._httpService.post("/api/profile/update-employee-address",{city:r,block:a,street:s,avenue:o,phone1:l,phone2:d,building:h,apartmentNumber:_,fileExtention:e,base64:i}).subscribe(b=>{200==b.code?(this.errorMessage="",this.openModal()):this.errorMessage=b.message})}onFileSelected(e){this.files=[],this.images=[],this.files||(this.files=[]),this.files=[...this.files,...e.target.files];const i=1024*this.maxFileSizeMB*1024;for(let r=0;r<this.files.length;r++){const a=this.files[r];if(a.size>i)return this.translate.get("Filesizeexceedslimit").subscribe(o=>{this.fileError=o}),this.files=[],void(this.images=[]);if(this.fileExtension=a.type.substring(a.type.lastIndexOf(".")).toLowerCase(),this.fileExtension=this.fileExtension.replace("image/",""),this.fileExtension=this.fileExtension.replace("application/",""),
1!this.allowedExtensions.includes(this.fileExtension))return void this.translate.get("Pleaseselectonly").subscribe(o=>{this.fileError=o});this.fileError="";const s=new FileReader;s.readAsDataURL(a),s.onload=()=>{this.fileInput.nativeElement.value="",this.images.push({url:s.result,title:a.name})}}}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["address"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-edit-address-info"]],viewQuery:function(i,r){if(1&i&&En(GOe,5),2&i){let a;Vt(a=Ut())&&(r.fileInput=a.first)}},decls:96,vars:60,consts:[["fileInput",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],["href","address",1,"page-back-link"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[3,"ngSubmit","formGroup"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],["formControlName","city","minlength","1","maxlength","10","type","text","value","Ahmad Riyad Abdel",1,"form-control"],["class","text-danger small",4,"ngIf"],["formControlName","block","minlength","1","maxlength","10","type","text","value","Project Manager","disabled","",1,"form-control"],["formControlName","street","minlength","1","maxlength","10","type","text",1,"form-control"],["formControlName","avenue","minlength","1","maxlength","10","type","text",1,"form-control"],[1,"iwi"],["formControlName","building","minlength","1","maxlength","10","type","text","placeholder","",1,"form-control"],["formControlName","phone1","maxlength","8","numbersOnly","","type","text",1,"form-control"],["class","text-danger",4,"ngIf"],["class","form-group",4,"ngIf"],[1,"col-6",2,"margin-top","2vw"],[1,"file-upload-wrapper"],["type","file","accept","image/*,.pdf,.doc,.docx","name","file-upload-field","value","",1,"file-upload-field",3,"change"],["class","chooseFileIcon",4,"ngFor","ngForOf"],[1,"file-upload-validation","col-12"],[1,"list-style"],[1,"col-12","mb-4","mt-2"],["type","submit",1,"btn","btn-secondary"],[3,"close","isVisible","title","message","subMessage"],[1,"text-danger","small"],[1,"text-danger"],["formControlName","phone2","maxlength","8","numbersOnly","","type","text",1,"form-control"],[1,"chooseFileIcon"],[1,"choosefilechipsLabelBorder"],["class","h4-style",4,"ngIf"],[1,"choosefilelabelBorder",3,"ngClass"],[1,"chooseFileIcon","fa","fa-times",3,"click"],[1,"h4-style"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",6)(10,"li",7)(11,"a",8),v(12),M(13,"translate"),p()(),m(14,"li",9),v(15),M(16,"translate"),p()()(),m(17,"a",10),v(18),M(19,"translate"),p()(),m(20,"div",11)(21,"h4",12),v(22),M(23,"translate"),p(),m(24,"form",13),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(25,"div",14)(26,"div",15)(27,"div",16)(28,"label"),v(29),M(30,"translate"),p(),fe(31,"input",17),oe(32,KOe,3,3,"div",18),p()(),m(33,"div",15)(34,"div",16)(35,"label"),v(36),M(37,"translate"),p(),fe(38,"input",19),oe(39,ZOe,3,3,"div",18),p()(),m(40,"div",15)(41,"div",16)(42,"label"),v(43),M(44,"translate"),p(),fe(45,"input",20),oe(46,QOe,3,3,"div",18),p()(),m(47,"div",15)(48,"div",16)(49,"label"),v(50),M(51,"translate"),p(),fe(52,"input",21),p()(),m(53,"div",15)(54,"div",16)(55,"label"),v(56),M(57,"translate"),p(),m(58,"div",22),fe(59,"input",23),p(),oe(60,XOe,3,3,"div",18),p()(),m(61,"div",15)(62,"div",16)(63,"label"),v(64),M(65,"translate"),p(),fe(66,"input",24),oe(67,JOe,3,3,"div",18)(68,eLe,3,3,"div",25),p()(),m(69,"div",15),oe(70,tLe,5,3,"div",26),p(),m(71,"div",27)(72,"div",28)(73,"input",29,0),be("change",function(o){return Ce(a),we(r.onFileSelected(o))}),p()(),oe(75,iLe,7,5,"div",30)(76,rLe,2,1,"div",18),p(),m(77,"div",31)(78,"p")(79,"strong"),v(80),M(81,"translate"),p()(),m(82,"ul",32)(83,"li"),v(84),M(85,"translate"),p(),m(86,"li"),v(87),M(88,"translate"),p()()(),oe(89,aLe,2,1,"div",18),m(90,"div",33)(91,"button",34),v(92),M(93,"translate"),p()()()()()()(),m(94,"app-modal",35),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(95,"app-footer")}if(2&i){let a,s,o,l,d;u(7),_e("",E(8,30,"EditAddress")," "),u(5),P(E(13,32,"Home")),u(3),_e("",E(16,34,"EditAddress")," "),u(3),P(E(19,36,"Back")),u(4),P(E(23,38,"EditAddress")),u(2),T("formGroup",r.form),u(5),_e("",E(30,40,"City")," *"),u(3),T("ngIf",(null==(a=r.form.get("city"))?null:a.invalid)&&
1(null==(a=r.form.get("city"))?null:a.touched)),u(4),_e("",E(37,42,"Block")," *"),u(3),T("ngIf",(null==(s=r.form.get("block"))?null:s.invalid)&&(null==(s=r.form.get("block"))?null:s.touched)),u(4),_e("",E(44,44,"Street")," *"),u(3),T("ngIf",(null==(o=r.form.get("street"))?null:o.invalid)&&(null==(o=r.form.get("street"))?null:o.touched)),u(4),_e("",E(51,46,"Avenue")," *"),u(6),_e("",E(57,48,"Building")," *"),u(4),T("ngIf",(null==(l=r.form.get("building"))?null:l.invalid)&&(null==(l=r.form.get("building"))?null:l.touched)),u(4),_e("",E(65,50,"Phone1")," *"),u(3),T("ngIf",(null==(d=r.form.get("phone1"))?null:d.invalid)&&(null==(d=r.form.get("phone1"))?null:d.touched)),u(),T("ngIf",r.showErrorMsg),u(2),T("ngIf",r.IsPhoneNumber),u(5),T("ngForOf",r.images),u(),T("ngIf",r.fileError),u(4),P(E(81,52,"AllowedFileTypesSize")),u(4),P(E(85,54,"Acceptedfiletypes")),u(3),P(E(88,56,"MaximumFileSize")),u(2),T("ngIf",r.errorMessage),u(3),P(E(93,58,"Submit")),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[ri,ii,fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,Zs,Zt,pn,dn,oa,Bl,Un,Cm],encapsulation:2})}return t})();const oLe=["fileInput"],lLe=["dp"],cLe=["to"],Jw=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t}),$9=t=>({"margin-left":t});function dLe(t,n){1&t&&(m(0,"p",21),fe(1,"input",22),m(2,"label",23),v(3),M(4,"translate"),p()()),2&t&&(u(),T("value",!0),u(2),_e(" ",E(4,2,"Child")," "))}function uLe(t,n){1&t&&(m(0,"p",21),fe(1,"input",24),m(2,"label",25),v(3),M(4,"translate"),p()()),2&t&&(u(),T("value",!1),u(2),_e(" ",E(4,2,"Spouse")," "))}function hLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," * "))}function fLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function pLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CivilIDnumberRequired")," "))}function mLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DateofBirthRequired")," "))}function gLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DisabilityDateRequired")," "))}function _Le(t,n){if(1&t&&(m(0,"option",55),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),P(e.name)}}function vLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DisabilityTypeRequired")," "))}function yLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.fileError," ")}}function bLe(t,n){1&t&&(m(0,"span",61),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"UplodedAttachments"),": "))}function CLe(t,n){if(1&t){const e=qe();m(0,"div",56)(1,"div",57),oe(2,bLe,3,3,"span",58),m(3,"label",59)(4,"span"),v(5),p(),m(6,"i",60),be("click",function(){const r=Ce(e).$implicit;return we(B(2).removeImage(r))}),p()()()()}if(2&t){const e=n.$implicit,i=n.index;u(2),T("ngIf",0==i),u(),T("ngClass",In(3,$9,i>0)),u(2),P(e.title)}}function wLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function DLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.fileError," ")}}function SLe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"div",27)(2,"div",28)(3,"label"),v(4),M(5,"translate"),p(),m(6,"input",29),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(7,hLe,3,3,"div",30),p()(),m(8,"div",27)(9,"div",28)(10,"label"),v(11),M(12,"translate"),p(),m(13,"input",31),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(14,fLe,3,3,"div",30),p()(),m(15,"div",27)(16,"div",28)(17,"label"),v(18),M(19,"translate"),p(),fe(20,"input",32),oe(21,pLe,3,3,"div",30),p()(),m(22,"div",27)(23,"div",28)(24,"label"),v(25),M(26,"translate"),p(),m(27,"div",33)(28,"input",34,0),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(30,"img",35),be("click",function(){return Ce(e),we(B().openToDatePicker())}),p()(),oe(31,mLe,3,3,"div",30),p()(),m(32,"div",27)(33,"div",28)(34,"label"),v(35),M(36,"translate"),p(),m(37,"div",33)(38,"input",36,1),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(40,"img",35),be("click",function(){return Ce(e),we(B().openDatePicker())}),p()(),oe(41,gLe,3,3,"div",30),p()(),m(42,"div",37)(43,"div",38)(44,"label"),v(45),M(46,"translate"),p(),m(47,"select",39),oe(48,_Le,2,2,"option",40),p(),oe(49,vLe,3,3,"div",30),p()(),m(50,"div",41)(51,"p",21)(52,"input",42),be("change",function(){return Ce(e),we(B().chageGender(!0))}),p(),m(53,"label",43),v(54),M(55,"translate"),p()(),m(56,"p",21)(57,"input",44),be("change",function(){return Ce(e),we(B().chageGender(!1))}),p(),m(58,"label",45),v(59),M(60,"translate"),p()()(),m(61,"div",46)(62,"div",47)(63,"input",48,2),be("change",function(r){return Ce(e),we(B().onFileSelected(r))}),p()(),m(65,"div",49)(66,"p")(67,"strong"),v(68),M(69,"translate"),p()(),m(70,"ul",50)(71,"li"),v(72),M(73,"translate"),p(),m(74,"li"),v(75),M(76,"translate"),p()()(),oe(77,yLe,2,1,"div",30),p(),oe(78,CLe,7,5,"div",51)(79,wLe,2,1,"div",30)(80,DLe,2,1,"div",30),m(81,"div",52)(82,"button",53),v(83),M(84,"translate"),p()()()}if(2&t){let e,i,r,a,s,o;const l=B();u(4),_e(" ",E(5,27,"EnglishName")," "),u(3),T("ngIf",(null==(e=l.form.get("childEnglishName"))?null:e.invalid)&&
1(null==(e=l.form.get("childEnglishName"))?null:e.touched)),u(4),_e(" ",E(12,29,"ArabicName")," "),u(3),T("ngIf",(null==(i=l.form.get("childArabicName"))?null:i.invalid)&&(null==(i=l.form.get("childArabicName"))?null:i.touched)),u(4),P(E(19,31,"CivilIDnumber")),u(3),T("ngIf",(null==(r=l.form.get("childCivilId"))?null:r.invalid)&&(null==(r=l.form.get("childCivilId"))?null:r.touched)),u(4),_e(" ",E(26,33,"DateofBirth")," "),u(3),T("bsConfig",In(51,Jw,l.minDate)),u(3),T("ngIf",(null==(a=l.form.get("childBirthDate"))?null:a.invalid)&&(null==(a=l.form.get("childBirthDate"))?null:a.touched)),u(4),_e(" ",E(36,35,"DisabilityDate")," "),u(3),T("bsConfig",In(53,Jw,l.minDDate)),u(3),T("ngIf",(null==(s=l.form.get("childDisabilityDate"))?null:s.invalid)&&(null==(s=l.form.get("childDisabilityDate"))?null:s.touched)),u(4),_e(" ",E(46,37,"DisabilityType")," "),u(3),T("ngForOf",l.childStatus),u(),T("ngIf",(null==(o=l.form.get("childDisabilityType"))?null:o.invalid)&&(null==(o=l.form.get("childDisabilityType"))?null:o.touched)),u(3),T("value",!0),u(2),_e(" ",E(55,39,"Male")," "),u(3),T("value",!1),u(2),_e(" ",E(60,41,"Female")," "),u(9),P(E(69,43,"AllowedFileTypesSize")),u(4),P(E(73,45,"Acceptedfiletypes")),u(3),P(E(76,47,"MaximumFileSize")),u(2),T("ngIf",l.fileError),u(),T("ngForOf",l.images),u(),T("ngIf",l.errorMessage),u(),T("ngIf",l.fileError),u(3),_e(" ",E(84,49,"Submit")," ")}}function TLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function xLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function MLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CivilIDnumberRequired")," "))}function ELe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DateofBirthRequired")," "))}function ILe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StatusDateRequired")," "))}function ALe(t,n){if(1&t&&(m(0,"option",55),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),P(e.name)}}function kLe(t,n){1&t&&(m(0,"div",54),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StatusRequired")," "))}function NLe(t,n){1&t&&(m(0,"span",61),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"UplodedAttachments"),": "))}function RLe(t,n){if(1&t){const e=qe();m(0,"div",56)(1,"div",57),oe(2,NLe,3,3,"span",58),m(3,"label",59)(4,"span"),v(5),p(),m(6,"i",60),be("click",function(){const r=Ce(e).$implicit;return we(B(2).removeImage(r))}),p()()()()}if(2&t){const e=n.$implicit,i=n.index;u(2),T("ngIf",0==i),u(),T("ngClass",In(3,$9,i>0)),u(2),P(e.title)}}function PLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.fileError," ")}}function OLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function LLe(t,n){if(1&t&&(m(0,"div",54),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.fileError," ")}}function FLe(t,n){if(1&t){const e=qe();m(0,"div",26)(1,"div",27)(2,"div",28)(3,"label"),v(4),M(5,"translate"),p(),m(6,"input",62),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(7,TLe,3,3,"div",30),p()(),m(8,"div",27)(9,"div",28)(10,"label"),v(11),M(12,"translate"),p(),m(13,"input",63),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(14,xLe,3,3,"div",30),p()(),m(15,"div",27)(16,"div",28)(17,"label"),v(18),M(19,"translate"),p(),fe(20,"input",64),oe(21,MLe,3,3,"div",30),p()(),m(22,"div",27)(23,"div",28)(24,"label"),v(25),M(26,"translate"),p(),m(27,"div",33)(28,"input",65,1),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(30,"img",35),be("click",function(){return Ce(e),we(B().openDatePicker())}),p()(),oe(31,ELe,3,3,"div",30),p()(),m(32,"div",27)(33,"div",28)(34,"label"),v(35),M(36,"translate"),p(),m(37,"div",33)(38,"input",66,0),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(40,"img",35),be("click",function(){return Ce(e),we(B().openToDatePicker())}),p()(),oe(41,ILe,3,3,"div",30),p()(),m(42,"div",37)(43,"div",38)(44,"label"),v(45),M(46,"translate"),p(),m(47,"select",67),oe(48,ALe,2,2,"option",40),p(),oe(49,kLe,3,3,"div",30),p()(),m(50,"div",46)(51,"div",47)(52,"input",48,2),be("change",function(r){return Ce(e),we(B().onFileSelected(r))}),p()(),oe(54,RLe,7,5,"div",51),m(55,"div",49)(56,"p")(57,"strong"),v(58),M(59,"translate"),p()(),m(60,"ul",50)(61,"li"),v(62),M(63,"translate"),p(),m(64,"li"),v(65),M(66,"translate"),p()()(),oe(67,PLe,2,1,"div",30),p(),oe(68,OLe,2,1,"div",30)(69,LLe,2,1,"div",30),m(70,"div",52)(71,"button",53),v(72),M(73,"translate"),p()()()}if(2&t){let e,i,r,a,s,o;const l=B();u(4),_e(" ",E(5,23,"EnglishName")," "),u(3),T("ngIf",(null==(e=l.form.get("spouseEnglishName"))?null:e.invalid)&&
1(null==(e=l.form.get("spouseEnglishName"))?null:e.touched)),u(4),_e(" ",E(12,25,"ArabicName")," "),u(3),T("ngIf",(null==(i=l.form.get("spouseArabicName"))?null:i.invalid)&&(null==(i=l.form.get("spouseArabicName"))?null:i.touched)),u(4),_e(" ",E(19,27,"CivilIDnumber")," "),u(3),T("ngIf",(null==(r=l.form.get("spouseCivilID"))?null:r.invalid)&&(null==(r=l.form.get("spouseCivilID"))?null:r.touched)),u(4),_e(" ",E(26,29,"DateofBirth")," "),u(3),T("bsConfig",In(43,Jw,l.minDate)),u(3),T("ngIf",(null==(a=l.form.get("spouserBirthDate"))?null:a.invalid)&&(null==(a=l.form.get("spouserBirthDate"))?null:a.touched)),u(4),_e(" ",E(36,31,"StatusDate")," "),u(3),T("bsConfig",In(45,Jw,l.minDDate)),u(3),T("ngIf",(null==(s=l.form.get("spouseStatusDate"))?null:s.invalid)&&(null==(s=l.form.get("spouseStatusDate"))?null:s.touched)),u(4),_e(" ",E(46,33,"Status")," "),u(3),T("ngForOf",l.spouseStatus),u(),T("ngIf",(null==(o=l.form.get("spouseStatus"))?null:o.invalid)&&(null==(o=l.form.get("spouseStatus"))?null:o.touched)),u(5),T("ngForOf",l.images),u(4),P(E(59,35,"AllowedFileTypesSize")),u(4),P(E(63,37,"Acceptedfiletypes")),u(3),P(E(66,39,"MaximumFileSize")),u(2),T("ngIf",l.fileError),u(),T("ngIf",l.errorMessage),u(),T("ngIf",l.fileError),u(3),_e(" ",E(73,41,"Submit")," ")}}let BLe=(()=>{class t{_httpService;fb;http;renderer;router;translate;route;fileInput;datepicker;todatepicker;form;isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your Personal Info has";subMessage="been updated successfully";IsPhoneNumber=!1;childStatus;spouseStatus;isChild=!0;type="";files=[];allowedExtensions="jpeg,.jpg,.png,.pdf";errorMessage="";images=[];fileExtension="";fileError="";maxFileSizeMB=1;minDate=new Date;minDDate=new Date(1970,1,1);showErrorMsg=!1;constructor(e,i,r,a,s,o,l){this._httpService=e,this.fb=i,this.http=r,this.renderer=a,this.router=s,this.translate=o,this.route=l,this.type=this.route.snapshot.paramMap.get("type")||"",this.form=this.fb.group({isChild:[""],childEnglishName:["",[at.required,at.minLength(1),at.maxLength(50)]],childArabicName:[""],childCivilId:["",[at.required,at.minLength(1),at.maxLength(12)]],childBirthDate:["",[at.required]],childGender:[!0],childDisabilityDate:[""],childDisabilityType:["",[at.required]],spouseEnglishName:["",[at.required,at.minLength(1),at.maxLength(50)]],spouseArabicName:[""],spouseCivilID:["",[at.required,at.minLength(1),at.maxLength(12)]],spouserBirthDate:["",[at.required]],spouseStatus:[0],spouseStatusDate:[""]}),this.getStatus(),"S"==this.type?(this.isChild=!1,this.form.patchValue({isChild:!1}),this.getSpouseInfo()):(this.isChild=!0,this.form.patchValue({isChild:!0}),this.getChildInfo())}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.key)||e.preventDefault()}allowOnlyLettersAndNumbers(e){xn_EnglishLetters.test(e.key)||e.preventDefault()}chageGender(e){this.form.patchValue({childGender:e})}onFileSelected(e){this.files=[],this.images=[],this.files||(this.files=[]),this.files=[...this.files,...e.target.files];const i=1024*this.maxFileSizeMB*1024;for(let r=0;r<this.files.length;r++){const a=this.files[r];if(a.size>i)return this.translate.get("Filesizeexceedslimit").subscribe(o=>{this.fileError=o}),this.files=[],void(this.images=[]);if(this.fileExtension=a.type.substring(a.type.lastIndexOf(".")).toLowerCase(),this.fileExtension=this.fileExtension.replace("image/",""),this.fileExtension=this.fileExtension.replace("application/",""),!this.allowedExtensions.includes(this.fileExtension))return void this.translate.get("Pleaseselectonly").subscribe(o=>{this.fileError=o});this.fileError="";const s=new FileReader;s.readAsDataURL(a),s.onload=()=>{this.fileInput.nativeElement.value="",this.images.push({url:s.result,title:a.name})}}}getSpouseInfo(){const e=this.route.snapshot.paramMap.get("id");"0"!=e&&this._httpService.getAll("/api/profile/get-spouse-info/"+e).subscribe({next:i=>{if(200==i.code){const r=i.data;this.form.patchValue({spouseArabicName:r.name}),this.form.patchValue({spouseEnglishName:r.name}),this.form.patchValue({spouseCivilID:r.civilID}),this.form.patchValue({spouserBirthDate:r.birthDate}),this.form.patchValue({spouseStatus:r.status}),this.form.patchValue({spouseStatusDate:r.statusDate})}},error:i=>{}})}
1getChildInfo(){const e=this.route.snapshot.paramMap.get("id");"0"!=e&&this._httpService.getAll("/api/profile/get-child-info/"+e).subscribe({next:i=>{if(200==i.code){const r=i.data;this.form.patchValue({childEnglishName:r.name}),this.form.patchValue({childCivilId:r.civilID}),this.form.patchValue({childBirthDate:r.birthDate}),this.form.patchValue({childGender:"male"==r.gender}),this.form.patchValue({childDisabilityDate:r.childDisabilityDate}),this.form.patchValue({childDisabilityType:r.childDisabilityType})}},error:i=>{}})}getPersonaInfo(){this._httpService.getAll("/api/profile/get-family-info").subscribe({next:e=>{if(200==e.code){const i=e.data.childInfo;this.form.patchValue({childEnglishName:i.name}),this.form.patchValue({childCivilId:i.civilID}),this.form.patchValue({childBirthDate:i.birthDate}),this.form.patchValue({childGender:i.gender}),this.form.patchValue({childDisabilityDate:i.childDisabilityDate}),this.form.patchValue({childDisabilityType:i.childDisabilityType})}},error:e=>{}})}getStatus(){this._httpService.getAll("/api/profile/get-child-spouse-status").subscribe({next:e=>{200==e.code&&(this.childStatus=e.data.childStatus,this.spouseStatus=e.data.spouseStatus,this.form.patchValue({childDisabilityType:this.childStatus[0].id}),this.form.patchValue({spouseStatus:this.spouseStatus[0].id}))},error:e=>{}})}getChild(){this.isChild=!this.isChild}validateMobile(){const e=this.form.get("phone1")?.value||"";if(!e||!xn_Phonenumber.test(`+965${e}`))return this.showErrorMsg=!0,void this.form.get("phone1")?.setErrors({invalid:!0});this.showErrorMsg=!1,this.form.get("phone1")?.setErrors(null)}convertStringToDate(e){let i=this.form.get(e)?.value;if(!i)return"";if(i instanceof Date)return i.toISOString().split("T")[0];const r=new Date(i);if(!isNaN(r.getTime()))return r.toISOString().split("T")[0];if(i.includes("/")){const[a,s,o]=i.split("/"),l=new Date(`${o}-${s}-${a}`);if(!isNaN(l.getTime()))return l.toISOString().split("T")[0]}return""}onSubmit(){if(this.errorMessage="","S"==this.type){if(this.showErrorMsg)return;if(!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(_=>{this.errorMessage=_});const e=this.fileExtension,i=this.images.length>0?this.images[0].url:"",r=this.route.snapshot.paramMap.get("id"),{spouseEnglishName:a,spouseArabicName:s,spouseCivilID:o,spouseStatus:l}=this.form.value,d=this.convertStringToDate("spouserBirthDate"),h=this.convertStringToDate("spouseStatusDate");this._httpService.post("/api/profile/manage-spouse-info",{spouseId:r,spouseEnglishName:a,spouseArabicName:s,spouseCivilID:o,spouserBirthDate:d,spouseStatus:l,spouseStatusDate:h,fileExtention:e,base64:i}).subscribe(_=>{200==_.code?(this.modalTitle="Request submitted",this.modalMessage="Your spouse Info has",this.subMessage="been updated successfully",this.openModal(),this.errorMessage=""):this.errorMessage=_.message})}else{if(this.showErrorMsg)return;if(!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(b=>{this.errorMessage=b});const e=this.route.snapshot.paramMap.get("id"),{childEnglishName:i,childArabicName:r,childCivilId:a,childDisabilityType:s}=this.form.value,o=1==this.form.get("childGender")?.value?1:0,l=this.fileExtension,d=this.images.length>0?this.images[0].url:"",h=this.convertStringToDate("childBirthDate"),_=this.convertStringToDate("childDisabilityDate");this._httpService.post("/api/profile/manage-child-info",{childId:e,childArabicName:r,childEnglishName:i,childCivilId:a,childBirthDate:h,childGender:o,childDisabilityDate:_,childDisabilityType:s,fileExtension:l,base64:d}).subscribe(b=>{200==b.code?(this.modalTitle="Request submitted",this.modalMessage="Your child Info has",this.subMessage="been updated successfully",this.openModal()):this.errorMessage=b.message})}}convertBase64ToBytes(e){const i=atob(e),r=new Uint8Array(i.length);for(let a=0;a<i.length;a++)r[a]=i.charCodeAt(a);return r}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["family-info"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-edit-family"]],viewQuery:function(i,r){if(1&i&&(En(oLe,5),En(lLe,5),En(cLe,5)),2&i){let a;
1Vt(a=Ut())&&(r.fileInput=a.first),Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first)}},decls:33,vars:20,consts:[["to","bsDatepicker"],["dp","bsDatepicker"],["fileInput",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],["href","family-info",1,"page-back-link"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[3,"ngSubmit","formGroup"],[1,"row","mt-4"],[1,"col-12"],[1,"form-group","mb-0","mt-3"],["class","form-check-inline",4,"ngIf"],["class","row",4,"ngIf"],[1,"form-check-inline"],["type","radio","formControlName","isChild","id","test1","name","isChild",3,"value"],["for","test1"],["type","radio","formControlName","isChild","id","test2","name","isChild",3,"value"],["for","test2"],[1,"row"],[1,"col-lg-6"],[1,"form-group"],["formControlName","childEnglishName","minlength","1","maxlength","50","type","text",1,"form-control",3,"keypress"],["class","text-danger small",4,"ngIf"],["formControlName","childArabicName","minlength","0","maxlength","50","type","text",1,"form-control",3,"keypress"],["formControlName","childCivilId","numbersOnly","","minlength","1","maxlength","12","type","text",1,"form-control"],[1,"iwi"],["formControlName","childBirthDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["src","./assets/images/calendar-gray.svg",3,"click"],["bsDatepicker","","formControlName","childDisabilityDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],[1,"col-6"],[1,"form-group","mb-3"],["formControlName","childDisabilityType",1,"form-select"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"form-group","mb-0","mt-3","col-6"],["type","radio","formControlName","childGender","id","male","name","childGender",3,"change","value"],["for","male"],["type","radio","formControlName","childGender","id","female","name","childGender",3,"change","value"],["for","female"],[1,"col-12",2,"margin-top","2vw"],[1,"file-upload-wrapper"],["type","file","accept","image/*,.pdf,.doc,.docx","name","file-upload-field","value","",1,"file-upload-field",3,"change"],[1,"file-upload-validation"],[1,"list-style"],["class","chooseFileIcon",4,"ngFor","ngForOf"],[1,"col-12","mb-4","mt-2"],["type","submit",1,"btn","btn-secondary"],[1,"text-danger","small"],[3,"ngValue"],[1,"chooseFileIcon"],[1,"choosefilechipsLabelBorder"],["class","h4-style",4,"ngIf"],[1,"choosefilelabelBorder",3,"ngClass"],[1,"chooseFileIcon","fa","fa-times",3,"click"],[1,"h4-style"],["formControlName","spouseEnglishName","minlength","1","maxlength","50","type","text","value","",1,"form-control",3,"keypress"],["formControlName","spouseArabicName","minlength","0","maxlength","50","type","text","value","",1,"form-control",3,"keypress"],["formControlName","spouseCivilID","minlength","1","maxlength","12","numbersOnly","","type","text",1,"form-control"],["formControlName","spouserBirthDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["formControlName","spouseStatusDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["formControlName","spouseStatus",1,"form-select"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",8)(10,"li",9)(11,"a",10),v(12),M(13,"translate"),p()(),m(14,"li",11),v(15),M(16,"translate"),p()()(),m(17,"a",12),v(18),M(19,"translate"),p()(),m(20,"div",13)(21,"h4",14),v(22),M(23,"translate"),p(),m(24,"form",15),be("ngSubmit",function(){return r.onSubmit()}),m(25,"div",16)(26,"div",17)(27,"div",18),oe(28,dLe,5,4,"p",19)(29,uLe,5,4,"p",19),p()(),oe(30,SLe,85,55,"div",20)(31,FLe,74,47,"div",20),p()()()()()(),fe(32,"app-footer")),2&i&&(u(7),_e(" ",E(8,10,"EditFamilyInfo")," "),u(5),P(E(13,12,"Home")),u(3),_e(" ",E(16,14,"EditFamilyInfo")," "),u(3),_e(" ",E(19,16,"Back")," "),u(4),_e(" ",E(23,18,"EditFamily")," "),u(2),T("formGroup",r.form),u(4),T("ngIf","C"==r.type),u(),T("ngIf","S"==r.type),u(),T("ngIf",r.isChild),u(),T("ngIf",!r.isChild))},dependencies:[ri,ii,fi,Qr,uc,hc,da,zo,rv,Ur,Zr,fc,Yo,_r,Hr,Zt,pn,dn,oa,Bl,wu,pd,Un,Cm],encapsulation:2})}return t})();function VLe(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td"),v(4),p(),m(5,"td")(6,"a",24),v(7),M(8,"translate"),p()()()),2&t){const e=n.$implicit;
1u(2),P(e.name),u(2),P(e.relation),u(2),Ix("href","edit-family/",e.relation,"/",e.id,"",js),u(),P(E(8,6,"Edit"))}}function ULe(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,VLe,9,8,"tr",23),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.list)}}function HLe(t,n){1&t&&(m(0,"tr")(1,"td",25)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}let jLe=(()=>{class t{_httpService;http;translate;list=[{id:"",name:"",relation:""}];constructor(e,i,r){this._httpService=e,this.http=i,this.translate=r,this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-employee-family-list").subscribe({next:e=>{this.list=200==e.code?e.data:[]},error:e=>{this.list=[]}})}static \u0275fac=function(i){return new(i||t)(G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-family"]],decls:52,vars:26,consts:[["noData",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"pt-filters"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary"],["src","./assets/images/plus-circle.svg"],[1,"dropdown-menu","cr-dd"],[1,"dd-menu-links"],["href","edit-family/C/0"],["src","./assets/images/annual-leave.svg"],["href","edit-family/S/0"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"t-btn","btn-l-green",3,"href"],["colspan","100%",1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",6)(10,"li",7)(11,"a",8),v(12),M(13,"translate"),p()(),m(14,"li",9),v(15),M(16,"translate"),p()()(),m(17,"div",10)(18,"button",11),fe(19,"img",12),v(20," Add family member"),p(),m(21,"div",13)(22,"ul",14)(23,"li")(24,"a",15),fe(25,"img",16),v(26),M(27,"translate"),p()(),m(28,"li")(29,"a",17),fe(30,"img",16),v(31),M(32,"translate"),p()()()()()(),m(33,"div",18)(34,"div",19)(35,"div",20)(36,"table",21)(37,"thead")(38,"tr")(39,"th"),v(40),M(41,"translate"),p(),m(42,"th"),v(43),M(44,"translate"),p(),m(45,"th"),v(46),M(47,"translate"),p()()(),oe(48,ULe,3,1,"ng-container",22)(49,HLe,5,3,"ng-template",null,0,ni),p()()()()()()(),fe(51,"app-footer")),2&i){const a=Di(50);u(7),_e(" ",E(8,10,"Family"),""),u(5),P(E(13,12,"Home")),u(3),P(E(16,14,"Family")),u(11),_e(" ",E(27,16,"Child")," "),u(5),_e(" ",E(32,18,"Spouse")," "),u(9),P(E(41,20,"Name")),u(3),P(E(44,22,"Relation")),u(3),P(E(47,24,"Action")),u(2),T("ngIf",r.list.length>0)("ngIfElse",a)}},dependencies:[ri,ii,fi,Zt,pn,dn,Un],encapsulation:2})}return t})();const zLe=["dp"],YLe=["to"],$Le=["pe"],WLe=["ce"],GLe=["re"],qLe=["fileInput"],Dy=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t}),KLe=t=>({"margin-left":t});function ZLe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function QLe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Minimum")," ",null==(e=i.form.get("nameEnglish"))||null==e.errors||null==e.errors.minlength?null:e.errors.minlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function XLe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Maximum")," ",null==(e=i.form.get("nameEnglish"))||null==e.errors||null==e.errors.maxlength?null:e.errors.maxlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function JLe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Minimum")," ",null==(e=i.form.get("designationName"))||null==e.errors||null==e.errors.minlength?null:e.errors.minlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function eFe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Maximum")," ",null==(e=i.form.get("designationName"))||null==e.errors||null==e.errors.maxlength?null:e.errors.maxlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function tFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"EmailRequired")," "))}function nFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Pleaseentervalidemailaddress")," "))}function iFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CivilIDnumberRequired")," "))}function rFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"nationalityNameRequired")," "))}function aFe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Minimum")," ",null==(e=i.form.get("nationalityName"))||null==e.errors||null==e.errors.minlength?null:e.errors.minlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function sFe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Maximum")," ",null==(e=i.form.get("nationalityName"))||null==e.errors||null==e.errors.maxlength?null:e.errors.maxlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function oFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"JoiningDateReq")," "))}function lFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ContractTypeReq")," "))}function cFe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Minimum")," ",null==(e=i.form.get("contractTypeName"))||null==e.errors||null==e.errors.minlength?null:e.errors.minlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function dFe(t,n){if(1&t&&(m(0,"div",51),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B();u(),Ja(" ",E(2,3,"Maximum")," ",null==(e=i.form.get("contractTypeName"))||null==e.errors||null==e.errors.maxlength?null:e.errors.maxlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function uFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ContractStartDateReq")," "))}function hFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ContractEndDateReq")," "))}function fFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"ResidencyExpiryDateReq")," "))}function pFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"PhonenumberRequired")," "))}function mFe(t,n){1&t&&(m(0,"div",52),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Invalidphonenumberformat")," "))}function gFe(t,n){1&t&&(m(0,"div",21)(1,"label"),v(2),M(3,"translate"),p(),fe(4,"input",53),p()),2&t&&(u(2),P(E(3,1,"Phone2")))}function _Fe(t,n){if(1&t){const e=qe();m(0,"button",54),be("click",function(){return Ce(e),we(B().getPhoneNumber())}),fe(1,"img",55),v(2),M(3,"translate"),p()}2&t&&(u(2),P(E(3,1,"AddNumber")))}function vFe(t,n){1&t&&(m(0,"div",52),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Invalidpassportnumberformat")," "))}function yFe(t,n){1&t&&(m(0,"div",51),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"PassportExpiryDateRequired")," "))}function bFe(t,n){1&t&&(m(0,"span",61),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"UplodedAttachments"),": "))}function CFe(t,n){if(1&t){const e=qe();m(0,"div",56)(1,"div",57),oe(2,bFe,3,3,"span",58),m(3,"label",59)(4,"span"),v(5),p(),m(6,"i",60),be("click",function(){const r=Ce(e).$implicit;return we(B().removeImage(r))}),p()()()()}if(2&t){const e=n.$implicit,i=n.index;u(2),T("ngIf",0==i),u(),T("ngClass",In(3,KLe,i>0)),u(2),P(e.title)}}function wFe(t,n){if(1&t&&(m(0,"div",51),v(1),p()),2&t){const e=B();u(),_e(" ",e.fileError," ")}}function DFe(t,n){if(1&t&&(m(0,"div",51),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}let SFe=(()=>{class t{_httpService;fb;http;renderer;router;translate;route;datepicker;todatepicker;pedatepicker;cedatepicker;redatepicker;minDate=new Date(1900,0,1);form;isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your Personal Info has";subMessage="been updated successfully";IsPhoneNumber=!1;fileInput;files=[];allowedExtensions=".jpeg,.jpg,.png,.pdf";errorMessage="";images=[];fileExtension="";fileError="";maxFileSizeMB=1;showErrorMsg=!1;constructor(e,i,r,a,s,o,l){this._httpService=e,this.fb=i,this.http=r,this.renderer=a,this.router=s,this.translate=o,this.route=l,this.form=this.fb.group({nameEnglish:["",[at.required,at.minLength(1),at.maxLength(50),at.pattern(new RegExp(xn_EnglishLetters))]],nameArabic:[""],designationName:["",[at.required,at.minLength(1),at.maxLength(50)]],email:["",[at.required,at.pattern(new RegExp(xn_Email))]],phone1:["",[at.required,at.maxLength(8)]],phone2:["",[at.maxLength(8),at.pattern(new RegExp(xn_Phone))]],passportNumber:["",[at.required,at.minLength(1),at.maxLength(9),at.pattern(new RegExp(xn_Passport))]],passportExpiryDate:["",[at.required]],civilID:["",[at.required,at.maxLength(12)]],nationalityName:["",[at.required,at.minLength(1),at.maxLength(50)]],contractTypeName:["",[at.required,at.minLength(1),at.maxLength(50)]],contractStartDate:["",[at.required]],contractEndDate:["",[at.required]],joiningDate:["",[at.required]],recidancyExpiryDate:["",[at.required]]}),this.getPersonaInfo()}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.ke
1y)||e.preventDefault()}allowOnlyLettersAndNumbers(e){xn_EnglishLetters.test(e.key)||e.preventDefault()}validateMobile(){const e=this.form.get("phone1")?.value||"";if(!e||!xn_Phonenumber.test(`+965${e}`))return this.showErrorMsg=!0,void this.form.get("phone1")?.setErrors({invalid:!0});this.showErrorMsg=!1,this.form.get("phone1")?.setErrors(null)}getPersonaInfo(){this._httpService.getAll("/api/profile/get-employee-profile").subscribe({next:e=>{200==e.code&&(this.form.patchValue({nameEnglish:e.data.name}),this.form.patchValue({nameArabic:e.data.name}),this.form.patchValue({designationName:e.data.designationName}),this.form.patchValue({email:e.data.email}),this.form.patchValue({phone1:e.data.phone1}),this.form.patchValue({phone2:""}),this.form.patchValue({passportNumber:e.data.passportNumber}),this.form.patchValue({contractStartDate:e.data.contractStartDate}),this.form.patchValue({contractEndDate:e.data.contractEndDate}),this.form.patchValue({joiningDate:e.data.joiningDate}),this.form.patchValue({nationalityName:e.data.nationalityName}),this.form.patchValue({recidancyExpiryDate:e.data.recidancyExpiryDate}))},error:e=>{}})}convertStringToDate(e){let i=this.form.get(e)?.value;if(!i)return"";if(i instanceof Date)return i.toISOString().split("T")[0];const r=new Date(i);if(!isNaN(r.getTime()))return r.toISOString().split("T")[0];if(i.includes("/")){const[a,s,o]=i.split("/"),l=new Date(`${o}-${s}-${a}`);if(!isNaN(l.getTime()))return l.toISOString().split("T")[0]}return""}onSubmit(){this.errorMessage="";const e=this.fileExtension;if(this.validateMobile(),this.showErrorMsg)return;if(!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(Ae=>{this.errorMessage=Ae});const i=this.images.length>0?this.images[0].url:"",{nameEnglish:r,nameArabic:a,designationName:s,email:o,phone1:l,phone2:d,passportNumber:h,passportExpiryDate:_,civilID:b,nationalityName:C,contractTypeName:k,contractStartDate:U}=this.form.value,Q=this.convertStringToDate("recidancyExpiryDate"),de=this.convertStringToDate("joiningDate"),he=this.convertStringToDate("contractEndDate");this._httpService.post("/api/profile/update-employee-profile",{nameEnglish:r,nameArabic:a,designationName:s,email:o,phone1:l,phone2:d,passportNumber:h,passportExpiryDate:_,fileExtention:e,base64:i,civilID:b,nationalityName:C,contractTypeName:k,contractStartDate:U,contractEndDate:he,recidancyExpiryDate:Q,joiningDate:de}).subscribe(Ae=>{200==Ae.code?(this.errorMessage="",this.openModal()):this.errorMessage=Ae.message})}getPhoneNumber(){this.IsPhoneNumber=!0}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["personal-info"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}onFileSelected(e){this.files=[],this.images=[],this.files||(this.files=[]),this.files=[...this.files,...e.target.files];const i=1024*this.maxFileSizeMB*1024;for(let r=0;r<this.files.length;r++){const a=this.files[r];if(a.size>i)return this.translate.get("Filesizeexceedslimit").subscribe(o=>{this.fileError=o}),this.files=[],void(this.images=[]);if(this.fileExtension=a.type.substring(a.type.lastIndexOf(".")).toLowerCase(),this.fileExtension=this.fileExtension.replace("image/",""),this.fileExtension=this.fileExtension.replace("application/",""),!this.allowedExtensions.includes(this.fileExtension))return void this.translate.get("Pleaseselectonly").subscribe(o=>{this.fileError=o});this.fileError="";const s=new FileReader;s.readAsDataURL(a),s.onload=()=>{this.fileInput.nativeElement.value="",this.images.push({url:s.result,title:a.name})}}}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}openReDatePicker(){this.redatepicker.show()}openCeDatePicker(){this.cedatepicker.show()}openPeDatePicker(){this.cedatepicker.show()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-edit-personal-info"]],viewQuery:function(i,r){if(1&i&&(En(zLe,5),En(YLe,5),En($Le,5),En(WLe,5),En(GLe,5),En(qLe,5)),2&i){let a;
1Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first),Vt(a=Ut())&&(r.pedatepicker=a.first),Vt(a=Ut())&&(r.cedatepicker=a.first),Vt(a=Ut())&&(r.redatepicker=a.first),Vt(a=Ut())&&(r.fileInput=a.first)}},decls:169,vars:113,consts:[["to","bsDatepicker"],["dp","bsDatepicker"],["ce","bsDatepicker"],["re","bsDatepicker"],["pe","bsDatepicker"],["fileInput",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],["href","home",1,"page-back-link"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[3,"ngSubmit","formGroup"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],["formControlName","nameEnglish","type","text","minlength","1","maxlength","50",1,"form-control",3,"keypress"],["class","text-danger small",4,"ngIf"],["formControlName","designationName","type","text","minlength","1","maxlength","50","disabled","",1,"form-control",3,"keypress"],["formControlName","email","type","text",1,"form-control"],["numbersOnly","","formControlName","civilID","maxlength","12","type","text",1,"form-control"],["formControlName","nationalityName","type","text","minlength","1","maxlength","50",1,"form-control",3,"keypress"],[1,"iwi"],["bsDatepicker","","formControlName","joiningDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["src","./assets/images/calendar-gray.svg",3,"click"],["formControlName","contractTypeName","minlength","1","maxlength","50","type","text",1,"form-control",3,"keypress"],["bsDatepicker","","formControlName","contractStartDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["bsDatepicker","","formControlName","contractEndDate","readonly","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["bsDatepicker","","formControlName","recidancyExpiryDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["formControlName","phone1","numbersOnly","","maxlength","8","type","text",1,"form-control"],["class","text-danger",4,"ngIf"],["class","form-group",4,"ngIf"],["type","button","class","btn btn-add mb-3",3,"click",4,"ngIf"],["formControlName","passportNumber","type","text","minlength","6","maxlength","9",1,"form-control"],["bsDatepicker","","formControlName","passportExpiryDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],[1,"col-6",2,"margin-top","2vw"],[1,"file-upload-wrapper"],["type","file","accept","image/*,.pdf,.doc,.docx","name","file-upload-field","value","",1,"file-upload-field",3,"change"],["class","chooseFileIcon",4,"ngFor","ngForOf"],[1,"col-12"],[1,"file-upload-validation"],[1,"list-style"],[1,"col-12","mb-4","mt-2"],["type","submit",1,"btn","btn-secondary"],[3,"close","isVisible","title","message","subMessage"],[1,"text-danger","small"],[1,"text-danger"],["formControlName","phone2","maxlength","8","type","text",1,"form-control"],["type","button",1,"btn","btn-add","mb-3",3,"click"],["src","./assets/images/add-icon.svg"],[1,"chooseFileIcon"],[1,"choosefilechipsLabelBorder"],["class","h4-style",4,"ngIf"],[1,"choosefilelabelBorder",3,"ngClass"],[1,"chooseFileIcon","fa","fa-times",3,"click"],[1,"h4-style"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),m(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"div",10)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",11)(10,"li",12)(11,"a",13),v(12),M(13,"translate"),p()(),m(14,"li",14),v(15),M(16,"translate"),p()()(),m(17,"a",15),v(18),M(19,"translate"),p()(),m(20,"div",16)(21,"h4",17),v(22),M(23,"translate"),p(),m(24,"form",18),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(25,"div",19)(26,"div",20)(27,"div",21)(28,"label"),v(29),M(30,"translate"),p(),m(31,"input",22),be("keypress",function(o){return Ce(a),we(r.allowOnlyLettersAndNumbers(o))}),p(),oe(32,ZLe,3,3,"div",23)(33,QLe,4,7,"div",23)(34,XLe,4,7,"div",23),p()(),m(35,"div",20)(36,"div",21)(37,"label"),v(38),M(39,"translate"),p(),m(40,"input",24),be("keypress",function(o){return Ce(a),we(r.allowOnlyLettersAndNumbers(o))}),p(),oe(41,JLe,4,7,"div",23)(42,eFe,4,7,"div",23),p()(),m(43,"div",20)(44,"div",21)(45,"label"),v(46),M(47,"translate"),p(),fe(48,"input",25),oe(49,tFe,3,3,"div",23)(50,nFe,3,3,"div",23),p()(),m(51,"div",20)(52,"div",21)(53,"label"),v(54),M(55,"translate"),p(),fe(56,"input",26),oe(57,iFe,3,3,"div",23),p()(),m(58,"div",20)(59,"div",21)(60,"label"),v(61),M(62,"translate"),p(),m(63,"input",27),be("keypress",function(o){return Ce(a),we(r.allowOnlyLettersAndNumbers(o))}),p(),oe(64,rFe,3,3,"div",23)(65,aFe,4,7,"div",23)(66,sFe,4,7,"div",23),p()(),m(67,"div",20)(68,"div",21)(69,"label"),v(70),M(71,"translate"),p(),m(72,"div",28)(73,"input",29,0),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(75,"img",30),be("click",function(){return Ce(a),we(r.openToDatePicker())}),p()(),oe(76,oFe,3,3,"div",23),p()(),m(77,"div",20)(78,"div",21)(79,"label"),v(80),M(81,"translate"),p(),m(82,"input",31),be("keypress",function(o){return Ce(a),we(r.allowOnlyLettersAndNumbers(o))}),p(),oe(83,lFe,3,3,"div",23)(84,cFe,4,7,"div",23)(85,dFe,4,7,"div",23),p()(),m(86,"div",20)(87,"div",21)(88,"label"),v(89),M(90,"translate"),p(),m(91,"div",28)(92,"input",32,1),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(94,"img",30),be("click",function(){return Ce(a),we(r.openDatePicker())}),p()(),oe(95,uFe,3,3,"div",23),p()(),m(96,"div",20)(97,"div",21)(98,"label"),v(99),M(100,"translate"),p(),m(101,"div",28)(102,"input",33,2),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(104,"img",30),be("click",function(){return Ce(a),we(r.openCeDatePicker())}),p()(),oe(105,hFe,3,3,"div",23),p()(),m(106,"div",20)(107,"div",21)(108,"label"),v(109),M(110,"translate"),p(),m(111,"div",28)(112,"input",34,3),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(114,"img",30),be("click",function(){return Ce(a),we(r.openReDatePicker())}),p()(),oe(115,fFe,3,3,"div",23),p()(),m(116,"div",20)(117,"div",21)(118,"label"),v(119),M(120,"translate"),p(),fe(121,"input",35),oe(122,pFe,3,3,"div",23)(123,mFe,3,3,"div",36),p(),oe(124,gFe,5,3,"div",37)(125,_Fe,4,3,"button",38),p(),m(126,"div",20)(127,"div",21)(128,"label"),v(129),M(130,"translate"),p(),fe(131,"input",39),oe(132,vFe,3,3,"div",36),p()(),m(133,"div",20)(134,"div",21)(135,"label"),v(136),M(137,"translate"),p(),m(138,"div",28)(139,"input",40,4),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(141,"img",30),be("click",function(){return Ce(a),we(r.openPeDatePicker())}),p()(),oe(142,yFe,3,3,"div",23),p()(),m(143,"div",41)(144,"div",42)(145,"input",43,5),be("change",function(o){return Ce(a),we(r.onFileSelected(o))}),p()(),oe(147,CFe,7,5,"div",44)(148,wFe,2,1,"div",23),p(),m(149,"div",45)(150,"div",46)(151,"p")(152,"strong"),v(153),M(154,"translate"),p()(),m(155,"ul",47)(156,"li"),v(157),M(158,"translate"),p(),m(159,"li"),v(160),M(161,"translate"),p()()()(),oe(162,DFe,2,1,"div",23),m(163,"div",48)(164,"button",49),v(165),M(166,"translate"),p()()()()()()(),m(167,"app-modal",50),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(168,"app-footer")}if(2&i){let a,s,o,l,d,h,_,b,C,k,U,Q,de,he,Ae,Pe,Le,$e,et,Je,gt;u(7),_e("",E(8,59,"EditPersonalInfo")," "),u(5),P(E(13,61,"Home")),u(3),_e("",E(16,63,"EditPersonalInfo")," "),u(3),P(E(19,65,"Back")),u(4),P(E(23,67,"EditPersonalInfo")),u(2),T("formGroup",r.form),u(5),_e("",E(30,69,"Name")," *"),u(3),T("ngIf",(null==(a=r.form.get("nameEnglish"))?null:a.invalid)&&
1(null==(a=r.form.get("nameEnglish"))?null:a.touched)),u(),T("ngIf",null==(s=r.form.get("nameEnglish"))||null==s.errors?null:s.errors.minlength),u(),T("ngIf",null==(o=r.form.get("nameEnglish"))||null==o.errors?null:o.errors.maxlength),u(4),_e("",E(39,71,"JobTitle")," *"),u(3),T("ngIf",null==(l=r.form.get("designationName"))||null==l.errors?null:l.errors.minlength),u(),T("ngIf",null==(d=r.form.get("designationName"))||null==d.errors?null:d.errors.maxlength),u(4),_e("",E(47,73,"Email")," *"),u(3),T("ngIf",null==(h=r.form.get("email"))?null:h.touched),u(),T("ngIf",(null==(_=r.form.get("email"))?null:_.hasError("email"))||(null==(_=r.form.get("email"))?null:_.invalid)),u(4),_e("",E(55,75,"CivilIDnumber")," *"),u(3),T("ngIf",(null==(b=r.form.get("civilID"))?null:b.invalid)&&(null==(b=r.form.get("civilID"))?null:b.touched)),u(4),_e("",E(62,77,"nationalityName")," *"),u(3),T("ngIf",(null==(C=r.form.get("nationalityName"))?null:C.invalid)&&(null==(C=r.form.get("nationalityName"))?null:C.touched)),u(),T("ngIf",null==(k=r.form.get("nationalityName"))||null==k.errors?null:k.errors.minlength),u(),T("ngIf",null==(U=r.form.get("nationalityName"))||null==U.errors?null:U.errors.maxlength),u(4),_e("",E(71,79,"JoiningDate")," *"),u(3),T("bsConfig",In(103,Dy,r.minDate)),u(3),T("ngIf",(null==(Q=r.form.get("joiningDate"))?null:Q.value)&&(null==(Q=r.form.get("joiningDate"))?null:Q.invalid)&&(null==(Q=r.form.get("passportExpiryDate"))?null:Q.touched)),u(4),_e("",E(81,81,"ContractType")," *"),u(3),T("ngIf",(null==(de=r.form.get("contractTypeName"))?null:de.invalid)&&(null==(de=r.form.get("contractTypeName"))?null:de.touched)),u(),T("ngIf",null==(he=r.form.get("contractTypeName"))||null==he.errors?null:he.errors.minlength),u(),T("ngIf",null==(Ae=r.form.get("contractTypeName"))||null==Ae.errors?null:Ae.errors.maxlength),u(4),_e("",E(90,83,"ContractStartDate")," *"),u(3),T("bsConfig",In(105,Dy,r.minDate)),u(3),T("ngIf",(null==(Pe=r.form.get("contractStartDate"))?null:Pe.value)&&(null==(Pe=r.form.get("contractStartDate"))?null:Pe.invalid)&&(null==(Pe=r.form.get("contractStartDate"))?null:Pe.touched)),u(4),_e("",E(100,85,"ContractEndDate")," *"),u(3),T("bsConfig",In(107,Dy,r.minDate)),u(3),T("ngIf",(null==(Le=r.form.get("contractEndDate"))?null:Le.invalid)&&(null==(Le=r.form.get("contractEndDate"))?null:Le.touched)),u(4),_e("",E(110,87,"ResidencyExpiryDate")," *"),u(3),T("bsConfig",In(109,Dy,r.minDate)),u(3),T("ngIf",(null==($e=r.form.get("recidancyExpiryDate"))?null:$e.invalid)&&(null==($e=r.form.get("recidancyExpiryDate"))?null:$e.touched)),u(4),_e("",E(120,89,"Phone1")," *"),u(3),T("ngIf",(null==(et=r.form.get("phone1"))?null:et.invalid)&&(null==(et=r.form.get("phone1"))?null:et.touched)),u(),T("ngIf",r.showErrorMsg),u(),T("ngIf",r.form.controls.phone2.value||r.IsPhoneNumber),u(),T("ngIf",!r.form.controls.phone2.value),u(4),P(E(130,91,"PassportNumber")),u(3),T("ngIf",null==(Je=r.form.get("passportNumber"))?null:Je.hasError("pattern")),u(4),P(E(137,93,"PassportExpiryDate")),u(3),T("bsConfig",In(111,Dy,r.minDate)),u(3),T("ngIf",(null==(gt=r.form.get("passportNumber"))?null:gt.value)&&(null==(gt=r.form.get("passportExpiryDate"))?null:gt.invalid)&&(null==(gt=r.form.get("passportExpiryDate"))?null:gt.touched)),u(5),T("ngForOf",r.images),u(),T("ngIf",r.fileError),u(5),P(E(154,95,"AllowedFileTypesSize")),u(4),P(E(158,97,"Acceptedfiletypes")),u(3),P(E(161,99,"MaximumFileSize")),u(2),T("ngIf",r.errorMessage),u(3),P(E(166,101,"Submit")),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[Cm,ri,ii,fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,Zs,Zt,pn,dn,oa,Bl,wu,pd,Un],encapsulation:2})}return t})(),TFe=(()=>{class t{_httpService;http;translate;employeeInfo={designationName:"",currentGrade:"",yearsInKuwaitFund:"",endService:"",name:"",photoURL:"",employeeName:""};constructor(e,i,r){this._httpService=e,this.http=i,this.translate=r,this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-employee-profile").subscribe({next:e=>{200==e.code&&(this.employeeInfo=e.data)},error:e=>{}})}static \u0275fac=function(i){return new(i||t)(G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-personal-info"]],decls:112,vars:74,consts:[[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"rd-sec"],[1,"rd-sec-two"],[1,"whitebox","p-0"],[1,"wb-header"],["href","edit-personal-info",1,"edit-profile"],["src","./assets/images/pencil-icon-white.svg"],[1,"wb-body"],[1,"req-dtls","bg-gray"],[1,"req-dtls-info","justify-content-between","w-100"],[1,"req-dtls"],[1,"req-dtls-info"],[1,"whitebox","p-0","mt-4"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",5)(10,"li",6)(11,"a",7),v(12),M(13,"translate"),p()(),m(14,"li",8),v(15),M(16,"translate"),p()()()(),m(1
17,"div",9)(18,"div",10)(19,"div",11)(20,"div",12)(21,"h6"),v(22),M(23,"translate"),p(),m(24,"a",13),fe(25,"img",14),v(26),M(27,"translate"),p()(),m(28,"div",15)(29,"div",16)(30,"div",17)(31,"p"),v(32),M(33,"translate"),m(34,"span"),v(35),p()(),m(36,"p"),v(37),M(38,"translate"),m(39,"span"),v(40),p()(),m(41,"p"),v(42),M(43,"translate"),m(44,"span"),v(45),p()(),m(46,"p"),v(47),M(48,"translate"),m(49,"span"),v(50),p()(),m(51,"p"),v(52),M(53,"translate"),m(54,"span"),v(55),p()(),m(56,"p"),v(57),M(58,"translate"),m(59,"span"),v(60),p()(),m(61,"p"),v(62),M(63,"translate"),m(64,"span"),v(65),p()()()(),m(66,"div",18)(67,"div",19)(68,"p"),v(69),M(70,"translate"),m(71,"span"),v(72),p()()()()()(),m(73,"div",20)(74,"div",12)(75,"h6"),v(76),M(77,"translate"),p()(),m(78,"div",15)(79,"div",16)(80,"div",17)(81,"p"),v(82),M(83,"translate"),m(84,"span"),v(85),p()(),m(86,"p"),v(87),M(88,"translate"),m(89,"span"),v(90),p()(),m(91,"p"),v(92),M(93,"translate"),m(94,"span"),v(95),p()(),m(96,"p"),v(97),M(98,"translate"),m(99,"span"),v(100),p()(),m(101,"p"),v(102),M(103,"translate"),m(104,"span"),v(105),p()(),m(106,"p"),v(107),M(108,"translate"),m(109,"span"),v(110),p()()()()()()()()()()(),fe(111,"app-footer")),2&i&&(u(7),P(E(8,34,"PersonalInfo")),u(5),P(E(13,36,"Home")),u(3),P(E(16,38,"PersonalInfo")),u(7),P(E(23,40,"PersonalInfo")),u(4),P(E(27,42,"Edit")),u(6),_e("",E(33,44,"EmployeeNumber")," "),u(3),P(r.employeeInfo.employeeNumber),u(2),_e("",E(38,46,"FullName")," "),u(3),P(r.employeeInfo.employeeName),u(2),_e("",E(43,48,"CivilIDnumber")," "),u(3),P(r.employeeInfo.civilID),u(2),_e("",E(48,50,"ResidencyExpiryDate")," "),u(3),P(r.employeeInfo.recidancyExpiryDate),u(2),_e("",E(53,52,"Nationality")," "),u(3),P(r.employeeInfo.nationalityName),u(2),P(E(58,54,"PassportNumber")),u(3),P(r.employeeInfo.recidancyExpiryDate),u(2),_e("",E(63,56,"PassportExpiryDate")," "),u(3),P(r.employeeInfo.passportExpiryDate),u(4),P(E(70,58,"Email")),u(3),P(r.employeeInfo.email),u(4),P(E(77,60,"ContractDetails")),u(6),P(E(83,62,"ContractType")),u(3),P(r.employeeInfo.contractTypeName),u(2),_e("",E(88,64,"JobTitle")," "),u(3),P(r.employeeInfo.designationName),u(2),_e("",E(93,66,"ContractStartDate")," "),u(3),P(r.employeeInfo.contactStartDate),u(2),P(E(98,68,"ContractEndDate")),u(3),P(r.employeeInfo.contactEndDate),u(2),_e("",E(103,70,"JoiningDate")," "),u(3),P(r.employeeInfo.joiningDate),u(2),P(E(108,72,"PassportExpiryDate")),u(3),P(r.employeeInfo.passportExpiryDate))},dependencies:[ri,ii,fi,pn,dn],encapsulation:2})}return t})();const xFe=["fileInput"],MFe=["dp"],EFe=["to"],W9=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",maxDate:t,showWeekNumbers:!1}),G9=t=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",minDate:t,showWeekNumbers:!1});function IFe(t,n){1&t&&fe(0,"app-notifications")}function AFe(t,n){if(1&t&&fe(0,"img",71),2&t){const e=B();T("src","data:image/png;base64,"+(null==e.loginUserInfo?null:e.loginUserInfo.photoURL),js)}}function kFe(t,n){1&t&&fe(0,"img",72)}function NFe(t,n){1&t&&(m(0,"span"),v(1,"(+965)"),p())}function RFe(t,n){if(1&t){const e=qe();m(0,"a",74),be("click",function(){return Ce(e),we(B(2).startEditing())}),fe(1,"img",75),p()}}function PFe(t,n){if(1&t&&(m(0,"h4"),oe(1,NFe,2,0,"span",4),v(2),M(3,"translate"),oe(4,RFe,2,0,"a",73),p()),2&t){const e=B();u(),T("ngIf",null==e.employeeInfo?null:e.employeeInfo.mobile),u(),_e("",E(3,3,(null==e.employeeInfo?null:e.employeeInfo.mobile)||"Addphonenumber")," "),u(2),T("ngIf",!e.isEditing)}}function OFe(t,n){if(1&t){const e=qe();m(0,"div",76)(1,"input",77),Uo("ngModelChange",function(r){Ce(e);const a=B();return wl(a.employeeInfo.mobile,r)||(a.employeeInfo.mobile=r),we(r)}),p(),m(2,"a",78),be("click",function(){return Ce(e),we(B().saveEditing())}),fe(3,"i",79),p(),m(4,"a",80),be("click",function(){return Ce(e),we(B().cancelEditing())}),fe(5,"i",81),p()()}if(2&t){const e=B();u(),Vo("ngModel",e.employeeInfo.mobile)}}function LFe(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Invalidphonenumberformat")," "))}function FFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"Area")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.city)}}function BFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"Block")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.block)}}function VFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"Street")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.street)}}function UFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"BuildingNumber")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.building)}}function HFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"Avenue")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.avenue)}}function jFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"ApartmentNumber")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.ap
1artmentNumber)}}function zFe(t,n){if(1&t&&(m(0,"li"),v(1),M(2,"translate"),m(3,"span"),v(4),p()()),2&t){const e=B();u(),_e("",E(2,2,"FloorNumber")," "),u(3),P(null==e.addressInfo?null:e.addressInfo.floarNumber)}}function YFe(t,n){1&t&&(m(0,"th"),v(1),M(2,"translate"),p()),2&t&&(u(),P(E(2,1,"ResidencyExpiryDate")))}function $Fe(t,n){if(1&t&&(m(0,"td"),v(1),p()),2&t){const e=B(2);u(),P(null==e.employeeInfo?null:e.employeeInfo.recidancyExpiryDate)}}function WFe(t,n){if(1&t&&(Gn(0),m(1,"tbody")(2,"tr")(3,"td"),v(4),p(),m(5,"td"),v(6),p(),m(7,"td"),v(8),p(),oe(9,$Fe,2,1,"td",4),m(10,"td"),v(11),p(),m(12,"td"),v(13),p()()(),qn()),2&t){const e=B();u(4),P(null==e.employeeInfo?null:e.employeeInfo.nameEnglish),u(2),P(null==e.employeeInfo?null:e.employeeInfo.nameArabic),u(2),P(null==e.employeeInfo?null:e.employeeInfo.civilID),u(),T("ngIf",!(null!=e.employeeInfo&&e.employeeInfo.isKuwaiti)),u(2),P(null==e.employeeInfo?null:e.employeeInfo.nationalityName),u(2),P(null==e.employeeInfo?null:e.employeeInfo.passportNumber)}}function GFe(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function qFe(t,n){if(1&t){const e=qe();m(0,"tr")(1,"td"),v(2),p(),m(3,"td",49),v(4),M(5,"translate"),p(),m(6,"td")(7,"a",85),be("click",function(){const r=Ce(e).$implicit;return we(B(2).manageFamily(r.id,r.relation))}),fe(8,"img",75),p()()()}if(2&t){const e=n.$implicit,i=B(2);
1u(2),P(e.name),u(2),_e(" ",E(5,2,"C"==e.relation?"Child":"m"==(null==i.loginUserInfo||null==i.loginUserInfo.gender?null:i.loginUserInfo.gender.toLowerCase())?"Husband":"f"==(null==i.loginUserInfo||null==i.loginUserInfo.gender?null:i.loginUserInfo.gender.toLowerCase())?"Wife":"Spouse")," ")}}function KFe(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,qFe,9,4,"tr",84),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.list)}}function ZFe(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function QFe(t,n){if(1&t&&(m(0,"tbody")(1,"tr")(2,"td"),v(3),p(),m(4,"td"),v(5),p()()()),2&t){const e=n.$implicit;u(3),P(e.educationName),u(2),P(e.graduationDate)}}function XFe(t,n){if(1&t&&(Gn(0),oe(1,QFe,6,2,"tbody",84),qn()),2&t){const e=B();u(),T("ngForOf",e.qualificationInfo)}}function JFe(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function e3e(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td"),v(4),p(),m(5,"td"),v(6),p()()),2&t){const e=n.$implicit;u(2),P(e.employerName),u(2),P(e.joinDate),u(2),P(e.resignDate)}}function t3e(t,n){if(1&t&&(Gn(0),m(1,"tbody"),oe(2,e3e,7,3,"tr",84),p(),qn()),2&t){const e=B();u(2),T("ngForOf",e.experienceInfo)}}function n3e(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function i3e(t,n){if(1&t&&(Gn(0),m(1,"tbody")(2,"tr")(3,"td"),v(4),p(),m(5,"td"),v(6),p(),m(7,"td"),v(8),p(),m(9,"td"),v(10),p()()(),qn()),2&t){const e=B();u(4),P(null==e.contactInfo?null:e.contactInfo.contractTypeName),u(2),P(null==e.contactInfo?null:e.contactInfo.contractStartDate),u(2),P(null==e.contactInfo?null:e.contactInfo.contractEndDate),u(2),P(null==e.contactInfo?null:e.contactInfo.joiningDate)}}function r3e(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function a3e(t,n){if(1&t&&(Gn(0),m(1,"tbody")(2,"tr")(3,"td"),v(4),p(),m(5,"td"),v(6),p(),m(7,"td"),v(8),p(),m(9,"td"),v(10),p(),m(11,"td"),v(12),p(),m(13,"td"),v(14),p(),m(15,"td"),v(16),p()()(),qn()),2&t){const e=B();u(4),P(null==e.loanInfo?null:e.loanInfo.loanNo),u(2),P(null==e.loanInfo?null:e.loanInfo.applicationDate),u(2),P(null==e.loanInfo?null:e.loanInfo.loanAmount),u(2),P(null==e.loanInfo?null:e.loanInfo.firstInstalmentDate),u(2),P(null==e.loanInfo?null:e.loanInfo.lastInstalmentDate),u(2),P(null==e.loanInfo?null:e.loanInfo.remainingPayment),u(2),P(null==e.loanInfo?null:e.loanInfo.remainingInstallment)}}function s3e(t,n){1&t&&(m(0,"tr")(1,"td",83)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}function o3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function l3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function c3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CivilIDnumberRequired")," "))}function d3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DateofBirthRequired")," "))}function u3e(t,n){if(1&t){const e=qe();m(0,"p",107)(1,"input",108),be("change",function(){const r=Ce(e).$implicit;return we(B(3).changeGender(r.id))}),p(),m(2,"label",109),v(3),M(4,"translate"),p()()}if(2&t){let e;const i=n.$implicit,r=B(3);u(),T("id",i.id)("value",i.id)("checked",(null==(e=r.form.get("childGender"))?null:e.value)===i.id),u(),T("for",i.id),u(),_e(" ",E(4,5,i.name)," ")}}function h3e(t,n){if(1&t&&(m(0,"div",105)(1,"label"),v(2),M(3,"translate"),m(4,"span",82),v(5," *"),p()(),m(6,"div",92),oe(7,u3e,5,7,"p",106),p()()),2&t){const e=B(2);u(2),_e(" ",E(3,2,"Gender"),""),u(5),T("ngForOf",e.genderLookup)}}function f3e(t,n){if(1&t&&(m(0,"option",98),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),P(e.name)}}function p3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DisabilityDateRequired")," "))}function m3e(t,n){if(1&t){const e=qe();m(0,"div",87)(1,"div",88)(2,"label"),v(3),M(4,"translate"),m(5,"span",82),v(6," *"),p()(),m(7,"div",92)(8,"input",110,2),be("keydown",function(r){return Ce(e),we(B(2).preventTyping(r))}),p(),m(10,"img",94),be("click",function(){return Ce(e),we(B(2).openD
1atePicker())}),p(),oe(11,p3e,3,3,"div",23),p()()()}if(2&t){let e;const i=B(2);u(3),_e(" ",E(4,3,"DisabilityDate"),""),u(5),T("bsConfig",In(5,G9,i.minDDate)),u(3),T("ngIf",(null==(e=i.form.get("childDisabilityDate"))?null:e.invalid)&&(null==(e=i.form.get("childDisabilityDate"))?null:e.touched)||!(null!=(e=i.form.get("childDisabilityDate"))&&e.value)&&i.isChildSubmitted)}}function g3e(t,n){1&t&&(m(0,"span",82),v(1," *"),p())}function _3e(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=B().$implicit;u(),P(e.title)}}function v3e(t,n){if(1&t&&(m(0,"div",82),v(1),p()),2&t){const e=B(3);u(),_e(" ",e.fileError," ")}}function y3e(t,n){if(1&t){const e=qe();m(0,"div",111)(1,"label",112),v(2),oe(3,g3e,2,0,"span",23),p(),m(4,"div",113)(5,"input",114,3),be("change",function(r){const a=Ce(e).$implicit;return we(B(2).onFileSelected(r,a))}),p(),oe(7,_3e,2,1,"div",4),p(),oe(8,v3e,2,1,"div",23),p()}if(2&t){const e=n.$implicit,i=B(2);u(2),_e(" ",e.name," "),u(),T("ngIf",e.isRequired),u(4),T("ngIf",e.title),u(),T("ngIf",i.fileError&&e.isRequired)}}function b3e(t,n){if(1&t&&(m(0,"div",82),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function C3e(t,n){if(1&t){const e=qe();m(0,"div",86)(1,"div",87)(2,"div",88)(3,"label"),v(4),M(5,"translate"),m(6,"span",82),v(7," *"),p()(),m(8,"input",89),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(9,o3e,3,3,"div",23),p()(),m(10,"div",87)(11,"div",88)(12,"label"),v(13),M(14,"translate"),m(15,"span",82),v(16," *"),p()(),m(17,"input",90),be("keypress",function(r){return Ce(e),we(B().allowOnlyArabicAndEnglishLetters(r))}),p(),oe(18,l3e,3,3,"div",23),p()(),m(19,"div",87)(20,"div",88)(21,"label"),v(22),M(23,"translate"),m(24,"span",82),v(25," *"),p()(),fe(26,"input",91),oe(27,c3e,3,3,"div",23),p()(),m(28,"div",87)(29,"div",88)(30,"label"),v(31),M(32,"translate"),m(33,"span",82),v(34," *"),p()(),m(35,"div",92)(36,"input",93,1),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(38,"img",94),be("click",function(){return Ce(e),we(B().openToDatePicker())}),p(),oe(39,d3e,3,3,"div",23),p()()(),oe(40,h3e,8,4,"div",95),m(41,"div",87)(42,"div",96)(43,"label"),v(44),M(45,"translate"),p(),m(46,"select",97)(47,"option",98),v(48),M(49,"translate"),p(),oe(50,f3e,2,2,"option",99),p()()(),oe(51,m3e,12,7,"div",100)(52,y3e,9,4,"div",101)(53,b3e,2,1,"div",23),m(54,"div",102)(55,"button",103),v(56),M(57,"translate"),p(),m(58,"button",104),be("click",function(){return Ce(e),we(B().closeModal())}),v(59),M(60,"translate"),p()()()}if(2&t){let e,i,r,a,s;const o=B();u(4),_e(" ",E(5,19,"EnglishName")," "),u(5),T("ngIf",(null==(e=o.form.get("childEnglishName"))?null:e.invalid)&&(null==(e=o.form.get("childEnglishName"))?null:e.touched)||!(null!=(e=o.form.get("childEnglishName"))&&e.value)&&o.isChildSubmitted),u(4),_e(" ",E(14,21,"ArabicName")," "),u(5),T("ngIf",(null==(i=o.form.get("childArabicName"))?null:i.invalid)&&(null==(i=o.form.get("childArabicName"))?null:i.touched)||!(null!=(i=o.form.get("childArabicName"))&&i.value)&&o.isChildSubmitted),u(4),_e("",E(23,23,"CivilIDnumber")," "),u(5),T("ngIf",(null==(r=o.form.get("childCivilId"))?null:r.invalid)&&(null==(r=o.form.get("childCivilId"))?null:r.touched)||!(null!=(r=o.form.get("childCivilId"))&&r.value)&&o.isChildSubmitted),u(4),_e(" ",E(32,25,"DateofBirth")," "),u(5),T("bsConfig",In(35,W9,o.minDate)),u(3),T("ngIf",(null==(a=o.form.get("childBirthDate"))?null:a.invalid)&&(null==(a=o.form.get("childBirthDate"))?null:a.touched)||
1!(null!=(a=o.form.get("childBirthDate"))&&a.value)&&o.isChildSubmitted),u(),T("ngIf",o.form&&o.genderLookup&&o.genderLookup.length>0),u(4),_e(" ",E(45,27,"DisabilityType")," "),u(3),T("ngValue",null),u(),P(E(49,29,"Select")),u(2),T("ngForOf",o.childStatus),u(),T("ngIf",null!==(null==(s=o.form.get("childDisabilityType"))?null:s.value)&&void 0!==(null==(s=o.form.get("childDisabilityType"))?null:s.value)),u(),T("ngForOf",o.childAttachments),u(),T("ngIf",o.errorMessage),u(3),P(E(57,31,"Submit")),u(3),_e(" ",E(60,33,"Cancel")," ")}}function w3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function D3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NameRequired")," "))}function S3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"CivilIDnumberRequired")," "))}function T3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DateofBirthRequired")," "))}function x3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StatusDateRequired")," "))}function M3e(t,n){if(1&t&&(m(0,"option",98),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.id),u(),P(e.name)}}function E3e(t,n){1&t&&(m(0,"div",82),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"StatusRequired")," "))}function I3e(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=B(2);u(),P(e.images[0].title)}}function A3e(t,n){if(1&t&&(m(0,"div",82),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.fileError," ")}}function k3e(t,n){if(1&t&&(m(0,"div",82),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function N3e(t,n){if(1&t){const e=qe();m(0,"div",86)(1,"div",87)(2,"div",88)(3,"label"),v(4),M(5,"translate"),m(6,"span",82),v(7," *"),p()(),m(8,"input",115),be("keypress",function(r){return Ce(e),we(B().allowOnlyLettersAndNumbers(r))}),p(),oe(9,w3e,3,3,"div",23),p()(),m(10,"div",87)(11,"div",88)(12,"label"),v(13),M(14,"translate"),m(15,"span",82),v(16," *"),p()(),m(17,"input",116),be("keypress",function(r){return Ce(e),we(B().allowOnlyArabicAndEnglishLetters(r))}),p(),oe(18,D3e,3,3,"div",23),p()(),m(19,"div",87)(20,"div",88)(21,"label"),v(22),M(23,"translate"),m(24,"span",82),v(25," *"),p()(),fe(26,"input",117),oe(27,S3e,3,3,"div",23),p()(),m(28,"div",87)(29,"div",88)(30,"label"),v(31),M(32,"translate"),m(33,"span",82),v(34," *"),p()(),m(35,"div",92)(36,"input",118,2),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(38,"img",94),be("click",function(){return Ce(e),we(B().openDatePicker())}),p(),oe(39,T3e,3,3,"div",23),p()()(),m(40,"div",87)(41,"div",88)(42,"label"),v(43),M(44,"translate"),m(45,"span",82),v(46," *"),p()(),m(47,"div",92)(48,"input",119,1),be("keydown",function(r){return Ce(e),we(B().preventTyping(r))}),p(),m(50,"img",94),be("click",function(){return Ce(e),we(B().openToDatePicker())}),p(),oe(51,x3e,3,3,"div",23),p()()(),m(52,"div",87)(53,"div",96)(54,"label"),v(55),M(56,"translate"),m(57,"span",82),v(58," *"),p()(),m(59,"select",120),oe(60,M3e,2,2,"option",99),p(),oe(61,E3e,3,3,"div",23),p()(),m(62,"div",111)(63,"label",121),v(64),m(65,"span",82),v(66," *"),p()(),m(67,"div",113)(68,"input",114,3),be("change",function(r){return Ce(e),we(B().onFileSelected(r))}),p(),oe(70,I3e,2,1,"div",4),p(),oe(71,A3e,2,1,"div",23),p(),oe(72,k3e,2,1,"div",23),m(73,"div",102)(74,"button",103),v(75),M(76,"translate"),p(),m(77,"button",104),be("click",function(){return Ce(e),we(B().closeModal())}),v(78),M(79,"translate"),p()()()}if(2&t){let e,i,r,a,s,o;const l=B();u(4),_e(" ",E(5,21,"EnglishName")," "),u(5),T("ngIf",(null==(e=l.form.get("spouseEnglishName"))?null:e.invalid)&&(null==(e=l.form.get("spouseEnglishName"))?null:e.touched)||!(null!=(e=l.form.get("spouseEnglishName"))&&e.value)&&l.isSpouseSubmitted),u(4),_e(" ",E(14,23,"ArabicName")," "),u(5),T("ngIf",(null==(i=l.form.get("spouseArabicName"))?null:i.invalid)&&(null==(i=l.form.get("spouseArabicName"))?null:i.touched)||!(null!=(i=l.form.get("spouseEnglishName"))&&i.value)&&l.isSpouseSubmitted),u(4),_e(" ",E(23,25,"CivilIDnumber")," "),u(5),T("ngIf",(null==(r=l.form.get("spouseCivilID"))?null:r.invali
1d)&&(null==(r=l.form.get("spouseCivilID"))?null:r.touched)||!(null!=(r=l.form.get("spouseCivilID"))&&r.value)&&l.isSpouseSubmitted),u(4),_e(" ",E(32,27,"DateofBirth")," "),u(5),T("bsConfig",In(37,W9,l.minDate)),u(3),T("ngIf",(null==(a=l.form.get("spouserBirthDate"))?null:a.invalid)&&((null==(a=l.form.get("spouserBirthDate"))?null:a.touched)||(null==(a=l.form.get("spouserBirthDate"))?null:a.value))||!(null!=(a=l.form.get("spouserBirthDate"))&&a.value)&&l.isSpouseSubmitted),u(4),_e(" ",E(44,29,"StatusDate")," "),u(5),T("bsConfig",In(39,G9,l.minDDate)),u(3),T("ngIf",(null==(s=l.form.get("spouseStatusDate"))?null:s.invalid)&&((null==(s=l.form.get("spouseStatusDate"))?null:s.touched)||(null==(s=l.form.get("spouseStatusDate"))?null:s.value))||!(null!=(s=l.form.get("spouseStatusDate"))&&s.value)&&l.isSpouseSubmitted),u(4),_e(" ",E(56,31,"Status")," "),u(5),T("ngForOf",l.spouseStatus),u(),T("ngIf",(null==(o=l.form.get("spouseStatus"))?null:o.invalid)&&(null==(o=l.form.get("spouseStatus"))?null:o.touched)||!(null!=(o=l.form.get("spouseStatus"))&&o.value)&&l.isSpouseSubmitted),u(3),_e(" ",l.spouseAttachment," "),u(6),T("ngIf",l.images.length>0),u(),T("ngIf",l.fileError),u(),T("ngIf",l.errorMessage),u(3),P(E(76,33,"Submit")),u(3),_e(" ",E(79,35,"Cancel")," ")}}let R3e=(()=>{class t{languageService;notificationService;_httpService;fb;http;renderer;router;translate;route;fileInput;datepicker;todatepicker;childStatus;spouseStatus;destroy$=new nt;isChild=!0;allowedExtensions="jpeg,.jpg,.png,.pdf";errorMessage="";images=[];fileExtension="";fileError="";maxFileSizeMB=1;minDate=Wo(new Date);minDDate=Wo(new Date(1970,1,1));showErrorMsg=!1;showMobileErrorMsg=!1;type="";isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your Personal Info has";subMessage="been updated successfully";files=[];IsPhoneNumber=!1;isChildSubmitted=!1;isSpouseSubmitted=!1;title="";childAttachments="";addressInfo={city:"",block:"",street:"",avenue:"",building:"",apartmentNumber:"",phone1:"",phone2:"",attachmentInfo:"",floarNumber:""};employeeInfo={designationName:"",currentGrade:"",yearsInKuwaitFund:"",endService:"",name:"",photoURL:"",mobile:"",nameEnglish:"",nameArabic:"",isKuwaiti:!1,employeeName:""};initials="";myAttendance;dashboard={leaveBalance:"",urgentLeaveBalance:"",emergencyLeaveAvailableDays:"",shortSickDays:"",leavDaysTaken:""};dashboardv1={leaveRequestID:"",arabicSupervisorName:"",leaveStatus:"",leaveStatusCode:"",requestDate:"",leaveType:"",requestStartDate:"",requestEndDate:"",requestExtendDate:"",leaveBalance:"",shortSickDays:"",leavDaysTaken:"",leaveRequestsCount:"",emergencyBalance:"",availableExceseBalance:"",tolalExecese:"",lateBalance:"",emergencyTransffered:"",attendanceList:[]};list=[{id:"",name:"",relation:""}];qualificationInfo=[{id:"",educationName:"",graduationDate:""}];experienceInfo=[{id:"",employerName:"",jobTitle:"",joinDate:"",resignDate:""}];contactInfo;loanInfo;genderLookup;id=0;isSubmitted=!1;form;spouseAttachment="";isEditing=!1;showEdit=!1;editedPhone="";mobilenumber;loginUserInfo={isError:!1,errorMsg:"",isValidUser:!1,isDirector:!1,isTrainingSupervisor:!1,nameEn:"",nameAr:"",designation:"",phoneNumber:"",photoURL:"",gender:""};constructor(e,i,r,a,s,o,l,d,h){this.languageService=e,this.notificationService=i,this._httpService=r,this.fb=a,this.http=s,this.renderer=o,this.router=l,this.translate=d,this.route=h,this.languageService.language=localStorage.getItem("lang")||"ar",this.loginUserInfo=localStorage.getItem("loginUserInfo")?JSON.parse(localStorage.getItem("loginUserInfo")||""):"";var _=localStorage.getItem("UserInfo")?JSON.parse(localStorage.getItem("UserInfo")||""):"";this.loginUserInfo.photoURL=_?.photoURL,this.form=this.fb.group({isChild:[""],childEnglishName:["",[at.required,at.minLength(1),at.maxLength(50)]],childArabicName:[""],childCivilId:["",[at.required,at.minLength(1),at.maxLength(12),at.pattern(new RegExp(xn_paternCivilId))]],childBirthDate:["",[at.required]],childGender:[""],childDisabilityDate:[""],childDisabilityType:[null],spouseEnglishName:["",[at.required,at.minLength(1),at.maxLength(50)]],spouseArabicName:[""],spouseCivilID:["",[at.required,at.minLength(1),at.maxLength(12),at.pattern(new RegExp(xn_paternCivilId))]],spouserBirthDate:["",[at.required]],spouseStatus:[0],spouseStatusDate:["",[at.required,t=>{const n=t.value;if(!n)return null;const i=n.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
1if(!i)return{invalidDate:!0};const r=parseInt(i[1],10),a=parseInt(i[2],10),s=parseInt(i[3],10);if(s<1900||a<1||a>12||r<1||r>31)return{invalidDate:!0};const o=new Date(s,a-1,r);return o.getFullYear()!==s||o.getMonth()!==a-1||o.getDate()!==r?{invalidDate:!0}:null}]]}),this.myAttendance={availableExceseBalance:"",tolalExecese:"",lateBalance:"",emergencyTransffered:"",emergencyBalance:"",emergencyLeaveAvailableDays:"",emergencyLeaveAvailableHours:"",emergencyLeaveAvailableMinutes:"",attendanceData:[{attendanceDate:"",inOutInfo:[{inTime:"",outTime:""}]}]};const b=localStorage.getItem("loginUserInfo")?JSON.parse(localStorage.getItem("loginUserInfo")||""):"";b&&(this.initials=localStorage.getItem("initials")||this.getInitials(b.name),this.employeeInfo=b,this.employeeInfo.designationName=b?.designation)}ngOnInit(){this.getProfile(),this.getFamilyInfo(),this.getQualificationInfo(),this.getWorkInfo(),this.getContractInfo(),this.getGender();const e=document.getElementById("AddFamilyModal");e&&e.addEventListener("hidden.bs.modal",()=>{this.resetFormState()}),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(i=>{this.getProfile(),this.getFamilyInfo(),this.getQualificationInfo(),this.getWorkInfo(),this.getContractInfo(),this.getGender()}),this.form.get("childDisabilityType")?.valueChanges.subscribe(i=>{i||this.form.get("childDisabilityDate")?.reset()})}resetFormState(){this.form.reset(),this.images=[],this.errorMessage="",this.fileError="",this.isChildSubmitted=!1,this.isSpouseSubmitted=!1}getChild(){this.isChild=!this.isChild,this.type=this.isChild?"C":"S"}getWorkInfo(){this._httpService.getAll("/api/profile/get-previous-employment-list").subscribe({next:e=>{this.experienceInfo=200==e.code&&0===e.apiCode?e.data:[]},error:e=>{this.experienceInfo=[]}})}getContractInfo(){this._httpService.getAll("/api/profile/get-employee-contract-info").subscribe({next:e=>{this.contactInfo=200==e.code&&0===e.apiCode?e.data:null},error:e=>{this.contactInfo=null}})}getLoanInfo(){this._httpService.getAll("/api/profile/get-personal-loan-details").subscribe({next:e=>{this.loanInfo=200==e.code&&0===e.apiCode?e.data:null},error:e=>{this.loanInfo=null}})}getStatus(){this._httpService.getAll("/api/profile/get-child-spouse-status").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.childStatus=e.data.childStatus,this.spouseStatus=e.data.spouseStatus,this.form.patchValue({spouseStatus:this.spouseStatus?this.spouseStatus[0].id:null}))},error:e=>{}})}getFamilyInfo(){this._httpService.getAll("/api/profile/get-employee-family-list").subscribe({next:e=>{this.list=200==e.code&&0===e.apiCode?e.data:[],this.getStatus()},error:e=>{this.list=[]}})}getQualificationInfo(){this._httpService.getAll("/api/profile/get-qualification-info").subscribe({next:e=>{this.qualificationInfo=200==e.code&&0===e.apiCode?e.data:[]},error:e=>{this.qualificationInfo=[]}})}changeGender(e){}getGender(){this._httpService.getAll("/api/profile/get-gender").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.genderLookup=e.data)},error:e=>{}})}getProfile(){this._httpService.getAll("/api/profile/get-employee-profile").subscribe({next:e=>{if(200==e.code&&0===e.apiCode){const i=localStorage.getItem("lang")||"ar";this.employeeInfo=e.data.profile,this.mobilenumber=this.employeeInfo.mobile||"",this.employeeInfo.name="en"==i?e.data.profile.nameEnglish:e.data.profile.nameArabic,this.addressInfo=e.data.employeeAddress,this.initials=this.getInitials(this.employeeInfo.name)}},error:e=>{}})}getDashBoard(){this._httpService.getAll("/api/leaveRequest/GetLeaveDashboard").subscribe({next:e=>{200==e.code&&0===e.apiCode&&e.data&&(this.dashboard=e.data)},error:e=>{}})}validateAttachments(){var e=this;return g(function*(){const i=[];for(const r of e.childAttachments){if(r.isRequired&&!r.url){const a=yield e.translate.get("PleaseUploadaFile").toPromise();return e.fileError=a,!1}i.push({id:r.id,base64:r.url,fileExtension:r.fileExtension})}return!0})()}onSubmit(){if(this.errorMessage="","S"==this.type){if(this.isSpouseSubmitted=!0,this.showErrorMsg)return;if(!this.images||0==this.images.length||!this.images[0].url)return void this.translate.get("PleaseUploadaFile").subscribe(C=>{this.fileError=C});const e=this.fileExtension,i=this.images.length>0?this.images[0].url:"",r=0==this.id?"0":this.id,{spouseEnglishName:a,spouseArabicName:s,spouseCivilID:o,spouseStatus:l}=this.form.value,d=this.form.get("spouserBirthDate")?.value,h=this.form.get("spouseStatusDate")?.value;if(this.form.get("spouseStatusDate")?.invalid||this.form.get("spouserBirthDate")?.invalid)return;const _=co(d),b=co(h);if(!(a&&s&&o&&l&&_&&b))return;this.isSpouseSubmitted=!0,this._httpService.post("/api/profile/manage-spouse-info",{spouseId:r,spouseEnglishName:a,spouseArabicName:s,spouseCivilID:o,spouserBirthDate:_,spouseStatus:l,spouseStatusDate:b,fileExtension:e,base64:i}).subscribe(C=>{200==C.code&&0===C.apiCode?(this.translate.get("modalTitle").subscribe(k=>{this.modalTitle=k}),this.translate.get("YourspouseInfohas").subscribe(k=>{this.modalMessage=k}),this.translate.get("updatesuccess").subscribe(k=>{this.subMessage=k}),this.errorMessage="",this.hideManageModal(),this.openModal()):this.errorMessage=C.message||this.translate.instant("Somethingwentwrong")},C=>{this.errorMessage=C?.error?.message||this.translate.instant("Somethingwentwrong")})}else{if(this.isChildSubmitted=!0,this.showErrorMsg)return;const e=[],i=0==this.id?"0":this.id;for(const C of this.childAttachments){if(C.isRequired&&!C.url)return void this.translate.get("PleaseUploadaFile").subscribe(k=>{this.fileError=k});e.push({id:C.id,base64:C.url,fileExtension:C.fileExtension})}const{childEnglishName:r,childArabicName:a,childCivilId:s,childDisabilityType:o,childGender:l}=this.form.value;if(!r||!a||!s)return;const d=this.form.get("childBirthDate")?.value,h=this.form.get("childDisabilityDate")?.value;if(this.form.get("childBirthDate")?.invalid||this.form.get("childDisabilityDate")?.value&&this.form.get("childDisabilityDate")?.invalid)return;const _=co(d);if(!_)return;const b=co(h);if(this.isChildSubmitted=!0,o&&!b)return;this._httpService.post("/api/profile/manage-child-info",{childId:i,childArabicName:a,childEnglishName:r,childCivilId:s,childBirthDate:_,childGender:l,childDisabilityDate:b,childDisabilityType:o,childAttachments:e}).subscribe(C=>{200==C.code&&0===C.apiCode?(this.translate.get("modalTitle").subscribe(k=>{this.modalTitle=k}),this.translate.get("YourchildInfohas").subscribe(k=>{this.modalMessage=k}),this.translate.get("updatesuccess").subscribe(k=>{this.subMessage=k}),this.hideManageModal(),this.openModal()):this.errorMessage=C.message||this.translate.instant("Somethingwentwrong")},C=>{this.errorMessage=C?.error?.message||this.translate.instant("Somethingwentwrong")})}}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){this.isModalVisible=!1;const e=document.getElementById("exampleModal");if(e){const i=bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e);i.hide(),i.dispose()}e&&(this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true")),this.router.navigate(["profile"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.ke
1y)||e.preventDefault()}allowOnlyLettersAndNumbers(e){xn_EnglishLetters.test(e.key)||e.preventDefault()}allowOnlyArabicAndEnglishLetters(e){/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF ]+$/.test(e.key)||e.preventDefault()}chageGender(e){this.form.patchValue({childGender:e})}onFileSelected(e,i){this.files=[],this.images=[],this.files||(this.files=[]),this.files=[...this.files,...e.target.files];const r=1024*this.maxFileSizeMB*1024;for(let a=0;a<this.files.length;a++){const s=this.files[a];if(s.size>r)return this.translate.get("Filesizeexceedslimit").subscribe(l=>{this.fileError=l}),this.files=[],void(this.images=[]);if(this.fileExtension=s.type.substring(s.type.lastIndexOf(".")).toLowerCase(),this.fileExtension=this.fileExtension.replace("image/",""),this.fileExtension=this.fileExtension.replace("application/",""),i&&(i.fileExtension=this.fileExtension),!this.allowedExtensions.includes(this.fileExtension)&&i?.isRequired)return void this.translate.get("Pleaseselectonly").subscribe(l=>{this.fileError=l});this.fileError="";const o=new FileReader;o.readAsDataURL(s),o.onload=()=>{this.fileInput.nativeElement.value="",i&&(i.url=o.result,i.title=s.name),this.images.push({url:o.result,title:s.name})}}}validateMobile(){this.showMobileErrorMsg=!1;const e=this.employeeInfo.mobile;if(!e||!xn_Phonenumber.test(`+965${e}`))return this.showMobileErrorMsg=!0,this.isEditing=!0,void(this.showEdit=!1)}myAttendanceInfo(){this._httpService.getAll("/api/myattendance").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.myAttendance=e.data,this.myAttendance&&(this.myAttendance.attendanceData=e?.data?.attendanceData.slice(0,3)))},error:e=>{}})}getSpouseInfo(){const e=this.id;if(0==e)return"m"==this.loginUserInfo?.gender?.toLowerCase()?this.translate.get("AddHusband").subscribe(i=>{this.title=i}):"f"==this.loginUserInfo?.gender?.toLowerCase()?this.translate.get("AddWife").subscribe(i=>{this.title=i}):this.translate.get("AddSpouse").subscribe(i=>{this.title=i}),this.form.patchValue({spouseStatus:this.spouseStatus?this.spouseStatus[0].id:null}),void this.getSpouseAttachments();"m"==this.loginUserInfo?.gender?.toLowerCase()?this.translate.get("EditHusband").subscribe(i=>{this.title=i}):"f"==this.loginUserInfo?.gender?.toLowerCase()?this.translate.get("EditWife").subscribe(i=>{this.title=i}):this.translate.get("EditSpouse").subscribe(i=>{this.title=i}),this._httpService.getAll("/api/profile/get-spouse-info/"+e).subscribe({next:i=>{if(200==i.code&&0===i.apiCode){const r=i.data;this.spouseAttachment=i.data.attachmentInfo,this.form.patchValue({spouseArabicName:r.nameArabic}),this.form.patchValue({spouseEnglishName:r.nameEnglish}),this.form.patchValue({spouseCivilID:r.civilID}),this.form.patchValue({spouserBirthDate:r.birthDate}),this.form.patchValue({spouseStatus:r.status}),this.form.patchValue({spouseStatusDate:r.statusDate})}},error:i=>{}})}closeModal(){const e=document.getElementById("AddFamilyModal");e&&e.addEventListener("hidden.bs.modal",()=>{this.resetFormState()}),this.form.reset(),this.isChildSubmitted=!1,this.isSpouseSubmitted=!1,this.fileError="",this.form.markAsUntouched(),this.form.markAsPristine()}getChildInfo(){const e=this.id;if(this.getChildAttachments(),0==e)return this.translate.get("AddChild").subscribe(i=>{this.title=i}),void this.form.patchValue({childGender:this.genderLookup[0].id});this.translate.get("EditChild").subscribe(i=>{this.title=i}),this._httpService.getAll("/api/profile/get-child-info/"+e).subscribe({next:i=>{if(200==i.code&&0===i.apiCode){const r=i.data;this.form.patchValue({childEnglishName:r.nameEnglish}),this.form.patchValue({childArabicName:r.nameArabic}),this.form.patchValue({childCivilId:r.civilID}),this.form.patchValue({childBirthDate:r.childBirthDate}),this.form.patchValue({childGender:r.childGender}),this.form.patchValue({childDisabilityDate:r.childDisabilityDate}),this.form.patchValue({childDisabilityType:r.childDisabilityType||null})}},error:i=>{}})}getChildAttachments(){this._httpService.getAll("/api/profile/get-child-attachment-name").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.childAttachments=e.data)},error:e=>{}})}getSpouseAttachments(){this._httpService.getAll("/api/profile/get-spouse-attachment-name").subscribe({next:e=>{200==e.code&&0===e.apiCode&&(this.spouseAttachment=e.data)},error:e=>{}})}manageFamily(e,i){this.images=[],this.id=e||0,this.errorMessage="",this.isSubmitted=!1,this.type=i,"S"==this.type?(this.isChild=!1,this.form.patchValue({isChild:!1}
1),this.getSpouseInfo()):"any"==this.type?this.form.patchValue({isChild:!0}):(this.isChild=!0,this.form.patchValue({isChild:!0}),this.translate.get("AddChild").subscribe(r=>{this.title=r}),this.getChildInfo()),this.openManageModal()}hideManageModal(){const e=document.getElementById("AddFamilyModal");if(e){const i=bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e);i.hide(),i.dispose()}this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.closeModal(),this.getFamilyInfo()}openManageModal(){const e=document.getElementById("AddFamilyModal");e&&(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}getInitials(e){return e?e.split(" ").map(a=>a.charAt(0).toUpperCase()).join(""):""}startEditing(){this.editedPhone=this.employeeInfo.mobile||"",this.isEditing=!0,this.showEdit=!1}saveEditing(){this.validateMobile(),this.showMobileErrorMsg||this._httpService.post("/api/profile/update-employee-mobile-number",{mobileNumber:this.employeeInfo.mobile}).subscribe(i=>{200==i.code&&0===i.apiCode?this.isEditing=!1:this.errorMessage=i.message||this.translate.instant("Somethingwentwrong")},i=>{this.errorMessage=i?.error?.message||this.translate.instant("Somethingwentwrong")})}cancelEditing(){this.employeeInfo.mobile=this.mobilenumber,this.isEditing=!1,this.showMobileErrorMsg=!1}static \u0275fac=function(i){return new(i||t)(G(hu),G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-profile"]],viewQuery:function(i,r){if(1&i&&(En(xFe,5),En(MFe,5),En(EFe,5)),2&i){let a;Vt(a=Ut())&&(r.fileInput=a.first),Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first)}},decls:257,vars:157,consts:[["noData",""],["to","bsDatepicker"],["dp","bsDatepicker"],["fileInput",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"homepage-sec","m-0"],[1,"homepage-sec-one"],[1,"whitebox"],[1,"profile-sec","p-0"],[1,"profile-image"],[3,"src",4,"ngIf"],["src","./assets/images/person-image.png",4,"ngIf"],[1,"editable-phone","d-flex","justify-content-center",3,"mouseenter","mouseleave"],["style","display: inline-flex; align-items: center;",4,"ngIf"],["class","text-danger small",4,"ngIf"],[1,"profile-address"],[1,"loan-agrmnt","justify-content-center"],[1,"btn","btn-outline-gray",3,"routerLink"],["src","assets/images/paci-logo.svg"],[1,"homepage-sec-two"],["id","accordionExample",1,"accordion","profile-accordion"],[1,"accordion-item"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseZero","aria-expanded","false","aria-controls","collapseOne",1,"accordion-button","collapsed"],["id","collapseZero","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],[1,"accordion-body"],[1,"td-box","border-0","shadow-none"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[4,"ngIf","ngIfElse"],["data-bs-toggle","dropdown","aria-expanded","false",1,"pac-link",2,"cursor","pointer"],["src","assets/images/add-icon.svg"],[1,"dropdown-menu","cr-dd"],[1,"dd-menu-links"],[2,"cursor","pointer",3,"click"],["src","./assets/images/annual-leave.svg"],["src","./assets/images/sick-leave.svg"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseOne","aria-expanded","false","aria-controls","collapseOne",1,"accordion-button","collapsed"],["id","collapseOne","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],["width","250px"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseTwo","aria-expanded","false","aria-controls","collapseTwo",1,"accordion-button","collapsed"],["id","collapseTwo","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"accordion-button","collapsed"],["id","collapseThree","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseFour","aria-expanded","fal
1se","aria-controls","collapseFour",1,"accordion-button","collapsed"],["id","collapseFour","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],[1,"accordion-item",2,"display","none"],["type","button","data-bs-toggle","collapse","data-bs-target","#collapseFive","aria-expanded","false","aria-controls","collapseFive",1,"accordion-button","collapsed"],["id","collapseFive","data-bs-parent","#accordionExample",1,"accordion-collapse","collapse"],["id","AddFamilyModal","tabindex","-1","role","dialog","data-bs-backdrop","static","aria-labelledby","AddFamilyModalLabel","aria-modal","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["src","assets/images/sidebar-close-icon.svg"],[1,"modal-body"],[3,"ngSubmit","formGroup"],[1,"row","mt-4"],["class","row",4,"ngIf"],[3,"close","isVisible","title","message","subMessage"],[3,"src"],["src","./assets/images/person-image.png"],["style","cursor:pointer;margin-top:-10px;margin-left:3px;","class","pt-img",3,"click",4,"ngIf"],[1,"pt-img",2,"cursor","pointer","margin-top","-10px","margin-left","3px",3,"click"],["src","./assets/images/edit-icon.svg"],[2,"display","inline-flex","align-items","center"],["type","tel","numbersOnly","","maxlength","8",1,"form-control","form-control-sm",2,"width","150px",3,"ngModelChange","ngModel"],["aria-label","Save phone number",1,"btn","btn-secondary","btn-sm","ms-2","btn-icon-small",3,"click"],[1,"bi","bi-check-lg",2,"font-size","1rem"],["aria-label","Cancel editing",1,"btn","btn-outline-secondary","ms-2","btn-sm","btn-icon-small",3,"click"],[1,"bi","bi-x-lg",2,"font-size","1rem"],[1,"text-danger","small"],["colspan","100%",1,"text-center","mb-4","mt-4"],[4,"ngFor","ngForOf"],[1,"pt-img",2,"cursor","pointer",3,"click"],[1,"row"],[1,"col-lg-6","col-md-6"],[1,"form-group"],["formControlName","childEnglishName","minlength","1","maxlength","50","type","text",1,"form-control",3,"keypress"],["formControlName","childArabicName","minlength","1","maxlength","50","type","text",1,"form-control",3,"keypress"],["formControlName","childCivilId","numbersOnly","","minlength","1","maxlength","12","type","text",1,"form-control"],[1,"iwi"],["formControlName","childBirthDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["src","./assets/images/calendar-gray.svg",3,"click"],["class","form-group mb-0 col-lg-6 col-md-6",4,"ngIf"],[1,"form-group","mb-3"],["formControlName","childDisabilityType",1,"form-select"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["class","col-lg-6 col-md-6",4,"ngIf"],["class","col-12",4,"ngFor","ngForOf"],[1,"col-12","mb-4","mt-2","ppp-btns","d-flex"],["type","submit",1,"btn","btn-secondary"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-outline-secondary","ms-auto-style",3,"click"],[1,"form-group","mb-0","col-lg-6","col-md-6"],["class","form-check-inline",4,"ngFor","ngForOf"],[1,"form-check-inline"],["type","radio","formControlName","childGender","name","childGender",3,"change","id","value","checked"],[3,"for"],["bsDatepicker","","formControlName","childDisabilityDate","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],[1,"col-12"],[2,"margin-bottom","0.5vw","margin-top","1vw"],[1,"file-upload-wrapper","file-alignment"],["type","file","accept","image/*,.pdf,.doc,.docx","name","file-upload-field","value","",1,"file-upload-field",3,"change"],["formControlName","spouseEnglishName","minlength","1","maxlength","50","type","text","value","",1,"form-control",3,"keypress"],["formControlName","spouseArabicName","minlength","0","maxlength","50","type","text","value","",1,"form-control",3,"keypress"],["formControlName","spouseCivilID","minlength","1","maxlength","12","numbersOnly","","type","text",1,"form-control"],["formControlName","spouserBirthDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["formControlName","spouseStatusDate","bsDatepicker","","type","text","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["formControlName","spouseStatus",1,"form-select"],[2,"margin-bottom","0.5vw","margin-top","0.5vw"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,IFe,1,0,"app-notifications",4),M(2,"async"),m(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"div",9)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",10)(12,"li",11)(13,"a",12),v(14),M(15,"translate"),p()(),m(16,"li",13),v(17),M(18,"translate"),p()()()(),m(19,"div",14)(20,"div",15)(21,"div",16)(22,"div",17)(23,"div",18),oe(24,AFe,1,1,"img",19)(25,kFe,1,0,"img",20),p(),m(26,"h5"),v(27),p(),m(28,"h6"),v(29),p(),m(30,"h4"),v(31),p(),m(32,"div",21),be("mouseenter",function(){return Ce(a),we(r.showEdit=!0)})("mouseleave",function(){return Ce(a),we(r.showEdit=!1)}),oe(33,PFe,5,5,"h4",4)(34,OFe,6,1,"div",22)(35,LFe,3,3,"div",23),p(),m(36,"div",24)(37,"h5"),v(38),M(39,"translate"),p(),m(40,"ul"),oe(41,FFe,5,4,"li",4)(42,BFe,5,4,"li",4)(43,VFe,5,4,"li",4)(44,UFe,5,4,"li",4)(45,HFe,5,4,"li",4)(46,jFe,5,4,"li",4)(47,zFe,5,4,"li",4),p()(),m(48,"div",25)(49,"a",26),fe(50,"img",27),v(51),M(52,"translate"),p()()()()(),m(53,"div",28)(54,"div",29)(55,"div",30)(56,"h2",31)(57,"button",32),v(58),M(59,"translate"),p()(),m(60,"div",33)(61,"div",34)(62,"div",35)(63,"div",36)(64,"div",37)(65,"table",38)(66,"thead")(67,"tr")(68,"th"),v(69),M(70,"translate"),p(),m(71,"th"),v(72),M(73,"translate"),p(),m(74,"th"),v(75),M(76,"translate"),p(),oe(77,YFe,3,3,"th",4),m(78,"th"),v(79),M(80,"translate"),p(),m(81,"th"),v(82),M(83,"translate"),p()()(),oe(84,WFe,14,6,"ng-container",39)(85,GFe,5,3,"ng-template",null,0,ni),p()()()()()()(),m(87,"div",30)(88,"h2",31)(89,"a",40),fe(90,"img",41),v(91),M(92,"translate"),p(),m(93,"div",42)(94,"ul",43)(95,"li",44),be("click",function(){return Ce(a),we(r.manageFamily(0,"C"))}),m(96,"a"),fe(97,"img",45),v(98),M(99,"translate"),p()(),m(100,"li",44),be("click",function(){return Ce(a),we(r.manageFamily(0,"S"))}),m(101,"a"),fe(102,"img",46),v(103),M(104,"translate"),M(105,"translate"),p()()()(),m(106,"button",47),v(107),M(108,"translate"),p()(),m(109,"div",48)(110,"div",34)(111,"div",35)(112,"div",36)(113,"div",37)(114,"table",38)(115,"thead")(116,"tr")(117,"th"),v(118),M(119,"translate"),p(),m(120,"th",49),v(121),M(122,"translate"),p(),m(123,"th"),v(124),M(125,"translate"),p()()(),oe(126,KFe,3,1,"ng-container",39)(127,ZFe,5,3,"ng-template",null,0,ni),p()()()()()()(),m(129,"div",30)(130,"h2",31)(131,"button",50),v(132),M(133,"translate"),p()(),m(134,"div",51)(135,"div",34)(136,"div",35)(137,"div",36)(138,"div",37)(139,"table",38)(140,"thead")(141,"tr")(142,"th"),v(143),M(144,"translate"),p(),m(145,"th"),v(146),M(147,"translate"),p()()(),oe(148,XFe,2,1,"ng-container",39)(149,JFe,5,3,"ng-template",null,0,ni),p()()()()()()(),m(151,"div",30)(152,"h2",31)(153,"button",52),v(154),M(155,"translate"),p()(),m(156,"div",53)(157,"div",34)(158,"div",35)(159,"div",36)(160,"div",37)(161,"table",38)(162,"thead")(163,"tr")(164,"th"),v(165),M(166,"translate"),p(),m(167,"th"),v(168),M(169,"translate"),p(),m(170,"th"),v(1
171),M(172,"translate"),p()()(),oe(173,t3e,3,1,"ng-container",39)(174,n3e,5,3,"ng-template",null,0,ni),p()()()()()()(),m(176,"div",30)(177,"h2",31)(178,"button",54),v(179),M(180,"translate"),p()(),m(181,"div",55)(182,"div",34)(183,"div",35)(184,"div",36)(185,"div",37)(186,"table",38)(187,"thead")(188,"tr")(189,"th"),v(190),M(191,"translate"),p(),m(192,"th"),v(193),M(194,"translate"),p(),m(195,"th"),v(196),M(197,"translate"),p(),m(198,"th"),v(199),M(200,"translate"),p()()(),oe(201,i3e,11,4,"ng-container",39)(202,r3e,5,3,"ng-template",null,0,ni),p()()()()()()(),m(204,"div",56)(205,"h2",31)(206,"button",57),v(207),M(208,"translate"),p()(),m(209,"div",58)(210,"div",34)(211,"div",35)(212,"div",36)(213,"div",37)(214,"table",38)(215,"thead")(216,"tr")(217,"th"),v(218),M(219,"translate"),p(),m(220,"th"),v(221),M(222,"translate"),p(),m(223,"th"),v(224),M(225,"translate"),p(),m(226,"th"),v(227),M(228,"translate"),p(),m(229,"th"),v(230),M(231,"translate"),p(),m(232,"th"),v(233),M(234,"translate"),p(),m(235,"th"),v(236),M(237,"translate"),p()()(),oe(238,a3e,17,7,"ng-container",39)(239,s3e,5,3,"ng-template",null,0,ni),p()()()()()()()()()()()(),m(241,"div",59)(242,"div",60)(243,"div",61)(244,"div",62)(245,"h5"),v(246),p(),m(247,"button",63)(248,"span",64),fe(249,"img",65),p()()(),m(250,"div",66)(251,"form",67),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(252,"div",68),oe(253,C3e,61,37,"div",69)(254,N3e,80,41,"div",69),p()()()()()(),m(255,"app-modal",70),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(256,"app-footer")}if(2&i){let a;const s=Di(86);u(),T("ngIf",null==(a=E(2,77,r.notificationService.notification$))?null:a.show),u(8),P(E(10,79,"MyProfile")),u(4),T("routerLink","/home"),u(),P(E(15,81,"Home")),u(3),P(E(18,83,"MyProfile")),u(7),T("ngIf",null==r.loginUserInfo?null:r.loginUserInfo.photoURL),u(),T("ngIf",!(null!=r.loginUserInfo&&r.loginUserInfo.photoURL)),u(2),_e(" ","en"===r.languageService.language?null==r.employeeInfo?null:r.employeeInfo.nameEnglish:null==r.employeeInfo?null:r.employeeInfo.nameArabic," "),u(2),P(null==r.employeeInfo?null:r.employeeInfo.designationName),u(2),P(null==r.employeeInfo?null:r.employeeInfo.email),u(2),T("ngIf",!r.isEditing),u(),T("ngIf",r.isEditing),u(),T("ngIf",r.showMobileErrorMsg),u(3),P(E(39,85,"Address")),u(3),T("ngIf",null==r.addressInfo?null:r.addressInfo.city),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.block),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.street),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.building),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.avenue),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.apartmentNumber),u(),T("ngIf",null==r.addressInfo?null:r.addressInfo.floarNumber),u(2),T("routerLink","/paci"),u(2),P(E(52,87,"UpdatewithPACI")),u(7),_e(" ",E(59,89,"EmployeeDetails")," "),u(11),P(E(70,91,"EnglishName")),u(3),P(E(73,93,"ArabicName")),u(3),P(E(76,95,"CivilID")),u(2),T("ngIf",!(null!=r.employeeInfo&&r.employeeInfo.isKuwaiti)),u(2),P(E(80,97,"Nationality")),u(3),P(E(83,99,"PassportNumber")),u(2),T("ngIf",r.employeeInfo)("ngIfElse",s),u(7),P(E(92,101,"AddFamilyMember")),u(7),_e(" ",E(99,103,"Child")," "),u(5),_e(" ","f"===(null==r.loginUserInfo?null:r.loginUserInfo.gender.toLowerCase())?E(104,105,"Wife"):E(105,107,"Husband")," "),u(4),_e(" ",E(108,109,"Family")," "),u(11),P(E(119,111,"Name")),u(3),P(E(122,113,"Relation")),u(3),P(E(125,115,"Action")),u(2),T("ngIf",r.list&&r.list.length>0)("ngIfElse",s),u(6),_e(" ",E(133,117,"Qualification")," "),u(11),P(E(144,119,"Title")),u(3),P(E(147,121,"GraduationDate")),u(2),T("ngIf",r.qualificationInfo&&r.qualificationInfo.length>0)("ngIfElse",s),u(6),_e(" ",E(155,123,"WorkExperience")," "),u(11),P(E(166,125,"Company")),u(3),P(E(169,127,"StartDate")),u(3),P(E(172,129,"EndDate")),u(2),T("ngIf",r.experienceInfo&&r.experienceInfo.length>0)("ngIfElse",s),u(6),_e(" ",E(180,131,"ContractType")," "),u(11),P(E(191,133,"ContractType")),u(3),P(E(194,135,"ContractStartDate")),u(3),P(E(197,137,"ContractEndDate")),u(3),P(E(200,139,"JoiningDate")),u(2),T("ngIf",r.contactInfo)("ngIfElse",s),u(6),_e(" ",E(208,141,"PersonalLoanInfo")," "),u(11),P(E(219,143,"loanNo")),u(3),P(E(222,145,"applicationDate")),u(3),P(E(225,147,"firstInstalmentDate")),u(3),P(E(228,149,"lastInstalmentDate")),u(3),P(E(231,151,"loanAmount")),u(3),P(E(234,153,"remainingPayment")),u(3),P(E(237,155,"remainingInstallment")),u(2),T("ngIf",r.loanInfo)("ngIfElse",s),u(8),_e(" ",r.title," "),u(5),T("formGroup",r.form),u(2),T("ngIf",r.isChild),u(),T("ngIf",!r.isChild),u(),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[jr,yi,Un,Zt,Ii,ri,ii,Cm,fi,Qr,uc,hc,da,zo,rv,Ur,Zr,fc,Yo,_r,Hr,Zs,pn,dn,Bl,wu,pd,kE,iv,hi,ui],encapsulation:2})}return t})();function P3e(t,n){if(1&t&&(m(0,"tbody")(1,"tr")(2,"td"),v(3),p(),m(4,"td"),v(5),p(),m(6,"td"),v(7),p(),m(8,"td"),v(9),p()()()),2&t){const e=n.$implicit;u(3),P(e.educationName),u(2),P(e.educationName),u(2),P(e.graduationDate),u(2),P(e.graduationDate)}}function O3e(t,n){if(1&t&&(Gn(0),oe(1,P3e,10,4,"tbody",15),qn()),2&t){const e=B();u(),T("ngForOf",e.qualificationInfo)}}function L3e(t,n){1&t&&(m(0,"tr")(1,"td",16)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}let F3e=(()=>{class t{_httpService;http;translate;qualificationInfo=[{id:"",educationName:"",graduationDate:""}];constructor(e,i,r){this._httpService=e,this.http=i,this.translate=r}ngOnInit(){this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-qualification-info").subscribe({next:e=>
1{this.qualificationInfo=200==e.code?e.data:[]},error:e=>{this.qualificationInfo=[]}})}static \u0275fac=function(i){return new(i||t)(G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-qualification"]],decls:39,vars:23,consts:[["noData",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["colspan","100%",1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",6)(10,"li",7)(11,"a",8),v(12),M(13,"translate"),p()(),m(14,"li",9),v(15),M(16,"translate"),p()()()(),m(17,"div",10)(18,"div",11)(19,"div",12)(20,"table",13)(21,"thead")(22,"tr")(23,"th"),v(24),M(25,"translate"),p(),m(26,"th"),v(27),M(28,"translate"),p(),m(29,"th"),v(30),M(31,"translate"),p(),m(32,"th"),v(33),M(34,"translate"),p()()(),oe(35,O3e,2,1,"ng-container",14)(36,L3e,5,3,"ng-template",null,0,ni),p()()()()()()(),fe(38,"app-footer")),2&i){const a=Di(37);u(7),P(E(8,9,"Qualification")),u(5),P(E(13,11,"Home")),u(3),P(E(16,13,"Qualification")),u(9),P(E(25,15,"QualificationType")),u(3),P(E(28,17,"FieldofStudy")),u(3),P(E(31,19,"StartDate")),u(3),P(E(34,21,"EndDate")),u(2),T("ngIf",r.qualificationInfo&&r.qualificationInfo.length>0)("ngIfElse",a)}},dependencies:[ri,ii,fi,Zt,pn,dn,Un],encapsulation:2})}return t})();function B3e(t,n){if(1&t&&(m(0,"tbody")(1,"tr")(2,"td"),v(3),p(),m(4,"td"),v(5),p(),m(6,"td"),v(7),p(),m(8,"td"),v(9),p()()()),2&t){const e=n.$implicit;u(3),P(e.employerName),u(2),P(e.jobTitle),u(2),P(e.joinDate),u(2),P(e.resignDate)}}function V3e(t,n){if(1&t&&(Gn(0),oe(1,B3e,10,4,"tbody",15),qn()),2&t){const e=B();u(),T("ngForOf",e.experienceInfo)}}function U3e(t,n){1&t&&(m(0,"tr")(1,"td",16)(2,"h6"),v(3),M(4,"translate"),p()()()),2&t&&(u(3),P(E(4,1,"NoDataFound")))}let H3e=(()=>{class t{_httpService;http;translate;experienceInfo=[{id:"",employerName:"",jobTitle:"",joinDate:"",resignDate:""}];constructor(e,i,r){this._httpService=e,this.http=i,this.translate=r}ngOnInit(){this.getPersonaInfo()}getPersonaInfo(){this._httpService.getAll("/api/profile/get-previous-employment-list").subscribe({next:e=>{this.experienceInfo=200==e.code?e.data:[]},error:e=>{this.experienceInfo=[]}})}static \u0275fac=function(i){return new(i||t)(G(wn),G($n),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-work-experience"]],decls:39,vars:23,consts:[["noData",""],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["href","home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["colspan","100%",1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),m(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",6)(10,"li",7)(11,"a",8),v(12),M(13,"translate"),p()(),m(14,"li",9),v(15),M(16,"translate"),p()()()(),m(17,"div",10)(18,"div",11)(19,"div",12)(20,"table",13)(21,"thead")(22,"tr")(23,"th"),v(24),M(25,"translate"),p(),m(26,"th"),v(27),M(28,"translate"),p(),m(29,"th"),v(30),M(31,"translate"),p(),m(32,"th"),v(33),M(34,"translate"),p()()(),oe(35,V3e,2,1,"ng-container",14)(36,U3e,5,3,"ng-template",null,0,ni),p()()()()()()(),fe(38,"app-footer")),2&i){const a=Di(37);u(7),P(E(8,9,"Experience")),u(5),P(E(13,11,"Home")),u(3),P(E(16,13,"Experience")),u(9),P(E(25,15,"Company")),u(3),P(E(28,17,"Position")),u(3),P(E(31,19,"StartDate")),u(3),P(E(34,21,"EndDate")),u(2),T("ngIf",r.experienceInfo&&r.experienceInfo.length>0)("ngIfElse",a)}},dependencies:[ri,ii,fi,Zt,pn,dn,Un],encapsulation:2})}return t})();function j3e(t,n){1&t&&(m(0,"div",10),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"NewPasswordRequired")," "))}function z3e(t,n){1&t&&(m(0,"div",10),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"PasswordCriteria")," "))}function Y3e(t,n){1&t&&(m(0,"div",10),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"Passwordsdonotmatch")," "))}function $3e(t,n){1&t&&(m(0,"div"),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"recaptchaRequired")," "))}function W3e(t,n){if(1&t&&(m(0,"div",21),oe(1,$3e,3,3,"div",22),p()),2&t){const e=B();u(),T("ngIf",!e.captchaToken&&e.captchaEnabled)}}function G3e(t,n){if(1&t&&(m(0,"div",10),v(1),p()),2&t){const e=B();u(),_e(" ",e.errorMessage," ")}}let q3e=(()=>{class t{_httpService;fb;http;router;renderer;translate;form;isSubmitted=!1;errorMessage="";isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";captchaToken=null;SiteKey=xn_RecaptchaSettings_SiteKey;captchaEnabled=xn_RecaptchaSettings_Enabled;constructor(e,i,r,a,s,o){this._httpService=e,this.fb=i,this.http=r,this.router=a,this.renderer=s,this.translate=o;const l=document.getElementById("exampleModal");l&&new bootstrap.Modal(l),this.translate.get("PasswordChanged").subscribe(h=>{this.modalTitle=h}),this.translate.get("Yourpasswordhas").subscribe(h=>{this.modalMessage=h}),this.translate.get("successMessage").subscribe(h=>{this.subMessage=h}),"200"!=localStorage.getItem("ValidOTP")&&(window.location.href="login"),this.form=this.fb.group({newPassword:["",[at.required,at.minLength(8),at.pattern(new RegExp(xn_Password))]],confirmPassword:["",at.required]},{validators:Ade}),localStorage.getItem("UserName")||(window.location.href="login")}onCaptchaResolved(e){this.captchaToken=e}onSubmit(){if(this.isSubmitted=!1,!this.form.valid||this.captchaEnabled&&!this.captchaToken)this.isSubmitted=!0;else if(this.form.valid){const{confirmPassword:i}=this.form.value,r=this.encryptPassword(i),a=localStorage.getItem("refNo");this._httpService.post("/api/resetPassword",{password:r,captchaToken:this.captchaToken,refNo:a}).subscribe({next:o=>
1{if(200==o.code&&0===o.apiCode)this.openModal();else{this.isSubmitted=!0;const l=$o(o.apiCode,o.message,this.translate);this.errorMessage=l,422!=o.status&&grecaptcha.reset()}},error:o=>{this.isSubmitted=!0;const l=$o(o?.status,o?.error?.message,this.translate);this.errorMessage=l,422!=o.status&&grecaptcha.reset()}})}else this.form.markAllAsTouched()}encryptPassword(e){const r=this.convertToPem(xn_PublicKey),s=Qw.pki.publicKeyFromPem(r).encrypt(e,"RSAES-PKCS1-V1_5");return Qw.util.encode64(s)}convertToPem(e){return`-----BEGIN PUBLIC KEY-----\n${e.match(/.{1,64}/g)?.join("\n")}\n-----END PUBLIC KEY-----`}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["login"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}static \u0275fac=function(i){return new(i||t)(G(wn),G(Xr),G($n),G(An),G(zn),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-reset-password"]],decls:65,vars:50,consts:[["captchaElem",""],[1,"login-page"],[1,"login-page-rs"],["src","./assets/images/lp-logo.svg"],[1,"login-page-ls"],[1,"login-form"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12"],[1,"form-group"],[1,"text-danger","small"],["formControlName","newPassword","minlength","8","maxlength","100","type","password",1,"form-control"],["class","text-danger small",4,"ngIf"],["formControlName","confirmPassword","minlength","8","maxlength","100","type","password",1,"form-control"],[1,"reset-password"],[3,"resolved","siteKey","size","theme"],["class","text-danger",4,"ngIf"],["type","submit",1,"btn","btn-login"],[1,"col-12","text-center"],[1,"ff",3,"routerLink"],[3,"close","isVisible","title","message","subMessage"],[1,"text-danger"],[4,"ngIf"]],template:function(i,r){if(1&i){const a=qe();m(0,"div",1)(1,"div",2),fe(2,"img",3),m(3,"p"),v(4),M(5,"translate"),m(6,"span"),v(7),M(8,"translate"),p()()(),m(9,"div",4)(10,"div",5)(11,"h4"),v(12),M(13,"translate"),p(),m(14,"p"),v(15),M(16,"translate"),p(),m(17,"form",6),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(18,"div",7)(19,"div",8)(20,"div",9)(21,"label"),v(22),M(23,"translate"),m(24,"span",10),v(25," *"),p()(),fe(26,"input",11),oe(27,j3e,3,3,"div",12)(28,z3e,3,3,"div",12),p()(),m(29,"div",8)(30,"div",9)(31,"label"),v(32),M(33,"translate"),m(34,"span",10),v(35," *"),p()(),fe(36,"input",13),oe(37,Y3e,3,3,"div",12),p()(),m(38,"ul",14)(39,"li"),v(40),M(41,"translate"),p(),m(42,"li"),v(43),M(44,"translate"),p(),m(45,"li"),v(46),M(47,"translate"),p(),m(48,"li"),v(49),M(50,"translate"),p()(),m(51,"div",8)(52,"re-captcha",15,0),be("resolved",function(o){return Ce(a),we(r.onCaptchaResolved(o))}),p(),oe(54,W3e,2,1,"div",16),p(),oe(55,G3e,2,1,"div",12),m(56,"div",8)(57,"button",17),v(58),M(59,"translate"),p()(),m(60,"div",18)(61,"a",19),v(62),M(63,"translate"),p()()()()()(),m(64,"app-modal",20),be("close",function(){return Ce(a),we(r.onModalClose())}),p()()}2&i&&(u(4),_e("",E(5,26,"KuwaitFund")," "),u(3),P(E(8,28,"EmployeeSelfService")),u(5),P(E(13,30,"RestPassword")),u(3),P(E(16,32,"Updateyournewpassword")),u(2),T("formGroup",r.form),u(5),_e("",E(23,34,"NewPassword")," "),u(5),T("ngIf",!r.form.controls.newPassword.value&&r.isSubmitted),u(),T("ngIf",r.form.controls.newPassword.invalid&&r.form.controls.newPassword.value),u(4),_e("",E(33,36,"ConfirmPassword")," "),u(5),T("ngIf",null==r.form.errors?null:r.form.errors.passwordsMismatch),u(3),P(E(41,38,"Minimumcharactersusingallowedcharacters")),u(3),P(E(44,40,"Atleastoneuppercaseletter")),u(3),P(E(47,42,"Atleastonedigit")),u(3),P(E(50,44,"Atleastonespecialcharacter")),u(3),T("siteKey",r.SiteKey)("size","normal")("theme","light"),u(2),T("ngIf",r.isSubmitted),u(),T("ngIf",r.isSubmitted),u(3),_e(" ",E(59,46,"ResetPassword")," "),u(3),T("routerLink","/login"),u(),P(E(63,48,"Back")),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage))},dependencies:[fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,Zt,Zs,hi,ui,pn,dn,ZI,KI],encapsulation:2});static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function K3e(t,n){1&t&&fe(0,"app-notifications")}function Z3e(t,n){if(1&t&&(m(0,"span",41),v(1),p()),2&t){const e=B().$implicit;u(),P(e.leaveStatus)}}function Q3e(t,n){if(1&t){const e=qe();m(0,"a",42),be("click",function(){Ce(e);const r=B().$implicit;return we(B(4).approveLeaveRequestModal(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Approve")))}function X3e(t,n){if(1&t){const e=qe();m(0,"a",43),be("click",function(){Ce(e);const r=B().$implicit;return we(B(4).rejectLeave(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Reject")))}function J3e(t,n){if(1&t&&(m(0,"tr")(1,"td"),v(2),p(),m(3,"td")(4,"u"),v(5),p()(),m(6,"td"),v(7),p(),m(8,"td"),v(9),p(),m(10,"td"),v(11),p(),m(12,"td"),oe(13,Z3e,2,1,"span",38),p(),m(14,"td",17),oe(15,Q3e,3,3,"a",39)(16,X3e,3,3,"a",40),p()()),2&t){const e=n.$implicit,i=B(4);u(2),P(e.createDate),u(3),P(e.empLoginName),u(2),Vi("",e.startDate," - ",e.endDate,""),u(2),P(null==e?null:e.extendDate),u(2),P(e.requestType),u(2),T("ngIf",i.isResponse),u(2),T("ngIf",i.isResponse),u(),T("ngIf",i.isResponse)}}function eBe(t,n){if(1&t&&(m(0,"tbody"),oe(1,J3e,17,9,"tr",37),p()),2&t){const e=B(3);u(),T("ngForOf",e.leaveInfo)}}function tBe(t,n){if(1&t&&(Gn(0),oe(1,eBe,2,1,"tbody",1),qn()),2&t){const e=B(2);u(),T("ngIf",e.leaveInfo.length)}}function nBe(t,n){1&t&&(m(0,"tbody")(1,"tr")(2,"td",44)(3,"div",45)(4,"h6"),v(5),M(6,"translate"),p()()()()()),2&t&&(u(5),P(E(6,1,"NoDataFound")))}function iBe(t,n){1&t&&(m(0,"div",46),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"RejectReasonRequired")," "))}function rBe(t,n){if(1&t&&(m(0,"div",46),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B(2);u(),Ja(" ",E(2,3,"Minimum")," ",null==(e=i.form.get("rejectReason"))||null==e.errors||null==e.errors.minlength?null:e.errors.minlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function aBe(t,n){if(1&t&&(m(0,"div",46),v(1),M(2,"translate"),M(3,"translate"),p()),2&t){let e;const i=B(2);u(),Ja(" ",E(2,3,"Maximum")," ",null==(e=i.form.get("rejectReason"))||null==e.errors||null==e.errors.maxlength?null:e.errors.maxlength.requiredLength," ",E(3,5,"charactersrequired")," ")}}function sBe(t,n){if(1&t&&(m(0,"div",46),v(1),p()),2&t){const e=B(2);u(),_e(" ",e.errorMessage," ")}}function oBe(t,n){if(1&t){const e=qe();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4"),v(6),M(7,"translate"),p(),m(8,"ol",9)(9,"li",10)(10,"a",11),v(11),M(12,"translate"),p()(),m(13,"li",12),v(14),M(15,"translate"),p()()()(),m(16,"div",13)(17,"div",14)(18,"div",15)(19,"table",16)(20,"thead")(21,"tr")(22,"th"),v(23),M(24,"translate"),p(),m(25,"th"),v(26),M(27,"translate"),p(),m(28,"th"),v(29),M(30,"translate"),p(),m(31,"th"),v(32),M(33,"translate"),p(),m(34,"th"),v(35),M(36,"translate"),p(),m(37,"th"),v(38),M(39,"translate"),p(),m(40,"th",17),v(41),M(42,"translate"),p()()(),oe(43,tBe,2,1,"ng-container",18)(44,nBe,7,3,"ng-template",null,0,ni),p()()()()()(),m(46,"app-modal",19),be("close",function(){return Ce(e),we(B().onModalClose())}),p(),m(47,"div",20)(48,"div",21)(49,"div",22)(50,"div",23)(51,"h5"),v(52),M(53,"translate"),p(),m(54,"button",24),be("click",function(){return Ce(e),we(B().closeModal())}),m(55,"span",25),fe(56,"img",26),p()()(),m(57,"form",27),be("ngSubmit",function(){return Ce(e),we(B().rejectLeaveRequest())}),m(58,"div",28)(59,"div",29)(60,"div",30)(61,"div",31)(62,"label"),v(63),M(64,"translate"),p(),fe(65,"textarea",32),p(),oe(66,iBe,3,3,"div",33)(67,rBe,4,7,"div",33)(68,aBe,4,7,"div",33),p()(),oe(69,sBe,2,1,"div",33),p(),m(70,"div",34)(71,"button",35),v(72),M(73,"translate"),p(),m(74,"button",36),be("click",function(){return Ce(e),we(B().closeModal())}),v(75),M(76,"translate"),p()()()()()()()}if(2&t){let e,i;const r=Di(45),a=B();u(6),P(E(7,26,"Submissions")),u(4),T("routerLink","/home"),u(),P(E(12,28,"Home")),u(3),P(E(15,30,"Submissions")),u(9),P(E(24,32,"RequestedDate")),u(3),P(E(27,34,"Requestor")),u(3),P(E(30,36,"LeaveDate")),u(3),P(E(33,38,"ExtensionDate")),u(3),P(E(36,40,"RequestType")),u(3),P(E(39,42,"Status")),u(3),P(E(42,44,"Action")),u(2),T("ngIf",a.leaveInfo&&a.leaveInfo.length>0)("ngIfElse",r),u(3),T("isVisible",a.isModalVisible)("title",a.modalTitle)("message",a.modalMessage)("subMessage",a.subMessage),u(6),P(E(53,46,"ReasonofRejection")),u(5),T("formGroup",a.form),u(6),_e("",E(64,48,"AddRemarks")," "),u(3),T("ngIf",!a.form.controls.rejectReason.value&&a.isSubmitted),u(),T("ngIf",null==(e=a.form.get("rejectReason"))||null==e.errors?null:e.errors.minlength),u(),T("ngIf",null==(i=a.form.get("rejectReason"))||null==i.errors?null:i.errors.maxlength),u(),T("ngIf",a.errorMessage&&a.isSubmitted),u(3),P(E(73,50,"RejectRequest")),u(3),P(E(76,52,"Cancel"))}}function lBe(t,n){1&t&&fe(0,"app-unauthorized",47),2&t&&T("isShownWholePage",!1)}let cBe=(()=>{class t{notificationService;_httpService;fb;http;renderer;router;translate;route;isSubmitted=!1;destroy$=new nt;leaveInfo=[{id:"",empLoginName:"",mobile:"",createDate:"",leaveType:"",leaveStatus:"",startDate:"",endDate:"",requestType:"",extendFlag:"",extendDate:"",requestStatusCode:"",requestStatusText:""}];isModalVisible=!1;modalTitle="Request submitted";modalMessage="Your request has";subMessage="been deleted successfully";isWarning=!1;leaveRequestID=0;form;errorMessage="";isResponse=!1;isAppprove=!1;constructor(e,i,r,a,s,o,l,d){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.router=o,this.translate=l,this.route=d,this.form=this.fb.group({rejectReason:["",[at.required,at.maxLength(100)]]})}ngOnInit(){this.getPendingLeaves(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.getPendingLeaves()})}get canAccessPage(){return"true"==localStorage.getItem("isSupervisor")||"false"!=localStorage.getItem("isSupervisor")&&""}approveLeaveRequestModal(e){this.leaveRequestID=e,this.isAppprove=!0,this.openWarningModal()}approveLeaveRequest(e){this.isAppprove=!1,this._httpService.post("/api/leaveRequest/ApproveLeaveRequest/"+(e=e||0),{}).subscribe(i=>{if(200===i.code&&0===i.apiCode){this.translate.get("modalTitle").subscribe(a=>{this.modalTitle=a});const r=localStorage.getItem("lang");this.modalMessage="","en"==r?this.translate.get("modalMessage").subscribe(a=>{this.modalMessage=a}):this.modalMessage="",this.translate.get("approveSubMessage").subscribe(a=>{this.subMessage=a}),this.openModal()}else this.translate.get("modalTitle").subscribe(r=>{this.modalTitle=r}
1),this.translate.get("errorModalMessage").subscribe(r=>{this.modalMessage=r}),this.translate.get("errorMessage").subscribe(r=>{this.subMessage=r}),this.isWarning=!0,this.openModal()})}openWarningModal(){const e=document.getElementById("warningModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideWarningModal(){const e=this.renderer.selectRootElement("#warningModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).hide(),this.renderer.setAttribute(e,"aria-hidden","true"),this.approveLeaveRequest(this.leaveRequestID)}closeModal(){this.form.patchValue({rejectReson:""}),this.form.markAsUntouched(),this.form.markAsPristine()}cancelLeaveRequest(e){this._httpService.getAll("/api/leaveRequest/deleteLeaveRequest/"+e).subscribe(i=>{200===i.code&&0===i.apiCode?(this.isModalVisible=!0,this.modalTitle="Request submitted",this.modalMessage="Your request has",this.subMessage="been deleted successfully",this.openModal()):(this.modalTitle="Request submitted",this.modalMessage="There is an",this.subMessage="issue, check it once",this.isWarning=!0,this.openModal())})}rejectLeave(e){this.leaveRequestID=e||0,this.errorMessage="",this.isSubmitted=!1,this.openRejectModal()}openRejectModal(){const e=document.getElementById("rejectModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideRejectModal(){const e=this.renderer.selectRootElement("#rejectModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).hide(),this.renderer.setAttribute(e,"aria-hidden","true"),this.getPendingLeaves()}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.getPendingLeaves()}onModalClose(){this.isModalVisible=!1,this.isAppprove?this.hideWarningModal():this.hideModal()}rejectLeaveRequest(){if(this.isSubmitted=!1,this.form.valid){const{rejectReason:e}=this.form.value;this._httpService.post("/api/leaveRequest/rejectLeaveRequest",{leaveRequestID:this.leaveRequestID,rejectReason:e}).subscribe({next:r=>{if(200==r.code&&0===r.apiCode){this.translate.get("modalTitle").subscribe(s=>{this.modalTitle=s});const a=localStorage.getItem("lang");this.modalMessage="","en"==a?this.translate.get("modalMessage").subscribe(s=>{this.modalMessage=s}):this.modalMessage="",this.modalMessage="",this.translate.get("rejectSubMessage").subscribe(s=>{this.subMessage=s}),this.closeModal(),this.hideRejectModal(),this.openModal()}else this.isSubmitted=!0,this.errorMessage=r.message},error:r=>{this.isSubmitted=!0}})}else this.isSubmitted=!0}getPendingLeaves(){this.isResponse=!1,this._httpService.getAll("/api/leaveRequest/GetAllLeaveRequestsWaiting").subscribe({next:e=>{200==e.code&&0===e.apiCode?(this.leaveInfo=e.data,this.isResponse=!0):(this.isResponse=!1,this.leaveInfo=[])},error:e=>{this.isResponse=!1,this.leaveInfo=[]}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-submissions"]],decls:6,vars:5,consts:[["noData",""],[4,"ngIf"],["class","wrapper",4,"ngIf"],[3,"isShownWholePage",4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"td-box"],[1,"td-table"],[1,"table-responsive"],[1,"table","mb-0"],[1,"action-button"],[4,"ngIf","ngIfElse"],[3,"close","isVisible","title","message","subMessage"],["id","rejectModal","tabindex","-1","role","dialog","aria-labelledby","rejectModalLabel","aria-modal","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[3,"ngSubmit","formGroup"],[1,"modal-body"],[1,"row"],[1,"col-12"],[1,"form-group"],["formControlName","rejectReason","maxlength","200","rows","5",1,"form-control"],["class","text-danger small",4,"ngIf"],[1,"modal-footer","df-btns"],["type","submit",1,"btn","btn-red"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn","btn-outline-gray",3,"click"],[4,"ngFor","ngForOf"],["class","leave-stat",4,"ngIf"],["style","cursor: pointer; margin-right: 2vw","class","vd-btn btn-green",3,"click",4,"ngIf"],["style","cursor: pointer;","class","vd-btn btn-red",3,"click",4,"ngIf"],[1,"leave-stat"],[1,"vd-btn","btn-green",2,"cursor","pointer","margin-right","2vw",3,"click"],[1,"vd-btn","btn-red",2,"cursor","pointer",3,"click"],["colspan","10"],[1,"text-center","mb-4","mt-4"],[1,"text-danger","small"],[3,"isShownWholePage"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,K3e,1,0,"app-notifications",1),M(2,"async"),oe(3,oBe,77,54,"div",2)(4,lBe,1,1,"app-unauthorized",3),fe(5,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,3,r.notificationService.notification$))?null:a.show),u(2),T("ngIf",1==r.canAccessPage),u(),T("ngIf",!r.canAccessPage)}},dependencies:[jr,bm,yi,Un,Zt,Ii,ri,ii,fi,Qr,da,Ur,Zr,Yo,_r,Hr,Zs,pn,dn,Bl],encapsulation:2})}return t})();const dBe=()=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],uBe=(t,n,e)=>({"type-1":t,"type-2":n,"type-default":e});function hBe(t,n){1&t&&fe(0,"app-notifications")}function fBe(t,n){if(1&t&&(m(0,"div"),v(1),p()),2&t){const e=n.$implicit;u(),P(e)}}function pBe(t,n){1&t&&fe(0,"span",37)}function mBe(t,n){1&t&&fe(0,"span",38)}function gBe(t,n){if(1&t&&(m(0,"span"),v(1),p()),2&t){const e=B().$implicit;u(),P(e.date.getDate())}}function _Be(t,n){if(1&t){const e=qe();m(0,"div",34),be("click",function(){const r=Ce(e).$implicit;return we(B(2).changeDate(r))}),oe(1,pBe,1,0,"span",35)(2,mBe,1,0,"span",36)(3,gBe,2,1,"span",1),p()}if(2&t){const e=n.$implicit,i=B(2);Ct("selected",e.date.toDateString()===i.currentDate.toDateString())("today",e.date.toDateString()===i.today.toDateString()),u(),T("ngIf",e.visitType&&(e.visitType.includes("Blue")||e.visitType.includes(i.visitType2))),u(),T("ngIf",e.visitType&&(e.visitType.includes("Red")||e.visitType.includes(i.visitType1))),u(),T("ngIf",e.date.getMonth()==i.currentDate.getMonth())}}function vBe(t,n){if(1&t&&(m(0,"option",39),v(1),p()),2&t){const e=n.$implicit;T("ngValue",e.name),u(),P(e.name)}}function yBe(t,n){if(1&t&&(m(0,"b"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Visitor")," : ",e.visitorName,"")}}function bBe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Ja("",E(2,3,"DateTime")," : ",e.visitDate," ",e.visitTime,"")}}function CBe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"VisitType")," : ",e.visitTypeName,"")}}function wBe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Noofdelegation")," : ",e.visitorsCount,"")}}function DBe(t,n){if(1&t&&(m(0,"p"),v(1),M(2,"translate"),p()),2&t){const e=B().$implicit;u(),Vi("",E(2,2,"Remarks")," : ",e.remarks,"")}}function SBe(t,n){if(1&t&&(m(0,"span",45),v(1),p()),2&t){const e=B().$implicit,i=B(3);T("ngClass",Hp(2,uBe,"Blue"===e.visitType,"Red"===e.visitType,e.leave_type!==i.leaveType1&&e.leave_type!==i.leaveType2)),u(),_e(" ","Blue"===e.visitType?i.visitType1:i.visitType2," ")}}function TBe(t,n){if(1&t&&(m(0,"div",41)(1,"div",42)(2,"div",43),oe(3,yBe,3,4,"b",1)(4,bBe,3,5,"p",1)(5,CBe,3,4,"p",1)(6,wBe,3,4,"p",1)(7,DBe,3,4,"p",1),p()(),oe(8,SBe,2,6,"span",44),p()),2&t){const e=n.$implicit;u(3),T("ngIf",e.visitorName),u(),T("ngIf",e.visitDate),u(),T("ngIf",e.visitTypeName),u(),T("ngIf",e.visitorsCount),u(),T("ngIf",e.visitorsCount),u(),T("ngIf",e.visitType)}}function xBe(t,n){if(1&t&&(Gn(0),oe(1,TBe,9,6,"div",40),qn()),2&t){const e=B(2);u(),T("ngForOf",e.visitorDetails)}}function MBe(t,n){1&t&&(m(0,"div",46)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function EBe(t,n){if(1&t){const e=qe();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4"),v(6),M(7,"translate"),p(),m(8,"ol",9)(9,"li",10)(10,"a",11),v(11),M(12,"translate"),p()(),m(13,"li",12),v(14),M(15,"translate"),p()()(),m(16,"a",13),v(17),M(18,"translate"),p()(),m(19,"div",14)(20,"form",15)(21,"div",16)(22,"div",17)(23,"div",18)(24,"button",19),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()-1),we(r.generateMonth())}),m(25,"span"),v(26,"\u2039"),p()(),m(27,"h2"),v(28),M(29,"date"),p(),m(30,"button",19),be("click",function(){Ce(e);const r=B();return r.currentDate.setMonth(r.currentDate.getMonth()+1),we(r.generateMonth())}),m(31,"span"),v(32,"\u203a"),p()()(),m(33,"div",20)(34,"div",21),oe(35,fBe,2,1,"div",22),p(),m(36,"div",23),oe(37,_Be,4,7,"div",24),p()(),m(38,"div"),fe(39,"span",25),m(40,"label",26),v(41),p(),fe(42,"span",27),m(43,"label",26),v(44),p()()(),m(45,"div",28)(46,"div",29)(47,"span")(48,"h5"),v(49),M(50,"translate"),p(),v(51),M(52,"date"),p(),m(53,"div",30)(54,"select",31),be("change",function(){return Ce(e),we(B().getVisitorDetails())}),oe(55,vBe,2,2,"option",32),p()()(),oe(56,xBe,2,1,"ng-container",33)(57,MBe,4,3,"ng-template",null,0,ni),p()()()()()()()}if(2&t){const e=Di(58),i=B();u(6),P(E(7,17,"VisitorsLogs")),u(4),T("routerLink","/home"),u(),P(E(12,19,"Home")),u(3),P(E(15,21,"VisitorsLogs")),u(2),T("routerLink","/home"),u(),P(E(18,23,"Back")),u(3),T("formGroup",i.form),u(8),P(hh(29,25,i.currentDate,"MMMM y")),u(7),T("ngForOf",Up(33,dBe)),u(2),T("ngForOf",i.visits),u(4),P(i.visitType1),u(3),P(i.visitType2),u(5),P(E(50,28,"Visitors")),u(2),_e("",hh(52,30,i.currentDate,"d-MMM-yyyy")," "),u(4),T("ngForOf",i.hostNames),u(),T("ngIf",i.visitorDetails&&i.visitorDetails.length>0)("ngIfElse",e)}}function IBe(t,n){1&t&&fe(0,"app-unauthorized",47),2&t&&T("isShownWholePage",!1)}let ABe=(()=>{class t{notificationService;_httpService;fb;router;translate;http;datePipe;destroy$=new nt;hostNames;canAccessPage;visitorDetails;visitorCalendar;currentDate=new Date;today=new Date;monthDays=[];form;visitType1="";visitType2="";visits=[];constructor(e,i,r,a,s,o,l){this.notificationService=e,this._httpService=i,this.fb=r,this.router=a,this.translate=s,this.http=o,this.datePipe=l,this.form=this.fb.group({hostName:["",at.required]}),this.translate.get("PrivateVisit").subscribe(d=>{this.visitType1=d}),this.translate.get("OfficialVisit").subscribe(d=>{this.visitType2=d})}ngOnInit(){this.generateMonth(!0),this.canViewVisitorsLog(),this.getHosts(this.currentDate),this.getManagementVisitorsCalender(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.generateMonth(!0),this.canViewVisitorsLog(),this.getHosts(this.currentDate),this.getManagementVisitorsCalender()})}getHosts(e){const i=this.datePipe.transform(e,"MM-dd-yyyy")||"";this._httpService.post("/api/visitorslog/get-hosts",{date:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.hostNames=r.data,this.form.patchValue({hostName:this.hostNames[0].name}),this.getVisitorDetails())},error:r=>{}})}getVisitorDetails(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"",{hostName:i}=this.form.value;this._httpService.post("/api/visitorslog/get-management-visitors-details",{date:e,hostName:i}).subscribe({next:r=>{this.visitorDetails=200==r.code&&0===r.apiCode?r.data:[]},error:r=>{this.visitorDetails=[]}})}getManagementVisitorsCalender(){const e=this.datePipe.transform(this.currentDate,"MM-dd-yyyy")||"";this._httpService.post("/api/visitorslog/get-management-visitors-calender",{date:e}).subscribe({next:i=>{200==i.code&&0===i.apiCode&&(this.visitorCalendar=i.data,this.visits=this.monthDays.map(r=>{const a=this.visitorCalendar?.filter(s=>this.isSameDate(this.convertToDate(s.date),r));return{date:r,visitType:a?.length>0?a.map(s=>s.visitType).join(", "):null}}))},error:i=>{}})}changeDate(e){this.currentDate=e.date,this.getHosts(this.currentDate)}canViewVisitorsLog(){this._httpService.getAll("/api/visitorslog/can-view-visitors-log").subscribe({next:e=>{200==e.code&&0===e.apiCode&&null!=e.data&&(this.canAccessPage=e.data)},error:e=>{}})}generateMonth(e){this.monthDays=[];const i=this.currentDate.getFullYear(),r=this.currentDate.getMonth(),a=new Date(i,r,1),s=new Date(i,r+1,0),o=a.getDay(),l=s.getDate();for(let d=o-1;d>=0;d--)this.monthDays.push(new Date(i,r,-d));for(let d=1;d<=l;d++)this.monthDays.push(new Date(i,r,d));for(;this.monthDays.length%7!=0;){const d=new Date(i,r,l+(this.monthDays.length-l+1));this.monthDays.push(d)}e||(this.currentDate=a),this.visits=this.monthDays.map(d=>({date:d,visitType:null})),this.getManagementVisitorsCalender()}isSameDate(e,i){return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()&&e.getDate()===i.getDate()}convertToDate(e){const[i,r,a]=e.split("/").map(Number);return new Date(a,r-1,i)}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G(An),G(cn),G($n),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-visitors-log"]],features:[fn([es])],decls:6,vars:5,consts:[["noData",""],[4,"ngIf"],["class","wrapper",4,"ngIf"],[3,"isShownWholePage",4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","p-0","full-width"],[3,"formGroup"],[1,"visiters-log-sec"],[1,"visiters-log-cal"],[1,"vl-select"],[1,"arrow-button","text-center",3,"click"],[1,"calendar"],[1,"weekdays"],[4,"ngFor","ngForOf"],[1,"days-v1"],[3,"selected","today","click",4,"ngFor","ngForOf"],[1,"visitor-log-circle","type-1"],[1,"visitType"],[1,"visitor-log-circle","type-2"],[1,"visiters-log-list"],[1,"vl-date"],[1,"form-group"],["formControlName","hostName",1,"form-select",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[3,"click"],["class","visitor-log-circle type-1 margin-right-5",4,"ngIf"],["class","visitor-log-circle type-2 margin-right-5",4,"ngIf"],[1,"visitor-log-circle","type-1","margin-right-5"],[1,"visitor-log-circle","type-2","margin-right-5"],[3,"ngValue"],["class","vl-info",4,"ngFor","ngForOf"],[1,"vl-info"],[1,"vl-dtls"],[1,"vl-dtls-info"],["class","vl-type",3,"ngClass",4,"ngIf"],[1,"vl-type",3,"ngClass"],[1,"text-center","mb-4","mt-4"],[3,"isShownWholePage"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,hBe,1,0,"app-notifications",1),M(2,"async"),oe(3,EBe,59,34,"div",2)(4,IBe,1,1,"app-unauthorized",3),fe(5,"app-footer")),2&i){let a;
1u(),T("ngIf",null==(a=E(2,3,r.notificationService.notification$))?null:a.show),u(2),T("ngIf",1==r.canAccessPage),u(),T("ngIf",0==r.canAccessPage)}},dependencies:[jr,yi,oa,Un,Zt,Ii,es,bm,fi,Qr,uc,hc,zo,Ur,Zr,_r,Hr,pn,dn,ri,ii,hi,ui],encapsulation:2})}return t})();function kBe(t,n){if(1&t&&(m(0,"div",11)(1,"div",12)(2,"h4",13),v(3),M(4,"translate"),p(),m(5,"p"),v(6),M(7,"translate"),p(),fe(8,"img",14),m(9,"div",15)(10,"span"),v(11),M(12,"translate"),p(),m(13,"p"),fe(14,"img",16),v(15),p()(),m(16,"a",7),v(17),M(18,"translate"),p()()()),2&t){const e=B();u(3),P(E(4,6,"PACIHeader")),u(3),_e("",E(7,8,"PACISubHeader")," "),u(5),P(E(12,10,"Timeoutafter")),u(4),_e(" ",e.displayTime,""),u(),T("routerLink","/profile"),u(),P(E(18,12,"Cancel"))}}function NBe(t,n){if(1&t){const e=qe();m(0,"div",11)(1,"h4",13),v(2),M(3,"translate"),p(),m(4,"form",17),be("ngSubmit",function(){return Ce(e),we(B().UpdateEmployeePaciInfo())}),m(5,"div",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"label"),v(10),M(11,"translate"),p(),fe(12,"input",22),p()(),m(13,"div",20)(14,"div",21)(15,"label"),v(16),M(17,"translate"),p(),fe(18,"input",23),p()(),m(19,"div",20)(20,"div",21)(21,"label"),v(22),M(23,"translate"),p(),fe(24,"input",24),p()(),m(25,"div",20)(26,"div",21)(27,"label"),v(28),M(29,"translate"),p(),m(30,"div",25),fe(31,"input",26)(32,"img",27),p()()()()(),m(33,"div",28)(34,"button",29),v(35),M(36,"translate"),p(),m(37,"a",30),v(38),M(39,"translate"),p()()()()}if(2&t){const e=B();u(2),P(E(3,9,"VerifyPersonalDetails")),u(2),T("formGroup",e.form),u(6),P(E(11,11,"EnglishName")),u(6),P(E(17,13,"ArabicName")),u(6),P(E(23,15,"CivilIDnumber")),u(6),P(E(29,17,"ResidencyExpiryDate")),u(7),P(E(36,19,"Confirm")),u(2),T("routerLink","/profile"),u(),P(E(39,21,"Cancel"))}}let RBe=(()=>{class t{renderer;fb;_httpService;router;translate;form;timer=300;displayTime="05:00";interval;essRefId="";isAccepted=!1;paciResponse={};phone1="";countdownInterval;paciCheckInterval;hasNavigated=!1;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";title="";constructor(e,i,r,a,s){this.renderer=e,this.fb=i,this._httpService=r,this.router=a,this.translate=s,this.essRefId="",this.isAccepted=!1,this.translate.get("modalTitle").subscribe(o=>{this.modalTitle=o}),this.translate.get("modalMessage").subscribe(o=>{this.modalMessage=o}),this.translate.get("successMessage").subscribe(o=>{this.subMessage=o}),this.translate.get("UpdateWithPaci").subscribe(o=>{this.title=o}),this.form=this.fb.group({essRefId:[""],profile:this.fb.group({nameArabic:[{value:"",disabled:!0}],nameEnglish:[{value:"",disabled:!0}],recidancyExpiryDate:[{value:"",disabled:!0}],civilID:[{value:"",disabled:!0}]})})}byPassPaci(){return{data:{resultCode:1,userAction:1,profileData:{nameEnglish:"JAMAL ARIF BARAKA",nameArabic:"\u062c\u0645\u0627\u0644 \u0639\u0627\u0631\u0641 \u0628\u0627\u0631\u0627\u0643\u0627",phone1:null,phone2:null,civilID:"298061901149",recidancyExpiryDate:"05/02/2026",nationalityName:"CAN",passportExpiryDate:null,passportNumber:null},addressData:null}}}ngOnInit(){this.PaciAuth()}PaciAuth(){this._httpService.post("/api/paci/RequestPACIAuthentication",{}).subscribe({next:e=>{this.startTimer(),200==e.code&&0===e.apiCode?(this.essRefId=e?.data?.essRefId,this.paciStartTimer()):(this.timer=0,this.isAccepted||(localStorage.setItem("PACIMessage",e?.message),this.navigateOnce(["retry",e?.data?.errorCode||e?.apiCode])))},error:e=>{this.timer=0,this.isAccepted||this.navigateOnce(["retry","81111"])}})}CheckPaciAuth(){this._httpService.getAll("/api/paci/CheckPACIAuthentication/"+this.essRefId).subscribe({next:i=>{200==i.code&&0===i.apiCode?i.data&&1==i.data.resultCode&&1==i.data.userAction?(this.paciResponse=i.data,this.isAccepted=!0,clearInterval(this.countdownInterval),clearInterval(this.paciCheckInterval),this.translate.get("VerifyPersonalDetails").subscribe(r=>{this.title=r}),this.timer=0,this.phone1=i.data.profileData.phone1,this.form.patchValue({essRefId:this.essRefId,profile:{nameEnglish:i.data.profileData.nameEnglish,nameArabic:i.data.profileData.nameArabic,recidancyExpiryDate:i.data.profileData.recidancyExpiryDate,civilID:i.data.profileData.civilID}}),this.form.disable()):i.data&&1!==i.data.resultCode&&1!=i.data.userAction&&(this.timer=0,this.isAccepted||this.navigateOnce(["retry","21111"])):(this.timer=0,this.isAccepted||this.navigateOnce(["retry",i?.data?.errorCode]))},error:i=>{this.timer=0,this.isAccepted||this.navigateOnce(["retry","81111"])}})}UpdateEmployeePaciInfo(){this._httpService.post("/api/paci/UpdateEmployeeInfoPACI",{essRefId:this.essRefId,phone1:this.phone1}).subscribe({next:a=>{200==a.code&&0===a.apiCode?this.openModal():this.isAccepted||this.navigateOnce(["retry","81111"])},error:a=>{this.isAccepted||this.router.navigate(["retry","81111"])}})}padZero(e){return e<10?"0"+e:e.toString()}updateDisplayTime(){const e=Math.floor(this.timer/60),i=this.timer%60;this.displayTime=`${this.padZero(e)}:${this.padZero(i)}`}paciStartTimer(){this.paciCheckInterval=setInterval(()=>{this.CheckPaciAuth()},5e3)}startTimer(){this.timer=300,this.updateDisplayTime(),this.countdownInterval=setInterval(()=>{this.timer>0?(this.timer--,this.updateDisplayTime()):(clearInterval(this.countdownInterval),this.countdownInterval=null,this.isAccepted||this.navigateOnce(["retry","16111"]))},1e3)}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["profile"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}navigateOnce(e){this.hasNavigated||(this.hasNavigated=!0,this.router.navigate(e))}ngOnDestroy(){this.countdownInterval&&clearInterval(this.countdownInterval),this.paciCheckInterval&&clearInterval(this.paciCheckInterval)}static \u0275fac=function(i){return new(i||t)(G(zn),G(Xr),G(wn),G(An),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-paci"]],decls:23,vars:17,consts:[[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],["class","whitebox cr-sec",4,"ngIf"],[3,"close","isVisible","t
1itle","message","subMessage"],[1,"whitebox","cr-sec"],[1,"sign-in-paci","login-popup-sec-paci"],[1,"brdr-hdng"],["src","./assets/images/paci-mobile.png",1,"paci-img"],[1,"time-out"],["src","./assets/images/timer.svg"],[3,"ngSubmit","formGroup"],["formGroupName","profile"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],["formControlName","nameEnglish","type","text","minlength","1","maxlength","50",1,"form-control"],["formControlName","nameArabic","type","text","minlength","1","maxlength","50",1,"form-control"],["formControlName","civilID","maxlength","12","type","text",1,"form-control"],[1,"iwi"],["formControlName","recidancyExpiryDate","disabled","","type","text",1,"form-control"],["src","./assets/images/calendar-gray.svg"],[1,"col-12","mb-4","mt-2"],["type","submit",1,"btn","btn-secondary"],[1,"btn","btn-outline-secondary","ff","margin-left-6vw",3,"routerLink"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4"),v(7),M(8,"translate"),p(),m(9,"ol",5)(10,"li",6)(11,"a",7),v(12),M(13,"translate"),p()(),m(14,"li",8),v(15),M(16,"translate"),p(),m(17,"li",8),v(18),p()()()(),oe(19,kBe,19,14,"div",9)(20,NBe,40,23,"div",9),p()(),m(21,"app-modal",10),be("close",function(){return r.onModalClose()}),p()(),fe(22,"app-footer")),2&i&&(u(7),P(E(8,11,"PACI")),u(4),T("routerLink","/profile"),u(),P(E(13,13,"Home")),u(3),P(E(16,15,"MyProfile")),u(3),P(r.title),u(),T("ngIf",!r.isAccepted),u(),T("ngIf",r.isAccepted),u(),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage))},dependencies:[ri,ii,Zs,hi,ui,fi,Qr,da,Ur,Zr,fc,Yo,_r,Hr,tm,Zt,dn,Bl],encapsulation:2})}return t})();class zBe{constructor(){this.change=new Xe,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}defaultId(){return this.DEFAULT_ID}register(n){return null==n.id&&(n.id=this.DEFAULT_ID),this.instances[n.id]?this.updateInstance(n):(this.instances[n.id]=n,!0)}updateInstance(n){let e=!1;for(let i in this.instances[n.id])n[i]!==this.instances[n.id][i]&&(this.instances[n.id][i]=n[i],e=!0);return e}getCurrentPage(n){return this.instances[n]?this.instances[n].currentPage:1}setCurrentPage(n,e){if(this.instances[n]){let i=this.instances[n];e<=Math.ceil(i.totalItems/i.itemsPerPage)&&1<=e&&(this.instances[n].currentPage=e,this.change.emit(n))}}setTotalItems(n,e){this.instances[n]&&0<=e&&(this.instances[n].totalItems=e,this.change.emit(n))}setItemsPerPage(n,e){this.instances[n]&&(this.instances[n].itemsPerPage=e,this.change.emit(n))}getInstance(n=this.DEFAULT_ID){return this.instances[n]?this.clone(this.instances[n]):{}}clone(n){var e={};for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i]);return e}}let q9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=bn({type:t}),t.\u0275inj=Ft({providers:[zBe],imports:[[yi]]}),t})();function YBe(t,n){1&t&&fe(0,"app-notifications")}function $Be(t,n){1&t&&fe(0,"img",24),2&t&&T("src",B().$implicit.templateImageUrl,js)}function WBe(t,n){1&t&&fe(0,"img",25)}function GBe(t,n){if(1&t&&(m(0,"a",16)(1,"div",17),oe(2,$Be,1,1,"img",18)(3,WBe,1,0,"img",19),fe(4,"img",20),p(),m(5,"div",21)(6,"b"),v(7),p(),m(8,"div",22)(9,"h6"),v(10),p()(),m(11,"p"),v(12),p(),m(13,"span")(14,"a",23),v(15),M(16,"translate"),p()()()()),2&t){const e=n.$implicit;ba("routerLink","/Advertisements-Details/",e.id,""),u(2),T("ngIf",e.templateImageUrl),u(),T("ngIf",!e.templateImageUrl),u(),ba("routerLink","/Advertisements-Details/",e.id,""),u(3),P(e.publishedOnFormatted),u(3),P(e.title),u(2),P(e.body),u(2),ba("routerLink","/Advertisements-Details/",e.id,""),u(),P(E(16,12,"ViewDetails"))}}function qBe(t,n){if(1&t){const e=qe();m(0,"a",29),be("click",function(){Ce(e);const r=B(3);return we(r.goToPage(r.page-1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Prev")))}function KBe(t,n){if(1&t){const e=qe();m(0,"a",29),be("click",function(){const r=Ce(e).$implicit;return we(B(3).goToPage(r))}),v(1),p()}if(2&t){const e=n.$implicit;Ct("active",e===B(3).page),u(),_e(" ",e," ")}}function ZBe(t,n){if(1&t){const e=qe();m(0,"a",29),be("click",function(){Ce(e);const r=B(3);return we(r.goToPage(r.page+1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Next")))}function QBe(t,n){if(1&t&&(m(0,"div",26),oe(1,qBe,3,3,"a",27)(2,KBe,2,3,"a",28)(3,ZBe,3,3,"a",27),p()),2&t){const e=B(2);u(),T("ngIf",e.page>1),u(),T("ngForOf",e.pageNumbers),u(),T("ngIf",e.page<e.totalPages)}}function XBe(t,n){if(1&t&&(Gn(0),m(1,"div",13),oe(2,GBe,17,14,"a",14),p(),oe(3,QBe,4,3,"div",15),qn()),2&t){const e=B();u(2),T("ngForOf",e.advertisements),u(),T("ngIf",e.totalRecords>e.itemsPerPage)}}function JBe(t,n){1&t&&(m(0,"div",30)(1,"h6"),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}let e4e=(()=>{class t{notificationService;_httpService;translate;advertisements;page=1;itemsPerPage=10;totalRecords=0;totalPages=0;pageNumbers=[];destroy$=new nt;constructor(e,i,r){this.notificationService=e,this._httpService=i,this.translate=r}ngOnInit(){this.GetAllAdvertisements(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.GetAllAdvertisements()})}GetAllAdvertisements(){this._httpService.post("/api/Advertisements/GetAllAdvertisements",{pageNumber:this.page,pageSize:this.itemsPerPage}).subscribe({next:r=>{200==r.code&&0===r.apiCode&&(this.advertisements=r.data,this.totalRecords=r.totalRecords,this.calculateTotalPages(),this.generatePageNumbers())},error:r=>{}})}calculateTotalPages(){this.totalPages=Math.ceil(this.totalRecords/this.itemsPerPage)}onPageChange(e){this.page=e,this.GetAllAdvertisements()}generatePageNumbers(){const e=[];for(let i=1;i<=this.totalPages;i++)e.push(i);this.pageNumbers=e}goToPage(e){e>=1&&e<=this.totalPages&&(this.page=e,this.GetAllAdvertisements())}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-advertisements"]],decls:24,vars:14,consts:[["noData",""],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["routerLink","/home"],["aria-current","page",1,"breadcrumb-item","active"],[1,"whitebox","full-width"],[4,"ngIf","ngIfElse"],[1,"adv-list"],["style","margin-top:2vw","class","adv-sec",3,"routerLink",4,"ngFor","ngForOf"],["class","pagination mt-4",4,"ngIf"],[1,"adv-sec",2,"margin-top","2vw",3,"routerLink"],[1,"adv-bnr"],["class","img-fluid",3,"src",4,"ngIf"],["src","./assets/images/ad-default.png","class","img-fluid",4,"ngIf"],["src","./assets/images/ad-arrow.svg",1,"adv-arrow",3,"routerLink"],[1,"adv-info"],[1,"survey-dtls-info-cont"],["rel","noopener noreferrer",2,"text-decoration","none",3,"routerLink"],[1,"img-fluid",3,"src"],["src","./assets/images/ad-default.png",1,"img-fluid"],[1,"pagination","mt-4"],[3,"click",4,"ngIf"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],[1,"text-center","mb-4","mt-4"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,YBe,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()()(),m(19,"div",11),oe(20,XBe,4,2,"ng-container",12)(21,JBe,4,3,"ng-template",null,0,ni),p()()()(),fe(23,"app-footer")),2&i){let a;const s=Di(22);
1u(),T("ngIf",null==(a=E(2,6,r.notificationService.notification$))?null:a.show),u(8),P(E(10,8,"advertisements")),u(5),P(E(15,10,"Home")),u(3),P(E(18,12,"advertisements")),u(3),T("ngIf",r.advertisements&&r.advertisements.length>0)("ngIfElse",s)}},dependencies:[jr,yi,Un,Zt,Ii,ri,ii,pn,dn,q9,hi,ui],encapsulation:2})}return t})();const t4e=t=>["/",t];function n4e(t,n){1&t&&fe(0,"app-notifications")}function i4e(t,n){if(1&t&&fe(0,"img",19),2&t){const e=B();T("src",null==e.advertisements?null:e.advertisements.templateImageUrl,js)}}function r4e(t,n){1&t&&fe(0,"img",20)}function a4e(t,n){if(1&t&&(m(0,"span")(1,"a",21),v(2),M(3,"translate"),p()()),2&t){const e=B();u(),T("routerLink",In(4,t4e,null==e.advertisements?null:e.advertisements.moreLink)),u(),P(E(3,2,"ReadMore"))}}let s4e=(()=>{class t{notificationService;_httpService;translate;route;advertisements;destroy$=new nt;constructor(e,i,r,a){this.notificationService=e,this._httpService=i,this.translate=r,this.route=a}ngOnInit(){const e=this.route.snapshot.paramMap.get("id")||"";this.GetAdvertisementById(e),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(i=>{const r=this.route.snapshot.paramMap.get("id")||"";this.GetAdvertisementById(r)})}GetAdvertisementById(e){this._httpService.getAll("/api/Advertisements/GetAdvertisementById/"+e).subscribe({next:a=>{200==a.code&&0===a.apiCode&&(this.advertisements=a.data)},error:a=>{}})}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-details"]],decls:36,vars:23,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[1,"whitebox","full-width"],[1,"adv-dtls"],[1,"survey-dtls-info-cont"],[1,"advetisement-details-p"],[1,"adv-image-wrapper"],["class","img-fluid",3,"src",4,"ngIf"],["src","./assets/images/ad-default.png","class","img-fluid",4,"ngIf"],[1,"ads-font-size"],[1,"img-fluid",3,"src"],["src","./assets/images/ad-default.png",1,"img-fluid"],["target","_blank","rel","noopener noreferrer",2,"text-decoration","none",3,"routerLink"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,n4e,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(17),M(18,"translate"),p()()(),m(19,"a",10),v(20),M(21,"translate"),p()(),m(22,"div",11)(23,"div",12)(24,"div",13)(25,"h4"),v(26),p(),m(27,"p",14),v(28),p()(),m(29,"div",15),oe(30,i4e,1,1,"img",16)(31,r4e,1,0,"img",17),p(),m(32,"p",18),v(33),p(),oe(34,a4e,4,6,"span",0),p()()()()(),fe(35,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,13,r.notificationService.notification$))?null:a.show),u(8),_e("",E(10,15,"AdvertisementDetails")," "),u(4),T("routerLink","/home"),u(),P(E(15,17,"Home")),u(3),P(E(18,19,"AdvertisementDetails")),u(2),T("routerLink","/Advertisements"),u(),P(E(21,21,"Back")),u(6),P(null==r.advertisements?null:r.advertisements.title),u(2),P(null==r.advertisements?null:r.advertisements.publishedOnFormatted),u(2),T("ngIf",null==r.advertisements?null:r.advertisements.templateImageUrl),u(),T("ngIf",!(null!=r.advertisements&&r.advertisements.templateImageUrl)),u(2),_e(" ",null==r.advertisements?null:r.advertisements.body," "),u(),T("ngIf",null==r.advertisements?null:r.advertisements.moreLink)}},dependencies:[jr,yi,Zt,Ii,ri,ii,pn,dn,hi,ui],encapsulation:2})}return t})();function o4e(t,n){}class eD{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let K9=(()=>{class t extends eI{constructor(e,i,r,a,s,o,l,d){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=a,this._interactivityChecker=s,this._ngZone=o,this._overlayRef=l,this._focusMonitor=d,this._platform=ye(qa),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=ye(gr),this._injector=ye(Ln),this._isDestroyed=!1,this.attachDomPortal=h=>{this._portalOutlet.hasAttached();const _=this._portalOutlet.attachDomPortal(h);return this._contentAttached(),_},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){const i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||vl(()=>{const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}},{injector:this._injector})}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=$1(),a=this._elementRef.nativeElement;
1(!r||r===this._document.body||r===a||a.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=$1();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=$1()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(KE),G(Tn,8),G(eD),G(qE),G(_t),G(hC),G(sC))}}static{this.\u0275cmp=vt({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&En(mv,7),2&i){let a;Vt(a=Ut())&&(r._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&Kt("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[Sn],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&oe(0,o4e,0,0,"ng-template",0)},dependencies:[mv],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})();class n2{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new nt,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!sm(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const Z9=new Qe("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=ye(El);return()=>t.scrollStrategies.block()}}),l4e=new Qe("DialogData"),c4e=new Qe("DefaultDialogConfig");let u4e=0,h4e=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,a,s,o){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new nt,this._afterOpenedAtThisLevel=new nt,this._ariaHiddenElements=new Map,this.afterAllClosed=Wp(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(iu(void 0))),this._scrollStrategy=o}open(e,i){(i={...this._defaultOptions||new eD,...i}).id=i.id||"cdk-dialog-"+u4e++,i.id&&this.getDialogById(i.id);const a=this._getOverlayConfig(i),s=this._overlay.create(a),o=new n2(s,i),l=this._attachContainer(s,o,i);return o.containerInstance=l,this._attachDialogContent(e,o,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.closed.subscribe(()=>this._removeOpenDialog(o,!0)),this.afterOpened.next(o),o}closeAll(){r2(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){r2(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),r2(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new L8({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),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,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const a=r.injector||r.viewContainerRef?.injector,s=[{provide:eD,useValue:r},{provide:n2,useValue:i},{provide:hC,useValue:e}];let o;r.container?"function"==typeof r.container?o=r.container:(o=r.container.type,s.push(...r.container.providers(r))):o=K9;const l=new dC(o,r.viewContainerRef,Ln.create({parent:a||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,a){if(e instanceof Pr){const s=this._createInjector(a,i,r,void 0);let o={$implicit:a.data,dialogRef:i};a.templateContext&&(o={...o,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),r.attachTemplatePortal(new k8(e,null,o,s))}else{const s=this._createInjector(a,i,r,this._injector),o=r.attachComponentPortal(new dC(e,a.viewContainerRef,s,a.componentFactoryResolver));i.componentRef=o,i.componentInstance=o.instance}}_createInjector(e,i,r,a){const s=e.injector||e.viewContainerRef?.injector,o=[{provide:l4e,useValue:e.data},{provide:n2,useValue:i}];return e.providers&&("function"==typeof e.providers?o.push(...e.providers(i,e,r)):o.push(...e.providers)),e.direction&&(!s||!s.get(Nh,null,{optional:!0}))&&o.push({provide:Nh,useValue:{value:e.direction,change:At()}}),Ln.create({parent:s||a,providers:o})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEac
1h((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const a=i[r];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(Fe(El),Fe(Ln),Fe(c4e,8),Fe(t,12),Fe(uC),Fe(Z9))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function r2(t,n){let e=t.length;for(;e--;)n(t[e])}function f4e(t,n){}class a2{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const s2="mdc-dialog--open",Q9="mdc-dialog--opening",X9="mdc-dialog--closing";let J9=(()=>{class t extends K9{constructor(e,i,r,a,s,o,l,d,h){super(e,i,r,a,s,o,l,h),this._animationMode=d,this._animationStateChanged=new Xe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?tY(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?tY(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(eY,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Q9,s2)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(s2),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(s2),this._animationsEnabled?(this._hostElement.style.setProperty(eY,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(X9)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Q9,X9)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(e){const i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(G(Bt),G(KE),G(Tn,8),G(a2),G(qE),G(_t),G(hC),G($c,8),G(sC))}}static{this.\u0275cmp=vt({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){2&i&&(ws("id",r._config.id),Kt("aria-modal",r._config.ariaModal)("role",r._
vendor: 5,376 bytes, line 1
1config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Ct("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[Sn],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1),oe(2,f4e,0,0,"ng-template",2),p()())},dependencies:[mv],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}
1.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return t})();const eY="--mat-dialog-transition-duration";function tY(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?o8(t.substring(0,t.length-2)):t.endsWith("s")?1e3*o8(t.substring(0,t.length-1)):"0"===t?0:null}var tD=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(tD||{});class o2{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new nt,this._beforeClosed=new nt,this._state=tD.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Cn(r=>"opened"===r.state),Yn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Cn(r=>"closed"===r.state),Yn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),dm(this.backdropClick(),this.keydownEvents().pipe(Cn(r=>27===r.keyCode&&!this.disableClose&&!sm(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function nY(t,n,e){return t._closeInteractionType=n,t.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Cn(e=>"closing"===e.state),Yn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=tD.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=tD.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const g4e=new Qe("MatMdcDialogData"),_4e=new Qe("mat-mdc-dialog-default-options"),iY=new Qe("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=ye(El);return()=>t.scrollStrategies.block()}});let y4e=0,l2=(()=>{class t{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}constructor(e,i,r,a,s,o,l,d){this._overlay=e,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new nt,this._afterOpenedAtThisLevel=new nt,this.dialogConfigClass=a2,this.afterAllClosed=Wp(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(iu(void 0))),this._dialog=i.get(h4e),this._dialogRefConstructor=o2,this._dialogContainerType=J9,this._dialogDataToken=g4e}open(e,i){let r;(i={...this._defaultOptions||new a2,...i}).id=i.id||"mat-mdc-dialog-"+y4e++,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:eD,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,o,l)=>
1(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:o.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=a.componentRef,r.componentInstance=a.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(Fe(El),Fe(Ln),Fe(Jd,8),Fe(_4e,8),Fe(iY),Fe(t,12),Fe(uC),Fe($c,8))}}static{this.\u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),nD=(()=>{class t{_http;ngZone;router;translate;dialog;_router;_token;translateKeyPrefix="common.HTTPErrorMsgs.";options="Bearer "+sessionStorage.getItem("token");constructor(e,i,r,a,s){this._http=e,this.ngZone=i,this.router=r,this.translate=a,this.dialog=s,this._router=this.router}Patterns={Email:/^[^\s@]{1,64}@[^\s@]{1,255}\.[^\s@]{2,}$/,MobileNumber:/^[1,2,3,4,5,6,7,8,9]{1}[0-9]{7,9}$/,AlphabetsAndDigits:/^[a-zA-Z0-9]+$/,ForCaseDescription:/^[a-zA-Z0-9.,!?'"\r ]+$/,AlphabetsAndDigitsAndSpace:/^[a-zA-Z0-9 ]+$/,AlphabetsAndDigitsAndSpaceAndEnter:/^[a-zA-Z0-9\r ]+$/,IND_MobileNumber:/^((\+91)?|91)?[789][0-9]{9}/,Password:/(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*#?&^_-]).{8,}/,CivilId:/^(1|2|3)((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)(\d{5})$/};numberOnly(e){const i=e.which?e.which:e.keyCode;return!(i>31&&(i<48||i>57))}checkZeroStarting(e){return!!e.startsWith("0")}isLoggedIn(){return""!=sessionStorage.getItem("registrationId")&&null!=sessionStorage.getItem("registrationId")}alphabetsOnly(e){const i=e.which?e.which:e.keyCode;return i>64&&i<91||i>96&&i<123||13==i}notAllowSpecialCharacters(e){var i=new RegExp(this.Patterns.AlphabetsAndDigits);return this.applyValidation(e,i)}forCaseDescription(e){var i=new RegExp(this.Patterns.ForCaseDescription);return this.applyValidation(e,i)}notAllowSpecialCharactersButAllowSpace(e){var i=new RegExp(this.Patterns.AlphabetsAndDigitsAndSpace);return this.applyValidation(e,i)}applyValidation(e,i){var r=String.fromCharCode(e.charCode?e.charCode:e.which);return!!i.test(r)||(e.preventDefault(),!1)}maskString(e){return""!=e&&null!=e?e.slice(0,6)+"*".repeat(e.length-6):""}notAllowSpecialCharactersButAllowSpaceAndEnter(e){var i=new RegExp(this.Patterns.AlphabetsAndDigitsAndSpaceAndEnter);return this.applyValidation(e,i)}standardDateFormat(e){return""!=e&&null!=e?"object"!=typeof e&&e.includes("T")?new Date(e).toISOString():e.toDate().toISOString():null}formattedDate(e){const i=e.getFullYear();let r=e.getMonth()+1,a=e.getDate();return a<10&&(a="0"+a),r<10&&(r="0"+r),a+"/"+r+"/"+i}convertToLocalTime(e){if(e){let i=new Date(e);if(i)return this.formattedDate(i)}return"-"}SetDigitSeparation(e){return e.toLocaleString("en-US")}getRequiredValidationMessage(e){return e+" "+this.translate.instant("common.is_required")}getValidMessage(e){return this.translate.instant("common.please_enter_valid")+" "+e}toggleBorderForValidation(){$(".mdc-notched-outline").removeClass("is-invalid")}static \u0275fac=function(i){return new(i||t)(Fe($n),Fe(_t),Fe(An),Fe(cn),Fe(l2))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const T4e=t=>({width:t});function x4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",11),v(2),M(3,"translate"),p()),2&t){const e=B(2);u(2),Vi(" ",E(3,2,"Survey_page.ParticipatedOn")," ",e.surveyResult.participatedOnFormatted," ")}}function M4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",12),v(2),M(3,"translate"),M(4,"translate"),p()),2&t){const e=B(2);u(2),Ja(" ",E(3,3,"Survey_page.Survey")," ",E(4,5,"Survey_page.ExpiresOn")," ",e.surveyResult.surveyExpiresOnFormatted," ")}}function E4e(t,n){if(1&t&&(m(0,"div")(1,"div",16),fe(2,"input",17),m(3,"div",18),v(4),p(),m(5,"div",19)(6,"span"),fe(7,"img",20),v(8),p(),v(9),p()(),m(10,"div",21),fe(11,"div",22),p()()),2&t){const e=n.$implicit,i=B(3);u(2),ba("name","question",e.answerId,""),ba("id","option",e.answerId,""),T("checked",e.isParticipated),u(),ba("for","option",e.answerId,""),u(),_e(" ",e.answerText,""),u(4),_e(" ",e.responseCount," "),u(),_e(" ",e.participationPercentage," % "),u(2),T("ngClass",i.getProgressBarClass(e.participationPercentage))("ngStyle",In(12,T4e,e.participationPercentage+"%"))}}function I4e(t,n){if(1&t&&(m(0,"div",13)(1,"div",14),v(2),p(),oe(3,E4e,12,14,"div",15),p()),2&t){const e=n.$implicit;
1u(2),P(e.questionText),u(),T("ngForOf",e.answers)}}function A4e(t,n){if(1&t){const e=qe();m(0,"div",2)(1,"div",3)(2,"h5"),v(3),p(),m(4,"button",4),be("click",function(){return Ce(e),we(B().closeModal())}),m(5,"span",5),fe(6,"img",6),p()()(),m(7,"div",7)(8,"div",8),oe(9,x4e,4,4,"p",9)(10,M4e,5,7,"p",9)(11,I4e,4,2,"div",10),p()()()}if(2&t){const e=B();u(3),P(e.surveyResult.surveyName),u(6),T("ngIf",""!=e.surveyResult.participatedOnFormatted),u(),T("ngIf",""!=e.surveyResult.surveyExpiresOnFormatted),u(),T("ngForOf",e.surveyResult.questions)}}let k4e=(()=>{class t{notificationService;activeModal;_sharedService;_httpService;modalService;surveyResult;constructor(e,i,r,a,s){this.notificationService=e,this.activeModal=i,this._sharedService=r,this._httpService=a,this.modalService=s}closeModal(){this.activeModal.close()}ngOnInit(){}getProgressBarClass(e){return e>=70?"bg-success":e>=40?"bg-warning":"bg-secondary"}static \u0275fac=function(i){return new(i||t)(G(Si),G(Gh),G(nD),G(wn),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-survey-result-modal"]],inputs:{surveyResult:"surveyResult"},decls:2,vars:1,consts:[["id","SurveyModal",1,"modal-dialog"],["class","",4,"ngIf"],[1,""],[1,"modal-header","border-0","pb-0"],["type","button",1,"close",3,"click"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[1,"modal-body","pt-0"],[1,"survey-dtls-info-cont"],[4,"ngIf"],["class","sq-container",4,"ngFor","ngForOf"],["src","./assets/images/user-check.svg"],["src","./assets/images/survey-calendar.svg"],[1,"sq-container"],[1,"question"],[4,"ngFor","ngForOf"],[1,"option"],["type","radio","disabled","",3,"name","id","checked"],[1,"label",2,"width","200px","overflow-wrap","break-word","word-wrap","break-word",3,"for"],[1,"stats"],["src","./assets/images/user-Union.svg"],[1,"bar"],[1,"fill",3,"ngClass","ngStyle"]],template:function(i,r){1&i&&(m(0,"div",0),oe(1,A4e,12,4,"div",1),p()),2&i&&(u(),T("ngIf",r.surveyResult))},dependencies:[pn,dn,Zt,Un,oa,G0],encapsulation:2})}return t})();function N4e(t,n){1&t&&fe(0,"app-notifications")}function R4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",23),v(2),M(3,"translate"),p()),2&t){const e=B().$implicit;u(2),Vi(" ",E(3,2,"Survey_page.ParticipatedOn")," ",e.participatedOnFormatted," ")}}function P4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",24),v(2),M(3,"translate"),p()),2&t){const e=B().$implicit;u(2),Vi(" ",E(3,2,e.isExpired?"Expiredon":"Expireson")," ",e.expiresOnFormatted," ")}}function O4e(t,n){if(1&t){const e=qe();m(0,"a",25),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).GetSurveyResultById(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),_e(" ",E(2,1,"Survey_page.viewsurveyresult")," "))}function L4e(t,n){if(1&t){const e=qe();m(0,"a",26),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).GetSurveyById(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),_e(" ",E(2,1,"Survey_page.startsurvey")," "))}function F4e(t,n){if(1&t&&(m(0,"div",16)(1,"div",17)(2,"div",18),fe(3,"img",19),p(),m(4,"div",20)(5,"h6"),v(6),p(),oe(7,R4e,4,4,"p",0)(8,P4e,4,4,"p",0),p()(),oe(9,O4e,3,3,"a",21)(10,L4e,3,3,"a",22),p()),2&t){const e=n.$implicit;u(6),P(e.title),u(),T("ngIf",""!=e.participatedOnFormatted),u(),T("ngIf",""!=e.expiresOnFormatted),u(),T("ngIf",e.isExpired||!e.isExpired&&e.isParticipated),u(),T("ngIf",!e.isExpired&&!e.isParticipated)}}function B4e(t,n){if(1&t&&(m(0,"div",14),oe(1,F4e,11,5,"div",15),p()),2&t){const e=B();u(),T("ngForOf",e.surveyList)}}function V4e(t,n){1&t&&(m(0,"div",2)(1,"p"),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e(" ",E(3,1,"NoDataFound"),""))}function U4e(t,n){if(1&t){const e=qe();m(0,"a",25),be("click",function(){Ce(e);const r=B(2);return we(r.goToPage(r.page-1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Prev")))}function H4e(t,n){if(1&t){const e=qe();m(0,"a",25),be("click",function(){const r=Ce(e).$implicit;return we(B(2).goToPage(r))}),v(1),p()}if(2&t){const e=n.$implicit;Ct("active",e===B(2).page),u(),_e(" ",e," ")}}function j4e(t,n){if(1&t){const e=qe();m(0,"a",25),be("click",function(){Ce(e);const r=B(2);return we(r.goToPage(r.page+1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Next")))}function z4e(t,n){if(1&t&&(m(0,"div",27),oe(1,U4e,3,3,"a",21)(2,H4e,2,3,"a",28)(3,j4e,3,3,"a",21),p()),2&t){const e=B();u(),T("ngIf",e.page>1),u(),T("ngForOf",e.pageNumbers),u(),T("ngIf",e.page<e.totalPages)}}let Y4e=(()=>{class t{notificationService;_sharedService;_httpService;modalService;surveyList;surveyResult;page=1;itemsPerPage=10;totalRecords=0;totalPages=0;pageNumbers=[];constructor(e,i,r,a){this.notificationService=e,this._sharedService=i,this._httpService=r,this.modalService=a}ngOnInit(){this.GetAllSurvey()}GetAllSurvey(){this._httpService.post("/api/Survey/GetAllSurvey",{pageNumber:this.page,pageSize:this.itemsPerPage}).subscribe({next:r=>{r.code==wa.Ok&&null!=r.data?(this.surveyList=r.data,this.surveyList.forEach(a=>{a.participatedOn&&(a.participatedOn=this._sharedService.convertToLocalTime(a.participatedOn)),a.expiresOn=this._sharedService.convertToLocalTime(a.expiresOn),a.isParticipated=1==a.isParticipated,a.isExpired=1==a.isExpired}),this.totalRecords=r.totalRecords,this.calculateTotalPages(),this.generatePageNumbers()):this.surveyList=[]},error:r=>{console.log("error in GetAllSurvey "+r)}})}GetSurveyResultById(e){this._httpService.getAll("/api/Survey/GetSurveyResultById/"+e).subscribe({next:i=>{i.code==wa.Ok&&(this.surveyResult=i.data,null!=this.surveyResult?(this.surveyResult.questions.forEach(r=>
1{r.answers.forEach(a=>{a.isParticipated=1==a.isParticipated})}),this.openSurveyResultModal()):this.notificationService.show("No Data Found","error"))},error:i=>{}})}GetSurveyById(e){this._httpService.getAll("/api/Survey/GetSurveyById/"+e).subscribe({next:i=>{if(i.code==wa.Ok){let r=i.data;null!=r?this.openSurveyModal(r):this.notificationService.show("No Data Found","error")}},error:i=>{console.log("error in GetSurveyById "+i)}})}openSurveyModal(e){const i=this.modalService.open(LU,{backdrop:"static",keyboard:!1});i.componentInstance.survey=e,i.componentInstance.refreshData.subscribe(()=>{this.GetAllSurvey()})}openSurveyResultModal(){this.modalService.open(k4e,{backdrop:"static",keyboard:!1}).componentInstance.surveyResult=this.surveyResult}calculateTotalPages(){this.totalPages=Math.ceil(this.totalRecords/this.itemsPerPage)}onPageChange(e){this.page=e,this.GetAllSurvey()}generatePageNumbers(){const e=[];for(let i=1;i<=this.totalPages;i++)e.push(i);this.pageNumbers=e}goToPage(e){e>=1&&e<=this.totalPages&&(this.page=e,this.GetAllSurvey())}static \u0275fac=function(i){return new(i||t)(G(Si),G(nD),G(wn),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-survey-list"]],decls:26,vars:20,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],["class","survey-dtls-sec",4,"ngIf"],["class","container",4,"ngIf"],["class","pagination mt-4",4,"ngIf"],[1,"survey-dtls-sec"],["class","survey-dtls",4,"ngFor","ngForOf"],[1,"survey-dtls"],[1,"survey-dtls-info"],[1,"survey-dtls-info-img"],["src","./assets/images/survey-card.svg"],[1,"survey-dtls-info-cont"],[3,"click",4,"ngIf"],["class","start-survey",3,"click",4,"ngIf"],["src","./assets/images/user-check.svg"],["src","./assets/images/survey-calendar.svg"],[3,"click"],[1,"start-survey",3,"click"],[1,"pagination","mt-4"],[3,"active","click",4,"ngFor","ngForOf"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,N4e,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(17),M(18,"translate"),p()()(),m(19,"a",10),v(20),M(21,"translate"),p()(),oe(22,B4e,2,1,"div",11)(23,V4e,4,3,"div",12)(24,z4e,4,3,"div",13),p()()(),fe(25,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,10,r.notificationService.notification$))?null:a.show),u(8),_e("",E(10,12,"Survey")," "),u(4),T("routerLink","/home"),u(),P(E(15,14,"Home")),u(3),P(E(18,16,"Survey")),u(2),T("routerLink","/home"),u(),P(E(21,18,"Back")),u(2),T("ngIf",r.surveyList&&r.surveyList.length>0),u(),T("ngIf",0==r.surveyList.length),u(),T("ngIf",r.totalRecords>r.itemsPerPage)}},dependencies:[ri,ii,Zt,hi,ui,pn,dn,jr,yi,Un,Ii,fi],encapsulation:2})}return t})();function $4e(t,n){if(1&t&&(m(0,"div",5)(1,"h4",6),v(2),M(3,"translate"),p(),m(4,"p"),v(5),p(),fe(6,"img",7)(7,"div",8),m(8,"a",9),v(9),M(10,"translate"),p()()),2&t){const e=B();u(2),P(E(3,4,"PACIHeader")),u(3),_e("",e.PACIMessage," "),u(3),T("routerLink","/profile"),u(),P(E(10,6,"Cancel"))}}function W4e(t,n){1&t&&(m(0,"div",5)(1,"h4",6),v(2),M(3,"translate"),p(),m(4,"p"),v(5),M(6,"translate"),p(),fe(7,"img",7)(8,"div",8),m(9,"a",9),v(10),M(11,"translate"),p()()),2&t&&(u(2),P(E(3,4,"PACIHeader")),u(3),P(E(6,6,"LeadNoDevice")),u(4),T("routerLink","/profile"),u(),P(E(11,8,"Cancel")))}function G4e(t,n){if(1&t){const e=qe();m(0,"div",5)(1,"h4"),v(2),M(3,"translate"),p(),m(4,"p"),v(5),M(6,"translate"),p(),fe(7,"img",7)(8,"div",8),m(9,"button",10),be("click",function(){return Ce(e),we(B().getProfile())}),v(10),M(11,"translate"),p()()}2&t&&(u(2),P(E(3,3,"LeadPACIReject")),u(3),P(E(6,5,"LeadCannotProceed")),u(5),P(E(11,7,"Retry")))}function q4e(t,n){if(1&t){const e=qe();m(0,"div",5)(1,"h4"),v(2),M(3,"translate"),p(),m(4,"p"),v(5),M(6,"translate"),p(),fe(7,"img",7)(8,"div",8),m(9,"button",10),be("click",function(){return Ce(e),we(B().getProfile())}),v(10),M(11,"translate"),p()()}2&t&&(u(2),P(E(3,3,"PACIHeader")),u(3),P(E(6,5,"LeadSorryMsg")),u(5),P(E(11,7,"Retry")))}function K4e(t,n){if(1&t){const e=qe();m(0,"div",5)(1,"h4",6),v(2),M(3,"translate"),p(),m(4,"p"),v(5),M(6,"translate"),p(),fe(7,"img",7)(8,"div",8),m(9,"p"),v(10),M(11,"translate"),p(),m(12,"button",10),be("click",function(){return Ce(e),we(B().getProfile())}),v(13),M(14,"translate"),p()()}2&t&&(u(2),P(E(3,4,"PACIHeader")),u(3),P(E(6,6,"LeadPushNotice")),u(5),P(E(11,8,"LeadPushNotice")),u(3),P(E(14,10,"Retry")))}let Z4e=(()=>{class t{router;translate;route;Code="";PACIMessage=null;constructor(e,i,r){this.router=e,this.translate=i,this.route=r,this.Code=this.route.
1snapshot.paramMap.get("Code")||"",this.PACIMessage=localStorage.getItem("PACIMessage")}getProfile(){this.router.navigate(["paci"])}static \u0275fac=function(i){return new(i||t)(G(An),G(cn),G(Da))};static \u0275cmp=vt({type:t,selectors:[["app-retry"]],decls:11,vars:5,consts:[[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"whitebox","cr-sec",2,"margin-top","3vw"],["class","sign-in-paci login-popup-sec-paci",4,"ngIf"],[1,"sign-in-paci","login-popup-sec-paci"],[1,"brdr-hdng"],["src","./assets/images/paci-mobile.png",1,"paci-img"],[1,"time-out"],[3,"routerLink"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3),oe(5,$4e,11,8,"div",4)(6,W4e,12,10,"div",4)(7,G4e,12,9,"div",4)(8,q4e,12,9,"div",4)(9,K4e,15,12,"div",4),p()()()(),fe(10,"app-footer")),2&i&&(u(5),T("ngIf","5006"==r.Code),u(),T("ngIf","800"==r.Code||"910"==r.Code),u(),T("ngIf","21111"==r.Code),u(),T("ngIf","81111"==r.Code),u(),T("ngIf","16111"==r.Code))},dependencies:[dn,Zt,ri,ii,hi,ui],encapsulation:2})}return t})();const Q4e=t=>({width:t});function X4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",13),v(2),M(3,"translate"),p()),2&t){const e=B(2);u(2),Vi(" ",E(3,2,"Survey_page.ParticipatedOn")," ",e.pollResult.participatedOnFormatted," ")}}function J4e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",14),v(2),M(3,"translate"),M(4,"translate"),p()),2&t){const e=B(2);u(2),Ja(" ",E(3,3,"Poll.poll")," ",E(4,5,"Survey_page.ExpiresOn")," ",e.pollResult.surveyExpiresOn," ")}}function e5e(t,n){if(1&t&&(m(0,"div")(1,"div",15),fe(2,"input",16),m(3,"div",17),v(4),p(),m(5,"div",18)(6,"span"),fe(7,"img",19),v(8),p(),v(9),p()(),m(10,"div",20),fe(11,"div",21),p()()),2&t){const e=n.$implicit,i=B(2);u(2),ba("name","question",e.answerId,""),ba("id","option",e.answerId,""),T("checked",e.isParticipated),u(),ba("for","option",e.answerId,""),u(),_e(" ",e.answerText," "),u(4),_e(" ",e.responseCount," "),u(),_e(" ",e.participationPercentage," % "),u(2),T("ngClass",i.getProgressBarClass(e.participationPercentage))("ngStyle",In(12,Q4e,e.participationPercentage+"%"))}}function t5e(t,n){if(1&t){const e=qe();m(0,"div",2)(1,"div",3)(2,"h5"),v(3),M(4,"translate"),p(),m(5,"button",4),be("click",function(){return Ce(e),we(B().closeModal())}),m(6,"span",5),fe(7,"img",6),p()()(),m(8,"div",7)(9,"div",8),oe(10,X4e,4,4,"p",9)(11,J4e,5,7,"p",9),m(12,"div",10)(13,"div",11),v(14),p(),oe(15,e5e,12,14,"div",12),p()()()()}if(2&t){const e=B();u(3),_e(" ",E(4,5,"Poll.pollresult")," "),u(7),T("ngIf",""!=e.pollResult.participatedOnFormatted),u(),T("ngIf",null!=e.pollResult.surveyExpiresOn&&"-"!=e.pollResult.surveyExpiresOn),u(3),P(e.pollResult.pollQuestion),u(),T("ngForOf",e.pollResult.answers)}}let n5e=(()=>{class t{notificationService;activeModal;_sharedService;_httpService;modalService;pollResult;constructor(e,i,r,a,s){this.notificationService=e,this.activeModal=i,this._sharedService=r,this._httpService=a,this.modalService=s}closeModal(){this.activeModal.close()}getProgressBarClass(e){return e>=70?"bg-success":e>=40?"bg-warning":"bg-secondary"}static \u0275fac=function(i){return new(i||t)(G(Si),G(Gh),G(nD),G(wn),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-poll-result-modal"]],inputs:{pollResult:"pollResult"},decls:2,vars:1,consts:[["id","SurveyModal",1,"modal-dialog"],["class","",4,"ngIf"],[1,""],[1,"modal-header"],["type","button",1,"close",3,"click"],["aria-hidden","true"],["src","./assets/images/sidebar-close-icon.svg"],[1,"modal-body","pt-0"],[1,"survey-dtls-info-cont"],[4,"ngIf"],[1,"sq-container"],[1,"question"],[4,"ngFor","ngForOf"],["src","./assets/images/user-check.svg",1,"me-2"],["src","./assets/images/survey-calendar.svg",1,"me-2"],[1,"option"],["type","radio",3,"name","id","checked"],[1,"label",3,"for"],[1,"stats"],["src","./assets/images/user-Union.svg"],[1,"bar"],[1,"fill",3,"ngClass","ngStyle"]],template:function(i,r){1&i&&(m(0,"div",0),oe(1,t5e,16,7,"div",1),p()),2&i&&(u(),T("ngIf",r.pollResult))},dependencies:[pn,dn,Zt,Un,oa,G0],encapsulation:2})}return t})();function i5e(t,n){1&t&&fe(0,"app-notifications")}function r5e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",22),v(2),M(3,"translate"),p()),2&t){const e=B().$implicit;u(2),Vi(" ",E(3,2,"Survey_page.ParticipatedOn")," ",e.participatedOn," ")}}function a5e(t,n){if(1&t&&(m(0,"p"),fe(1,"img",23),v(2),M(3,"translate"),p()),2&t){const e=B().$implicit;u(2),Vi(" ",E(3,2,e.isExpired?"Expiredon":"Expireson")," ",e.expiresOnFormatted," ")}}function s5e(t,n){if(1&t){const e=qe();m(0,"a",24),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).GetPollResultById(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),_e(" ",E(2,1,"Poll.viewpollresult")," "))}function o5e(t,n){if(1&t){const e=qe();m(0,"a",25),be("click",function(){Ce(e);const r=B().$implicit;return we(B(2).GetPollById(r.id))}),v(1),M(2,"translate"),p()}2&t&&(u(),_e(" ",E(2,1,"Poll.startpoll")," "))}function l5e(t,n){if(1&t&&(m(0,"div",15)(1,"div",16)(2,"div",17),fe(3,"img",18),p(),m(4,"div",19)(5,"h6"),v(6),p(),oe(7,r5e,4,4,"p",0)(8,a5e,4,4,"p",0),p()(),oe(9,s5e,3,3,"a",20)(10,o5e,3,3,"a",21),p()),2&t){const e=n.$implicit;u(6),P(e.question),u(),T("ngIf",null!=e.participatedOn),u(),T("ngIf",null!=e.expiresOnFormatted&&""!=e.expiresOnFormatted),u(),T("ngIf",e.isExpired||!e.isExpired&&e.isParticipated),u(),T("ngIf",!e.isExpired&&!e.isParticipated)}}function c5e(t,n){if(1&t){const e=qe();m(0,"a",24),be("click",function(){Ce(e);const r=B(3);return we(r.goToPage(r.page-1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Prev")))}function d5e(t,n){if(1&t){const e=qe();m(0,"a",24),be("click",function(){const r=Ce(e).$implicit;return we(B(3).goToPage(r))}),v(1),p()}if(2&t){const e=n.$implicit;Ct("active",e===B(3).page),u(),_e(" ",e," ")}}function u5e(t,n){if(1&t){const e=qe();m(0,"a",24),be("click",function(){Ce(e);const r=B(3);return we(r.goToPage(r.page+1))}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"Next")))}function h5e(t,n){if(1&t&&(m(0,"div",26),oe(1,c5e,3,3,"a",20)(2,d5e,2,3,"a",27)(3,u5e,3,3,"a",20),p()),2&t){const e=B(2);u(),T("ngIf",e.page>1),u(),T("ngForOf",e.pageNumbers),u(),T("ngIf",e.page<e.totalPages)}}function f5e(t,n){if(1&t&&(m(0,"div",2)(1,"div",12),oe(2,l5e,11,5,"div",13),p(),oe(3,h5e,4,3,"div",14),p()),2&t){const e=B();u(2),T("ngForOf",e.pollList),u(),T("ngIf",e.totalRecords>e.itemsPerPage)}}function p5e(t,n){1&t&&(m(0,"div",2)(1,"p"),v(2),M(3,"translate"),p()()),2&t&&(u(2),_e(" ",E(3,1,"NoDataFound"),""))}let m5e=(()=>{class t{notificationService;_sharedService;_httpService;modalService;pollList;pollResult;page=1;itemsPerPage=10;totalRecords=0;totalPages=0;pageNumbers=[];constructor(e,i,r,a){this.notificationService=e,this._sharedService=i,this._httpService=r,this.modalService=a}ngOnInit(){this.GetAllPoll()}GetAllPoll(){this._httpService.post("/api/Survey/GetAllPoll",{pageNumber:this.page,pageSize:this.itemsPerPage}).subscribe({next:r=>{r.code==wa.Ok&&null!=r.data?(this.pollList=r.data,this.pollList.forEach(a=>{a.isParticipated=1==a.isParticipated,a.isExpired=1==a.isExpired}),this.totalRecords=r.totalRecords,this.calculateTotalPages(),this.generatePageNumbers()):this.pollList=[]},error:r=>{console.log("error in GetAllPoll "+r)}})}GetPollResultById(e){this._httpService.getAll("/api/Survey/GetPollResultById/"+e).subscribe({next:i=>{i.code==wa.Ok&&(this.pollResult=i.data,null!=this.pollResult&&null!=this.pollResult.answers?(this.pollResult.answers.forEac
1h(r=>{r.isParticipated=1==r.isParticipated}),this.openPollResultModal()):this.notificationService.show("No Data Found","error"))},error:i=>{console.log("error in getpollResultbyid "+i)}})}GetPollById(e){this._httpService.getAll("/api/Survey/GetPollById/"+e).subscribe({next:i=>{if(i.code==wa.Ok){let r=i.data;null!=r?this.openPollModal(r):this.notificationService.show("No Data Found","error")}},error:i=>{console.log("error in GetPollById "+i)}})}openPollModal(e){const i=this.modalService.open(FU,{backdrop:"static",keyboard:!1});i.componentInstance.poll=e,i.componentInstance.refreshData.subscribe(()=>{this.GetAllPoll()})}openPollResultModal(){this.modalService.open(n5e,{backdrop:"static",keyboard:!1}).componentInstance.pollResult=this.pollResult}openPollResultModal_old(){$("#ViewpollResultModal").modal("show")}getProgressBarClass(e){return e>=70?"bg-success":e>=40?"bg-warning":"bg-secondary"}calculateTotalPages(){this.totalPages=Math.ceil(this.totalRecords/this.itemsPerPage)}onPageChange(e){this.page=e,this.GetAllPoll()}generatePageNumbers(){const e=[];for(let i=1;i<=this.totalPages;i++)e.push(i);this.pageNumbers=e}goToPage(e){e>=1&&e<=this.totalPages&&(this.page=e,this.GetAllPoll())}static \u0275fac=function(i){return new(i||t)(G(Si),G(nD),G(wn),G(sd))};static \u0275cmp=vt({type:t,selectors:[["app-poll-list"]],decls:25,vars:17,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],["routerLink","/home"],["aria-current","page",1,"breadcrumb-item","active"],["routerLink","/home",1,"page-back-link"],["class","container",4,"ngIf"],[1,"survey-dtls-sec"],["class","survey-dtls",4,"ngFor","ngForOf"],["class","pagination mt-4",4,"ngIf"],[1,"survey-dtls"],[1,"survey-dtls-info"],[1,"survey-dtls-info-img"],["src","./assets/images/poll-card.svg"],[1,"survey-dtls-info-cont"],[3,"click",4,"ngIf"],["class","start-survey",3,"click",4,"ngIf"],["src","./assets/images/user-check.svg"],["src","./assets/images/survey-calendar.svg"],[3,"click"],[1,"start-survey",3,"click"],[1,"pagination","mt-4"],[3,"active","click",4,"ngFor","ngForOf"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,i5e,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(17),M(18,"translate"),p()()(),m(19,"a",10),v(20),M(21,"translate"),p()(),oe(22,f5e,4,2,"div",11)(23,p5e,4,3,"div",11),p()()(),fe(24,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,7,r.notificationService.notification$))?null:a.show),u(8),_e("",E(10,9,"Poll.poll")," "),u(5),P(E(15,11,"Home")),u(3),P(E(18,13,"Poll.poll")),u(3),P(E(21,15,"Back")),u(2),T("ngIf",r.pollList&&r.pollList.length>0),u(),T("ngIf",0==r.pollList.length)}},dependencies:[ri,ii,Zt,hi,ui,pn,dn,jr,yi,Un,Ii,fi],encapsulation:2})}return t})(),Ci=(()=>{class t{tokenService;_httpService;translate;notificationService;router;route;cachedService;location;constructor(e,i,r,a,s,o,l,d){this.tokenService=e,this._httpService=i,this.translate=r,this.notificationService=a,this.router=s,this.route=o,this.cachedService=l,this.location=d}canActivate(e){if(this.tokenService.isTokenExpired())return At(!0);{const i=e.data.functionId;return i?this.cachedService.initializePermissions().pipe(Ot(()=>{const a=this.cachedService.getallowedRollFunctions.find(s=>s.functionId===i);return 1==a?.isAllowed||(401===a?.status||this.router.navigate(["/unauthorized"]),!1)})):At(!0)}}static \u0275fac=function(i){return new(i||t)(Fe(Fh),Fe(wn),Fe(cn),Fe(Si),Fe(An),Fe(Da),Fe(OC),Fe(Jd))};static \u0275prov=We({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const g5e=["dp"],_5e=["to"],v5e=()=>({containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1});function y5e(t,n){1&t&&fe(0,"app-notifications")}function b5e(t,n){1&t&&(m(0,"div",23),v(1),M(2,"translate"),p()),2&t&&(u(),_e(" ",E(2,1,"DutyResumeReg")," "))}let C5e=(()=>{class t{notificationService;_httpService;fb;http;renderer;router;translate;route;datePipe;datepicker;todatepicker;minDate=new Date;form;isSubmitted=!1;errorMessage="";title="Extend Leave request";leaveType=0;isModalVisible=!1;modalTitle="";modalMessage="";subMessage="";leaveBalance="";currentLeave={};bsDatepickerConfig;destroy$=new nt;constructor(e,i,r,a,s,o,l,d,h){this.notificationService=e,this._httpService=i,this.fb=r,this.http=a,this.renderer=s,this.router=o,this.translate=l,this.route=d,this.datePipe=h,this.translate.get("modalTitle").subscribe(_=>{this.modalTitle=_}),this.translate.get("DutyLeaverequesthas").subscribe(_=>{this.modalMessage=_}),this.translate.get("successMessage").subscribe(_=>{this.subMessage=_}),this.translate.get("DutyLeaverequest").subscribe(_=>{this.title=_}),this.bsDatepickerConfig={containerClass:"theme-dark-blue",dateInputFormat:"DD/MM/YYYY",showWeekNumbers:!1},this.form=this.fb.group({startDate:[{value:"",disabled:!0}],endDate:[{value:"",disabled:!0}],type:[{value:"",disabled:!0}],dutyResumeDate:[{value:"",disabled:!0}]})}
1ngOnInit(){this.getExtendLeave(),this.translate.onLangChange.pipe(Lt(this.destroy$)).subscribe(e=>{this.translate.get("modalTitle").subscribe(i=>{this.modalTitle=i}),this.translate.get("DutyLeaverequesthas").subscribe(i=>{this.modalMessage=i}),this.translate.get("successMessage").subscribe(i=>{this.subMessage=i}),this.translate.get("DutyLeaverequest").subscribe(i=>{this.title=i}),this.getExtendLeave()})}getExtendLeave(){const e=JSON.parse(localStorage.getItem("DutyResumeItem")||"");this.form.patchValue({startDate:e?.leaveStartDate||""}),this.form.patchValue({endDate:e?.leaveEndDate||""}),this.form.patchValue({type:e?.requestType}),this.form.patchValue({dutyResumeDate:e?.dutyResumeDate||""})}getLeaveBalance(){this._httpService.getAll("/api/leaveRequest/GetCurrentLeave").subscribe({next:e=>{if(200==e.code&&0===e.apiCode&&(this.currentLeave=e.data,e.data)){var i=this.datePipe.transform(this.currentLeave.startDate,"MM/dd/yyyy")||"",r=this.datePipe.transform(this.currentLeave.endDate,"MM/dd/yyyy")||"";this.form.patchValue({startDate:i}),this.form.patchValue({endDate:r}),this.form.patchValue({type:this.currentLeave.type})}},error:e=>{this.isSubmitted=!0,this.errorMessage=e.statusText}})}onSubmit(){this.isSubmitted=!1;const e=this.form.get("dutyResumeDate")?.value,i=co(e);this._httpService.post("/api/leaveRequest/CreatDutyResumption",{returnDate:i}).subscribe({next:r=>{200==r.code&&0===r.apiCode?this.openModal():(this.isSubmitted=!0,this.errorMessage=r.message)},error:r=>{this.isSubmitted=!0,this.errorMessage=r}})}openModal(){this.isModalVisible=!0;const e=document.getElementById("exampleModal");(bootstrap.Modal.getInstance(e)||new bootstrap.Modal(e)).show()}hideModal(){const e=this.renderer.selectRootElement("#exampleModal");this.renderer.removeClass(e,"show"),this.renderer.setStyle(e,"display","none"),this.renderer.setAttribute(e,"aria-hidden","true"),this.router.navigate(["my-requests"])}onModalClose(){this.isModalVisible=!1,this.hideModal()}openDatePicker(){this.datepicker.show()}openToDatePicker(){this.todatepicker.show()}preventTyping(e){["Backspace","Delete","Tab","ArrowLeft","ArrowRight"].includes(e.key)||e.preventDefault()}goBack(){this.router.navigate(["my-requests"])}static \u0275fac=function(i){return new(i||t)(G(Si),G(wn),G(Xr),G($n),G(zn),G(An),G(cn),G(Da),G(es))};static \u0275cmp=vt({type:t,selectors:[["app-duty-resume"]],viewQuery:function(i,r){if(1&i&&(En(g5e,5),En(_5e,5)),2&i){let a;Vt(a=Ut())&&(r.datepicker=a.first),Vt(a=Ut())&&(r.todatepicker=a.first)}},features:[fn([es])],decls:74,vars:46,consts:[["dp","bsDatepicker"],[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb","bt-brdr"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"page-back-link",3,"routerLink"],[3,"ngSubmit","formGroup"],[1,"whitebox","cr-sec"],[1,"brdr-hdng"],[1,"row","mt-4"],[1,"col-lg-6"],[1,"form-group"],[1,"iwi"],["formControlName","startDate","type","text","id","fromDate","disabled","",1,"form-control"],["src","./assets/images/calendar-gray.svg"],["formControlName","endDate","type","text","id","fromDate","autocomplete","off",1,"form-control"],["formControlName","type","type","text","id","fromDate",1,"form-control"],[1,"text-danger","small"],["formControlName","dutyResumeDate","type","text","bsDatepicker","","id","toDate","autocomplete","off",1,"form-control",3,"keydown","bsConfig"],["src","./assets/images/calendar-gray.svg",3,"click"],["class","text-danger small",4,"ngIf"],[1,"row"],[1,"col-12"],["type","submit",1,"btn","btn-secondary","justify-content-center"],["type","button",1,"btn","btn-outline-secondary","ff","margin-left-6vw","justify-content-center",3,"click"],[3,"close","isVisible","title","message","subMessage"]],template:function(i,r){if(1&i){const a=qe();fe(0,"app-navbar"),oe(1,y5e,1,0,"app-notifications",1),M(2,"async"),m(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",7)(12,"li",8)(13,"a",9),v(14),M(15,"translate"),p()(),m(16,"li",10),v(17),M(18,"translate"),p()()(),m(19,"a",11),v(20),M(21,"translate"),p()(),m(22,"form",12),be("ngSubmit",function(){return Ce(a),we(r.onSubmit())}),m(23,"div",13)(24,"h4",14),v(25),M(26,"translate"),p(),m(27,"div",15)(28,"div",16)(29,"div",17)(30,"label"),v(31),M(32,"translate"),p(),m(33,"div",18),fe(34,"input",19)(35,"img",20),p()()(),m(36,"div",16)(37,"div",17)(38,"label"),v(39),M(40,"translate"),p(),m(41,"div",18),fe(42,"input",21)(43,"img",20),p()()(),m(44,"div",16)(45,"div",17)(46,"label"),v(47),M(48,"translate"),p(),m(49,"div",18),fe(50,"input",22)(51,"img",20),p()()(),m(52,"div",16)(53,"div",17)(54,"label"),v(55),M(56,"translate"),m(57,"span",23),v(58," *"),p()(),m(59,"div",18)(60,"input",24,0),be("keydown",function(o){return Ce(a),we(r.preventTyping(o))}),p(),m(62,"img",25),be("click",function(){return Ce(a),we(r.openDatePicker())}),p(),oe(63,b5e,3,3,"div",26),p()()()(),m(64,"div",27)(65,"div",28)(66,"button",29),v(67),M(68,"translate"),p(),m(69,"button",30),be("click",function(){return Ce(a),we(r.goBack())}),v(70),M(71,"translate"),p()()()()()()(),m(72,"app-modal",31),be("close",function(){return Ce(a),we(r.onModalClose())}),p()(),fe(73,"app-footer")}if(2&i){let a,s;
1u(),T("ngIf",null==(a=E(2,21,r.notificationService.notification$))?null:a.show),u(8),P(E(10,23,"CreateRequest")),u(4),T("routerLink","/home"),u(),P(E(15,25,"Home")),u(3),P(E(18,27,"DutyResume")),u(2),T("routerLink","/my-requests"),u(),P(E(21,29,"Back")),u(2),T("formGroup",r.form),u(3),P(E(26,31,"DutyResume")),u(6),P(E(32,33,"FromDate")),u(8),P(E(40,35,"ToDate")),u(8),P(E(48,37,"Type")),u(8),_e("",E(56,39,"DutyResumeDate")," "),u(5),T("bsConfig",Up(45,v5e)),u(3),T("ngIf",(null==(s=r.form.get("dutyResumeDate"))?null:s.invalid)&&(null==(s=r.form.get("dutyResumeDate"))?null:s.touched)||!(null!=(s=r.form.get("dutyResumeDate"))&&s.value)&&r.isSubmitted),u(4),P(E(68,41,"Submit")),u(3),P(E(71,43,"Cancel")),u(2),T("isVisible",r.isModalVisible)("title",r.modalTitle)("message",r.modalMessage)("subMessage",r.subMessage)}},dependencies:[jr,yi,Zt,Ii,ri,hi,ui,ii,fi,Qr,da,Ur,Zr,_r,Hr,Zs,pn,dn,Bl,wu,pd],encapsulation:2})}return t})();function w5e(t,n){1&t&&fe(0,"app-notifications")}function D5e(t,n){if(1&t){const e=qe();m(0,"a",18),be("click",function(){return Ce(e),we(B().MarkAllAsRead())}),v(1),M(2,"translate"),p()}2&t&&(u(),P(E(2,1,"MarkAllAsRead")))}function S5e(t,n){if(1&t){const e=qe();m(0,"div",19)(1,"div",20)(2,"p"),v(3),m(4,"span"),v(5),p(),m(6,"span"),v(7),p()()(),m(8,"div",21)(9,"h5",22),be("click",function(){const r=Ce(e).$implicit;return we(B().goToDetailNotificationPage(r))}),v(10),p(),fe(11,"p",23),p()()}if(2&t){const e=n.$implicit,i=B();Ys(""==e.readOnFormatted?"noti-unmarked":"noti-marked"),u(3),_e(" ",i.getDateArray(e.createdOnFormatted)[0]," "),u(2),_e(" ",i.getDateArray(e.createdOnFormatted)[1]," "),u(2),P(i.getDateArray(e.createdOnFormatted)[2]),u(3),P(e.title),u(),T("innerHTML",e.body,Pb)}}function T5e(t,n){1&t&&(m(0,"div")(1,"p",24),v(2),M(3,"translate"),p()()),2&t&&(u(2),P(E(3,1,"NoDataFound")))}function x5e(t,n){if(1&t){const e=qe();m(0,"a",22),be("click",function(){Ce(e);const r=B();return we(r.goToPage(r.page-1))}),v(1,"Prev"),p()}}function M5e(t,n){if(1&t){const e=qe();m(0,"a",22),be("click",function(){const r=Ce(e).$implicit;return we(B().goToPage(r))}),v(1),p()}if(2&t){const e=n.$implicit;Ct("active",e===B().page),u(),_e(" ",e," ")}}function E5e(t,n){if(1&t){const e=qe();m(0,"a",22),be("click",function(){Ce(e);const r=B();return we(r.goToPage(r.page+1))}),v(1,"Next"),p()}}let I5e=(()=>{class t{notificationService;router;_httpService;translate;notificationList;page=1;itemsPerPage=10;totalRecords=0;totalPages=0;pageNumbers=[];notificationCategoryEnum=fa;constructor(e,i,r,a){this.notificationService=e,this.router=i,this._httpService=r,this.translate=a}ngOnInit(){this.GetAllWebNotification()}GetAllWebNotification(){this._httpService.post("/api/Notifications/GetAllWebNotification",{pageNumber:this.page,pageSize:this.itemsPerPage}).subscribe({next:r=>{r.code==wa.Ok&&null!=r.data&&(this.notificationList=r.data,this.totalRecords=r.totalRecords,this.calculateTotalPages(),this.generatePageNumbers())},error:r=>{console.log("error in GetAllWebNotification "+r)}})}calculateTotalPages(){this.totalPages=Math.ceil(this.totalRecords/this.itemsPerPage)}onPageChange(e){this.page=e,this.GetAllWebNotification()}generatePageNumbers(){const e=[];for(let i=1;i<=this.totalPages;i++)e.push(i);this.pageNumbers=e}goToPage(e){e>=1&&e<=this.totalPages&&(this.page=e,this.GetAllWebNotification())}MarkAllAsRead(){this.WebNotificationMarkAllAsReadOnly()}WebNotificationMarkAllAsReadOnly(){this._httpService.post("/api/Notifications/WebNotificationMarkAllAsReadOnly",null).subscribe({next:e=>{},error:e=>{console.log("error in WebNotificationMarkAllAsReadOnly "+e)}})}WebNotificationMarkAsReadOnly(e){this._httpService.post("/api/Notifications/WebNotificationMarkAsReadOnly/"+e,null).subscribe({next:i=>{i.code==wa.Ok&&null!=i.data&&1==i.data&&this.GetAllWebNotification()},error:i=>{}})}getDateArray(e){if(e&&e.includes("/"))return e.split("/")}goToDetailNotificationPage(e){if(null!=e&&e.notificationCategoryId)switch(""==e.readOnFormatted&&this.WebNotificationMarkAsReadOnly(e.id),e.notificationCategoryId){case fa.Advertisement:this.router.navigate(["/Advertisements-Detail
1s",e.referenceId]);break;case fa.Survey:this.router.navigate(["/survey"]);break;case fa.Poll:this.router.navigate(["/poll"]);break;case fa.UrgentLeaveApporve_Employee:case fa.UrgentLeaveReject_Employee:case fa.SickLeave:case fa.UrgentLeave_Request_Employee:this.router.navigate(["/my-requests"]);break;case fa.UrgentLeave_Request_Supervisor:this.router.navigate(["/submissions"]);break;case fa.KFNotificationBulk:this.openDynamicUrl(e.externalUrl)}}openDynamicUrl(e){null!=e&&""!=e&&window.open(e,"_blank")}static \u0275fac=function(i){return new(i||t)(G(Si),G(An),G(wn),G(cn))};static \u0275cmp=vt({type:t,selectors:[["app-notification-list"]],decls:33,vars:22,consts:[[4,"ngIf"],[1,"wrapper"],[1,"container"],[1,"ptpb-spacing"],[1,"pt-w-sb"],[1,"pt-title"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"routerLink"],["aria-current","page",1,"breadcrumb-item","active"],[1,"whitebox","full-width"],[1,"noti-header"],["class","markall pt-3",3,"click",4,"ngIf"],[1,"recent-updates-sec","noti-list"],["class","recent-update",3,"class",4,"ngFor","ngForOf"],[1,"pagination","mt-4"],[3,"click",4,"ngIf"],[3,"active","click",4,"ngFor","ngForOf"],[1,"markall","pt-3",3,"click"],[1,"recent-update"],[1,"recent-update-date"],[1,"recent-update-info"],[3,"click"],[3,"innerHTML"],[1,"text-center"]],template:function(i,r){if(1&i&&(fe(0,"app-navbar"),oe(1,w5e,1,0,"app-notifications",0),M(2,"async"),m(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"h4"),v(9),M(10,"translate"),p(),m(11,"ol",6)(12,"li",7)(13,"a",8),v(14),M(15,"translate"),p()(),m(16,"li",9),v(17),M(18,"translate"),p()()()(),m(19,"div",10)(20,"div",11)(21,"h4"),v(22),M(23,"translate"),p(),oe(24,D5e,3,3,"a",12),p(),m(25,"div",13),oe(26,S5e,12,7,"div",14)(27,T5e,4,3,"div",0),p(),m(28,"div",15),oe(29,x5e,2,0,"a",16)(30,M5e,2,3,"a",17)(31,E5e,2,0,"a",16),p()()()()(),fe(32,"app-footer")),2&i){let a;u(),T("ngIf",null==(a=E(2,12,r.notificationService.notification$))?null:a.show),u(8),P(E(10,14,"Notifications")),u(4),T("routerLink","/home"),u(),P(E(15,16,"Home")),u(3),P(E(18,18,"Notifications")),u(5),P(E(23,20,"Notifications")),u(2),T("ngIf",r.notificationList&&r.notificationList.length>0),u(2),T("ngForOf",r.notificationList),u(),T("ngIf",r.notificationList&&0==r.notificationList.length),u(2),T("ngIf",r.page>1),u(),T("ngForOf",r.pageNumbers),u(),T("ngIf",r.page<r.totalPages)}},dependencies:[jr,yi,Un,Zt,Ii,ri,ii,pn,dn,q9,hi,ui],encapsulation:2})}return t})(),A5e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=vt({type:t,selectors:[["app-page-not-found"]],decls:15,vars:9,consts:[[1,"wrapper"],[1,"container"],[1,"text-center","p-4","mt-5","unauth_sec"],["src","./assets/images/404page.png","alt","Unauthorized Icon","width","100",1,"mb-4"],[1,"text-danger"],[1,"text-muted"],["routerLink","/home",1,"btn","btn-primary","mt-3"]],template:function(i,r){1&i&&(fe(0,"app-navbar"),m(1,"div",0)(2,"div",1)(3,"div",2),fe(4,"img",3),m(5,"h1",4),v(6),M(7,"translate"),p(),m(8,"p",5),v(9),M(10,"translate"),p(),m(11,"a",6),v(12),M(13,"translate"),p()()()(),fe(14,"app-footer")),2&i&&(u(6),P(E(7,3,"pagenotfound")),u(3),P(E(10,5,"pagenotfoundmsg")),u(3),P(E(13,7,"Unauthorized.gotohome")))},dependencies:[ri,ii,pn,dn],encapsulation:2})}return t})();const k5e=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:LPe},{path:"forget-password",component:p0e},{path:"reset-password",component:q3e},{path:"home",component:S0e,canActivate:[Ci]},{path:"leave-request/:type",component:qTe,canActivate:[Ci]},{path:"certificates",component:zye,canActivate:[Ci],data:{functionId:ho.Certificates}},{path:"loan-info",component:exe,canActivate:[Ci]},{path:"my-requests",component:DOe,canActivate:[Ci]},{path:"emergency-leave-request",component:_Te,canActivate:[Ci]},{path:"loans-grants",component:APe,canActivate:[Ci]},{path:"about-us",component:Tye},{path:"contact-us",component:pbe},{path:"my-attendance",component:cOe,canActivate:[Ci],data:{functionId:ho.MyAttendance}},{path:"operations-statistics",component:zOe,canActivate:[Ci]},{path:"visitors-log",component:ABe,canActivate:[Ci],data:{functionId:ho.VisitorsLogs}},{path:"director-missions",component:nOe,canActivate:[Ci],data:{functionId:ho.DirectorMissionLeave}},{path:"dept-missions",component:Lbe,canActivate:[Ci],data:{functionId:ho.DepartmentMissionLeave}},{path:"missions-dashboard",component:Ybe,canActivate:[Ci],data:{functionId:ho.DepartmentAssignments}},{path:"profile",component:R3e,canActivate:[Ci],data:{functionId:ho.Profile}},{path:"personal-info",component:TFe,canActivate:[Ci]},{path:"edit-personal-info",component:SFe,canActivate:[Ci]},{path:"qualification-info",component:F3e,canActivate:[Ci]},{path:"work-experience",component:H3e,canActivate:[Ci]},{path:"address",component:WOe,canActivate:[Ci]},{path:"edit-address",component:sLe,canActivate:[Ci]},{path:"family-info",component:jLe,canActivate:[Ci]},{path:"edit-family/:type/:id",component:BLe,canActivate:[Ci]},{path:"extend-leave-request",component:STe,canActivate:[Ci]},{path:"submissions",component:cBe,canActivate:[Ci],data:{functionId:ho.Submissions}},{path:"survey",component:Y4e,canActivate:[Ci],data:{functionId:ho.Surveys}},{path:"poll",component:m5e,canActivate:[Ci],data:{functionId:ho.Polls}},{path:"paci",component:RBe,canActivate:[Ci]},{path:"notifications",component:I5e,canActivate:[Ci]},{path:"Advertisements",component:e4e,canActivate:[Ci],data:{functionId:ho.Advertisements}}
1,{path:"Advertisements-Details/:id",component:s4e,canActivate:[Ci],data:{functionId:ho.Advertisements}},{path:"retry/:Code",component:Z4e},{path:"duty-resume",component:C5e,canActivate:[Ci]},{path:"unauthorized",component:bm},{path:"**",component:A5e,data:{subMessage:"PageNotFoundMsg",message:"PageNotFound"}}];let N5e=(()=>{class t{http;prefix;suffix;constructor(e,i="/assets/i18n/",r=".json"){this.http=e,this.prefix=i,this.suffix=r}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}static \u0275fac=function(i){return new(i||t)(Fe($n),Fe(String),Fe(String))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();function oY(t){return new Ye(3e3,!1)}function ku(t){switch(t.length){case 0:return new yv;case 1:return t[0];default:return new c6(t)}}function lY(t,n,e=new Map,i=new Map){const r=[],a=[];let s=-1,o=null;if(n.forEach(l=>{const d=l.get("offset"),h=d==s,_=h&&o||new Map;l.forEach((b,C)=>{let k=C,U=b;if("offset"!==C)switch(k=t.normalizePropertyName(k,r),U){case"!":U=e.get(C);break;case nd:U=i.get(C);break;default:U=t.normalizeStyleValue(C,k,U,r)}_.set(k,U)}),h||a.push(_),o=_,s=d}),r.length)throw function J5e(){return new Ye(3502,!1)}();return a}function c2(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&d2(e,"start",t)));break;case"done":t.onDone(()=>i(e&&d2(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&d2(e,"destroy",t)))}}function d2(t,n,e){const a=u2(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(a._data=s),a}function u2(t,n,e,i,r="",a=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:a,disabled:!!s}}function Co(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function cY(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const uVe=typeof document>"u"?null:document.documentElement;function h2(t){const n=t.parentNode||t.host||null;return n===uVe?null:n}let xf=null,dY=!1;function uY(t,n){for(;n;){if(n===t)return!0;n=h2(n)}return!1}function hY(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}const pY="ng-enter",f2="ng-leave",iD="ng-trigger",rD=".ng-trigger",mY="ng-animating",p2=".ng-animating";function Sd(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:m2(parseFloat(n[1]),n[2])}function m2(t,n){return"s"===n?1e3*t:t}function aD(t,n,e){return t.hasOwnProperty("duration")?t:function _Ve(t,n,e){let r,a=0,s="";if("string"==typeof t){const o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return n.push(oY()),{duration:0,delay:0,easing:""};r=m2(parseFloat(o[1]),o[2]);const l=o[3];null!=l&&(a=m2(parseFloat(l),o[4]));const d=o[5];d&&(s=d)}else r=t;if(!e){let o=!1,l=n.length;r<0&&(n.push(function R5e(){return new Ye(3100,!1)}()),o=!0),a<0&&(n.push(function P5e(){return new Ye(3101,!1)}()),o=!0),o&&n.splice(l,0,oY())}return{duration:r,delay:a,easing:s}}(t,n,e)}function Mc(t,n,e){n.forEach((i,r)=>{const a=_2(r);e&&!e.has(r)&&e.set(r,t.style[a]),t.style[a]=i})}function Mf(t,n){n.forEach((e,i)=>{const r=_2(i);t.style[r]=""})}function Sy(t){return Array.isArray(t)?1==t.length?t[0]:function Uhe(t,n=null){return{type:un.Sequence,steps:t,options:n}}(t):t}const g2=new RegExp("{{\\s*(.+?)\\s*}}","g");function gY(t){let n=[];if("string"==typeof t){let e;for(;e=g2.exec(t);)n.push(e[1]);g2.lastIndex=0}return n}function Ty(t,n,e){const i=`${t}`,r=i.replace(g2,(a,s)=>{let o=n[s];return null==o&&(e.push(function L5e(){return new Ye(3003,!1)}()),o=""),o.toString()});return r==i?t:r}const bVe=/-+([a-z0-9])/g;function _2(t){return t.replace(bVe,(...n)=>n[1].toUpperCase())}function wo(t,n,e){switch(n.type){case un.Trigger:return t.visitTrigger(n,e);case un.State:return t.visitState(n,e);case un.Transition:return t.visitTransition(n,e);case un.Sequence:return t.visitSequence(n,e);case un.Group:return t.visitGroup(n,e);case un.Animate:return t.visitAnimate(n,e);case un.Keyframes:return t.visitKeyframes(n,e);case un.Style:return t.visitStyle(n,e);case un.Reference:return t.visitReference(n,e);case un.AnimateChild:return t.visitAnimateChild(n,e);case un.AnimateRef:return t.visitAnimateRef(n,e);case un.Query:return t.visitQuery(n,e);case un.Stagger:return t.visitStagger(n,e);default:throw function F5e(){return new Ye(3004,!1)}()}}function v2(t,n){return window.getComputedStyle(t)[n]}let y2=(()=>{class t{validateStyleProperty(e){return function fVe(t){xf||(xf=function pVe(){return typeof document<"u"?document.body:null}()||{},dY=!!xf.style&&"WebkitAppearance"in xf.style);let n=!0;return xf.style&&!function hVe(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in xf.style,!n&&dY&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in xf.style)),n}(e)}containsElement(e,i){return uY(e,i)}getParentElement(e){return h2(e)}query(e,i,r){return hY(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,a,s,o=[],l){return new yv(r,a)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();class b2{static NOOP=new y2}class C2{}const SVe=new Set(["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"]);class _Y extends C2{normalizePropertyName(n,e){return _2(n)}normalizeStyleValue(n,e,i,r){let a="";const s=i.toString().trim();if(SVe.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)a="px";else{const o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(function B5e(){return new Ye(3005,!1)}())}return s+a}}const oD=new Set(["true","1"]),lD=new Set(["false","0"]);function vY(t,n){const e=oD.has(t)||lD.has(t),i=oD.has(n)||lD.has(n);return(r,a)=>{let s="*"==t||t==r,o="*"==n||n==a;return!s&&e&&"boolean"==typeof r&&(s=r?oD.has(t):lD.has(t)),!o&&i&&"boolean"==typeof a&&(o=a?oD.has(n):lD.has(n)),s&&o}}const EVe=new RegExp("s*:selfs*,?","g");function D2(t,n,e,i){return new IVe(t).build(n,e,i)}class IVe{_driver;constructor(n){this._driver=n}build(n,e,i){const r=new NVe(e);return this._resetContextStyleTimingState(r),wo(this,Sy(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const a=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function V5e(){return new Ye(3006,!1)}()),n.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),o.type==un.State){const l=o,d=l.name;
1d.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,a.push(this.visitState(l,e))}),l.name=d}else if(o.type==un.Transition){const l=this.visitTransition(o,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function U5e(){return new Ye(3007,!1)}())}),{type:un.Trigger,name:n.name,states:a,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const a=new Set,s=r||{};i.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{gY(l).forEach(d=>{s.hasOwnProperty(d)||a.add(d)})})}),a.size&&e.errors.push(function H5e(){return new Ye(3008,!1)}(0,a.values()))}return{type:un.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=wo(this,Sy(n.animation),e),r=function TVe(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function xVe(t,n,e){if(":"==t[0]){const l=function MVe(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function Q5e(){return new Ye(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Z5e(){return new Ye(3015,!1)}()),n;const r=i[1],a=i[2],s=i[3];n.push(vY(r,s)),"<"==a[0]&&("*"!=r||"*"!=s)&&n.push(vY(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:un.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ef(n.options)}}visitSequence(n,e){return{type:un.Sequence,steps:n.steps.map(i=>wo(this,i,e)),options:Ef(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const a=n.steps.map(s=>{e.currentTime=i;const o=wo(this,s,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:un.Group,steps:a,options:Ef(n.options)}}visitAnimate(n,e){const i=function PVe(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return S2(aD(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(a=>"{"==a.charAt(0)&&"{"==a.charAt(1))){const a=S2(0,0,"");return a.dynamic=!0,a.strValue=e,a}const r=aD(e,n);return S2(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,a=n.styles?n.styles:Sa({});if(a.type==un.Keyframes)r=this.visitKeyframes(a,e);else{let s=n.styles,o=!1;if(!s){o=!0;const d={};i.easing&&(d.easing=i.easing),s=Sa(d)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=o,r=l}return e.currentAnimateTimings=null,{type:un.Animate,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let o of r)"string"==typeof o?o===nd?i.push(o):e.errors.push(new Ye(3002,!1)):i.push(new Map(Object.entries(o)));let a=!1,s=null;return i.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(s=o.get("easing"),o.delete("easing")),!a))for(let l of o.values())if(l.toString().indexOf("{{")>=0){a=!0;break}}),{type:un.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,a=e.currentTime;i&&a>0&&(a-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,l)=>{const d=e.collectedStyles.get(e.currentQuerySelector),h=d.get(l);let _=!0;h&&(a!=r&&a>=h.startTime&&r<=h.endTime&&(e.errors.push(function z5e(){return new Ye(3010,!1)}()),_=!1),a=h.startTime),_&&d.set(l,{startTime:a,endTime:r}),e.options&&function yVe(t,n,e){const i=n.params||{},r=gY(t);r.length&&r.forEach(a=>{i.hasOwnProperty(a)||e.push(function O5e(){return new Ye(3001,!1)}())})}(o,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:un.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Y5e(){return new Ye(3011,!1)}()),i;let a=0;const s=[];let o=!1,l=!1,d=0;const h=n.steps.map(de=>{const he=this._makeStyleAst(de,e);let Ae=null!=he.offset?he.offset:function RVe(t){if("string"==typeof t)return null;let n=null;
1if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(he.styles),Pe=0;return null!=Ae&&(a++,Pe=he.offset=Ae),l=l||Pe<0||Pe>1,o=o||Pe<d,d=Pe,s.push(Pe),he});l&&e.errors.push(function $5e(){return new Ye(3012,!1)}()),o&&e.errors.push(function W5e(){return new Ye(3200,!1)}());const _=n.steps.length;let b=0;a>0&&a<_?e.errors.push(function G5e(){return new Ye(3202,!1)}()):0==a&&(b=1/(_-1));const C=_-1,k=e.currentTime,U=e.currentAnimateTimings,Q=U.duration;return h.forEach((de,he)=>{const Ae=b>0?he==C?1:b*he:s[he],Pe=Ae*Q;e.currentTime=k+U.delay+Pe,U.duration=Pe,this._validateStyleAst(de,e),de.offset=Ae,i.styles.push(de)}),i}visitReference(n,e){return{type:un.Reference,animation:wo(this,Sy(n.animation),e),options:Ef(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:un.AnimateChild,options:Ef(n.options)}}visitAnimateRef(n,e){return{type:un.AnimateRef,animation:this.visitReference(n.animation,e),options:Ef(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[a,s]=function AVe(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(EVe,"")),t=t.replace(/@\*/g,rD).replace(/@\w+/g,e=>rD+"-"+e.slice(1)).replace(/:animating/g,p2),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+a:a,Co(e.collectedStyles,e.currentQuerySelector,new Map);const o=wo(this,Sy(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:un.Query,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:o,originalSelector:n.selector,options:Ef(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function q5e(){return new Ye(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:aD(n.timings,e.errors,!0);return{type:un.Stagger,animation:wo(this,Sy(n.animation),e),timings:i,options:null}}}class NVe{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}}function Ef(t){return t?(t={...t}).params&&(t.params=function kVe(t){return t?{...t}:null}(t.params)):t={},t}function S2(t,n,e){return{duration:t,delay:n,easing:e}}function T2(t,n,e,i,r,a,s=null,o=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:s,subTimeline:o}}class cD{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const FVe=new RegExp(":enter","g"),VVe=new RegExp(":leave","g");function x2(t,n,e,i,r,a=new Map,s=new Map,o,l,d=[]){return(new UVe).buildKeyframes(t,n,e,i,r,a,s,o,l,d)}class UVe{buildKeyframes(n,e,i,r,a,s,o,l,d,h=[]){d=d||new cD;const _=new M2(n,e,d,r,a,h,[]);_.options=l;const b=l.delay?Sd(l.delay):0;_.currentTimeline.delayNextStep(b),_.currentTimeline.setStyles([s],null,_.errors,l),wo(this,i,_);const C=_.timelines.filter(k=>k.containsAnimation());if(C.length&&o.size){let k;for(let U=C.length-1;U>=0;U--){const Q=C[U];if(Q.element===e){k=Q;break}}k&&!k.allowOnlyTimelineStyles()&&k.setStyles([o],null,_.errors,l)}return C.length?C.map(k=>k.buildKeyframes()):[T2(e,[],[],[],0,b,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),a=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);a!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const a=r?.delay;if(a){const s="number"==typeof a?a:Sd(Ty(a,r?.params??{},e.errors));i.delayNextStep(s)}}}
1_visitSubInstructions(n,e,i){let a=e.currentTimeline.currentTime;const s=null!=i.duration?Sd(i.duration):null,o=null!=i.delay?Sd(i.delay):null;return 0!==s&&n.forEach(l=>{const d=e.appendInstructionToTimeline(l,s,o);a=Math.max(a,d.duration+d.delay)}),a}visitReference(n,e){e.updateOptions(n.options,!0),wo(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const a=n.options;if(a&&(a.params||a.delay)&&(r=e.createSubContext(a),r.transformIntoNewTimeline(),null!=a.delay)){r.previousNode.type==un.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dD);const s=Sd(a.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>wo(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const a=n.options&&n.options.delay?Sd(n.options.delay):0;n.steps.forEach(s=>{const o=e.createSubContext(n.options);a&&o.delayNextStep(a),wo(this,s,o),r=Math.max(r,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return aD(e.params?Ty(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const a=n.style;a.type==un.Keyframes?this.visitKeyframes(a,e):(e.incrementTime(i.duration),this.visitStyle(a,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const a=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(a):i.setStyles(n.styles,a,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,a=i.duration,o=e.createSubContext().currentTimeline;o.easing=i.easing,n.styles.forEach(l=>{o.forwardTime((l.offset||0)*a),o.setStyles(l.styles,l.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+a),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},a=r.delay?Sd(r.delay):0;a&&(e.previousNode.type===un.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dD);let s=i;const o=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let l=null;o.forEach((d,h)=>{e.currentQueryIndex=h;const _=e.createSubContext(n.options,d);a&&_.delayNextStep(a),d===e.element&&(l=_.currentTimeline),wo(this,n.animation,_),_.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,_.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,a=n.timings,s=Math.abs(a.duration),o=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":l=o-l;break;case"full":l=i.currentStaggerTime}const h=e.currentTimeline;l&&h.delayNextStep(l);const _=h.currentTime;wo(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-_+(r.startTime-i.currentTimeline.startTime)}}const dD={};class M2{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=dD;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,r,a,s,o,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=s,this.timelines=o,this.currentTimeline=l||new uD(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Sd(i.duration)),null!=i.delay&&(r.delay=Sd(i.delay));const a=i.params;if(a){let s=r.params;s||(s=this.options.params={}
1),Object.keys(a).forEach(o=>{(!e||!s.hasOwnProperty(o))&&(s[o]=Ty(a[o],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,a=new M2(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(n),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(n){return this.previousNode=dD,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},a=new HVe(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(a),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,a,s){let o=[];if(r&&o.push(this.element),n.length>0){n=(n=n.replace(FVe,"."+this._enterClassName)).replace(VVe,"."+this._leaveClassName);let d=this._driver.query(this.element,n,1!=i);0!==i&&(d=i<0?d.slice(d.length+i,d.length):d.slice(0,i)),o.push(...d)}return!a&&0==o.length&&s.push(function K5e(){return new Ye(3014,!1)}()),o}}class uD{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new uD(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||nd),this._currentKeyframe.set(e,nd);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const a=r&&r.params||{},s=function jVe(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i??=n.keys();for(let a of i)e.set(a,nd)}else for(let[a,s]of r)e.set(a,s)}),e}(n,this._globalTimelineStyles);for(let[o,l]of s){const d=Ty(l,a,i);this._pendingStyles.set(o,d),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??nd),this._updateStyle(o,d)}}
1applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,l)=>{const d=new Map([...this._backFill,...o]);d.forEach((h,_)=>{"!"===h?n.add(_):h===nd&&e.add(_)}),i||d.set("offset",l/this.duration),r.push(d)});const a=[...n.values()],s=[...e.values()];if(i){const o=r[0],l=new Map(o);o.set("offset",0),l.set("offset",1),r=[o,l]}return T2(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}class HVe extends uD{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,r,a,s,o=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=a,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const a=[],s=i+e,o=e/s,l=new Map(n[0]);l.set("offset",0),a.push(l);const d=new Map(n[0]);d.set("offset",CY(o)),a.push(d);const h=n.length-1;for(let _=1;_<=h;_++){let b=new Map(n[_]);const C=b.get("offset");b.set("offset",CY((e+C*i)/s)),a.push(b)}i=s,e=0,r="",n=a}return T2(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function CY(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function wY(t,n,e,i,r,a,s,o,l,d,h,_,b){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:o,queriedElements:l,preStyleProps:d,postStyleProps:h,totalTime:_,errors:b}}const E2={};class DY{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function zVe(t,n,e,i,r){return t.some(a=>a(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,a,s,o,l,d,h){const _=[],b=this.ast.options&&this.ast.options.params||E2,k=this.buildStyles(i,o&&o.params||E2,_),U=l&&l.params||E2,Q=this.buildStyles(r,U,_),de=new Set,he=new Map,Ae=new Map,Pe="void"===r,Le={params:SY(U,b),delay:this.ast.options?.delay},$e=h?[]:x2(n,e,this.ast.animation,a,s,k,Q,Le,d,_);let et=0;return $e.forEach(Je=>{et=Math.max(Je.duration+Je.delay,et)}),_.length?wY(e,this._triggerName,i,r,Pe,k,Q,[],[],he,Ae,et,_):($e.forEach(Je=>{const gt=Je.element,Rt=Co(he,gt,new Set);Je.preStyleProps.forEach(Qt=>Rt.add(Qt));const zt=Co(Ae,gt,new Set);Je.postStyleProps.forEach(Qt=>zt.add(Qt)),gt!==e&&de.add(gt)}),wY(e,this._triggerName,i,r,Pe,k,Q,$e,[...de.values()],he,Ae,et))}}function SY(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class YVe{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=SY(n,this.defaultParams);return this.styles.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,o)=>{s&&(s=Ty(s,r,e));const l=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,l,s,e),i.set(o,s)})}),i}}class WVe{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(r=>{this.states.set(r.name,new YVe(r.style,r.options&&r.options.params||{},i))}),TY(this.states,"true","1"),TY(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new DY(n,r,this.states))}),this.fallbackTransition=function GVe(t,n){return new DY(t,{type:un.Transition,animation:{type:un.Sequence,steps:[],options:null},matchers:[(s,o)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function TY(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const qVe=new cD;class KVe{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i}register(n,e){const i=[],a=D2(this._driver,e,i,[]);if(i.length)throw function eVe(){return new Ye(3503,!1)}();this._animations.set(n,a)}_buildPlayer(n,e,i){const r=n.element,a=lY(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,a,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],a=this._animations.get(n);let s;const o=new Map;
1if(a?(s=x2(this._driver,e,a,pY,f2,new Map,new Map,i,qVe,r),s.forEach(h=>{const _=Co(o,h.element,new Map);h.postStyleProps.forEach(b=>_.set(b,null))})):(r.push(function tVe(){return new Ye(3300,!1)}()),s=[]),r.length)throw function nVe(){return new Ye(3504,!1)}();o.forEach((h,_)=>{h.forEach((b,C)=>{h.set(C,this._driver.computeStyle(_,C,nd))})});const d=ku(s.map(h=>{const _=o.get(h.element);return this._buildPlayer(h,new Map,_)}));return this._playersById.set(n,d),d.onDestroy(()=>this.destroy(n)),this.players.push(d),d}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function iVe(){return new Ye(3301,!1)}();return e}listen(n,e,i,r){const a=u2(e,"","","");return c2(this._getPlayer(n),i,a,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const a=this._getPlayer(n);switch(i){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const xY="ng-animate-queued",I2="ng-animate-disabled",e8e=[],MY={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},t8e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ul="__ng_removed";class A2{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function a8e(t){return t??null}(i?n.value:n),i){const{value:a,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const xy="void",k2=new A2(xy);class n8e{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"
1+n,ol(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function rVe(){return new Ye(3302,!1)}();if(null==i||0==i.length)throw function aVe(){return new Ye(3303,!1)}();if(!function s8e(t){return"start"==t||"done"==t}(i))throw function sVe(){return new Ye(3400,!1)}();const a=Co(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};a.push(s);const o=Co(this._engine.statesByElement,n,new Map);return o.has(e)||(ol(n,iD),ol(n,iD+"-"+e),o.set(e,k2)),()=>{this._engine.afterFlush(()=>{const l=a.indexOf(s);l>=0&&a.splice(l,1),this._triggers.has(e)||o.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function oVe(){return new Ye(3401,!1)}();return e}trigger(n,e,i,r=!0){const a=this._getTrigger(e),s=new N2(this.id,e,n);let o=this._engine.statesByElement.get(n);o||(ol(n,iD),ol(n,iD+"-"+e),this._engine.statesByElement.set(n,o=new Map));let l=o.get(e);const d=new A2(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&d.absorbOptions(l.options),o.set(e,d),l||(l=k2),d.value!==xy&&l.value===d.value){if(!function c8e(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const a=e[r];if(!n.hasOwnProperty(a)||t[a]!==n[a])return!1}return!0}(l.params,d.params)){const U=[],Q=a.matchStyles(l.value,l.params,U),de=a.matchStyles(d.value,d.params,U);U.length?this._engine.reportError(U):this._engine.afterFlush(()=>{Mf(n,Q),Mc(n,de)})}return}const b=Co(this._engine.playersByElement,n,[]);b.forEach(U=>{U.namespaceId==this.id&&U.triggerName==e&&U.queued&&U.destroy()});let C=a.matchTransition(l.value,d.value,n,d.params),k=!1;if(!C){if(!r)return;C=a.fallbackTransition,k=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:C,fromState:l,toState:d,player:s,isFallbackTransition:k}),k||(ol(n,xY),s.onStart(()=>{Jm(n,xY)})),s.onDone(()=>{let U=this.players.indexOf(s);U>=0&&this.players.splice(U,1);const Q=this._engine.playersByElement.get(n);if(Q){let de=Q.indexOf(s);de>=0&&Q.splice(de,1)}}),this.players.push(s),b.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,rD,!0);i.forEach(r=>{if(r[Ul])return;const a=this._engine.fetchNamespacesByElement(r);a.size?a.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const a=this._engine.statesByElement.get(n),s=new Map;if(a){const o=[];if(a.forEach((l,d)=>{if(s.set(d,l.value),this._triggers.has(d)){const h=this.trigger(n,d,xy,r);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&ku(o).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(a=>{const s=a.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,d=i.get(s)||k2,h=new A2(xy),_=new N2(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:d,toState:h,player:_,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const a=i.players.length?i.playersByQueriedElement.get(n):[];if(a&&a.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const a=n[Ul];(!a||a===MY)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ol(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>
1{const r=i.player;if(r.destroyed)return;const a=i.element,s=this._elementListeners.get(a);s&&s.forEach(o=>{if(o.name==i.triggerName){const l=u2(a,i.triggerName,i.fromState.value,i.toState.value);l._data=n,c2(i.player,o.phase,l,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const a=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==a||0==s?a-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class i8e{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new n8e(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,o=this.driver.getParentElement(e);for(;o;){const l=r.get(o);if(l){const d=i.indexOf(l);i.splice(d+1,0,n),s=!0;break}o=this.driver.getParentElement(o)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const a=this._fetchNamespace(r.namespaceId);a&&e.add(a)}return e}trigger(n,e,i,r){if(hD(e)){const a=this._fetchNamespace(n);if(a)return a.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!hD(e))return;const a=e[Ul];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ol(n,I2)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Jm(n,I2))}removeNode(n,e,i){if(hD(e)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const a=this.namespacesByHostElement.get(e);a&&a.id!==n&&a.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,a){this.collectedLeaveElements.push(e),e[Ul]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:a}}listen(n,e,i,r,a){return hD(e)?this._fetchNamespace(n).listen(e,i,r,a):()=>{}}_buildInstruction(n,e,i,r,a){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,a)}destroyInnerAnimations(n){let e=this.driver.query(n,rD,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,p2,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>
1i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return ku(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Ul];if(e&&e.setForRemoval){if(n[Ul]=MY,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(I2)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)ol(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ku(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function lVe(){return new Ye(3402,!1)}()}_flushAnimations(n,e){const i=new cD,r=[],a=new Map,s=[],o=new Map,l=new Map,d=new Map,h=new Set;this.disabledNodes.forEach(mt=>{h.add(mt);const wt=this.driver.query(mt,".ng-animate-queued",!0);for(let Pt=0;Pt<wt.length;Pt++)h.add(wt[Pt])});const _=this.bodyNode,b=Array.from(this.statesByElement.keys()),C=AY(b,this.collectedEnterElements),k=new Map;let U=0;C.forEach((mt,wt)=>{const Pt=pY+U++;k.set(wt,Pt),mt.forEach($t=>ol($t,Pt))});const Q=[],de=new Set,he=new Set;for(let mt=0;mt<this.collectedLeaveElements.length;mt++){const wt=this.collectedLeaveElements[mt],Pt=wt[Ul];Pt&&Pt.setForRemoval&&(Q.push(wt),de.add(wt),Pt.hasAnimation?this.driver.query(wt,".ng-star-inserted",!0).forEach($t=>de.add($t)):he.add(wt))}const Ae=new Map,Pe=AY(b,Array.from(de));Pe.forEach((mt,wt)=>{const Pt=f2+U++;Ae.set(wt,Pt),mt.forEach($t=>ol($t,Pt))}),n.push(()=>{C.forEach((mt,wt)=>{const Pt=k.get(wt);mt.forEach($t=>Jm($t,Pt))}),Pe.forEach((mt,wt)=>{const Pt=Ae.get(wt);mt.forEach($t=>Jm($t,Pt))}),Q.forEach(mt=>{this.processLeaveNode(mt)})});const Le=[],$e=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(e).forEach(Pt=>{const $t=Pt.player,Ti=Pt.element;if(Le.push($t),this.collectedEnterElements.length){const ta=Ti[Ul];if(ta&&ta.setForMove){if(ta.previousTriggersValues&&ta.previousTriggersValues.has(Pt.triggerName)){const Rs=ta.previousTriggersValues.get(Pt.triggerName),cs=this.statesByElement.get(Pt.element);if(cs&&cs.has(Pt.triggerName)){const eg=cs.get(Pt.triggerName);eg.value=Rs,cs.set(Pt.triggerName,eg)}}return void $t.destroy()}}const Ia=!_||!this.driver.containsElement(_,Ti),qi=Ae.get(Ti),Aa=k.get(Ti),Wn=this._buildInstruction(Pt,i,Aa,qi,Ia);if(Wn.errors&&Wn.errors.length)return void $e.push(Wn);if(Ia)return $t.onStart(()=>Mf(Ti,Wn.fromStyles)),$t.onDestroy(()=>Mc(Ti,Wn.toStyles)),void r.push($t);if(Pt.isFallbackTransition)return $t.onStart(()=>Mf(Ti,Wn.fromStyles)),$t.onDestroy(()=>Mc(Ti,Wn.toStyles)),void r.push($t);const Za=[];Wn.timelines.forEach(ta=>{ta.stretchStartingKeyframe=!0,this.disabledNodes.has(ta.element)||Za.push(ta)}),Wn.timelines=Za,i.append(Ti,Wn.timelines),s.push({instruction:Wn,player:$t,element:Ti}),Wn.queriedElements.forEach(ta=>Co(o,ta,[]).push($t)),Wn.preStyleProps.forEach((ta,Rs)=>{if(ta.size){let cs=l.get(Rs);cs||l.set(Rs,cs=new Set),ta.forEach((eg,If)=>cs.add(If))}}),Wn.postStyleProps.forEach((ta,Rs)=>{let cs=d.get(Rs);cs||d.set(Rs,cs=new Set),ta.forEach((eg,If)=>cs.add(If))})});if($e.length){const mt=[];$e.forEach(wt=>{mt.push(function cVe(){return new Ye(3505,!1)}())}),Le.forEach(wt=>wt.destroy()),this.reportError(mt)}const et=new Map,Je=new Map;
1s.forEach(mt=>{const wt=mt.element;i.has(wt)&&(Je.set(wt,wt),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,et))}),r.forEach(mt=>{const wt=mt.element;this._getPreviousPlayers(wt,!1,mt.namespaceId,mt.triggerName,null).forEach($t=>{Co(et,wt,[]).push($t),$t.destroy()})});const gt=Q.filter(mt=>NY(mt,l,d)),Rt=new Map;IY(Rt,this.driver,he,d,nd).forEach(mt=>{NY(mt,l,d)&&gt.push(mt)});const Qt=new Map;C.forEach((mt,wt)=>{IY(Qt,this.driver,new Set(mt),l,"!")}),gt.forEach(mt=>{const wt=Rt.get(mt),Pt=Qt.get(mt);Rt.set(mt,new Map([...wt?.entries()??[],...Pt?.entries()??[]]))});const Jn=[],wr=[],Hn={};s.forEach(mt=>{const{element:wt,player:Pt,instruction:$t}=mt;if(i.has(wt)){if(h.has(wt))return Pt.onDestroy(()=>Mc(wt,$t.toStyles)),Pt.disabled=!0,Pt.overrideTotalTime($t.totalTime),void r.push(Pt);let Ti=Hn;if(Je.size>1){let qi=wt;const Aa=[];for(;qi=qi.parentNode;){const Wn=Je.get(qi);if(Wn){Ti=Wn;break}Aa.push(qi)}Aa.forEach(Wn=>Je.set(Wn,Ti))}const Ia=this._buildAnimation(Pt.namespaceId,$t,et,a,Qt,Rt);if(Pt.setRealPlayer(Ia),Ti===Hn)Jn.push(Pt);else{const qi=this.playersByElement.get(Ti);qi&&qi.length&&(Pt.parentPlayer=ku(qi)),r.push(Pt)}}else Mf(wt,$t.fromStyles),Pt.onDestroy(()=>Mc(wt,$t.toStyles)),wr.push(Pt),h.has(wt)&&r.push(Pt)}),wr.forEach(mt=>{const wt=a.get(mt.element);if(wt&&wt.length){const Pt=ku(wt);mt.setRealPlayer(Pt)}}),r.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt<Q.length;mt++){const wt=Q[mt],Pt=wt[Ul];if(Jm(wt,f2),Pt&&Pt.hasAnimation)continue;let $t=[];if(o.size){let Ia=o.get(wt);Ia&&Ia.length&&$t.push(...Ia);let qi=this.driver.query(wt,p2,!0);for(let Aa=0;Aa<qi.length;Aa++){let Wn=o.get(qi[Aa]);Wn&&Wn.length&&$t.push(...Wn)}}const Ti=$t.filter(Ia=>!Ia.destroyed);Ti.length?o8e(this,wt,Ti):this.processLeaveNode(wt)}
1return Q.length=0,Jn.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const wt=this.players.indexOf(mt);this.players.splice(wt,1)}),mt.play()}),Jn}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,a){let s=[];if(e){const o=this.playersByQueriedElement.get(n);o&&(s=o)}else{const o=this.playersByElement.get(n);if(o){const l=!a||a==xy;o.forEach(d=>{d.queued||!l&&d.triggerName!=r||s.push(d)})}}return(i||r)&&(s=s.filter(o=>!(i&&i!=o.namespaceId||r&&r!=o.triggerName))),s}_beforeAnimationBuild(n,e,i){const a=e.element,s=e.isRemovalTransition?void 0:n,o=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const d=l.element,h=d!==a,_=Co(i,d,[]);this._getPreviousPlayers(d,h,s,o,e.toState).forEach(C=>{const k=C.getRealPlayer();k.beforeDestroy&&k.beforeDestroy(),C.destroy(),_.push(C)})}Mf(a,e.fromStyles)}_buildAnimation(n,e,i,r,a,s){const o=e.triggerName,l=e.element,d=[],h=new Set,_=new Set,b=e.timelines.map(k=>{const U=k.element;h.add(U);const Q=U[Ul];if(Q&&Q.removedBeforeQueried)return new yv(k.duration,k.delay);const de=U!==l,he=function l8e(t){const n=[];return kY(t,n),n}((i.get(U)||e8e).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===U),Ae=a.get(U),Pe=s.get(U),Le=lY(this._normalizer,k.keyframes,Ae,Pe),$e=this._buildPlayer(k,Le,he);if(k.subTimeline&&r&&_.add(U),de){const et=new N2(n,o,U);et.setRealPlayer($e),d.push(et)}return $e});d.forEach(k=>{Co(this.playersByQueriedElement,k.element,[]).push(k),k.onDone(()=>function r8e(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,k.element,k))}),h.forEach(k=>ol(k,mY));const C=ku(b);return C.onDestroy(()=>{h.forEach(k=>Jm(k,mY)),Mc(l,e.toStyles)}),_.forEach(k=>{Co(r,k,[]).push(C)}),C}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new yv(n.duration,n.delay)}}class N2{namespaceId;triggerName;element;_player=new yv;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>c2(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Co(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function hD(t){return t&&1===t.nodeType}function EY(t,n){const e=t.style.display;return t.style.display=n??"none",e}function IY(t,n,e,i,r){const a=[];e.forEach(l=>a.push(EY(l)));const s=[];i.forEach((l,d)=>{const h=new Map;l.forEach(_=>{const b=n.computeStyle(d,_,r);h.set(_,b),(!b||0==b.length)&&(d[Ul]=t8e,s.push(d))}),t.set(d,h)});let o=0;return e.forEach(l=>EY(l,a[o++])),s}function AY(t,n){const e=new Map;if(t.forEach(o=>e.set(o,[])),0==n.length)return e;const r=new Set(n),a=new Map;function s(o){if(!o)return 1;let l=a.get(o);if(l)return l;const d=o.parentNode;return l=e.has(d)?d:r.has(d)?1:s(d),a.set(o,l),l}
1return n.forEach(o=>{const l=s(o);1!==l&&e.get(l).push(o)}),e}function ol(t,n){t.classList?.add(n)}function Jm(t,n){t.classList?.remove(n)}function o8e(t,n,e){ku(e).onDone(()=>t.processLeaveNode(n))}function kY(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof c6?kY(i.players,n):n.push(i)}}function NY(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(a=>r.add(a)):n.set(t,i),e.delete(t),!0}class My{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new i8e(n.body,e,i),this._timelineEngine=new KVe(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,e,i,r,a){const s=n+"-"+r;let o=this._triggerCache[s];if(!o){const l=[],h=D2(this._driver,a,l,[]);if(l.length)throw function X5e(){return new Ye(3404,!1)}();o=function $Ve(t,n,e){return new WVe(t,n,e)}(r,h,this._normalizer),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,r,o)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[a,s]=cY(i);this._timelineEngine.command(a,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,a){if("@"==i.charAt(0)){const[s,o]=cY(i);return this._timelineEngine.listen(s,e,o,a)}return this._transitionEngine.listen(n,e,i,r,a)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let u8e=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&Mc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mc(this._element,this._initialStyles),this._endStyles&&(Mc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Mf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Mf(this._element,this._endStyles),this._endStyles=null),Mc(this._element,this._initialStyles),this._state=3)}}return t})();function R2(t){let n=null;return t.forEach((e,i)=>
1{(function h8e(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class RY{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:v2(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class PY{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return uY(n,e)}getParentElement(n){return h2(n)}query(n,e,i){return hY(n,e,i)}computeStyle(n,e,i){return v2(n,e)}animate(n,e,i,r,a,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};a&&(l.easing=a);const d=new Map,h=s.filter(C=>C instanceof RY);(function CVe(t,n){return 0===t||0===n})(i,r)&&h.forEach(C=>{C.currentSnapshot.forEach((k,U)=>d.set(U,k))});let _=function vVe(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(C=>new Map(C));_=function wVe(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((a,s)=>{i.has(s)||r.push(s),i.set(s,a)}),r.length)for(let a=1;a<n.length;a++){let s=n[a];r.forEach(o=>s.set(o,v2(t,o)))}}return n}(n,_,d);const b=function d8e(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=R2(n[0]),n.length>1&&(i=R2(n[n.length-1]))):n instanceof Map&&(e=R2(n)),e||i?new u8e(t,e,i):null}(n,_);return new RY(n,_,l,b)}}const OY="@.disabled";class LY{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==OY?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i,r){return this.delegate.listen(n,e,i,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class f8e extends LY{factory;constructor(n,e,i,r,a){super(e,i,r,a),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==OY?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i,r){if("@"==e.charAt(0)){const a=function p8e(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function m8e(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,a,s,o,l=>{this.factory.scheduleListenerCallback(l._data||-1,i,l)})}return this.delegate.listen(n,e,i,r)}}class g8e{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(r,a)=>{a?.removeChild(null,r)}}createRenderer(n,e){const r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const d=this._rendererCache;let h=d.get(r);return h||(h=new LY("",r,this.engine,()=>d.delete(r)),d.set(r,h)),h}const a=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const o=d=>{Array.isArray(d)?d.forEach(o):this.engine.registerTrigger(a,s,n,d.name,d)};return e.data.animation.forEach(o),new f8e(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>e(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(a=>{const[s,o]=a;s(o)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}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()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}}let _8e=(()=>{class t extends My{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(Fe(Tn),Fe(b2),Fe(C2))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const FY=[{provide:C2,useFactory:function v8e(){return new _Y}},{provide:My,useClass:_8e},{provide:ih,useFactory:function y8e(t,n,e){return new g8e(t,n,e)},deps:[iM,My,_t]}],C8e=[{provide:b2,useFactory:()=>new PY},{provide:$c,useFactory:()=>"BrowserAnimations"},...FY];let D8e=(()=>{class t{loaderService;constructor(e){this.loaderService=e}intercept(e,i){return this.loaderService.show(),i.handle(e).pipe(Ca(()=>this.loaderService.hide()))}static \u0275fac=function(i){return new(i||t)(Fe(wv))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})(),S8e=(()=>{class t{tokenService;router;httpService;isRefreshing=!1;
1refreshTokenSubject=new an(null);constructor(e,i,r){this.tokenService=e,this.router=i,this.httpService=r}intercept(e,i){const r=this.tokenService.getToken();console.log("AuthInterceptor hit",e.url);let a=e;return r&&(a=e.clone({setHeaders:{Authorization:`Bearer ${r}`}})),i.handle(a).pipe(ts(s=>401===s.status?this.handle401Error(a,i):Ms(()=>s)))}handle401Error(e,i){return this.isRefreshing?this.refreshTokenSubject.pipe(Cn(r=>null!=r),Yn(1),Kr(r=>{const a=e.clone({setHeaders:{Authorization:`Bearer ${r}`}});return i.handle(a)})):(this.isRefreshing=!0,this.refreshTokenSubject.next(null),this.httpService.refreshToken().pipe(Kr(r=>{if(this.isRefreshing=!1,r){const a=this.tokenService.getToken();this.refreshTokenSubject.next(a);const s=e.clone({setHeaders:{Authorization:`Bearer ${a}`}});return i.handle(s)}return this.tokenService.clearToken(),this.router.navigate(["/login"]),Ms(()=>new Error("Session expired"))}),ts(r=>(this.isRefreshing=!1,this.tokenService.clearToken(),this.router.navigate(["/login"]),Ms(()=>r)))))}static \u0275fac=function(i){return new(i||t)(Fe(Fh),Fe(An),Fe(wn))};static \u0275prov=We({token:t,factory:t.\u0275fac})}return t})();const x8e={providers:[function Vte(t){const n=t?.ignoreChangesOutsideZone,e=t?.scheduleInRootZone,i=Bx({ngZoneFactory:()=>{const r=Vx(t);return r.scheduleInRootZone=e,r.shouldCoalesceEventChangeDetection&&Xa("NgZone_CoalesceEvent"),new _t(r)},ignoreChangesOutsideZone:n,scheduleInRootZone:e});return eo([{provide:Bte,useValue:!0},{provide:ip,useValue:!1},i])}({eventCoalescing:!0}),function gce(t,...n){return eo([{provide:K_,multi:!0,useValue:t},[],{provide:Da,useFactory:K5,deps:[An]},{provide:oh,multi:!0,useFactory:Z5},n.map(e=>e.\u0275providers)])}(k5e),function doe(...t){const n=[],e=new Set;for(const{\u0275providers:r,\u0275kind:a}of t)e.add(a),r.length&&n.push(r);const i=e.has(su.HttpTransferCacheOptions);return eo([[],One(),e.has(su.NoHttpTransferCache)||i?[]:roe({}),n])}(),function w8e(){return Xa("NgEagerAnimations"),[...C8e]}(),((t={})=>eo([t.loader||{provide:nm,useClass:PE},t.compiler||{provide:ov,useClass:HE},t.parser||{provide:sv,useClass:UE},t.missingTranslationHandler||{provide:L1,useClass:OE},V1,{provide:U1,useValue:t.isolate},{provide:H1,useValue:t.useDefaultLang},{provide:z1,useValue:t.extend},{provide:j1,useValue:t.defaultLanguage},cn]))({loader:{provide:nm,useFactory:t=>new N5e(t,"./assets/resources/",".json"),deps:[$n]}}),function jse(...t){const n=[$n,z4,H4,{provide:Q0,useExisting:H4},{provide:X0,useFactory:()=>ye(F4,{optional:!0})??ye(z4)},{provide:P_,useValue:Hse,multi:!0},{provide:UM,useValue:!0},{provide:W4,useClass:Use}];for(const e of t)n.push(...e.\u0275providers);return eo(n)}(),{provide:VM,useClass:D8e,multi:!0},{provide:VM,useClass:S8e,multi:!0}]};function M8e(t,n){1&t&&(m(0,"div",1),fe(1,"img",2),p())}let E8e=(()=>{class t{loaderService;isLoading="";constructor(e){this.loaderService=e,this.isLoading=this.loaderService.loadingStatus}static \u0275fac=function(i){return new(i||t)(G(wv))};static \u0275cmp=vt({type:t,selectors:[["app-loader"]],decls:2,vars:3,consts:[["class","loader-overlay",4,"ngIf"],[1,"loader-overlay"],["src","assets/images/loading.gif","alt","Loading...",1,"loader-gif"]],template:function(i,r){1&i&&(oe(0,M8e,2,0,"div",0),M(1,"async")),2&i&&T("ngIf",E(1,1,r.isLoading))},dependencies:[Zt,yi,Ii],encapsulation:2})}return t})();(function Iie(t,n){return fne({rootComponent:t,...kB(n)})})((()=>{class t{languageService;loaderService;translate;router;constructor(e,i,r,a){this.languageService=e,this.loaderService=i,this.translate=r,this.router=a,this.languageService.init("ar",xn_supportedLanguages)}static \u0275fac=function(i){return new(i||t)(G(hu),G(wv),G(cn),G(An))};static \u0275cmp=vt({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(i,r){1&i&&fe(0,"app-loader")(1,"router-outlet")},dependencies:[eE,E8e,pn],styles:['[_nghost-%COMP%]{--bright-blue: oklch(51.01% .274 263.83);--electric-violet: oklch(53.18% .28 296.97);--french-violet: oklch(47.66% .246 305.88);--vivid-pink: oklch(69.02% .277 332.77);--hot-red: oklch(61.42% .238 15.34);--orange-red: oklch(63.32% .24 31.68);--gray-900: oklch(19.37% .006 300.98);--gray-700: oklch(36.98% .014 302.71);--gray-400: oklch(70.9% .015 304.04);--red-to-pink-to-purple-vertical-gradient: linear-gradient( 180deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100% );--red-to-pink-to-purple-horizontal-gradient: linear-gradient( 90deg, var(--orange-red) 0%, var(--vivid-pink) 50%, var(--electric-violet) 100% );--pill-accent: var(--bright-blue);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1[_ngcontent-%COMP%]{font-size:3.125rem;color:var(--gray-900);font-weight:500;line-height:100%;letter-spacing:-.125rem;margin:0;font-family:Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}p[_ngcontent-%COMP%]{margin:0;color:var(--gray-700)}main[_ngcontent-%COMP%]{width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;padding:1rem;box-sizing:inherit;position:relative}.angular-logo[_ngcontent-%COMP%]{max-width:9.2rem}.content[_ngcontent-%COMP%]{display:flex;justify-content:space-around;width:100%;max-width:700px;margin-bottom:3rem}.content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-top:1.75rem}.content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:1.5rem}.divider[_ngcontent-%COMP%]{width:1px;background:var(--red-to-pink-to-purple-vertical-gradient);margin-inline:.5rem}.pill-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:start;flex-wrap:wrap;gap:1.25rem}.pill[_ngcontent-%COMP%]{display:flex;align-items:center;--pill-accent: var(--bright-blue);background:color-mix(in srgb,var(--pill-accent) 5%,transparent);color:var(--pill-accent);padding-inline:.75rem;padding-block:.375rem;border-radius:2.75rem;border:0;transition:background .3s ease;font-family:var(--inter-font);font-size:.875rem;font-style:normal;font-weight:500;line-height:1.4rem;letter-spacing:-.00875rem;text-decoration:none}.pill[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--pill-accent) 15%,transparent)}.pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:nth-child(6n+1){--pill-accent: var(--bright-blue)}.pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:nth-child(6n+2){--pill-accent: var(--french-violet)}.pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:nth-child(6n+3), .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:nth-child(6n+4), .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:nth-child(6n+5){--pill-accent: var(--hot-red)}.pill-group[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-inline-start:.25rem}.social-links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.73rem;margin-top:1.5rem}.social-links[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{transition:fill .3s ease;
1fill:var(--gray-400)}.social-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:var(--gray-900)}@media screen and (max-width: 650px){.content[_ngcontent-%COMP%]{flex-direction:column;width:max-content}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background:var(--red-to-pink-to-purple-horizontal-gradient);margin-block:1.5rem}}']})}return t})(),x8e).catch(t=>console.error(t))},4579:(yt,rn,ve)=>{var S=ve(6589);ve(5437),ve(812),(yt.exports=S.hmac=S.hmac||{}).create=function(){var I=null,K=null,te=null,J=null,H={start:function(O,D){if(null!==O)if("string"==typeof O){if(!((O=O.toLowerCase())in S.md.algorithms))throw new Error('Unknown hash algorithm "'+O+'"');K=S.md.algorithms[O].create()}else K=O;if(null===D)D=I;else{if("string"==typeof D)D=S.util.createBuffer(D);else if(S.util.isArray(D)){var V=D;D=S.util.createBuffer();for(var re=0;re<V.length;++re)D.putByte(V[re])}var Se=D.length();for(Se>K.blockLength&&(K.start(),K.update(D.bytes()),D=K.digest()),te=S.util.createBuffer(),J=S.util.createBuffer(),Se=D.length(),re=0;re<Se;++re)V=D.at(re),te.putByte(54^V),J.putByte(92^V);if(Se<K.blockLength)for(V=K.blockLength-Se,re=0;re<V;++re)te.putByte(54),J.putByte(92);I=D,te=te.bytes(),J=J.bytes()}K.start(),K.update(te)},update:function(O){K.update(O)},getMac:function(){var O=K.digest().bytes();return K.start(),K.update(J),K.update(O),K.digest()}};return H.digest=H.getMac,H}},4724:(yt,rn,ve)=>{var S=ve(6589);ve(7097),ve(4579),ve(1817),ve(8291),ve(1347),ve(1675),ve(2880),ve(8825),ve(812),ve(9436);var g=S.asn1,I=S.pki,K=yt.exports=S.pkcs12=S.pkcs12||{},te={name:"ContentInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:g.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},J={name:"PFX",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"version"},te,{name:"PFX.macData",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",optional:!0,tagClass:g.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:g.Class.UNIVERSAL,type:g.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:g.Class.UNIVERSAL,type:g.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},H={name:"SafeBag",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:g.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},O={name:"Attribute",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,constructed:!0,capture:"values"}]},D={name:"CertBag",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:g.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:g.Class.UNIVERSAL,type:g.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function V(z,q,x,F){for(var Y=[],se=0;se<z.length;se++)for(var pe=0;pe<z[se].safeBags.length;pe++){var Te=z[se].safeBags[pe];if(void 0===F||Te.type===F){if(null===q){Y.push(Te);continue}void 0!==Te.attributes[q]&&Te.attributes[q].indexOf(x)>=0&&Y.push(Te)}}return Y}function re(z){if(z.composed||z.constructed){for(var q=S.util.createBuffer(),x=0;x<z.value.length;++x)q.putBytes(z.value[x].value);z.composed=z.constructed=!1,z.value=q.getBytes()}return z}function ee(z,q){var x={},F=[];if(!g.validate(z,S.pkcs7.asn1.encryptedDataValidator,x,F))throw(Y=new Error("Cannot read EncryptedContentInfo.")).errors=F,Y;var Y,se=g.derToOid(x.contentType);if(se!==I.oids.data)throw(Y=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.")).oid=se,Y;se=g.derToOid(x.encAlgorithm);var pe=I.pbe.getCipher(se,x.encParameter,q),Te=re(x.encryptedContentAsn1),j=S.util.createBuffer(Te.value);if(pe.update(j),!pe.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return pe.output.getBytes()}function X(z,q,x){if(!q&&0===z.length)return[];if((z=g.fromDer(z,q)).tagClass!==g.Class.UNIVERSAL||z.type!==g.Type.SEQUENCE||!0!==z.constructed)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var F=[],Y=0;Y<z.value.length;Y++){var pe={},Te=[];
vendor: 34,776 bytes, line 1
1if(!g.validate(z.value[Y],H,pe,Te))throw(j=new Error("Cannot read SafeBag.")).errors=Te,j;var Z={type:g.derToOid(pe.bagId),attributes:ne(pe.bagAttributes)};F.push(Z);var ce,w,me=pe.bagValue.value[0];switch(Z.type){case I.oids.pkcs8ShroudedKeyBag:if(null===(me=I.decryptPrivateKeyInfo(me,x)))throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case I.oids.keyBag:try{Z.key=I.privateKeyFromAsn1(me)}catch{Z.key=null,Z.asn1=me}continue;case I.oids.certBag:ce=D,w=function(){if(g.derToOid(pe.certId)!==I.oids.x509Certificate){var ge=new Error("Unsupported certificate type, only X.509 supported.");throw ge.oid=g.derToOid(pe.certId),ge}var Oe=g.fromDer(pe.cert,q);try{Z.cert=I.certificateFromAsn1(Oe,!0)}catch{Z.cert=null,Z.asn1=Oe}};break;default:var j;throw(j=new Error("Unsupported PKCS#12 SafeBag type.")).oid=Z.type,j}if(void 0!==ce&&!g.validate(me,ce,pe,Te))throw(j=new Error("Cannot read PKCS#12 "+ce.name)).errors=Te,j;w()}return F}function ne(z){var q={};if(void 0!==z)for(var x=0;x<z.length;++x){var F={},Y=[];if(!g.validate(z[x],O,F,Y)){var se=new Error("Cannot read PKCS#12 BagAttribute.");throw se.errors=Y,se}var pe=g.derToOid(F.oid);if(void 0!==I.oids[pe]){q[I.oids[pe]]=[];for(var Te=0;Te<F.values.length;++Te)q[I.oids[pe]].push(F.values[Te].value)}}return q}K.pkcs12FromAsn1=function(z,q,x){"string"==typeof q?(x=q,q=!0):void 0===q&&(q=!0);var F={};if(!g.validate(z,J,F,[]))throw(se=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.")).errors=se,se;var se,pe={version:F.version.charCodeAt(0),safeContents:[],getBags:function(Ie){var Ue,Be={};return"localKeyId"in Ie?Ue=Ie.localKeyId:"localKeyIdHex"in Ie&&(Ue=S.util.hexToBytes(Ie.localKeyIdHex)),void 0===Ue&&!("friendlyName"in Ie)&&"bagType"in Ie&&(Be[Ie.bagType]=V(pe.safeContents,null,null,Ie.bagType)),void 0!==Ue&&(Be.localKeyId=V(pe.safeContents,"localKeyId",Ue,Ie.bagType)),"friendlyName"in Ie&&(Be.friendlyName=V(pe.safeContents,"friendlyName",Ie.friendlyName,Ie.bagType)),Be},getBagsByFriendlyName:function(Ie,Be){return V(pe.safeContents,"friendlyName",Ie,Be)},getBagsByLocalKeyId:function(Ie,Be){return V(pe.safeContents,"localKeyId",Ie,Be)}};if(3!==F.version.charCodeAt(0))throw(se=new Error("PKCS#12 PFX of version other than 3 not supported.")).version=F.version.charCodeAt(0),se;if(g.derToOid(F.contentType)!==I.oids.data)throw(se=new Error("Only PKCS#12 PFX in password integrity mode supported.")).oid=g.derToOid(F.contentType),se;var Te=F.content.value[0];if(Te.tagClass!==g.Class.UNIVERSAL||Te.type!==g.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(Te=re(Te),F.mac){var j=null,Z=0,ce=g.derToOid(F.macAlgorithm);switch(ce){case I.oids.sha1:j=S.md.sha1.create(),Z=20;break;case I.oids.sha256:j=S.md.sha256.create(),Z=32;break;case I.oids.sha384:j=S.md.sha384.create(),Z=48;break;case I.oids.sha512:j=S.md.sha512.create(),Z=64;break;case I.oids.md5:j=S.md.md5.create(),Z=16}if(null===j)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+ce);var w=new S.util.ByteBuffer(F.macSalt),me="macIterations"in F?parseInt(S.util.bytesToHex(F.macIterations),16):1,Ee=K.generateKey(x,w,3,me,Z,j),ge=S.hmac.create();if(ge.start(j,Ee),ge.update(Te.value),ge.getMac().getBytes()!==F.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(z.value)&&z.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return function Se(z,q,x,F){if((q=g.fromDer(q,x)).tagClass!==g.Class.UNIVERSAL||q.type!==g.Type.SEQUENCE||!0!==q.constructed)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var Y=0;Y<q.value.length;Y++){var pe={},Te=[];if(!g.validate(q.value[Y],te,pe,Te))throw(j=new Error("Cannot read ContentInfo.")).errors=Te,j;var Z={encrypted:!1},ce=null,w=pe.content.value[0];switch(g.derToOid(pe.contentType)){case I.oids.data:if(w.tagClass!==g.Class.UNIVERSAL||w.type!==g.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");ce=re(w).value;break;case I.oids.encryptedData:ce=ee(w,F),Z.encrypted=!0;break;default:var j;throw(j=new Error("Unsupported PKCS#12 contentType.")).contentType=g.derToOid(pe.contentType),j}Z.safeBags=X(ce,x,F),z.safeContents.push(Z)}}(pe,Te.value,q,x),pe},K.toPkcs12Asn1=function(z,q,x,F){(F=F||{}).saltSize=F.saltSize||8,F.count=F.count||2048,F.algorithm=F.algorithm||F.encAlgorithm||"aes128","useMac"in F||(F.useMac=!0),"localKeyId"in F||(F.localKeyId=null),"generateLocalKeyId"in F||(F.generateLocalKeyId=!0);var se,Y=F.localKeyId;if(null!==Y)Y=S.util.hexToBytes(Y);else if(F.generateLocalKeyId)if(q){var pe=S.util.isArray(q)?q[0]:q;"string"==typeof pe&&(pe=I.certificateFromPem(pe)),(Te=S.md.sha1.create()).update(g.toDer(I.certificateToAsn1(pe)).getBytes()),Y=Te.digest().getBytes()}else Y=S.random.getBytes(20);var j=[];null!==Y&&j.push(g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.localKeyId).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,Y)])])),"friendlyName"in F&&j.push(g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.friendlyName).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[g.create(g.Class.UNIVERSAL,g.Type.BMPSTRING,!1,F.friendlyName)])])),j.length>0&&(se=g.create(g.Class.UNIVERSAL,g.Type.SET,!0,j));var Z=[],ce=[];null!==q&&(ce=S.util.isArray(q)?q:[q]);for(var w=[],me=0;me<ce.length;++me){"string"==typeof(q=ce[me])&&(q=I.certificateFromPem(q));var Ee=0===me?se:void 0,ge=I.certificateToAsn1(q),Oe=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.certBag).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.x509Certificate).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,g.toDer(ge).getBytes())])])]),Ee]);w.push(Oe)}if(w.length>0){var Ie=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,w),Be=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.data).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,g.toDer(Ie).getBytes())])]);Z.push(Be)}var Ue=null;if(null!==z){var Ge=I.wrapRsaPrivateKey(I.privateKeyToAsn1(z));Ue=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,null===x?[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.keyBag).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[Ge]),se]:[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.pkcs8ShroudedKeyBag).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[I.encryptPrivateKeyInfo(Ge,x,F)]),se]);var it=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[Ue]),ot=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.data).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,g.toDer(it).getBytes())])]);Z.push(ot)}var Tt,St=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,Z);if(F.useMac){var Te=S.md.sha1.create(),Et=new S.util.ByteBuffer(S.random.getBytes(F.saltSize)),st=F.count,_n=(z=K.generateKey(x,Et,3,st,20),S.hmac.create());_n.start(Te,z),_n.update(g.toDer(St).getBytes());var It=_n.getMac();Tt=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.sha1).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")]),g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,It.getBytes())]),g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,Et.getBytes()),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(st).getBytes())])}return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(3).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(I.oids.data).getBytes()),g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,g.toDer(St).getBytes())])]),Tt])},K.generateKey=S.pbe.generatePkcs12Key},4846:(yt,rn,ve)=>{var S=ve(6589);ve(5437),ve(812);var g=yt.exports=S.md5=S.md5||{};S.md.md5=S.md.algorithms.md5=g,g.create=function(){H||function O(){I="\x80",I+=S.util.fillString("\0",64),K=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],te=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],J=new Array(64);for(var V=0;V<64;++V)J[V]=Math.floor(4294967296*Math.abs(Math.sin(V+1)));H=!0}();var V=null,re=S.util.createBuffer(),Se=new Array(16),ee={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){ee.messageLength=0,ee.fullMessageLength=ee.messageLength64=[];for(var X=ee.messageLengthSize/4,ne=0;ne<X;++ne)ee.fullMessageLength.push(0);return re=S.util.createBuffer(),V={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},ee}};return ee.start(),ee.update=function(X,ne){"utf8"===ne&&(X=S.util.encodeUtf8(X));var z=X.length;ee.messageLength+=z,z=[z/4294967296>>>0,z>>>0];for(var q=ee.fullMessageLength.length-1;q>=0;--q)ee.fullMessageLength[q]+=z[1],z[1]=z[0]+(ee.fullMessageLength[q]/4294967296>>>0),ee.fullMessageLength[q]=ee.fullMessageLength[q]>>>0,z[0]=z[1]/4294967296>>>0;return re.putBytes(X),D(V,Se,re),(re.read>2048||0===re.length())&&re.compact(),ee},ee.digest=function(){var X=S.util.createBuffer();X.putBytes(re.bytes()),X.putBytes(I.substr(0,ee.blockLength-(ee.fullMessageLength[ee.fullMessageLength.length-1]+ee.messageLengthSize&ee.blockLength-1)));for(var q,x=0,F=ee.fullMessageLength.length-1;F>=0;--F)x=(q=8*ee.fullMessageLength[F]+x)/4294967296>>>0,X.putInt32Le(q>>>0);var Y={h0:V.h0,h1:V.h1,h2:V.h2,h3:V.h3};D(Y,Se,X);var se=S.util.createBuffer();return se.putInt32Le(Y.h0),se.putInt32Le(Y.h1),se.putInt32Le(Y.h2),se.putInt32Le(Y.h3),se},ee};var I=null,K=null,te=null,J=null,H=!1;function D(V,re,Se){for(var ee,X,ne,z,q,F,Y,se=Se.length();se>=64;){for(X=V.h0,ne=V.h1,z=V.h2,q=V.h3,Y=0;Y<16;++Y)re[Y]=Se.getInt32Le(),ee=X+(q^ne&(z^q))+J[Y]+re[Y],X=q,q=z,z=ne,ne+=ee<<(F=te[Y])|ee>>>32-F;for(;Y<32;++Y)ee=X+(z^q&(ne^z))+J[Y]+re[K[Y]],X=q,q=z,z=ne,ne+=ee<<(F=te[Y])|ee>>>32-F;for(;Y<48;++Y)ee=X+(ne^z^q)+J[Y]+re[K[Y]],X=q,q=z,z=ne,ne+=ee<<(F=te[Y])|ee>>>32-F;for(;Y<64;++Y)ee=X+(z^(ne|~q))+J[Y]+re[K[Y]],X=q,q=z,z=ne,ne+=ee<<(F=te[Y])|ee>>>32-F;V.h0=V.h0+X|0,V.h1=V.h1+ne|0,V.h2=V.h2+z|0,V.h3=V.h3+q|0,se-=64}}},5437:(yt,rn,ve)=>{var S=ve(6589);yt.exports=S.md=S.md||{},S.md.algorithms=S.md.algorithms||{}},5833:(yt,rn,ve)=>{var S=ve(6589);ve(812),S.mgf=S.mgf||{},(yt.exports=S.mgf.mgf1=S.mgf1=S.mgf1||{}).create=function(I){return{generate:function(te,J){for(var H=new S.util.ByteBuffer,O=Math.ceil(J/I.digestLength),D=0;D<O;D++){var V=new S.util.ByteBuffer;V.putInt32(D),I.start(),I.update(te+V.getBytes()),H.putBuffer(I.digest())}return H.truncate(H.length()-J),H.getBytes()}}}},5855:(yt,rn,ve)=>{var S=ve(6589);ve(812),yt.exports=S.cipher=S.cipher||{},S.cipher.algorithms=S.cipher.algorithms||{},S.cipher.createCipher=function(I,K){var te=I;if("string"==typeof te&&(te=S.cipher.getAlgorithm(te))&&(te=te()),!te)throw new Error("Unsupported algorithm: "+I);return new S.cipher.BlockCipher({algorithm:te,key:K,decrypt:!1})},S.cipher.createDecipher=function(I,K){var te=I;if("string"==typeof te&&(te=S.cipher.getAlgorithm(te))&&(te=te()),!te)throw new Error("Unsupported algorithm: "+I);return new S.cipher.BlockCipher({algorithm:te,key:K,decrypt:!0})},S.cipher.registerAlgorithm=function(I,K){I=I.toUpperCase(),S.cipher.algorithms[I]=K},S.cipher.getAlgorithm=function(I){return(I=I.toUpperCase())in S.cipher.algorithms?S.cipher.algorithms[I]:null};var g=S.cipher.BlockCipher=function(I){this.algorithm=I.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=I.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=I.decrypt,this.algorithm.initialize(I)};g.prototype.start=function(I){I=I||{};var K={};for(var te in I)K[te]=I[te];K.decrypt=this._decrypt,this._finish=!1,this._input=S.util.createBuffer(),this.output=I.output||S.util.createBuffer(),this.mode.start(K)},g.prototype.update=function(I){for(I&&this._input.putBuffer(I);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},g.prototype.finish=function(I){I&&("ECB"===this.mode.name||"CBC"===this.mode.name)&&(this.mode.pad=function(te){return I(this.blockSize,te,!1)},this.mode.unpad=function(te){return I(this.blockSize,te,!0)});var K={};return K.decrypt=this._decrypt,K.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,K)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,K))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,K))}},6199:(yt,rn,ve)=>{var S=ve(6589);ve(812),S.cipher=S.cipher||{};var g=yt.exports=S.cipher.modes=S.cipher.modes||{};function I(J,H){if("string"==typeof J&&(J=S.util.createBuffer(J)),S.util.isArray(J)&&J.length>4){var O=J;J=S.util.createBuffer();for(var D=0;D<O.length;++D)J.putByte(O[D])}if(J.length()<H)throw new Error("Invalid IV length; got "+J.length()+" bytes and expected "+H+" bytes.");if(!S.util.isArray(J)){var V=[],re=H/4;for(D=0;D<re;++D)V.push(J.getInt32());J=V}return J}function K(J){J[J.length-1]=J[J.length-1]+1&4294967295}function te(J){return[J/4294967296|0,4294967295&J]}g.ecb=function(J){J=J||{},this.name="ECB",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},g.ecb.prototype.start=function(J){},g.ecb.prototype.encrypt=function(J,H,O){if(J.length()<this.blockSize&&!(O&&J.length()>0))return!0;for(var D=0;D<this._ints;++D)this._inBlock[D]=J.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),D=0;D<this._ints;++D)H.putInt32(this._outBlock[D])},g.ecb.prototype.decrypt=function(J,H,O){if(J.length()<this.blockSize&&!(O&&J.length()>0))return!0;for(var D=0;D<this._ints;++D)this._inBlock[D]=J.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),D=0;D<this._ints;++D)H.putInt32(this._outBlock[D])},g.ecb.prototype.pad=function(J,H){var O=J.length()===this.blockSize?this.blockSize:this.blockSize-J.length();return J.fillWithByte(O,O),!0},g.ecb.prototype.unpad=function(J,H){if(H.overflow>0)return!1;var O=J.length(),D=J.at(O-1);return!(D>this.blockSize<<2||(J.truncate(D),0))},g.cbc=function(J){J=J||{},this.name="CBC",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},g.cbc.prototype.start=function(J){if(null===J.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in J))throw new Error("Invalid IV parameter.");this._iv=I(J.iv,this.blockSize),this._prev=this._iv.slice(0)}},g.cbc.prototype.encrypt=function(J,H,O){if(J.length()<this.blockSize&&!(O&&J.length()>0))return!0;for(var D=0;D<this._ints;++D)this._inBlock[D]=this._prev[D]^J.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),D=0;D<this._ints;++D)H.putInt32(this._outBlock[D]);this._prev=this._outBlock},g.cbc.prototype.decrypt=function(J,H,O){if(J.length()<this.blockSize&&!(O&&J.length()>0))return!0;for(var D=0;D<this._ints;++D)this._inBlock[D]=J.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),D=0;D<this._ints;++D)H.putInt32(this._prev[D]^this._outBlock[D]);this._prev=this._inBlock.slice(0)},g.cbc.prototype.pad=function(J,H){var O=J.length()===this.blockSize?this.blockSize:this.blockSize-J.length();return J.fillWithByte(O,O),!0},g.cbc.prototype.unpad=function(J,H){if(H.overflow>0)return!1;var O=J.length(),D=J.at(O-1);return!(D>this.blockSize<<2||(J.truncate(D),0))},g.cfb=function(J){J=J||{},this.name="CFB",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=S.util.createBuffer(),this._partialBytes=0},g.cfb.prototype.start=function(J){if(!("iv"in J))throw new Error("Invalid IV parameter.");this._iv=I(J.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},g.cfb.prototype.encrypt=function(J,H,O){var D=J.length();if(0===D)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&D>=this.blockSize)for(var V=0;V<this._ints;++V)this._inBlock[V]=J.getInt32()^this._outBlock[V],H.putInt32(this._inBlock[V]);else{var re=(this.blockSize-D)%this.blockSize;for(re>0&&(re=this.blockSize-re),this._partialOutput.clear(),V=0;V<this._ints;++V)this._partialBlock[V]=J.getInt32()^this._outBlock[V],this._partialOutput.putInt32(this._partialBlock[V]);if(re>0)J.read-=this.blockSize;else for(V=0;V<this._ints;++V)this._inBlock[V]=this._partialBlock[V];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),re>0&&!O)return H.putBytes(this._partialOutput.getBytes(re-this._partialBytes)),this._partialBytes=re,!0;H.putBytes(this._partialOutput.getBytes(D-this._partialBytes)),this._partialBytes=0}},g.cfb.prototype.decrypt=function(J,H,O){var D=J.length();if(0===D)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&D>=this.blockSize)for(var V=0;V<this._ints;++V)this._inBlock[V]=J.getInt32(),H.putInt32(this._inBlock[V]^this._outBlock[V]);else{var re=(this.blockSize-D)%this.blockSize;for(re>0&&(re=this.blockSize-re),this._partialOutput.clear(),V=0;V<this._ints;++V)this._partialBlock[V]=J.getInt32(),this._partialOutput.putInt32(this._partialBlock[V]^this._outBlock[V]);if(re>0)J.read-=this.blockSize;else for(V=0;V<this._ints;++V)this._inBlock[V]=this._partialBlock[V];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),re>0&&!O)return H.putBytes(this._partialOutput.getBytes(re-this._partialBytes)),this._partialBytes=re,!0;H.putBytes(this._partialOutput.getBytes(D-this._partialBytes)),this._partialBytes=0}},g.ofb=function(J){J=J||{},this.name="OFB",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=S.util.createBuffer(),this._partialBytes=0},g.ofb.prototype.start=function(J){if(!("iv"in J))throw new Error("Invalid IV parameter.");this._iv=I(J.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},g.ofb.prototype.encrypt=function(J,H,O){var D=J.length();if(0===J.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&D>=this.blockSize)for(var V=0;V<this._ints;++V)H.putInt32(J.getInt32()^this._outBlock[V]),this._inBlock[V]=this._outBlock[V];else{var re=(this.blockSize-D)%this.blockSize;for(re>0&&(re=this.blockSize-re),this._partialOutput.clear(),V=0;V<this._ints;++V)this._partialOutput.putInt32(J.getInt32()^this._outBlock[V]);if(re>0)J.read-=this.blockSize;else for(V=0;V<this._ints;++V)this._inBlock[V]=this._outBlock[V];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),re>0&&!O)return H.putBytes(this._partialOutput.getBytes(re-this._partialBytes)),this._partialBytes=re,!0;H.putBytes(this._partialOutput.getBytes(D-this._partialBytes)),this._partialBytes=0}},g.ofb.prototype.decrypt=g.ofb.prototype.encrypt,g.ctr=function(J){J=J||{},this.name="CTR",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=S.util.createBuffer(),this._partialBytes=0},g.ctr.prototype.start=function(J){if(!("iv"in J))throw new Error("Invalid IV parameter.");this._iv=I(J.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},g.ctr.prototype.encrypt=function(J,H,O){var D=J.length();if(0===D)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&D>=this.blockSize)for(var V=0;V<this._ints;++V)H.putInt32(J.getInt32()^this._outBlock[V]);else{var re=(this.blockSize-D)%this.blockSize;for(re>0&&(re=this.blockSize-re),this._partialOutput.clear(),V=0;V<this._ints;++V)this._partialOutput.putInt32(J.getInt32()^this._outBlock[V]);if(re>0&&(J.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),re>0&&!O)return H.putBytes(this._partialOutput.getBytes(re-this._partialBytes)),this._partialBytes=re,!0;H.putBytes(this._partialOutput.getBytes(D-this._partialBytes)),this._partialBytes=0}K(this._inBlock)},g.ctr.prototype.decrypt=g.ctr.prototype.encrypt,g.gcm=function(J){J=J||{},this.name="GCM",this.cipher=J.cipher,this.blockSize=J.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=S.util.createBuffer(),this._partialBytes=0,this._R=3774873600},g.gcm.prototype.start=function(J){if(!("iv"in J))throw new Error("Invalid IV parameter.");var O,H=S.util.createBuffer(J.iv);if(this._cipherLength=0,O="additionalData"in J?S.util.createBuffer(J.additionalData):S.util.createBuffer(),this._tagLength="tagLength"in J?J.tagLength:128,this._tag=null,J.decrypt&&(this._tag=S.util.createBuffer(J.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var D=H.length();if(12===D)this._j0=[H.getInt32(),H.getInt32(),H.getInt32(),1];else{for(this._j0=[0,0,0,0];H.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[H.getInt32(),H.getInt32(),H.getInt32(),H.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(te(8*D)))}this._inBlock=this._j0.slice(0),K(this._inBlock),this._partialBytes=0,O=S.util.createBuffer(O),this._aDataLength=te(8*O.length());var V=O.length()%this.blockSize;for(V&&O.fillWithByte(0,this.blockSize-V),this._s=[0,0,0,0];O.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[O.getInt32(),O.getInt32(),O.getInt32(),O.getInt32()])},g.gcm.prototype.encrypt=function(J,H,O){var D=J.length();if(0===D)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&D>=this.blockSize){for(var V=0;V<this._ints;++V)H.putInt32(this._outBlock[V]^=J.getInt32());this._cipherLength+=this.blockSize}else{var re=(this.blockSize-D)%this.blockSize;for(re>0&&(re=this.blockSize-re),this._partialOutput.clear(),V=0;V<this._ints;++V)this._partialOutput.putInt32(J.getInt32()^this._outBlock[V]);if(re<=0||O){if(O){var Se=D%this.blockSize;this._cipherLength+=Se,this._partialOutput.truncate(this.blockSize-Se)}else this._cipherLength+=this.blockSize;for(V=0;V<this._ints;++V)this._outBlock[V]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),re>0&&!O)return J.read-=this.blockSize,H.putBytes(this._partialOutput.getBytes(re-this._partialBytes)),this._partialBytes=re,!0;H.putBytes(this._partialOutput.getBytes(D-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),K(this._inBlock)},g.gcm.prototype.decrypt=function(J,H,O){var D=J.length();if(D<this.blockSize&&!(O&&D>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),K(this._inBlock),this._hashBlock[0]=J.getInt32(),this._hashBlock[1]=J.getInt32(),this._hashBlock[2]=J.getInt32(),this._hashBlock[3]=J.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var V=0;V<this._ints;++V)H.putInt32(this._outBlock[V]^this._hashBlock[V]);this._cipherLength+=D<this.blockSize?D%this.blockSize:this.blockSize},g.gcm.prototype.afterFinish=function(J,H){var O=!0;H.decrypt&&H.overflow&&J.truncate(this.blockSize-H.overflow),this.tag=S.util.createBuffer();var D=this._aDataLength.concat(te(8*this._cipherLength));this._s=this.ghash(this._hashSubkey,this._s,D);var V=[];this.cipher.encrypt(this._j0,V);for(var re=0;re<this._ints;++re)this.tag.putInt32(this._s[re]^V[re]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),H.decrypt&&this.tag.bytes()!==this._tag&&(O=!1),O},g.gcm.prototype.multiply=function(J,H){for(var O=[0,0,0,0],D=H.slice(0),V=0;V<128;++V)J[V/32|0]&1<<31-V%32&&(O[0]^=D[0],O[1]^=D[1],O[2]^=D[2],O[3]^=D[3]),this.pow(D,D);return O},g.gcm.prototype.pow=function(J,H){for(var O=1&J[3],D=3;D>0;--D)H[D]=J[D]>>>1|(1&J[D-1])<<31;H[0]=J[0]>>>1,O&&(H[0]^=this._R)},g.gcm.prototype.tableMultiply=function(J){for(var H=[0,0,0,0],O=0;O<32;++O){var re=this._m[O][J[O/8|0]>>>4*(7-O%8)&15];H[0]^=re[0],H[1]^=re[1],H[2]^=re[2],H[3]^=re[3]}return H},g.gcm.prototype.ghash=function(J,H,O){return H[0]^=O[0],H[1]^=O[1],H[2]^=O[2],H[3]^=O[3],this.tableMultiply(H)},g.gcm.prototype.generateHashTable=function(J,H){for(var O=8/H,D=4*O,V=16*O,re=new Array(V),Se=0;Se<V;++Se){var ee=[0,0,0,0];ee[Se/D|0]=1<<H-1<<(D-1-Se%D)*H,re[Se]=this.generateSubHashTable(this.multiply(ee,J),H)}return re},g.gcm.prototype.generateSubHashTable=function(J,H){var O=1<<H,D=O>>>1,V=new Array(O);V[D]=J.slice(0);for(var re=D>>>1;re>0;)this.pow(V[2*re],V[re]=[]),re>>=1;for(re=2;re<D;){for(var Se=1;Se<re;++Se){var ee=V[re],X=V[Se];V[re+Se]=[ee[0]^X[0],ee[1]^X[1],ee[2]^X[2],ee[3]^X[3]]}re*=2}for(V[0]=[0,0,0,0],re=D+1;re<O;++re){var ne=V[re^D];V[re]=[J[0]^ne[0],J[1]^ne[1],J[2]^ne[2],J[3]^ne[3]]}return V}},6589:yt=>{yt.exports={options:{usePureJavaScript:!1}}},7097:(yt,rn,ve)=>{var S=ve(6589);ve(812),ve(1817);var g=yt.exports=S.asn1=S.asn1||{};function I(H,O,D){if(D>O){var V=new Error("Too few bytes to parse DER.");throw V.available=H.length(),V.remaining=O,V.requested=D,V}}function te(H,O,D,V){if(D>=V.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var re;I(H,O,2);var Se=H.getByte();O--;var ee=192&Se,X=31&Se;re=H.length();var ne=function(H,O){var D=H.getByte();if(O--,128!==D){var V;if(128&D){var Se=127&D;I(H,O,Se),V=H.getInt(Se<<3)}else V=D;if(V<0)throw new Error("Negative length: "+V);return V}}(H,O);if(O-=re-H.length(),void 0!==ne&&ne>O){if(V.strict){var z=new Error("Too few bytes to read ASN.1 value.");throw z.available=H.length(),z.remaining=O,z.requested=ne,z}ne=O}var q,x,F=!(32&~Se);if(F)if(q=[],void 0===ne)for(;;){if(I(H,O,2),"\0\0"===H.bytes(2)){H.getBytes(2),O-=2;break}re=H.length(),q.push(te(H,O,D+1,V)),O-=re-H.length()}else for(;ne>0;)re=H.length(),q.push(te(H,ne,D+1,V)),O-=re-H.length(),ne-=re-H.length();if(void 0===q&&ee===g.Class.UNIVERSAL&&X===g.Type.BITSTRING&&(x=H.bytes(ne)),void 0===q&&V.decodeBitStrings&&ee===g.Class.UNIVERSAL&&X===g.Type.BITSTRING&&ne>1){var Y=H.read,se=O,pe=0;if(X===g.Type.BITSTRING&&(I(H,O,1),pe=H.getByte(),O--),0===pe)try{re=H.length();var j=te(H,O,D+1,{strict:!0,decodeBitStrings:!0}),Z=re-H.length();O-=Z,X==g.Type.BITSTRING&&Z++;var ce=j.tagClass;Z===ne&&(ce===g.Class.UNIVERSAL||ce===g.Class.CONTEXT_SPECIFIC)&&(q=[j])}catch{}void 0===q&&(H.read=Y,O=se)}if(void 0===q){if(void 0===ne){if(V.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");ne=O}if(X===g.Type.BMPSTRING)for(q="";ne>0;ne-=2)I(H,O,2),q+=String.fromCharCode(H.getInt16()),O-=2;else q=H.getBytes(ne),O-=ne}return g.create(ee,X,F,q,void 0===x?null:{bitStringContents:x})}g.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},g.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},g.maxDepth=256,g.create=function(H,O,D,V,re){if(S.util.isArray(V)){for(var Se=[],ee=0;ee<V.length;++ee)void 0!==V[ee]&&Se.push(V[ee]);V=Se}var X={tagClass:H,type:O,constructed:D,composed:D||S.util.isArray(V),value:V};return re&&"bitStringContents"in re&&(X.bitStringContents=re.bitStringContents,X.original=g.copy(X)),X},g.copy=function(H,O){var D;if(S.util.isArray(H)){D=[];for(var V=0;V<H.length;++V)D.push(g.copy(H[V],O));return D}return"string"==typeof H?H:(D={tagClass:H.tagClass,type:H.type,constructed:H.constructed,composed:H.composed,value:g.copy(H.value,O)},O&&!O.excludeBitStringContents&&(D.bitStringContents=H.bitStringContents),D)},g.equals=function(H,O,D){if(S.util.isArray(H)){if(!S.util.isArray(O)||H.length!==O.length)return!1;for(var V=0;V<H.length;++V)if(!g.equals(H[V],O[V]))return!1;return!0}if(typeof H!=typeof O)return!1;if("string"==typeof H)return H===O;var re=H.tagClass===O.tagClass&&H.type===O.type&&H.constructed===O.constructed&&H.composed===O.composed&&g.equals(H.value,O.value);return D&&D.includeBitStringContents&&(re=re&&H.bitStringContents===O.bitStringContents),re},g.getBerValueLength=function(H){var O=H.getByte();if(128!==O)return 128&O?H.getInt((127&O)<<3):O},g.fromDer=function(H,O){void 0===O&&(O={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),"boolean"==typeof O&&(O={strict:O,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in O||(O.strict=!0),"parseAllBytes"in O||(O.parseAllBytes=!0),"decodeBitStrings"in O||(O.decodeBitStrings=!0),"maxDepth"in O||(O.maxDepth=g.maxDepth),"string"==typeof H&&(H=S.util.createBuffer(H));var D=H.length(),V=te(H,H.length(),0,O);if(O.parseAllBytes&&0!==H.length()){var re=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw re.byteCount=D,re.remaining=H.length(),re}return V},g.toDer=function(H){var O=S.util.createBuffer(),D=H.tagClass|H.type,V=S.util.createBuffer(),re=!1;if("bitStringContents"in H&&(re=!0,H.original&&(re=g.equals(H,H.original))),re)V.putBytes(H.bitStringContents);else if(H.composed){H.constructed?D|=32:V.putByte(0);for(var Se=0;Se<H.value.length;++Se)void 0!==H.value[Se]&&V.putBuffer(g.toDer(H.value[Se]))}else if(H.type===g.Type.BMPSTRING)for(Se=0;Se<H.value.length;++Se)V.putInt16(H.value.charCodeAt(Se));else!(H.type===g.Type.INTEGER&&H.value.length>1)||(0!==H.value.charCodeAt(0)||128&H.value.charCodeAt(1))&&(255!==H.value.charCodeAt(0)||128&~H.value.charCodeAt(1))?V.putBytes(H.value):V.putBytes(H.value.substr(1));if(O.putByte(D),V.length()<=127)O.putByte(127&V.length());else{var ee=V.length(),X="";do{X+=String.fromCharCode(255&ee),ee>>>=8}while(ee>0);for(O.putByte(128|X.length),Se=X.length-1;Se>=0;--Se)O.putByte(X.charCodeAt(Se))}return O.putBuffer(V),O},g.oidToDer=function(H){var O=H.split("."),D=S.util.createBuffer();D.putByte(40*parseInt(O[0],10)+parseInt(O[1],10));for(var V,re,Se,ee,X=2;X<O.length;++X){if(V=!0,re=[],(Se=parseInt(O[X],10))>4294967295)throw new Error("OID value too large; max is 32-bits.");do{ee=127&Se,Se>>>=7,V||(ee|=128),re.push(ee),V=!1}while(Se>0);for(var ne=re.length-1;ne>=0;--ne)D.putByte(re[ne])}return D},g.derToOid=function(H){var O;"string"==typeof H&&(H=S.util.createBuffer(H));var D=H.getByte();O=Math.floor(D/40)+"."+D%40;for(var V=0;H.length()>0;){if(V>70368744177663)throw new Error("OID value too large; max is 53-bits.");V*=128,128&(D=H.getByte())?V+=127&D:(O+="."+(V+D),V=0)}return O},g.utcTimeToDate=function(H){var O=new Date,D=parseInt(H.substr(0,2),10);D=D>=50?1900+D:2e3+D;var V=parseInt(H.substr(2,2),10)-1,re=parseInt(H.substr(4,2),10),Se=parseInt(H.substr(6,2),10),ee=parseInt(H.substr(8,2),10),X=0;if(H.length>11){var ne=H.charAt(10),z=10;"+"!==ne&&"-"!==ne&&(X=parseInt(H.substr(10,2),10),z+=2)}if(O.setUTCFullYear(D,V,re),O.setUTCHours(Se,ee,X,0),z&&("+"===(ne=H.charAt(z))||"-"===ne)){var F=60*parseInt(H.substr(z+1,2),10)+parseInt(H.substr(z+4,2),10);F*=6e4,O.setTime("+"===ne?+O-F:+O+F)}return O},g.generalizedTimeToDate=function(H){var O=new Date,D=parseInt(H.substr(0,4),10),V=parseInt(H.substr(4,2),10)-1,re=parseInt(H.substr(6,2),10),Se=parseInt(H.substr(8,2),10),ee=parseInt(H.substr(10,2),10),X=parseInt(H.substr(12,2),10),ne=0,z=0,q=!1;"Z"===H.charAt(H.length-1)&&(q=!0);var x=H.length-5,F=H.charAt(x);return"+"!==F&&"-"!==F||(z=60*parseInt(H.substr(x+1,2),10)+parseInt(H.substr(x+4,2),10),z*=6e4,"+"===F&&(z*=-1),q=!0),"."===H.charAt(14)&&(ne=1e3*parseFloat(H.substr(14),10)),q?(O.setUTCFullYear(D,V,re),O.setUTCHours(Se,ee,X,ne),O.setTime(+O+z)):(O.setFullYear(D,V,re),O.setHours(Se,ee,X,ne)),O},g.dateToUtcTime=function(H){if("string"==typeof H)return H;var O="",D=[];D.push((""+H.getUTCFullYear()).substr(2)),D.push(""+(H.getUTCMonth()+1)),D.push(""+H.getUTCDate()),D.push(""+H.getUTCHours()),D.push(""+H.getUTCMinutes()),D.push(""+H.getUTCSeconds());for(var V=0;V<D.length;++V)D[V].length<2&&(O+="0"),O+=D[V];return O+"Z"},g.dateToGeneralizedTime=function(H){if("string"==typeof H)return H;var O="",D=[];D.push(""+H.getUTCFullYear()),D.push(""+(H.getUTCMonth()+1)),D.push(""+H.getUTCDate()),D.push(""+H.getUTCHours()),D.push(""+H.getUTCMinutes()),D.push(""+H.getUTCSeconds());for(var V=0;V<D.length;++V)D[V].length<2&&(O+="0"),O+=D[V];return O+"Z"},g.integerToDer=function(H){var O=S.util.createBuffer();if(H>=-128&&H<128)return O.putSignedInt(H,8);if(H>=-32768&&H<32768)return O.putSignedInt(H,16);if(H>=-8388608&&H<8388608)return O.putSignedInt(H,24);if(H>=-2147483648&&H<2147483648)return O.putSignedInt(H,32);var D=new Error("Integer too large; max is 32-bits.");throw D.integer=H,D},g.derToInteger=function(H){"string"==typeof H&&(H=S.util.createBuffer(H));var O=8*H.length();if(O>32)throw new Error("Integer too large; max is 32-bits.");return H.getSignedInt(O)},g.validate=function(H,O,D,V){var re=!1;if((H.tagClass===O.tagClass||typeof O.tagClass>"u")&&(H.type===O.type||typeof O.type>"u"))if(H.constructed===O.constructed||typeof O.constructed>"u"){if(re=!0,O.value&&S.util.isArray(O.value))for(var Se=0,ee=0;re&&ee<O.value.length;++ee){var X=O.value[ee];re=!!X.optional;var ne=H.value[Se];if(ne){if(typeof X.tagClass<"u"&&typeof X.type<"u"&&(ne.tagClass!==X.tagClass||ne.type!==X.type)){if(X.optional){re=!0;continue}re=!1,V&&V.push("["+O.name+"] Tag mismatch. Expected ("+X.tagClass+","+X.type+"), got ("+ne.tagClass+","+ne.type+")");break}if(g.validate(ne,X,D,V))++Se,re=!0;else{if(!X.optional){re=!1;break}re=!0}}else X.optional||(re=!1,V&&V.push("["+O.name+'] Missing required element. Expected tag class "'+X.tagClass+'", type "'+X.type+'"'))}if(re&&D&&(O.capture&&(D[O.capture]=H.value),O.captureAsn1&&(D[O.captureAsn1]=H),O.captureBitStringContents&&"bitStringContents"in H&&(D[O.captureBitStringContents]=H.bitStringContents),O.captureBitStringValue&&"bitStringContents"in H))if(H.bitStringContents.length<2)D[O.captureBitStringValue]="";
1else{if(0!==H.bitStringContents.charCodeAt(0))throw new Error("captureBitStringValue only supported for zero unused bits");D[O.captureBitStringValue]=H.bitStringContents.slice(1)}}else V&&V.push("["+O.name+'] Expected constructed "'+O.constructed+'", got "'+H.constructed+'"');else V&&(H.tagClass!==O.tagClass&&V.push("["+O.name+'] Expected tag class "'+O.tagClass+'", got "'+H.tagClass+'"'),H.type!==O.type&&V.push("["+O.name+'] Expected type "'+O.type+'", got "'+H.type+'"'));return re};var J=/[^\\u0000-\\u00ff]/;g.prettyPrint=function(H,O,D){var V="";D=D||2,(O=O||0)>0&&(V+="\n");for(var re="",Se=0;Se<O*D;++Se)re+=" ";switch(V+=re+"Tag: ",H.tagClass){case g.Class.UNIVERSAL:V+="Universal:";break;case g.Class.APPLICATION:V+="Application:";break;case g.Class.CONTEXT_SPECIFIC:V+="Context-Specific:";break;case g.Class.PRIVATE:V+="Private:"}if(H.tagClass===g.Class.UNIVERSAL)switch(V+=H.type,H.type){case g.Type.NONE:V+=" (None)";break;case g.Type.BOOLEAN:V+=" (Boolean)";break;case g.Type.INTEGER:V+=" (Integer)";break;case g.Type.BITSTRING:V+=" (Bit string)";break;case g.Type.OCTETSTRING:V+=" (Octet string)";break;case g.Type.NULL:V+=" (Null)";break;case g.Type.OID:V+=" (Object Identifier)";break;case g.Type.ODESC:V+=" (Object Descriptor)";break;case g.Type.EXTERNAL:V+=" (External or Instance of)";break;case g.Type.REAL:V+=" (Real)";break;case g.Type.ENUMERATED:V+=" (Enumerated)";break;case g.Type.EMBEDDED:V+=" (Embedded PDV)";break;case g.Type.UTF8:V+=" (UTF8)";break;case g.Type.ROID:V+=" (Relative Object Identifier)";break;case g.Type.SEQUENCE:V+=" (Sequence)";break;case g.Type.SET:V+=" (Set)";break;case g.Type.PRINTABLESTRING:V+=" (Printable String)";break;case g.Type.IA5String:V+=" (IA5String (ASCII))";break;case g.Type.UTCTIME:V+=" (UTC time)";break;case g.Type.GENERALIZEDTIME:V+=" (Generalized time)";break;case g.Type.BMPSTRING:V+=" (BMP String)"}else V+=H.type;if(V+="\n",V+=re+"Constructed: "+H.constructed+"\n",H.composed){var ee=0,X="";for(Se=0;Se<H.value.length;++Se)void 0!==H.value[Se]&&(ee+=1,X+=g.prettyPrint(H.value[Se],O+1,D),Se+1<H.value.length&&(X+=","));V+=re+"Sub values: "+ee+X}else{if(V+=re+"Value: ",H.type===g.Type.OID){var ne=g.derToOid(H.value);V+=ne,S.pki&&S.pki.oids&&ne in S.pki.oids&&(V+=" ("+S.pki.oids[ne]+") ")}if(H.type===g.Type.INTEGER)try{V+=g.derToInteger(H.value)}catch{V+="0x"+S.util.bytesToHex(H.value)}else if(H.type===g.Type.BITSTRING){if(V+=H.value.length>1?"0x"+S.util.bytesToHex(H.value.slice(1)):"(none)",H.value.length>0){var z=H.value.charCodeAt(0);1==z?V+=" (1 unused bit shown)":z>1&&(V+=" ("+z+" unused bits shown)")}}else if(H.type===g.Type.OCTETSTRING)J.test(H.value)||(V+="("+H.value+") "),V+="0x"+S.util.bytesToHex(H.value);else if(H.type===g.Type.UTF8)try{V+=S.util.decodeUtf8(H.value)}catch(q){if("URI malformed"!==q.message)throw q;V+="0x"+S.util.bytesToHex(H.value)+" (malformed UTF8)"}else H.type===g.Type.PRINTABLESTRING||H.type===g.Type.IA5String?V+=H.value:J.test(H.value)?V+="0x"+S.util.bytesToHex(H.value):V+=0===H.value.length?"[null]":H.value}return V}},8040:(yt,rn,ve)=>{var S=ve(6589);ve(5833),yt.exports=S.mgf=S.mgf||{},S.mgf.mgf1=S.mgf1},8244:function(yt,rn){!function(ve){"use strict";function g(c){var f,y,A,W;for(y=1,A=arguments.length;y<A;y++)for(f in W=arguments[y])c[f]=W[f];return c}var I=Object.create||function(){function c(){}return function(f){return c.prototype=f,new c}}();function K(c,f){var y=Array.prototype.slice;if(c.bind)return c.bind.apply(c,y.call(arguments,1));var A=y.call(arguments,2);return function(){return c.apply(f,A.length?A.concat(y.call(arguments)):arguments)}}var te=0;function J(c){return"_leaflet_id"in c||(c._leaflet_id=++te),c._leaflet_id}function H(c,f,y){var A,W,ue,ke;return ke=function(){A=!1,W&&(ue.apply(y,W),W=!1)},ue=function(){A?W=arguments:(c.apply(y,arguments),setTimeout(ke,f),A=!0)},ue}function O(c,f,y){var A=f[1],W=f[0],ue=A-W;return c===A&&y?c:((c-W)%ue+ue)%ue+W}function D(){return!1}function V(c,f){if(!1===f)return c;var y=Math.pow(10,void 0===f?6:f);return Math.round(c*y)/y}function re(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function Se(c){return re(c).split(/\s+/)}function ee(c,f){for(var y in Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?I(c.options):{}),f)c.options[y]=f[y];return c.options}function X(c,f,y){var A=[];for(var W in c)A.push(encodeURIComponent(y?W.toUpperCase():W)+"="+encodeURIComponent(c[W]));return(f&&-1!==f.indexOf("?")?"&":"?")+A.join("&")}var ne=/\{ *([\w_ -]+) *\}/g;function z(c,f){return c.replace(ne,function(y,A){var W=f[A];if(void 0===W)throw new Error("No value provided for variable "+y);return"function"==typeof W&&(W=W(f)),W})}var q=Array.isArray||function(c){return"[object Array]"===Object.prototype.toString.call(c)};function x(c,f){for(var y=0;y<c.length;y++)if(c[y]===f)return y;return-1}var F="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Y(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var se=0;function pe(c){var f=+new Date,y=Math.max(0,16-(f-se));return se=f+y,window.setTimeout(c,y)}var Te=window.requestAnimationFrame||Y("RequestAnimationFrame")||pe,j=window.cancelAnimationFrame||Y("CancelAnimationFrame")||Y("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function Z(c,f,y){if(!y||Te!==pe)return Te.call(window,K(c,f));c.call(f)}function ce(c){c&&j.call(window,c)}var w={__proto__:null,extend:g,create:I,bind:K,get lastId(){return te},stamp:J,throttle:H,wrapNum:O,falseFn:D,formatNum:V,trim:re,splitWords:Se,setOptions:ee,getParamString:X,template:z,isArray:q,indexOf:x,emptyImageUrl:F,requestFn:Te,cancelFn:j,requestAnimFrame:Z,cancelAnimFrame:ce};function me(){}me.extend=function(c){var f=function(){ee(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},y=f.__super__=this.prototype,A=I(y);for(var W in A.constructor=f,f.prototype=A,this)Object.prototype.hasOwnProperty.call(this,W)&&"prototype"!==W&&"__super__"!==W&&(f[W]=this[W]);return c.statics&&g(f,c.statics),c.includes&&(function Ee(c){if(!(typeof L>"u")&&L&&L.Mixin){c=q(c)?c:[c];for(var f=0;f<c.length;
vendor: 8,648 bytes, line 1
1f++)c[f]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(c.includes),g.apply(null,[A].concat(c.includes))),g(A,c),delete A.statics,delete A.includes,A.options&&(A.options=y.options?I(y.options):{},g(A.options,c.options)),A._initHooks=[],A.callInitHooks=function(){if(!this._initHooksCalled){y.callInitHooks&&y.callInitHooks.call(this),this._initHooksCalled=!0;for(var ue=0,ke=A._initHooks.length;ue<ke;ue++)A._initHooks[ue].call(this)}},f},me.include=function(c){var f=this.prototype.options;return g(this.prototype,c),c.options&&(this.prototype.options=f,this.mergeOptions(c.options)),this},me.mergeOptions=function(c){return g(this.prototype.options,c),this},me.addInitHook=function(c){var f=Array.prototype.slice.call(arguments,1),y="function"==typeof c?c:function(){this[c].apply(this,f)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(y),this};var ge={on:function(c,f,y){if("object"==typeof c)for(var A in c)this._on(A,c[A],f);else for(var W=0,ue=(c=Se(c)).length;W<ue;W++)this._on(c[W],f,y);return this},off:function(c,f,y){if(arguments.length)if("object"==typeof c)for(var A in c)this._off(A,c[A],f);else{c=Se(c);for(var W=1===arguments.length,ue=0,ke=c.length;ue<ke;ue++)W?this._off(c[ue]):this._off(c[ue],f,y)}else delete this._events;return this},_on:function(c,f,y,A){if("function"==typeof f){if(!1===this._listens(c,f,y)){y===this&&(y=void 0);var W={fn:f,ctx:y};A&&(W.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(W)}}else console.warn("wrong listener type: "+typeof f)},_off:function(c,f,y){var A,W,ue;if(this._events&&(A=this._events[c])){if(1===arguments.length){if(this._firingCount)for(W=0,ue=A.length;W<ue;W++)A[W].fn=D;return void delete this._events[c]}if("function"!=typeof f)return void console.warn("wrong listener type: "+typeof f);var ke=this._listens(c,f,y);!1!==ke&&(this._firingCount&&(A[ke].fn=D,this._events[c]=A=A.slice()),A.splice(ke,1))}},fire:function(c,f,y){if(!this.listens(c,y))return this;var A=g({},f,{type:c,target:this,sourceTarget:f&&f.sourceTarget||this});if(this._events){var W=this._events[c];if(W){this._firingCount=this._firingCount+1||1;for(var ue=0,ke=W.length;ue<ke;ue++){var Ve=W[ue],Ke=Ve.fn;Ve.once&&this.off(c,Ke,Ve.ctx),Ke.call(Ve.ctx||this,A)}this._firingCount--}}return y&&this._propagateEvent(A),this},listens:function(c,f,y,A){"string"!=typeof c&&console.warn('"string" type argument expected');var W=f;"function"!=typeof f&&(A=!!f,W=void 0,y=void 0);var ue=this._events&&this._events[c];if(ue&&ue.length&&!1!==this._listens(c,W,y))return!0;if(A)for(var ke in this._eventParents)if(this._eventParents[ke].listens(c,f,y,A))return!0;return!1},_listens:function(c,f,y){if(!this._events)return!1;var A=this._events[c]||[];if(!f)return!!A.length;y===this&&(y=void 0);for(var W=0,ue=A.length;W<ue;W++)if(A[W].fn===f&&A[W].ctx===y)return W;return!1},once:function(c,f,y){if("object"==typeof c)for(var A in c)this._on(A,c[A],f,!0);else for(var W=0,ue=(c=Se(c)).length;W<ue;W++)this._on(c[W],f,y,!0);return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[J(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[J(c)],this},_propagateEvent:function(c){for(var f in this._eventParents)this._eventParents[f].fire(c.type,g({layer:c.target,propagatedFrom:c.target},c),!0)}};ge.addEventListener=ge.on,ge.removeEventListener=ge.clearAllEventListeners=ge.off,ge.addOneTimeEventListener=ge.once,ge.fireEvent=ge.fire,ge.hasEventListeners=ge.listens;var Oe=me.extend(ge);function Ie(c,f,y){this.x=y?Math.round(c):c,this.y=y?Math.round(f):f}var Be=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};function Ue(c,f,y){return c instanceof Ie?c:q(c)?new Ie(c[0],c[1]):null==c?c:"object"==typeof c&&"x"in c&&"y"in c?new Ie(c.x,c.y):new Ie(c,f,y)}function Ge(c,f){if(c)for(var y=f?[c,f]:c,A=0,W=y.length;A<W;A++)this.extend(y[A])}function it(c,f){return!c||c instanceof Ge?c:new Ge(c,f)}function ot(c,f){if(c)for(var y=f?[c,f]:c,A=0,W=y.length;A<W;A++)this.extend(y[A])}function St(c,f){return c instanceof ot?c:new ot(c,f)}function Tt(c,f,y){if(isNaN(c)||isNaN(f))throw new Error("Invalid LatLng object: ("+c+", "+f+")");this.lat=+c,this.lng=+f,void 0!==y&&(this.alt=+y)}function Et(c,f,y){return c instanceof Tt?c:q(c)&&"object"!=typeof c[0]?3===c.length?new Tt(c[0],c[1],c[2]):2===c.length?new Tt(c[0],c[1]):null:null==c?c:"object"==typeof c&&"lat"in c?new Tt(c.lat,"lng"in c?c.lng:c.lon,c.alt):void 0===f?null:new Tt(c,f,y)}Ie.prototype={clone:function(){return new Ie(this.x,this.y)},add:function(c){return this.clone()._add(Ue(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(Ue(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new Ie(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new Ie(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Be(this.x),this.y=Be(this.y),this},distanceTo:function(c){var f=(c=Ue(c)).x-this.x,y=c.y-this.y;return Math.sqrt(f*f+y*y)},equals:function(c){return(c=Ue(c)).x===this.x&&c.y===this.y},contains:function(c){return c=Ue(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+V(this.x)+", "+V(this.y)+")"}},Ge.prototype={extend:function(c){var f,y;if(!c)return this;if(c instanceof Ie||"number"==typeof c[0]||"x"in c)f=y=Ue(c);else if(y=(c=it(c)).max,!(f=c.min)||!y)return this;return this.min||this.max?(this.min.x=Math.min(f.x,this.min.x),this.max.x=Math.max(y.x,this.max.x),this.min.y=Math.min(f.y,this.min.y),this.max.y=Math.max(y.y,this.max.y)):(this.min=f.clone(),this.max=y.clone()),this},getCenter:function(c){return Ue((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return Ue(this.min.x,this.max.y)},getTopRight:function(){return Ue(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var f,y;return(c="number"==typeof c[0]||c instanceof Ie?Ue(c):it(c))instanceof Ge?(f=c.min,y=c.max):f=y=c,f.x>=this.min.x&&y.x<=this.max.x&&f.y>=this.min.y&&y.y<=this.max.y},intersects:function(c){c=it(c);var f=this.min,y=this.max,A=c.min,W=c.max;return W.x>=f.x&&A.x<=y.x&&W.y>=f.y&&A.y<=y.y},overlaps:function(c){c=it(c);var f=this.min,y=this.max,A=c.min,W=c.max;return W.x>f.x&&A.x<y.x&&W.y>f.y&&A.y<y.y},isValid:function(){return!(!this.min||!this.max)},pad:function(c){var f=this.min,y=this.max,A=Math.abs(f.x-y.x)*c,W=Math.abs(f.y-y.y)*c;return it(Ue(f.x-A,f.y-W),Ue(y.x+A,y.y+W))},equals:function(c){return!!c&&(c=it(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight()))}},ot.prototype={extend:function(c){var A,W,f=this._southWest,y=this._northEast;if(c instanceof Tt)A=c,W=c;else{if(!(c instanceof ot))return c?this.extend(Et(c)||St(c)):this;if(W=c._northEast,!(A=c._southWest)||!W)return this}return f||y?(f.lat=Math.min(A.lat,f.lat),f.lng=Math.min(A.lng,f.lng),y.lat=Math.max(W.lat,y.lat),y.lng=Math.max(W.lng,y.lng)):(this._southWest=new Tt(A.lat,A.lng),this._northEast=new Tt(W.lat,W.lng)),this},pad:function(c){var f=this._southWest,y=this._northEast,A=Math.abs(f.lat-y.lat)*c,W=Math.abs(f.lng-y.lng)*c;return new ot(new Tt(f.lat-A,f.lng-W),new Tt(y.lat+A,y.lng+W))},getCenter:function(){return new Tt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Tt(this.getNorth(),this.getWest())},getSouthEast:function(){return new Tt(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
1,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){c="number"==typeof c[0]||c instanceof Tt||"lat"in c?Et(c):St(c);var A,W,f=this._southWest,y=this._northEast;return c instanceof ot?(A=c.getSouthWest(),W=c.getNorthEast()):A=W=c,A.lat>=f.lat&&W.lat<=y.lat&&A.lng>=f.lng&&W.lng<=y.lng},intersects:function(c){c=St(c);var f=this._southWest,y=this._northEast,A=c.getSouthWest(),W=c.getNorthEast();return W.lat>=f.lat&&A.lat<=y.lat&&W.lng>=f.lng&&A.lng<=y.lng},overlaps:function(c){c=St(c);var f=this._southWest,y=this._northEast,A=c.getSouthWest(),W=c.getNorthEast();return W.lat>f.lat&&A.lat<y.lat&&W.lng>f.lng&&A.lng<y.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,f){return!!c&&(c=St(c),this._southWest.equals(c.getSouthWest(),f)&&this._northEast.equals(c.getNorthEast(),f))},isValid:function(){return!(!this._southWest||!this._northEast)}},Tt.prototype={equals:function(c,f){return!!c&&(c=Et(c),Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng))<=(void 0===f?1e-9:f))},toString:function(c){return"LatLng("+V(this.lat,c)+", "+V(this.lng,c)+")"},distanceTo:function(c){return _n.distance(this,Et(c))},wrap:function(){return _n.wrapLatLng(this)},toBounds:function(c){var f=180*c/40075017,y=f/Math.cos(Math.PI/180*this.lat);return St([this.lat-f,this.lng-y],[this.lat+f,this.lng+y])},clone:function(){return new Tt(this.lat,this.lng,this.alt)}};var c,st={latLngToPoint:function(c,f){var y=this.projection.project(c),A=this.scale(f);return this.transformation._transform(y,A)},pointToLatLng:function(c,f){var y=this.scale(f),A=this.transformation.untransform(c,y);return this.projection.unproject(A)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var f=this.projection.bounds,y=this.scale(c);return new Ge(this.transformation.transform(f.min,y),this.transformation.transform(f.max,y))},infinite:!1,wrapLatLng:function(c){var f=this.wrapLng?O(c.lng,this.wrapLng,!0):c.lng;return new Tt(this.wrapLat?O(c.lat,this.wrapLat,!0):c.lat,f,c.alt)},wrapLatLngBounds:function(c){var f=c.getCenter(),y=this.wrapLatLng(f),A=f.lat-y.lat,W=f.lng-y.lng;if(0===A&&0===W)return c;
1var ue=c.getSouthWest(),ke=c.getNorthEast();return new ot(new Tt(ue.lat-A,ue.lng-W),new Tt(ke.lat-A,ke.lng-W))}},_n=g({},st,{wrapLng:[-180,180],R:6371e3,distance:function(c,f){var y=Math.PI/180,A=c.lat*y,W=f.lat*y,ue=Math.sin((f.lat-c.lat)*y/2),ke=Math.sin((f.lng-c.lng)*y/2),Ve=ue*ue+Math.cos(A)*Math.cos(W)*ke*ke,Ke=2*Math.atan2(Math.sqrt(Ve),Math.sqrt(1-Ve));return this.R*Ke}}),jn={R:6378137,MAX_LATITUDE:85.0511287798,project:function(c){var f=Math.PI/180,y=this.MAX_LATITUDE,A=Math.max(Math.min(y,c.lat),-y),W=Math.sin(A*f);return new Ie(this.R*c.lng*f,this.R*Math.log((1+W)/(1-W))/2)},unproject:function(c){var f=180/Math.PI;return new Tt((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*f,c.x*f/this.R)},bounds:(c=6378137*Math.PI,new Ge([-c,-c],[c,c]))};function mn(c,f,y,A){if(q(c))return this._a=c[0],this._b=c[1],this._c=c[2],void(this._d=c[3]);this._a=c,this._b=f,this._c=y,this._d=A}function je(c,f,y,A){return new mn(c,f,y,A)}mn.prototype={transform:function(c,f){return this._transform(c.clone(),f)},_transform:function(c,f){return c.x=(f=f||1)*(this._a*c.x+this._b),c.y=f*(this._c*c.y+this._d),c},untransform:function(c,f){return new Ie((c.x/(f=f||1)-this._b)/this._a,(c.y/f-this._d)/this._c)}};var He=g({},_n,{code:"EPSG:3857",projection:jn,transformation:function(){var c=.5/(Math.PI*jn.R);return je(c,.5,-c,.5)}()}),R=g({},He,{code:"EPSG:900913"});function N(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function ie(c,f){var A,W,ue,ke,Ve,Ke,y="";for(A=0,ue=c.length;A<ue;A++){for(W=0,ke=(Ve=c[A]).length;W<ke;W++)y+=(W?"L":"M")+(Ke=Ve[W]).x+" "+Ke.y;y+=f?xt.svg?"z":"x":""}return y||"M0 0"}var xe=document.documentElement.style,Re="ActiveXObject"in window,ze=Re&&!document.addEventListener,Ne="msLaunchUri"in navigator&&!("documentMode"in document),ct=Fn("webkit"),Nt=Fn("android"),Ht=Fn("android 2")||Fn("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ft=Nt&&Fn("Google")&&rt<537&&!("AudioNode"in window),Gt=!!window.opera,Mn=!Ne&&Fn("chrome"),tn=Fn("gecko")&&!ct&&!Gt&&!Re,jt=!Mn&&Fn("safari"),ki=Fn("phantom"),xi="OTransition"in xe,Ni=0===navigator.platform.indexOf("Win"),Mi=Re&&"transition"in xe,ji="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ht,sr="MozPerspective"in xe,Dr=!window.L_DISABLE_3D&&(Mi||ji||sr)&&!xi&&!ki,Sr=typeof orientation<"u"||Fn("mobile"),Va=Sr&&ct,Ua=Sr&&ji,ka=!window.PointerEvent&&window.MSPointerEvent,Yr=!(!window.PointerEvent&&!ka),Ha="ontouchstart"in window||!!window.TouchEvent,Do=!window.L_NO_TOUCH&&(Ha||Yr),Js=Sr&&Gt,Hl=Sr&&tn,ll=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Td=function(){var c=!1;try{var f=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",D,f),window.removeEventListener("testPassiveEventSupport",D,f)}catch{}return c}(),zi=!!document.createElement("canvas").getContext,Li=!(!document.createElementNS||!N("svg").createSVGRect),Er=!!Li&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(c.firstChild&&c.firstChild.namespaceURI)}(),or=!Li&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var f=c.firstChild;return f.style.behavior="url(#default#VML)",f&&"object"==typeof f.adj}catch{return!1}}();function Fn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var xt={ie:Re,ielt9:ze,edge:Ne,webkit:ct,android:Nt,android23:Ht,androidStock:ft,opera:Gt,chrome:Mn,gecko:tn,safari:jt,phantom:ki,opera12:xi,win:Ni,ie3d:Mi,webkit3d:ji,gecko3d:sr,any3d:Dr,mobile:Sr,mobileWebkit:Va,mobileWebkit3d:Ua,msPointer:ka,pointer:Yr,touch:Do,touchNative:Ha,mobileOpera:Js,mobileGecko:Hl,retina:ll,passiveEvents:Td,canvas:zi,svg:Li,vml:or,inlineSvg:Er,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},cr=xt.msPointer?"MSPointerDown":"pointerdown",Jt=xt.msPointer?"MSPointerMove":"pointermove",dr=xt.msPointer?"MSPointerUp":"pointerup",Tr=xt.msPointer?"MSPointerCancel":"pointercancel",ur={touchstart:cr,touchmove:Jt,touchend:dr,touchcancel:Tr},xr={touchstart:function Rf(c,f){f.MSPOINTER_TYPE_TOUCH&&f.pointerType===f.MSPOINTER_TYPE_TOUCH&&Ft(f),Nu(c,f)},touchmove:Nu,touchend:Nu,touchcancel:Nu},nt={},Ki=!1;function an(c,f,y){return"touchstart"===f&&function Ot(){Ki||(document.addEventListener(cr,Fi,!0),document.addEventListener(Jt,mi,!0),document.addEventListener(dr,Nf,!0),document.addEventListener(Tr,Nf,!0),Ki=!0)}(),xr[f]?(y=xr[f].bind(this,y),c.addEventListener(ur[f],y,!1),y):(console.warn("wrong event specified:",f),D)}function Fi(c){nt[c.pointerId]=c}function mi(c){nt[c.pointerId]&&(nt[c.pointerId]=c)}function Nf(c){delete nt[c.pointerId]}function Nu(c,f){if(f.pointerType!==(f.MSPOINTER_TYPE_MOUSE||"mouse")){for(var y in f.touches=[],nt)f.touches.push(nt[y]);f.changedTouches=[f],c(f)}}var Yt,kr,Ei,So,Ey,Md=Bi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ed=Bi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ru="webkitTransition"===Ed||"OTransition"===Ed?Ed+"End":"transitionend";function hr(c){return"string"==typeof c?document.getElementById(c):c}function Ps(c,f){var y=c.style[f]||c.currentStyle&&c.currentStyle[f];if((!y||"auto"===y)&&document.defaultView){var A=document.defaultView.getComputedStyle(c,null);y=A?A[f]:null}return"auto"===y?null:y}function Nn(c,f,y){var A=document.createElement(c);return A.className=f||"",y&&y.appendChild(A),A}function gi(c){var f=c.parentNode;f&&f.removeChild(c)}function Ec(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function ae(c){var f=c.parentNode;f&&f.lastChild!==c&&f.appendChild(c)}function le(c){var f=c.parentNode;f&&f.firstChild!==c&&f.insertBefore(c,f.firstChild)}function De(c,f){if(void 0!==c.classList)return c.classList.contains(f);var y=ht(c);return y.length>0&&new RegExp("(^|\\s)"+f+"(\\s|$)").test(y)}function Me(c,f){if(void 0!==c.classList)for(var y=Se(f),A=0,W=y.length;A<W;A++)c.classList.add(y[A]);else if(!De(c,f)){var ue=ht(c);ut(c,(ue?ue+" ":"")+f)}}function tt(c,f){void 0!==c.classList?c.classList.remove(f):ut(c,re((" "+ht(c)+" ").replace(" "+f+" "," ")))}function ut(c,f){void 0===c.className.baseVal?c.className=f:c.className.baseVal=f}function ht(c){return c.correspondingElement&&(c=c.correspondingElement),void 0===c.className.baseVal?c.className:c.className.baseVal}
1function bt(c,f){"opacity"in c.style?c.style.opacity=f:"filter"in c.style&&function sn(c,f){var y=!1,A="DXImageTransform.Microsoft.Alpha";try{y=c.filters.item(A)}catch{if(1===f)return}f=Math.round(100*f),y?(y.Enabled=100!==f,y.Opacity=f):c.style.filter+=" progid:"+A+"(opacity="+f+")"}(c,f)}function Bi(c){for(var f=document.documentElement.style,y=0;y<c.length;y++)if(c[y]in f)return c[y];return!1}function Ar(c,f,y){var A=f||new Ie(0,0);c.style[Md]=(xt.ie3d?"translate("+A.x+"px,"+A.y+"px)":"translate3d("+A.x+"px,"+A.y+"px,0)")+(y?" scale("+y+")":"")}function ei(c,f){c._leaflet_pos=f,xt.any3d?Ar(c,f):(c.style.left=f.x+"px",c.style.top=f.y+"px")}function qt(c){return c._leaflet_pos||new Ie(0,0)}if("onselectstart"in document)Yt=function(){Dn(window,"selectstart",Ft)},kr=function(){Dt(window,"selectstart",Ft)};else{var cl=Bi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Yt=function(){if(cl){var c=document.documentElement.style;Ei=c[cl],c[cl]="none"}},kr=function(){cl&&(document.documentElement.style[cl]=Ei,Ei=void 0)}}function Os(){Dn(window,"dragstart",Ft)}function Id(){Dt(window,"dragstart",Ft)}function Iy(c){for(;-1===c.tabIndex;)c=c.parentNode;c.style&&(ng(),So=c,Ey=c.style.outlineStyle,c.style.outlineStyle="none",Dn(window,"keydown",ng))}function ng(){So&&(So.style.outlineStyle=Ey,So=void 0,Ey=void 0,Dt(window,"keydown",ng))}function mD(c){do{c=c.parentNode}while(!(c.offsetWidth&&c.offsetHeight||c===document.body));return c}function ig(c){var f=c.getBoundingClientRect();return{x:f.width/c.offsetWidth||1,y:f.height/c.offsetHeight||1,boundingClientRect:f}}var O2={__proto__:null,TRANSFORM:Md,TRANSITION:Ed,TRANSITION_END:Ru,get:hr,getStyle:Ps,create:Nn,remove:gi,empty:Ec,toFront:ae,toBack:le,hasClass:De,addClass:Me,removeClass:tt,setClass:ut,getClass:ht,setOpacity:bt,testProp:Bi,setTransform:Ar,setPosition:ei,getPosition:qt,get disableTextSelection(){return Yt},get enableTextSelection(){return kr},disableImageDrag:Os,enableImageDrag:Id,preventOutline:Iy,restoreOutline:ng,getSizedParentNode:mD,getScale:ig};function Dn(c,f,y,A){if(f&&"object"==typeof f)for(var W in f)ky(c,W,f[W],y);else for(var ue=0,ke=(f=Se(f)).length;ue<ke;ue++)ky(c,f[ue],y,A);return this}var Zi="_leaflet_events";function Dt(c,f,y,A){if(1===arguments.length)gD(c),delete c[Zi];else if(f&&"object"==typeof f)for(var W in f)Ny(c,W,f[W],y);else if(f=Se(f),2===arguments.length)gD(c,function(Ve){return-1!==x(f,Ve)});else for(var ue=0,ke=f.length;ue<ke;ue++)Ny(c,f[ue],y,A);return this}function gD(c,f){for(var y in c[Zi]){var A=y.split(/\d/)[0];(!f||f(A))&&Ny(c,A,null,null,y)}}
1var Ay={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ky(c,f,y,A){var W=f+J(y)+(A?"_"+J(A):"");if(c[Zi]&&c[Zi][W])return this;var ue=function(Ve){return y.call(A||c,Ve||window.event)},ke=ue;!xt.touchNative&&xt.pointer&&0===f.indexOf("touch")?ue=an(c,f,ue):xt.touch&&"dblclick"===f?ue=function ds(c,f){c.addEventListener("dblclick",f);var A,y=0;function W(ue){if(1===ue.detail){if("mouse"!==ue.pointerType&&(!ue.sourceCapabilities||ue.sourceCapabilities.firesTouchEvents)){var ke=Ry(ue);if(!ke.some(function(Ke){return Ke instanceof HTMLLabelElement&&Ke.attributes.for})||ke.some(function(Ke){return Ke instanceof HTMLInputElement||Ke instanceof HTMLSelectElement})){var Ve=Date.now();Ve-y<=200?2==++A&&f(function Ye(c){var y,A,f={};for(A in c)f[A]=(y=c[A])&&y.bind?y.bind(c):y;return c=f,f.type="dblclick",f.detail=2,f.isTrusted=!1,f._simulated=!0,f}(ue)):A=1,y=Ve}}}else A=ue.detail}return c.addEventListener("click",W),{dblclick:f,simDblclick:W}}(c,ue):"addEventListener"in c?"touchstart"===f||"touchmove"===f||"wheel"===f||"mousewheel"===f?c.addEventListener(Ay[f]||f,ue,!!xt.passiveEvents&&{passive:!1}):"mouseenter"===f||"mouseleave"===f?c.addEventListener(Ay[f],ue=function(Ve){Ve=Ve||window.event,kd(c,Ve)&&ke(Ve)},!1):c.addEventListener(f,ke,!1):c.attachEvent("on"+f,ue),c[Zi]=c[Zi]||{},c[Zi][W]=ue}function Ny(c,f,y,A,W){W=W||f+J(y)+(A?"_"+J(A):"");var ue=c[Zi]&&c[Zi][W];if(!ue)return this;!xt.touchNative&&xt.pointer&&0===f.indexOf("touch")?function kf(c,f,y){ur[f]?c.removeEventListener(ur[f],y,!1):console.warn("wrong event specified:",f)}(c,f,ue):xt.touch&&"dblclick"===f?function xd(c,f){c.removeEventListener("dblclick",f.dblclick),c.removeEventListener("click",f.simDblclick)}(c,ue):"removeEventListener"in c?c.removeEventListener(Ay[f]||f,ue,!1):c.detachEvent("on"+f,ue),c[Zi][W]=null}function Ad(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function We(c){return ky(c,"wheel",Ad),this}function Pf(c){return Dn(c,"mousedown touchstart dblclick contextmenu",Ad),c._leaflet_disable_click=!0,this}function Ft(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function To(c){return Ft(c),Ad(c),this}function Ry(c){if(c.composedPath)return c.composedPath();for(var f=[],y=c.target;y;)f.push(y),y=y.parentNode;return f}function rg(c,f){if(!f)return new Ie(c.clientX,c.clientY);var y=ig(f),A=y.boundingClientRect;return new Ie((c.clientX-A.left)/y.x-f.clientLeft,(c.clientY-A.top)/y.y-f.clientTop)}var _D=xt.linux&&xt.chrome?window.devicePixelRatio:xt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Pu(c){return xt.edge?c.wheelDeltaY/2:c.deltaY&&0===c.deltaMode?-c.deltaY/_D:c.deltaY&&1===c.deltaMode?20*-c.deltaY:c.deltaY&&2===c.deltaMode?60*-c.deltaY:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?20*-c.detail:c.detail?c.detail/-32765*60:0}function kd(c,f){var y=f.relatedTarget;if(!y)return!0;try{for(;y&&y!==c;)y=y.parentNode}catch{return!1}return y!==c}var ag={__proto__:null,on:Dn,off:Dt,stopPropagation:Ad,disableScrollPropagation:We,disableClickPropagation:Pf,preventDefault:Ft,stop:To,getPropagationPath:Ry,getMousePosition:rg,getWheelDelta:Pu,isExternalTarget:kd,addListener:Dn,removeListener:Dt},sg=Oe.extend({run:function(c,f,y,A){this.stop(),this._el=c,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(A||.5,.2),this._startPos=qt(c),this._offset=f.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Z(this._animate,this),this._step()},_step:function(c){var f=+new Date-this._startTime,y=1e3*this._duration;f<y?this._runFrame(this._easeOut(f/y),c):(this._runFrame(1),this._complete())},_runFrame:function(c,f){var y=this._startPos.add(this._offset.multiplyBy(c));f&&y._round(),ei(this._el,y),this.fire("step")},_complete:function(){ce(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),ti=Oe.extend({options:{crs:He,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,f){f=ee(this,f),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=K(this._onResize,this),this._initEvents(),f.maxBounds&&this.setMaxBounds(f.maxBounds),void 0!==f.zoom&&(this._zoom=this._limitZoom(f.zoom)),f.center&&void 0!==f.zoom&&this.setView(Et(f.center),f.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ed&&xt.any3d&&!xt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Dn(this._proxy,Ru,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1,setView:function(c,f,y){return f=void 0===f?this._zoom:this._limitZoom(f),c=this._limitCenter(Et(c),f,this.options.maxBounds),y=y||{},this._stop(),this._loaded&&!y.reset&&!0!==y&&(void 0!==y.animate&&(y.zoom=g({animate:y.animate},y.zoom),y.pan=g({animate:y.animate,duration:y.duration},y.pan)),this._zoom!==f?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,f,y.zoom):this._tryAnimatedPan(c,y.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(c,f,y.pan&&y.pan.noMoveStart),this)},setZoom:function(c,f){return this._loaded?this.setView(this.getCenter(),c,{zoom:f}):(this._zoom=c,this)},zoomIn:function(c,f){return this.setZoom(this._zoom+(c=c||(xt.any3d?this.options.zoomDelta:1)),f)},zoomOut:function(c,f){return this.setZoom(this._zoom-(c=c||(xt.any3d?this.options.zoomDelta:1)),f)},setZoomAround:function(c,f,y){var A=this.getZoomScale(f),W=this.getSize().divideBy(2),ke=(c instanceof Ie?c:this.latLngToContainerPoint(c)).subtract(W).multiplyBy(1-1/A),Ve=this.containerPointToLatLng(W.add(ke));return this.setView(Ve,f,{zoom:y})},_getBoundsCenterZoom:function(c,f){f=f||{},c=c.getBounds?c.getBounds():St(c);var y=Ue(f.paddingTopLeft||f.padding||[0,0]),A=Ue(f.paddingBottomRight||f.padding||[0,0]),W=this.getBoundsZoom(c,!1,y.add(A));if((W="number"==typeof f.maxZoom?Math.min(f.maxZoom,W):W)===1/0)return{center:c.getCenter(),zoom:W};
1var ue=A.subtract(y).divideBy(2),ke=this.project(c.getSouthWest(),W),Ve=this.project(c.getNorthEast(),W);return{center:this.unproject(ke.add(Ve).divideBy(2).add(ue),W),zoom:W}},fitBounds:function(c,f){if(!(c=St(c)).isValid())throw new Error("Bounds are not valid.");var y=this._getBoundsCenterZoom(c,f);return this.setView(y.center,y.zoom,f)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,f){return this.setView(c,this._zoom,{pan:f})},panBy:function(c,f){if(f=f||{},!(c=Ue(c).round()).x&&!c.y)return this.fire("moveend");if(!0!==f.animate&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new sg,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),f.noMoveStart||this.fire("movestart"),!1!==f.animate){Me(this._mapPane,"leaflet-pan-anim");var y=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,y,f.duration||.25,f.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,f,y){if(!1===(y=y||{}).animate||!xt.any3d)return this.setView(c,f,y);this._stop();var A=this.project(this.getCenter()),W=this.project(c),ue=this.getSize(),ke=this._zoom;c=Et(c),f=void 0===f?ke:f;var Ve=Math.max(ue.x,ue.y),Ke=Ve*this.getZoomScale(ke,f),dt=W.distanceTo(A)||1,Mt=1.42,nn=Mt*Mt;function On(Bn){var Vs=(Ke*Ke-Ve*Ve+(Bn?-1:1)*nn*nn*dt*dt)/(2*(Bn?Ke:Ve)*nn*dt),en=Math.sqrt(Vs*Vs+1)-Vs;return en<1e-9?-18:Math.log(en)}function Ya(Bn){return(Math.exp(Bn)-Math.exp(-Bn))/2}function ia(Bn){return(Math.exp(Bn)+Math.exp(-Bn))/2}var Qa=On(0);function qf(Bn){return Ve*(ia(Qa)*function Bs(Bn){return Ya(Bn)/ia(Bn)}(Qa+Mt*Bn)-Ya(Qa))/nn}var pt=Date.now(),Xt=(On(1)-Qa)/Mt,Qi=y.duration?1e3*y.duration:1e3*Xt*.8;return this._moveStart(!0,y.noMoveStart),function _a(){var Bn=(Date.now()-pt)/Qi,ra=function bi(Bn){return 1-Math.pow(1-Bn,1.5)}(Bn)*Xt;Bn<=1?(this._flyToFrame=Z(_a,this),this._move(this.unproject(A.add(W.subtract(A).multiplyBy(qf(ra)/dt)),ke),this.getScaleZoom(Ve/function ql(Bn){return Ve*(ia(Qa)/ia(Qa+Mt*Bn))}(ra),ke),{flyTo:!0})):this._move(c,f)._moveEnd(!0)}.call(this),this},flyToBounds:function(c,f){var y=this._getBoundsCenterZoom(c,f);return this.flyTo(y.center,y.zoom,f)},setMaxBounds:function(c){return c=St(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var f=this.options.minZoom;return this.options.minZoom=c,this._loaded&&f!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var f=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&f!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,f){this._enforcingBounds=!0;var y=this.getCenter(),A=this._limitCenter(y,this._zoom,St(c));return y.equals(A)||this.panTo(A,f),this._enforcingBounds=!1,this},panInside:function(c,f){var y=Ue((f=f||{}).paddingTopLeft||f.padding||[0,0]),A=Ue(f.paddingBottomRight||f.padding||[0,0]),W=this.project(this.getCenter()),ue=this.project(c),ke=this.getPixelBounds(),Ve=it([ke.min.add(y),ke.max.subtract(A)]),Ke=Ve.getSize();if(!Ve.contains(ue)){this._enforcingBounds=!0;var dt=ue.subtract(Ve.getCenter()),Mt=Ve.extend(ue).getSize().subtract(Ke);W.x+=dt.x<0?-Mt.x:Mt.x,W.y+=dt.y<0?-Mt.y:Mt.y,this.panTo(this.unproject(W),f),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=g({animate:!1,pan:!0},!0===c?{animate:!0}:c);var f=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var y=this.getSize(),A=f.divideBy(2).round(),W=y.divideBy(2).round(),ue=A.subtract(W);return ue.x||ue.y?(c.animate&&c.pan?this.panBy(ue):(c.pan&&this._rawPanBy(ue),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(K(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:f,newSize:y})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=g({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var f=K(this._handleGeolocationResponse,this),y=K(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(f,y,c):navigator.geolocation.getCurrentPosition(f,y,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var f=c.code,y=c.message||(1===f?"permission denied":2===f?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:f,message:"Geolocation error: "+y+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var A=new Tt(c.coords.latitude,c.coords.longitude),W=A.toBounds(2*c.coords.accuracy),ue=this._locateOptions;if(ue.setView){var ke=this.getBoundsZoom(W);this.setView(A,ue.maxZoom?Math.min(ke,ue.maxZoom):ke)}var Ve={latlng:A,bounds:W,timestamp:c.timestamp};for(var Ke in c.coords)"number"==typeof c.coords[Ke]&&(Ve[Ke]=c.coords[Ke]);this.fire("locationfound",Ve)}},addHandler:function(c,f){if(!f)return this;var y=this[c]=new f(this);return this._handlers.push(y),this.options[c]&&y.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var c;for(c in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),gi(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ce(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[c].remove();for(c in this._panes)gi(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,f){var A=Nn("div","leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),f||this._mapPane);return c&&(this._panes[c]=A),A},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds();return new ot(this.unproject(c.getBottomLeft()),this.unproject(c.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZo
vendor: 4,386 bytes, line 1
1om?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,f,y){c=St(c),y=Ue(y||[0,0]);var A=this.getZoom()||0,W=this.getMinZoom(),ue=this.getMaxZoom(),ke=c.getNorthWest(),Ve=c.getSouthEast(),Ke=this.getSize().subtract(y),dt=it(this.project(Ve,A),this.project(ke,A)).getSize(),Mt=xt.any3d?this.options.zoomSnap:1,nn=Ke.x/dt.x,On=Ke.y/dt.y,Ya=f?Math.max(nn,On):Math.min(nn,On);return A=this.getScaleZoom(Ya,A),Mt&&(A=Math.round(A/(Mt/100))*(Mt/100),A=f?Math.ceil(A/Mt)*Mt:Math.floor(A/Mt)*Mt),Math.max(W,Math.min(ue,A))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Ie(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,f){var y=this._getTopLeftPoint(c,f);return new Ge(y,y.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(void 0===c?this.getZoom():c)},getPane:function(c){return"string"==typeof c?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,f){var y=this.options.crs;return f=void 0===f?this._zoom:f,y.scale(c)/y.scale(f)},getScaleZoom:function(c,f){var y=this.options.crs,A=y.zoom(c*y.scale(f=void 0===f?this._zoom:f));return isNaN(A)?1/0:A},project:function(c,f){return f=void 0===f?this._zoom:f,this.options.crs.latLngToPoint(Et(c),f)},unproject:function(c,f){return f=void 0===f?this._zoom:f,this.options.crs.pointToLatLng(Ue(c),f)},layerPointToLatLng:function(c){var f=Ue(c).add(this.getPixelOrigin());return this.unproject(f)},latLngToLayerPoint:function(c){return this.project(Et(c))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(Et(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(St(c))},distance:function(c,f){return this.options.crs.distance(Et(c),Et(f))},containerPointToLayerPoint:function(c){return Ue(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return Ue(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var f=this.containerPointToLayerPoint(Ue(c));return this.layerPointToLatLng(f)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Et(c)))},mouseEventToContainerPoint:function(c){return rg(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var f=this._container=hr(c);if(!f)throw new Error("Map container not found.");if(f._leaflet_id)throw new Error("Map container is already initialized.");Dn(f,"scroll",this._onScroll,this),this._containerId=J(f)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&xt.any3d,Me(c,"leaflet-container"+(xt.touch?" leaflet-touch":"")+(xt.retina?" leaflet-retina":"")+(xt.ielt9?" leaflet-oldie":"")+(xt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var f=Ps(c,"position");"absolute"!==f&&"relative"!==f&&"fixed"!==f&&"sticky"!==f&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ei(this._mapPane,new Ie(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Me(c.markerPane,"leaflet-zoom-hide"),Me(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,f,y){ei(this._mapPane,new Ie(0,0));var A=!this._loaded;this._loaded=!0,f=this._limitZoom(f),this.fire("viewprereset");var W=this._zoom!==f;this._moveStart(W,y)._move(c,f)._moveEnd(W),this.fire("viewreset"),A&&this.fire("load")},_moveStart:function(c,f){return c&&this.fire("zoomstart"),f||this.fire("movestart"),this},_move:function(c,f,y,A){void 0===f&&(f=this._zoom);var W=this._zoom!==f;return this._zoom=f,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),A?y&&y.pinch&&this.fire("zoom",y):((W||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",
1y)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ce(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){ei(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[J(this._container)]=this;var f=c?Dt:Dn;f(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&f(window,"resize",this._onResize,this),xt.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ce(this._resizeRequest),this._resizeRequest=Z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,f){for(var A,y=[],W="mouseout"===f||"mouseover"===f,ue=c.target||c.srcElement,ke=!1;ue;){if((A=this._targets[J(ue)])&&("click"===f||"preclick"===f)&&this._draggableMoved(A)){ke=!0;break}if(A&&A.listens(f,!0)&&(W&&!kd(ue,c)||(y.push(A),W))||ue===this._container)break;ue=ue.parentNode}return!y.length&&!ke&&!W&&this.listens(f,!0)&&(y=[this]),y},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var f=c.target||c.srcElement;if(!(!this._loaded||f._leaflet_disable_events||"click"===c.type&&this._isClickDisabled(f))){var y=c.type;"mousedown"===y&&Iy(f),this._fireDOMEvent(c,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,f,y){if("click"===c.type){var A=g({},c);A.type="preclick",this._fireDOMEvent(A,A.type,y)}var W=this._findEventTargets(c,f);if(y){for(var ue=[],ke=0;ke<y.length;ke++)y[ke].listens(f,!0)&&ue.push(y[ke]);W=ue.concat(W)}if(W.length){"contextmenu"===f&&Ft(c);var Ve=W[0],Ke={originalEvent:c};if("keypress"!==c.type&&"keydown"!==c.type&&"keyup"!==c.type){var dt=Ve.getLatLng&&(!Ve._radius||Ve._radius<=10);Ke.containerPoint=dt?this.latLngToContainerPoint(Ve.getLatLng()):this.mouseEventToContainerPoint(c),Ke.layerPoint=this.containerPointToLayerPoint(Ke.containerPoint),Ke.latlng=dt?Ve.getLatLng():this.layerPointToLatLng(Ke.layerPoint)}for(ke=0;ke<W.length;ke++)if(W[ke].fire(f,Ke,!0),Ke.originalEvent._stopped||!1===W[ke].options.bubblingMouseEvents&&-1!==x(this._mouseEvents,f))return}},_draggableMoved:function(c){return(c=c.dragging&&c.dragging.enabled()?c:this).dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,f=this._handlers.length;c<f;c++)this._handlers[c].disable()},whenReady:function(c,f){return this._loaded?c.call(f||this,{target:this}):this.on("load",c,f),this},_getMapPanePos:function(){return qt(this._mapPane)||new Ie(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,f){return(c&&void 0!==f?this._getNewPixelOrigin(c,f):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,f){var y=this.getSize()._divideBy(2);return this.project(c,f)._subtract(y)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,f,y){var A=this._getNewPixelOrigin(y,f);return this.project(c,f)._subtract(A)},_latLngBoundsToNewLayerBounds:function(c,f,y){var A=this._getNewPixelOrigin(y,f);
1return it([this.project(c.getSouthWest(),f)._subtract(A),this.project(c.getNorthWest(),f)._subtract(A),this.project(c.getSouthEast(),f)._subtract(A),this.project(c.getNorthEast(),f)._subtract(A)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,f,y){if(!y)return c;var A=this.project(c,f),W=this.getSize().divideBy(2),ue=new Ge(A.subtract(W),A.add(W)),ke=this._getBoundsOffset(ue,y,f);return Math.abs(ke.x)<=1&&Math.abs(ke.y)<=1?c:this.unproject(A.add(ke),f)},_limitOffset:function(c,f){if(!f)return c;var y=this.getPixelBounds(),A=new Ge(y.min.add(c),y.max.add(c));return c.add(this._getBoundsOffset(A,f))},_getBoundsOffset:function(c,f,y){var A=it(this.project(f.getNorthEast(),y),this.project(f.getSouthWest(),y)),W=A.min.subtract(c.min),ue=A.max.subtract(c.max);return new Ie(this._rebound(W.x,-ue.x),this._rebound(W.y,-ue.y))},_rebound:function(c,f){return c+f>0?Math.round(c-f)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(f))},_limitZoom:function(c){var f=this.getMinZoom(),y=this.getMaxZoom(),A=xt.any3d?this.options.zoomSnap:1;return A&&(c=Math.round(c/A)*A),Math.max(f,Math.min(y,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,f){var y=this._getCenterOffset(c)._trunc();return!(!0!==(f&&f.animate)&&!this.getSize().contains(y)||(this.panBy(y,f),0))},_createAnimProxy:function(){var c=this._proxy=Nn("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(f){var y=Md,A=this._proxy.style[y];Ar(this._proxy,this.project(f.center,f.zoom),this.getZoomScale(f.zoom,1)),A===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){gi(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),f=this.getZoom();
1Ar(this._proxy,this.project(c,f),this.getZoomScale(f,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,f,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||!1===y.animate||this._nothingToAnimate()||Math.abs(f-this._zoom)>this.options.zoomAnimationThreshold)return!1;var A=this.getZoomScale(f),W=this._getCenterOffset(c)._divideBy(1-1/A);return!(!0!==y.animate&&!this.getSize().contains(W)||(Z(function(){this._moveStart(!0,y.noMoveStart||!1)._animateZoom(c,f,!0)},this),0))},_animateZoom:function(c,f,y,A){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=f,Me(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:f,noUpdate:A}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(K(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var us=me.extend({options:{position:"topright"},initialize:function(c){ee(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var f=this._map;return f&&f.removeControl(this),this.options.position=c,f&&f.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var f=this._container=this.onAdd(c),y=this.getPosition(),A=c._controlCorners[y];return Me(f,"leaflet-control"),-1!==y.indexOf("bottom")?A.insertBefore(f,A.firstChild):A.appendChild(f),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(gi(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),jl=function(c){return new us(c)};ti.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},f="leaflet-",y=this._controlContainer=Nn("div",f+"control-container",this._container);function A(W,ue){c[W+ue]=Nn("div",f+W+" "+f+ue,y)}A("top","left"),A("top","right"),A("bottom","left"),A("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)gi(this._controlCorners[c]);gi(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var og=us.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,f,y,A){return y<A?-1:A<y?1:0}},initialize:function(c,f,y){for(var A in ee(this,y),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,c)this._addLayer(c[A],A);for(A in f)this._addLayer(f[A],A,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var f=0;f<this._layers.length;f++)this._layers[f].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return us.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,f){return this._addLayer(c,f),this._map?this._update():this},addOverlay:function(c,f){return this._addLayer(c,f,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var f=this._getLayer(J(c));return f&&this._layers.splice(this._layers.indexOf(f),1),this._map?this._update():this},expand:function(){Me(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(Me(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):tt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",f=this._container=Nn("div",c),y=this.options.collapsed;f.setAttribute("aria-haspopup",!0),Pf(f),We(f);var A=this._section=Nn("section",c+"-list");y&&(this._map.on("click",this.collapse,this),Dn(f,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var W=this._layersLink=Nn("a",c+"-toggle",f);W.href="#",W.title="Layers",W.setAttribute("role","button"),Dn(W,{keydown:function(ue){13===ue.keyCode&&this._expandSafely()},click:function(ue){Ft(ue),this._expandSafely()}},this),y||this.expand(),this._baseLayersList=Nn("div",c+"-base",A),this._separator=Nn("div",c+"-separator",A),this._overlaysList=Nn("div",c+"-overlays",A),f.appendChild(A)},_getLayer:function(c){for(var f=0;f<this._layers.length;f++)if(this._layers[f]&&J(this._layers[f].layer)===c)return this._layers[f]},_addLayer:function(c,f,y){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:f,overlay:y}),this.options.sortLayers&&this._layers.sort(K(function(A,W){return this.options.sortFunction(A.layer,W.layer,A.name,W.name)}
1,this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ec(this._baseLayersList),Ec(this._overlaysList),this._layerControlInputs=[];var c,f,y,A,W=0;for(y=0;y<this._layers.length;y++)this._addItem(A=this._layers[y]),f=f||A.overlay,c=c||!A.overlay,W+=A.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(c=c&&W>1)?"":"none"),this._separator.style.display=f&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var f=this._getLayer(J(c.target)),y=f.overlay?"add"===c.type?"overlayadd":"overlayremove":"add"===c.type?"baselayerchange":null;y&&this._map.fire(y,f)},_createRadioElement:function(c,f){var y='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(f?' checked="checked"':"")+"/>",A=document.createElement("div");return A.innerHTML=y,A.firstChild},_addItem:function(c){var A,f=document.createElement("label"),y=this._map.hasLayer(c.layer);c.overlay?((A=document.createElement("input")).type="checkbox",A.className="leaflet-control-layers-selector",A.defaultChecked=y):A=this._createRadioElement("leaflet-base-layers_"+J(this),y),this._layerControlInputs.push(A),A.layerId=J(c.layer),Dn(A,"click",this._onInputClick,this);var W=document.createElement("span");W.innerHTML=" "+c.name;var ue=document.createElement("span");return f.appendChild(ue),ue.appendChild(A),ue.appendChild(W),(c.overlay?this._overlaysList:this._baseLayersList).appendChild(f),this._checkDisabledLayers(),f},_onInputClick:function(){if(!this._preventClick){var f,y,c=this._layerControlInputs,A=[],W=[];this._handlingClick=!0;for(var ue=c.length-1;ue>=0;ue--)y=this._getLayer((f=c[ue]).layerId).layer,f.checked?A.push(y):f.checked||W.push(y);for(ue=0;ue<W.length;ue++)this._map.hasLayer(W[ue])&&this._map.removeLayer(W[ue]);for(ue=0;ue<A.length;ue++)this._map.hasLayer(A[ue])||this._map.addLayer(A[ue]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var f,y,c=this._layerControlInputs,A=this._map.getZoom(),W=c.length-1;W>=0;W--)y=this._getLayer((f=c[W]).layerId).layer,f.disabled=void 0!==y.options.minZoom&&A<y.options.minZoom||void 0!==y.options.maxZoom&&A>y.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,Dn(c,"click",Ft),this.expand();var f=this;setTimeout(function(){Dt(c,"click",Ft),f._preventClick=!1})}}),cg=us.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var f="leaflet-control-zoom",y=Nn("div",f+" leaflet-bar"),A=this.options;return this._zoomInButton=this._createButton(A.zoomInText,A.zoomInTitle,f+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(A.zoomOutText,A.zoomOutTitle,f+"-out",y,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),y},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,f,y,A,W){var ue=Nn("a",y,A);return ue.innerHTML=c,ue.href="#",ue.title=f,ue.setAttribute("role","button"),ue.setAttribute("aria-label",f),Pf(ue),Dn(ue,"click",To),Dn(ue,"click",W,this),Dn(ue,"click",this._refocusOnMap,this),ue},_updateDisabled:function(){var c=this._map,f="leaflet-disabled";tt(this._zoomInButton,f),tt(this._zoomOutButton,f),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(Me(this._zoomOutButton,f),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(Me(this._zoomInButton,f),this._zoomInButton.setAttribute("aria-disabled","true"))}});ti.mergeOptions({zoomControl:!0}),ti.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new cg,this.addControl(this.zoomControl))});var vD=us.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var f="leaflet-control-scale",y=Nn("div",f),A=this.options;return this._addScales(A,f+"-line",y),c.on(A.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),y},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,f,y){c.metric&&(this._mScale=Nn("div",f,y)),c.imperial&&(this._iScale=Nn("div",f,y))},_update:function(){var c=this._map,f=c.getSize().y/2,y=c.distance(c.containerPointToLatLng([0,f]),c.containerPointToLatLng([this.options.maxWidth,f]));this._updateScales(y)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var f=this._getRoundNum(c);this._updateScale(this._mScale,f<1e3?f+" m":f/1e3+" km",f/c)},_updateImperial:function(c){var y,A,W,f=3.2808399*c;f>5280?(A=this._getRoundNum(y=f/5280),this._updateScale(this._iScale,A+" mi",A/y)):(W=this._getRoundNum(f),this._updateScale(this._iScale,W+" ft",W/f))},_updateScale:function(c,f,y){c.style.width=Math.round(this.options.maxWidth*y)+"px",c.innerHTML=f},_getRoundNum:function(c){var f=Math.pow(10,(Math.floor(c)+"").length-1),y=c/f;return f*(y>=10?10:y>=5?5:y>=3?3:y>=2?2:1)}}),Py=us.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(xt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(c){ee(this,c),this._attributions={}}
1,onAdd:function(c){for(var f in c.attributionControl=this,this._container=Nn("div","leaflet-control-attribution"),Pf(this._container),c._layers)c._layers[f].getAttribution&&this.addAttribution(c._layers[f].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var f in this._attributions)this._attributions[f]&&c.push(f);var y=[];this.options.prefix&&y.push(this.options.prefix),c.length&&y.push(c.join(", ")),this._container.innerHTML=y.join(' <span aria-hidden="true">|</span> ')}}});ti.mergeOptions({attributionControl:!0}),ti.addInitHook(function(){this.options.attributionControl&&(new Py).addTo(this)});us.Layers=og,us.Zoom=cg,us.Scale=vD,us.Attribution=Py,jl.layers=function(c,f,y){return new og(c,f,y)},jl.zoom=function(c){return new cg(c)},jl.scale=function(c){return new vD(c)},jl.attribution=function(c){return new Py(c)};var Ls=me.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ls.addTo=function(c,f){return c.addHandler(f,this),this};var Nd={Events:ge},Lf=xt.touch?"touchstart mousedown":"mousedown",xo=Oe.extend({options:{clickTolerance:3},initialize:function(c,f,y,A){ee(this,A),this._element=c,this._dragStartTarget=f||c,this._preventOutline=y},enable:function(){this._enabled||(Dn(this._dragStartTarget,Lf,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xo._dragging===this&&this.finishDrag(!0),Dt(this._dragStartTarget,Lf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!De(this._element,"leaflet-zoom-anim"))){if(c.touches&&1!==c.touches.length)return void(xo._dragging===this&&this.finishDrag());if(!(xo._dragging||c.shiftKey||1!==c.which&&1!==c.button&&!c.touches||(xo._dragging=this,this._preventOutline&&Iy(this._element),Os(),Yt(),this._moving))){this.fire("down");var f=c.touches?c.touches[0]:c,y=mD(this._element);this._startPoint=new Ie(f.clientX,f.clientY),this._startPos=qt(this._element),this._parentScale=ig(y);var A="mousedown"===c.type;Dn(document,A?"mousemove":"touchmove",this._onMove,this),Dn(document,A?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1)return void(this._moved=!0);var f=c.touches&&1===c.touches.length?c.touches[0]:c,y=new Ie(f.clientX,f.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)<this.options.clickTolerance||(y.x/=this._parentScale.x,y.y/=this._parentScale.y,Ft(c),this._moved||(this.fire("dragstart"),this._moved=!0,Me(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Me(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(y),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),ei(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){tt(document.body,"leaflet-dragging"),this._lastTarget&&(tt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Dt(document,"mousemove touchmove",this._onMove,this),Dt(document,"mouseup touchend touchcancel",this._onUp,this),Id(),kr(
1);var f=this._moved&&this._moving;this._moving=!1,xo._dragging=!1,f&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function dg(c,f,y){var A,ue,ke,Ve,Ke,dt,Mt,nn,On,W=[1,4,2,8];for(ue=0,Mt=c.length;ue<Mt;ue++)c[ue]._code=dl(c[ue],f);for(Ve=0;Ve<4;Ve++){for(nn=W[Ve],A=[],ue=0,ke=(Mt=c.length)-1;ue<Mt;ke=ue++)dt=c[ke],(Ke=c[ue])._code&nn?dt._code&nn||((On=vn(dt,Ke,nn,f,y))._code=dl(On,f),A.push(On)):(dt._code&nn&&((On=vn(dt,Ke,nn,f,y))._code=dl(On,f),A.push(On)),A.push(Ke));c=A}return c}function Mo(c,f){var y,A,W,ue,ke,Ve,Ke,dt;if(!c||0===c.length)throw new Error("latlngs not passed");hs(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var nn=Et([0,0]),On=St(c);On.getNorthWest().distanceTo(On.getSouthWest())*On.getNorthEast().distanceTo(On.getNorthWest())<1700&&(nn=Ic(c));var ia=c.length,Bs=[];for(y=0;y<ia;y++){var Qa=Et(c[y]);Bs.push(f.project(Et([Qa.lat-nn.lat,Qa.lng-nn.lng])))}for(Ve=Ke=dt=0,y=0,A=ia-1;y<ia;A=y++)Ke+=((W=Bs[y]).x+(ue=Bs[A]).x)*(ke=W.y*ue.x-ue.y*W.x),dt+=(W.y+ue.y)*ke,Ve+=3*ke;var ql=f.unproject(Ue(0===Ve?Bs[0]:[Ke/Ve,dt/Ve]));return Et([ql.lat+nn.lat,ql.lng+nn.lng])}function Ic(c){for(var f=0,y=0,A=0,W=0;W<c.length;W++){var ue=Et(c[W]);f+=ue.lat,y+=ue.lng,A++}return Et([f/A,y/A])}var Ly,Oy={__proto__:null,clipPolygon:dg,polygonCenter:Mo,centroid:Ic};function ln(c,f){if(!f||!c.length)return c.slice();var y=f*f;return function yD(c,f){var y=c.length,W=new(typeof Uint8Array<"u"?Uint8Array:Array)(y);W[0]=W[y-1]=1,Ff(c,W,f,0,y-1);var ue,ke=[];for(ue=0;ue<y;ue++)W[ue]&&ke.push(c[ue]);return ke}(c=function U2(c,f){for(var y=[c[0]],A=1,W=0,ue=c.length;A<ue;A++)Fy(c[A],c[W])>f&&(y.push(c[A]),W=A);return W<ue-1&&y.push(c[ue-1]),y}(c,y),y)}function li(c,f,y){return Math.sqrt(na(c,f,y,!0))}function Ff(c,f,y,A,W){var ke,Ve,Ke,ue=0;for(Ve=A+1;Ve<=W-1;Ve++)(Ke=na(c[Ve],c[A],c[W],!0))>ue&&(ke=Ve,ue=Ke);ue>y&&(f[ke]=1,Ff(c,f,y,A,ke),Ff(c,f,y,ke,W))}function Bf(c,f,y,A,W){var Ve,Ke,dt,ue=A?Ly:dl(c,y),ke=dl(f,y);for(Ly=ke;;){if(!(ue|ke))return[c,f];if(ue&ke)return!1;dt=dl(Ke=vn(c,f,Ve=ue||ke,y,W),y),Ve===ue?(c=Ke,ue=dt):(f=Ke,ke=dt)}}function vn(c,f,y,A,W){var dt,Mt,ue=f.x-c.x,ke=f.y-c.y,Ve=A.min,Ke=A.max;return 8&y?(dt=c.x+ue*(Ke.y-c.y)/ke,Mt=Ke.y):4&y?(dt=c.x+ue*(Ve.y-c.y)/ke,Mt=Ve.y):2&y?(dt=Ke.x,Mt=c.y+ke*(Ke.x-c.x)/ue):1&y&&(dt=Ve.x,Mt=c.y+ke*(Ve.x-c.x)/ue),new Ie(dt,Mt,W)}function dl(c,f){var y=0;return c.x<f.min.x?y|=1:c.x>f.max.x&&(y|=2),c.y<f.min.y?y|=4:c.y>f.max.y&&(y|=8),y}function Fy(c,f){var y=f.x-c.x,A=f.y-c.y;return y*y+A*A}function na(c,f,y,A){var dt,W=f.x,ue=f.y,ke=y.x-W,Ve=y.y-ue,Ke=ke*ke+Ve*Ve;return Ke>0&&((dt=((c.x-W)*ke+(c.y-ue)*Ve)/Ke)>1?(W=y.x,ue=y.y):dt>0&&(W+=ke*dt,ue+=Ve*dt)),ke=c.x-W,Ve=c.y-ue,A?ke*ke+Ve*Ve:new Ie(W,ue)}function hs(c){return!q(c[0])||"object"!=typeof c[0][0]&&typeof c[0][0]<"u"}function bD(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),hs(c)}function CD(c,f){var y,A,W,ue,ke,Ve,Ke,dt;if(!c||0===c.length)throw new Error("latlngs not passed");hs(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Mt=Et([0,0]),nn=St(c);
1nn.getNorthWest().distanceTo(nn.getSouthWest())*nn.getNorthEast().distanceTo(nn.getNorthWest())<1700&&(Mt=Ic(c));var Ya=c.length,ia=[];for(y=0;y<Ya;y++){var Bs=Et(c[y]);ia.push(f.project(Et([Bs.lat-Mt.lat,Bs.lng-Mt.lng])))}for(y=0,A=0;y<Ya-1;y++)A+=ia[y].distanceTo(ia[y+1])/2;if(0===A)dt=ia[0];else for(y=0,ue=0;y<Ya-1;y++)if((ue+=W=(ke=ia[y]).distanceTo(Ve=ia[y+1]))>A){dt=[Ve.x-(Ke=(ue-A)/W)*(Ve.x-ke.x),Ve.y-Ke*(Ve.y-ke.y)];break}var Qa=f.unproject(Ue(dt));return Et([Qa.lat+Mt.lat,Qa.lng+Mt.lng])}var Ac={__proto__:null,simplify:ln,pointToSegmentDistance:li,closestPointOnSegment:function V2(c,f,y){return na(c,f,y)},clipSegment:Bf,_getEdgeIntersection:vn,_getBitCode:dl,_sqClosestPointOnSegment:na,isFlat:hs,_flat:bD,polylineCenter:CD},Ou={project:function(c){return new Ie(c.lng,c.lat)},unproject:function(c){return new Tt(c.y,c.x)},bounds:new Ge([-180,-90],[180,90])},Vf={R:6378137,R_MINOR:6356752.314245179,bounds:new Ge([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(c){var f=Math.PI/180,y=this.R,A=c.lat*f,W=this.R_MINOR/y,ue=Math.sqrt(1-W*W),ke=ue*Math.sin(A),Ve=Math.tan(Math.PI/4-A/2)/Math.pow((1-ke)/(1+ke),ue/2);return A=-y*Math.log(Math.max(Ve,1e-10)),new Ie(c.lng*f*y,A)},unproject:function(c){for(var dt,f=180/Math.PI,y=this.R,A=this.R_MINOR/y,W=Math.sqrt(1-A*A),ue=Math.exp(-c.y/y),ke=Math.PI/2-2*Math.atan(ue),Ve=0,Ke=.1;Ve<15&&Math.abs(Ke)>1e-7;Ve++)dt=W*Math.sin(ke),dt=Math.pow((1-dt)/(1+dt),W/2),ke+=Ke=Math.PI/2-2*Math.atan(ue*dt)-ke;return new Tt(ke*f,c.x*f/y)}},Uf={__proto__:null,LonLat:Ou,Mercator:Vf,SphericalMercator:jn},wD=g({},_n,{code:"EPSG:3395",projection:Vf,transformation:function(){var c=.5/(Math.PI*Vf.R);return je(c,.5,-c,.5)}()}),By=g({},_n,{code:"EPSG:4326",projection:Ou,transformation:je(1/180,1,-1/180,.5)}),DD=g({},st,{projection:Ou,transformation:je(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,f){var y=f.lng-c.lng,A=f.lat-c.lat;return Math.sqrt(y*y+A*A)},infinite:!0});st.Earth=_n,st.EPSG3395=wD,st.EPSG3857=He,st.EPSG900913=R,st.EPSG4326=By,st.Simple=DD;var Fs=Oe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[J(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[J(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var f=c.target;if(f.hasLayer(this)){if(this._map=f,this._zoomAnimated=f._zoomAnimated,this.getEvents){var y=this.getEvents();f.on(y,this),this.once("remove",function(){f.off(y,this)},this)}this.onAdd(f),this.fire("add"),f.fire("layeradd",{layer:this})}}});ti.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var f=J(c);return this._layers[f]||(this._layers[f]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c)),this},removeLayer:function(c){var f=J(c);return this._layers[f]?(this._loaded&&c.onRemove(this),delete this._layers[f],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return J(c)in this._layers},eachLayer:function(c,f){for(var y in this._layers)c.call(f,this._layers[y]);return this},_addLayers:function(c){for(var f=0,y=(c=c?q(c)?c:[c]:[]).length;f<y;f++)this.addLayer(c[f])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[J(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var f=J(c);this._zoomBoundLayers[f]&&(delete this._zoomBoundLayers[f],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,f=-1/0,y=this._getZoomSpan();for(var A in this._zoomBoundLayers){var W=this._zoomBoundLayers[A].options;c=void 0===W.minZoom?c:Math.min(c,W.minZoom),f=void 0===W.maxZoom?f:Math.max(f,W.maxZoom)}
vendor: 29,425 bytes, line 1
1this._layersMaxZoom=f===-1/0?void 0:f,this._layersMinZoom=c===1/0?void 0:c,y!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Rd=Fs.extend({initialize:function(c,f){var y,A;if(ee(this,f),this._layers={},c)for(y=0,A=c.length;y<A;y++)this.addLayer(c[y])},addLayer:function(c){var f=this.getLayerId(c);return this._layers[f]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var f=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[f]&&this._map.removeLayer(this._layers[f]),delete this._layers[f],this},hasLayer:function(c){return("number"==typeof c?c:this.getLayerId(c))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var y,A,f=Array.prototype.slice.call(arguments,1);for(y in this._layers)(A=this._layers[y])[c]&&A[c].apply(A,f);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,f){for(var y in this._layers)c.call(f,this._layers[y]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return J(c)}}),Eo=Rd.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Rd.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),Rd.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new ot;for(var f in this._layers){var y=this._layers[f];c.extend(y.getBounds?y.getBounds():y.getLatLng())}return c}}),ul=me.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){ee(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,f){var y=this._getIconUrl(c);if(!y){if("icon"===c)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var A=this._createImg(y,f&&"IMG"===f.tagName?f:null);return this._setIconStyles(A,c),(this.options.crossOrigin||""===this.options.crossOrigin)&&(A.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),A},_setIconStyles:function(c,f){var y=this.options,A=y[f+"Size"];"number"==typeof A&&(A=[A,A]);var W=Ue(A),ue=Ue("shadow"===f&&y.shadowAnchor||y.iconAnchor||W&&W.divideBy(2,!0));c.className="leaflet-marker-"+f+" "+(y.className||""),ue&&(c.style.marginLeft=-ue.x+"px",c.style.marginTop=-ue.y+"px"),W&&(c.style.width=W.x+"px",c.style.height=W.y+"px")},_createImg:function(c,f){return(f=f||document.createElement("img")).src=c,f},_getIconUrl:function(c){return xt.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});var hl=ul.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return"string"!=typeof hl.imagePath&&(hl.imagePath=this._detectIconPath()),(this.options.imagePath||hl.imagePath)+ul.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var f=function(y,A,W){var ue=A.exec(y);return ue&&ue[W]};return(c=f(c,/^url\((['"])?(.+)\1\)$/,2))&&f(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=Nn("div","leaflet-default-icon-path",document.body),f=Ps(c,"background-image")||Ps(c,"backgroundImage");if(document.body.removeChild(c),f=this._stripUrl(f))return f;var y=document.querySelector('link[href$="leaflet.css"]');return y?y.href.substring(0,y.href.length-11-1):""}}),Vy=Ls.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new xo(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Me(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var f=this._marker,y=f._map,A=this._marker.options.autoPanSpeed,W=this._marker.options.autoPanPadding,ue=qt(f._icon),ke=y.getPixelBounds(),Ve=y.getPixelOrigin(),Ke=it(ke.min._subtract(Ve).add(W),ke.max._subtract(Ve).subtract(W));if(!Ke.contains(ue)){var dt=Ue((Math.max(Ke.max.x,ue.x)-Ke.max.x)/(ke.max.x-Ke.max.x)-(Math.min(Ke.min.x,ue.x)-Ke.min.x)/(ke.min.x-Ke.min.x),(Math.max(Ke.max.y,ue.y)-Ke.max.y)/(ke.max.y-Ke.max.y)-(Math.min(Ke.min.y,ue.y)-Ke.min.y)/(ke.min.y-Ke.min.y)).multiplyBy(A);y.panBy(dt,{animate:!1}),this._draggable._newPos._add(dt),this._draggable._startPos._add(dt),ei(f._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=Z(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(ce(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,c)))},_onDrag:function(c){var f=this._marker,y=f._shadow,A=qt(f._icon),W=f._map.layerPointToLatLng(A);y&&ei(y,A),f._latlng=W,c.latlng=W,c.oldLatLng=this._oldLatLng,f.fire("move",c).fire("drag",c)},_onDragEnd:function(c){ce(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Hf=Fs.extend({options:{icon:new hl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,f){ee(this,f),this._latlng=Et(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var f=this._latlng;return this._latlng=Et(c),this.update(),this.fire("move",{oldLatLng:f,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,f="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),y=c.icon.createIcon(this._icon),A=!1;y!==this._icon&&(this._icon&&this._removeIcon(),A=!0,c.title&&(y.title=c.title),"IMG"===y.tagName&&(y.alt=c.alt||"")),Me(y,f),c.keyboard&&(y.tabIndex="0",y.setAttribute("role","button")),this._icon=y,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Dn(y,"focus",this._panOnFocus,this);var W=c.icon.createShadow(this._shadow),ue=!1;W!==this._shadow&&(this._removeShadow(),ue=!0),W&&(Me(W,f),W.alt=""),this._shadow=W,c.opacity<1&&this._updateOpacity(),A&&this.getPane().appendChild(this._icon),this._initInteraction(),W&&ue&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Dt(this._icon,"focus",this._panOnFocus,this),gi(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&gi(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&ei(this._icon,c),this._shadow&&ei(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var f=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(f)},_initInteraction:function(){if(this.options.interactive&&(Me(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Vy)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Vy(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&bt(this._icon,c),this._shadow&&bt(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var f=this.options.icon.options,y=f.iconSize?Ue(f.iconSize):Ue(0,0),A=f.iconAnchor?Ue(f.iconAnchor):Ue(0,0);c.panInside(this._latlng,{paddingTopLeft:A,paddingBottomRight:y.subtract(A)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var zl=Fs.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return ee(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),fl=zl.extend({options:{fill:!0,radius:10},initialize:function(c,f){ee(this,f),this._latlng=Et(c),this._radius=this.options.radius},setLatLng:function(c){var f=this._latlng;return this._latlng=Et(c),this.redraw(),this.fire("move",{oldLatLng:f,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var f=c&&c.radius||this._radius;return zl.prototype.setStyle.call(this,c),this.setRadius(f),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,f=this._radiusY||c,y=this._clickTolerance(),A=[c+y,f+y];this._pxBounds=new Ge(this._point.subtract(A),this._point.add(A))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Yl=fl.extend({initialize:function(c,f,y){if("number"==typeof f&&(f=g({},y,{radius:f})),ee(this,f),this._latlng=Et(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new ot(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:zl.prototype.setStyle,_project:function(){var c=this._latlng.lng,f=this._latlng.lat,y=this._map,A=y.options.crs;if(A.distance===_n.distance){var W=Math.PI/180,ue=this._mRadius/_n.R/W,ke=y.project([f+ue,c]),Ve=y.project([f-ue,c]),Ke=ke.add(Ve).divideBy(2),dt=y.unproject(Ke).lat,Mt=Math.acos((Math.cos(ue*W)-Math.sin(f*W)*Math.sin(dt*W))/(Math.cos(f*W)*Math.cos(dt*W)))/W;(isNaN(Mt)||0===Mt)&&(Mt=ue/Math.cos(Math.PI/180*f)),this._point=Ke.subtract(y.getPixelOrigin()),this._radius=isNaN(Mt)?0:Ke.x-y.project([dt,c-Mt]).x,this._radiusY=Ke.y-ke.y}else{var nn=A.unproject(A.project(this._latlng).subtract([this._mRadius,0]));this._point=y.latLngToLayerPoint(this._latlng),this._radius=this._point.x-y.latLngToLayerPoint(nn).x}this._updateBounds()}});var ja=zl.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,f){ee(this,f),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var W,ue,f=1/0,y=null,A=na,ke=0,Ve=this._parts.length;ke<Ve;ke++)for(var Ke=this._parts[ke],dt=1,Mt=Ke.length;dt<Mt;dt++){var nn=A(c,W=Ke[dt-1],ue=Ke[dt],!0);nn<f&&(f=nn,y=A(c,W,ue))}return y&&(y.distance=Math.sqrt(f)),y},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return CD(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,f){return f=f||this._defaultShape(),c=Et(c),f.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new ot,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return hs(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var f=[],y=hs(c),A=0,W=c.length;A<W;A++)y?(f[A]=Et(c[A]),this._bounds.extend(f[A])):f[A]=this._convertLatLngs(c[A]);return f},_project:function(){var c=new Ge;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),f=new Ie(c,c);this._rawPxBounds&&(this._pxBounds=new Ge([this._rawPxBounds.min.subtract(f),this._rawPxBounds.max.add(f)]))},_projectLatlngs:function(c,f,y){var ue,ke,W=c.length;if(c[0]instanceof Tt){for(ke=[],ue=0;ue<W;ue++)ke[ue]=this._map.latLngToLayerPoint(c[ue]),y.extend(ke[ue]);f.push(ke)}else for(ue=0;ue<W;ue++)this._projectLatlngs(c[ue],f,y)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(c)){if(this.options.noClip)return void(this._parts=this._rings);var y,A,W,ue,ke,Ve,Ke,f=this._parts;for(y=0,W=0,ue=this._rings.length;y<ue;y++)for(A=0,ke=(Ke=this._rings[y]).length;A<ke-1;A++)(Ve=Bf(Ke[A],Ke[A+1],c,A,!0))&&(f[W]=f[W]||[],f[W].push(Ve[0]),(Ve[1]!==Ke[A+1]||A===ke-2)&&(f[W].push(Ve[1]),W++))}},_simplifyPoints:function(){for(var c=this._parts,f=this.options.smoothFactor,y=0,A=c.length;y<A;y++)c[y]=ln(c[y],f)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,f){var y,A,W,ue,ke,Ve,Ke=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(y=0,ue=this._parts.length;y<ue;y++)for(A=0,W=(ke=(Ve=this._parts[y]).length)-1;A<ke;W=A++)if((f||0!==A)&&li(c,Ve[W],Ve[A])<=Ke)return!0;return!1}});ja._flat=bD;var $r=ja.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Mo(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var f=ja.prototype._convertLatLngs.call(this,c),y=f.length;return y>=2&&f[0]instanceof Tt&&f[0].equals(f[y-1])&&f.pop(),f},_setLatLngs:function(c){ja.prototype._setLatLngs.call(this,c),hs(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return hs(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,f=this.options.weight,y=new Ie(f,f);if(c=new Ge(c.min.subtract(y),c.max.add(y)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(c)){if(this.options.noClip)return void(this._parts=this._rings);for(var ue,A=0,W=this._rings.length;A<W;A++)(ue=dg(this._rings[A],c,!0)).length&&this._parts.push(ue)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var y,A,W,ue,ke,Ve,Ke,dt,f=!1;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(ue=0,Ke=this._parts.length;ue<Ke;ue++)for(ke=0,Ve=(dt=(y=this._parts[ue]).length)-1;ke<dt;Ve=ke++)(A=y[ke]).y>c.y!=(W=y[Ve]).y>c.y&&c.x<(W.x-A.x)*(c.y-A.y)/(W.y-A.y)+A.x&&(f=!f);return f||ja.prototype._containsPoint.call(this,c,!0)}});var Io=Eo.extend({initialize:function(c,f){ee(this,f),this._layers={},c&&this.addData(c)},addData:function(c){var y,A,W,f=q(c)?c:c.features;if(f){for(y=0,A=f.length;y<A;y++)((W=f[y]).geometries||W.geometry||W.features||W.coordinates)&&this.addData(W);return this}var ue=this.options;if(ue.filter&&!ue.filter(c))return this;var ke=kc(c,ue);return ke?(ke.feature=zf(c),ke.defaultOptions=ke.options,this.resetStyle(ke),ue.onEachFeature&&ue.onEachFeature(c,ke),this.addLayer(ke)):this},resetStyle:function(c){return void 0===c?this.eachLayer(this.resetStyle,this):(c.options=g({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(f){this._setLayerStyle(f,c)},this)},_setLayerStyle:function(c,f){c.setStyle&&("function"==typeof f&&(f=f(c.feature)),c.setStyle(f))}});function kc(c,f){var Ve,Ke,dt,Mt,y="Feature"===c.type?c.geometry:c,A=y?y.coordinates:null,W=[],ue=f&&f.pointToLayer,ke=f&&f.coordsToLatLng||jf;if(!A&&!y)return null;switch(y.type){case"Point":return Lu(ue,c,Ve=ke(A),f);case"MultiPoint":for(dt=0,Mt=A.length;dt<Mt;dt++)Ve=ke(A[dt]),W.push(Lu(ue,c,Ve,f));return new Eo(W);case"LineString":case"MultiLineString":return Ke=Fu(A,"LineString"===y.type?0:1,ke),new ja(Ke,f);case"Polygon":case"MultiPolygon":return Ke=Fu(A,"Polygon"===y.type?1:2,ke),new $r(Ke,f);case"GeometryCollection":for(dt=0,Mt=y.geometries.length;dt<Mt;dt++){var nn=kc({geometry:y.geometries[dt],type:"Feature",properties:c.properties},f);nn&&W.push(nn)}return new Eo(W);case"FeatureCollection":for(dt=0,Mt=y.features.length;dt<Mt;dt++){var On=kc(y.features[dt],f);On&&W.push(On)}return new Eo(W);default:throw new Error("Invalid GeoJSON object.")}}function Lu(c,f,y,A){return c?c(f,y):new Hf(y,A&&A.markersInheritOptions&&A)}function jf(c){return new Tt(c[1],c[0],c[2])}function Fu(c,f,y){for(var ke,A=[],W=0,ue=c.length;W<ue;W++)ke=f?Fu(c[W],f-1,y):(y||jf)(c[W]),A.push(ke);return A}function za(c,f){return void 0!==(c=Et(c)).alt?[V(c.lng,f),V(c.lat,f),V(c.alt,f)]:[V(c.lng,f),V(c.lat,f)]}function Od(c,f,y,A){for(var W=[],ue=0,ke=c.length;ue<ke;ue++)W.push(f?Od(c[ue],hs(c[ue])?0:f-1,y,A):za(c[ue],A));return!f&&y&&W.length>0&&W.push(W[0].slice()),W}function Ao(c,f){return c.feature?g({},c.feature,{geometry:f}):zf(f)}function zf(c){return"Feature"===c.type||"FeatureCollection"===c.type?c:{type:"Feature",properties:{},geometry:c}}var fs={toGeoJSON:function(c){return Ao(this,{type:"Point",coordinates:za(this.getLatLng(),c)})}};function si(c,f){return new Io(c,f)}Hf.include(fs),Yl.include(fs),fl.include(fs),ja.include({toGeoJSON:function(c){var f=!hs(this._latlngs);return Ao(this,{type:(f?"Multi":"")+"LineString",coordinates:Od(this._latlngs,f?1:0,!1,c)})}}),$r.include({toGeoJSON:function(c){var f=!hs(this._latlngs),y=f&&!hs(this._latlngs[0]),A=Od(this._latlngs,y?2:f?1:0,!0,c);return f||(A=[A]),Ao(this,{type:(y?"Multi":"")+"Polygon",coordinates:A})}}),Rd.include({toMultiPoint:function(c){var f=[];return this.eachLayer(function(y){f.push(y.toGeoJSON(c).geometry.coordinates)}),Ao(this,{type:"MultiPoint",coordinates:f})},toGeoJSON:function(c){var f=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===f)return this.toMultiPoint(c);var y="GeometryCollection"===f,A=[];return this.eachLayer(function(W){if(W.toGeoJSON){var ue=W.toGeoJSON(c);if(y)A.push(ue.geometry);else{var ke=zf(ue);"FeatureCollection"===ke.type?A.push.apply(A,ke.features):A.push(ke)}}}),y?Ao(this,{geometries:A,type:"GeometryCollection"}):{type:"FeatureCollection",features:A}}});var ps=si,Bu=Fs.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,f,y){this._url=c,this._bounds=St(f),ee(this,y)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Me(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){gi(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&ae(this._image),this},bringToBack:function(){return this._map&&le(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=St(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c="IMG"===this._url.tagName,f=this._image=c?this._url:Nn("img");Me(f,"leaflet-image-layer"),this._zoomAnimated&&Me(f,"leaflet-zoom-animated"),this.options.className&&Me(f,this.options.className),f.onselectstart=D,f.onmousemove=D,f.onload=K(this.fire,this,"load"),f.onerror=K(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(f.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c?this._url=f.src:(f.src=this._url,f.alt=this.options.alt)},_animateZoom:function(c){var f=this._map.getZoomScale(c.zoom),y=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;Ar(this._image,y,f)},_reset:function(){var c=this._image,f=new Ge(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),y=f.getSize();ei(c,f.min),c.style.width=y.x+"px",c.style.height=y.y+"px"},_updateOpacity:function(){bt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),Vu=Bu.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c="VIDEO"===this._url.tagName,f=this._image=c?this._url:Nn("video");if(Me(f,"leaflet-image-layer"),this._zoomAnimated&&Me(f,"leaflet-zoom-animated"),this.options.className&&Me(f,this.options.className),f.onselectstart=D,f.onmousemove=D,f.onloadeddata=K(this.fire,this,"load"),c){for(var y=f.getElementsByTagName("source"),A=[],W=0;W<y.length;W++)A.push(y[W].src);this._url=y.length>0?A:[f.src]}else{q(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(f.style,"objectFit")&&(f.style.objectFit="fill"),f.autoplay=!!this.options.autoplay,f.loop=!!this.options.loop,f.muted=!!this.options.muted,f.playsInline=!!this.options.playsInline;for(var ue=0;ue<this._url.length;ue++){var ke=Nn("source");ke.src=this._url[ue],f.appendChild(ke)}}}});var Rn=Bu.extend({_initImage:function(){var c=this._image=this._url;Me(c,"leaflet-image-layer"),this._zoomAnimated&&Me(c,"leaflet-zoom-animated"),this.options.className&&Me(c,this.options.className),c.onselectstart=D,c.onmousemove=D}});var fr=Fs.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,f){c&&(c instanceof Tt||q(c))?(this._latlng=Et(c),ee(this,f)):(ee(this,c),this._source=f),this.options.content&&(this._content=this.options.content)},openOn:function(c){return(c=arguments.length?c:this._source._map).hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&bt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&bt(this._container,1),this.bringToFront(),this.options.interactive&&(Me(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(bt(this._container,0),this._removeTimeout=setTimeout(K(gi,void 0,this._container),200)):gi(this._container),this.options.interactive&&(tt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=Et(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ae(this._container),this},bringToBack:function(){return this._map&&le(this._container),this},_prepareOpen:function(c){var f=this._source;if(!f._map)return!1;if(f instanceof Eo){f=null;var y=this._source._layers;for(var A in y)if(y[A]._map){f=y[A];break}if(!f)return!1;this._source=f}if(!c)if(f.getCenter)c=f.getCenter();else if(f.getLatLng)c=f.getLatLng();else{if(!f.getBounds)throw new Error("Unable to get source layer LatLng.");c=f.getBounds().getCenter()}return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,f="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof f)c.innerHTML=f;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(f)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),f=Ue(this.options.offset),y=this._getAnchor();this._zoomAnimated?ei(this._container,c.add(y)):f=f.add(c).add(y);var A=this._containerBottom=-f.y,W=this._containerLeft=-Math.round(this._containerWidth/2)+f.x;this._container.style.bottom=A+"px",this._container.style.left=W+"px"}},_getAnchor:function(){return[0,0]}});ti.include({_initOverlay:function(c,f,y,A){var W=f;return W instanceof c||(W=new c(A).setContent(f)),y&&W.setLatLng(y),W}}),Fs.include({_initOverlay:function(c,f,y,A){var W=y;return W instanceof c?(ee(W,A),W._source=this):(W=f&&!A?f:new c(A,this)).setContent(y),W}});var ko=fr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return!(c=arguments.length?c:this._source._map).hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,fr.prototype.openOn.call(this,c)},onAdd:function(c){fr.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof zl||this._source.on("preclick",Ad))},onRemove:function(c){fr.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof zl||this._source.off("preclick",Ad))},getEvents:function(){var c=fr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&
1(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",f=this._container=Nn("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),y=this._wrapper=Nn("div",c+"-content-wrapper",f);if(this._contentNode=Nn("div",c+"-content",y),Pf(f),We(this._contentNode),Dn(f,"contextmenu",Ad),this._tipContainer=Nn("div",c+"-tip-container",f),this._tip=Nn("div",c+"-tip",this._tipContainer),this.options.closeButton){var A=this._closeButton=Nn("a",c+"-close-button",f);A.setAttribute("role","button"),A.setAttribute("aria-label","Close popup"),A.href="#close",A.innerHTML='<span aria-hidden="true">&#215;</span>',Dn(A,"click",function(W){Ft(W),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,f=c.style;f.width="",f.whiteSpace="nowrap";var y=c.offsetWidth;y=Math.min(y,this.options.maxWidth),y=Math.max(y,this.options.minWidth),f.width=y+1+"px",f.whiteSpace="",f.height="";var W=this.options.maxHeight,ue="leaflet-popup-scrolled";W&&c.offsetHeight>W?(f.height=W+"px",Me(c,ue)):tt(c,ue),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var f=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),y=this._getAnchor();ei(this._container,f.add(y))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var c=this._map,f=parseInt(Ps(this._container,"marginBottom"),10)||0,y=this._container.offsetHeight+f,A=this._containerWidth,W=new Ie(this._containerLeft,-y-this._containerBottom);W._add(qt(this._container));var ue=c.layerPointToContainerPoint(W),ke=Ue(this.options.autoPanPadding),Ve=Ue(this.options.autoPanPaddingTopLeft||ke),Ke=Ue(this.options.autoPanPaddingBottomRight||ke),dt=c.getSize(),Mt=0,nn=0;ue.x+A+Ke.x>dt.x&&(Mt=ue.x+A-dt.x+Ke.x),ue.x-Mt-Ve.x<0&&(Mt=ue.x-Ve.x),ue.y+y+Ke.y>dt.y&&(nn=ue.y+y-dt.y+Ke.y),ue.y-nn-Ve.y<0&&(nn=ue.y-Ve.y),(Mt||nn)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Mt,nn]))}},_getAnchor:function(){return Ue(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});ti.mergeOptions({closePopupOnClick:!0}),ti.include({openPopup:function(c,f,y){return this._initOverlay(ko,c,f,y).openOn(this),this},closePopup:function(c){return(c=arguments.length?c:this._popup)&&c.close(),this}}),Fs.include({bindPopup:function(c,f){return this._popup=this._initOverlay(ko,this._popup,c,f),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof Eo||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(this._popup&&this._map){To(c);var f=c.layer||c.target;if(this._popup._source===f&&!(f instanceof zl))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng));this._popup._source=f,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){13===c.originalEvent.keyCode&&this._openPopup(c)}});var fg=fr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){fr.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){fr.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=fr.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){this._contentNode=this._container=Nn("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+J(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var f,y,A=this._map,W=this._container,ue=A.latLngToContainerPoint(A.getCenter()),ke=A.layerPointToContainerPoint(c),Ve=this.options.direction,Ke=W.offsetWidth,dt=W.offsetHeight,Mt=Ue(this.options.offset),nn=this._getAnchor();
1"top"===Ve?(f=Ke/2,y=dt):"bottom"===Ve?(f=Ke/2,y=0):"center"===Ve?(f=Ke/2,y=dt/2):"right"===Ve?(f=0,y=dt/2):"left"===Ve?(f=Ke,y=dt/2):ke.x<ue.x?(Ve="right",f=0,y=dt/2):(Ve="left",f=Ke+2*(Mt.x+nn.x),y=dt/2),c=c.subtract(Ue(f,y,!0)).add(Mt).add(nn),tt(W,"leaflet-tooltip-right"),tt(W,"leaflet-tooltip-left"),tt(W,"leaflet-tooltip-top"),tt(W,"leaflet-tooltip-bottom"),Me(W,"leaflet-tooltip-"+Ve),ei(W,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&bt(this._container,c)},_animateZoom:function(c){var f=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(f)},_getAnchor:function(){return Ue(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});ti.include({openTooltip:function(c,f,y){return this._initOverlay(fg,c,f,y).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Fs.include({bindTooltip:function(c,f){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(fg,this._tooltip,c,f),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(c||!this._tooltipHandlersAdded){var f=c?"off":"on",y={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?y.add=this._openTooltip:(y.mouseover=this._openTooltip,y.mouseout=this.closeTooltip,y.click=this._openTooltip,this._map?this._addFocusListeners():y.add=this._addFocusListeners),this._tooltip.options.sticky&&(y.mousemove=this._moveTooltip),this[f](y),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof Eo||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var f="function"==typeof c.getElement&&c.getElement();f&&(Dn(f,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),Dn(f,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var f="function"==typeof c.getElement&&c.getElement();f&&f.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var f=this;return void this._map.once("moveend",function(){f._openOnceFlag=!1,f._openTooltip(c)})}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var y,A,f=c.latlng;this._tooltip.options.sticky&&c.originalEvent&&(y=this._map.mouseEventToContainerPoint(c.originalEvent),A=this._map.containerPointToLayerPoint(y),f=this._map.layerPointToLatLng(A)),this._tooltip.setLatLng(f)}});var Yf=ul.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var f=c&&"DIV"===c.tagName?c:document.createElement("div"),y=this.options;if(y.html instanceof Element?(Ec(f),f.appendChild(y.html)):f.innerHTML=!1!==y.html?y.html:"",y.bgPos){var A=Ue(y.bgPos);f.style.backgroundPosition=-A.x+"px "+-A.y+"px"}return this._setIconStyles(f,"icon"),f},createShadow:function(){return null}});ul.Default=hl;var $l=Fs.extend({options:{tileSize:256,opacity:1,updateWhenIdle:xt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){ee(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
1,beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),gi(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=H(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof Ie?c:new Ie(c,c)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var ue,f=this.getPane().children,y=-c(-1/0,1/0),A=0,W=f.length;A<W;A++)ue=f[A].style.zIndex,f[A]!==this._container&&ue&&(y=c(y,+ue));isFinite(y)&&(this.options.zIndex=y+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!xt.ielt9){bt(this._container,this.options.opacity);var c=+new Date,f=!1,y=!1;for(var A in this._tiles){var W=this._tiles[A];if(W.current&&W.loaded){var ue=Math.min(1,(c-W.loaded)/200);bt(W.el,ue),ue<1?f=!0:(W.active?y=!0:this._onOpaqueTile(W),W.active=!0)}}y&&!this._noPrune&&this._pruneTiles(),f&&(ce(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:D,_initContainer:function(){this._container||(this._container=Nn("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,f=this.options.maxZoom;if(void 0!==c){for(var y in this._levels)y=Number(y),this._levels[y].el.children.length||y===c?(this._levels[y].el.style.zIndex=f-Math.abs(c-y),this._onUpdateLevel(y)):(gi(this._levels[y].el),this._removeTilesAtZoom(y),this._onRemoveLevel(y),delete this._levels[y]);var A=this._levels[c],W=this._map;return A||((A=this._levels[c]={}).el=Nn("div","leaflet-tile-container leaflet-zoom-animated",this._container),A.el.style.zIndex=f,A.origin=W.project(W.unproject(W.getPixelOrigin()),c).round(),A.zoom=c,this._setZoomTransform(A,W.getCenter(),W.getZoom()),this._onCreateLevel(A)),this._level=A,A}},_onUpdateLevel:D,_onRemoveLevel:D,_onCreateLevel:D,_pruneTiles:function(){if(this._map){var c,f,y=this._map.getZoom();if(y>this.options.maxZoom||y<this.options.minZoom)return void this._removeAllTiles();for(c in this._tiles)(f=this._tiles[c]).retain=f.current;for(c in this._tiles)if((f=this._tiles[c]).current&&!f.active){var A=f.coords;this._retainParent(A.x,A.y,A.z,A.z-5)||this._retainChildren(A.x,A.y,A.z,A.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var f in this._tiles)this._tiles[f].coords.z===c&&this._removeTile(f)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)gi(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,f,y,A){var W=Math.floor(c/2),ue=Math.floor(f/2),ke=y-1,Ve=new Ie(+W,+ue);Ve.z=+ke;var Ke=this._tileCoordsToKey(Ve),dt=this._tiles[Ke];return dt&&dt.active?(dt.retain=!0,!0):(dt&&dt.loaded&&(dt.retain=!0),ke>A&&this._retainParent(W,ue,ke,A))},_retainChildren:function(c,f,y,A){for(var W=2*c;W<2*c+2;W++)for(var ue=2*f;ue<2*f+2;ue++){var ke=new Ie(W,ue);ke.z=y+1;var Ve=this._tileCoordsToKey(ke),Ke=this._tiles[Ve];Ke&&Ke.active?Ke.retain=!0:(Ke&&Ke.loaded&&(Ke.retain=!0),y+1<A&&this._retainChildren(W,ue,y+1,A))}},_resetView:function(c){var f=c&&(c.pinch||c.flyTo);
vendor: 14,535 bytes, line 1
1this._setView(this._map.getCenter(),this._map.getZoom(),f,f)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var f=this.options;return void 0!==f.minNativeZoom&&c<f.minNativeZoom?f.minNativeZoom:void 0!==f.maxNativeZoom&&f.maxNativeZoom<c?f.maxNativeZoom:c},_setView:function(c,f,y,A){var W=Math.round(f);W=void 0!==this.options.maxZoom&&W>this.options.maxZoom||void 0!==this.options.minZoom&&W<this.options.minZoom?void 0:this._clampZoom(W),(!A||this.options.updateWhenZooming&&W!==this._tileZoom)&&(this._tileZoom=W,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==W&&this._update(c),y||this._pruneTiles(),this._noPrune=!!y),this._setZoomTransforms(c,f)},_setZoomTransforms:function(c,f){for(var y in this._levels)this._setZoomTransform(this._levels[y],c,f)},_setZoomTransform:function(c,f,y){var A=this._map.getZoomScale(y,c.zoom),W=c.origin.multiplyBy(A).subtract(this._map._getNewPixelOrigin(f,y)).round();xt.any3d?Ar(c.el,W,A):ei(c.el,W)},_resetGrid:function(){var c=this._map,f=c.options.crs,y=this._tileSize=this.getTileSize(),A=this._tileZoom,W=this._map.getPixelWorldBounds(this._tileZoom);W&&(this._globalTileRange=this._pxBoundsToTileRange(W)),this._wrapX=f.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,f.wrapLng[0]],A).x/y.x),Math.ceil(c.project([0,f.wrapLng[1]],A).x/y.y)],this._wrapY=f.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([f.wrapLat[0],0],A).y/y.x),Math.ceil(c.project([f.wrapLat[1],0],A).y/y.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var f=this._map,y=f._animatingZoom?Math.max(f._animateToZoom,f.getZoom()):f.getZoom(),A=f.getZoomScale(y,this._tileZoom),W=f.project(c,this._tileZoom).floor(),ue=f.getSize().divideBy(2*A);return new Ge(W.subtract(ue),W.add(ue))},_update:function(c){var f=this._map;if(f){var y=this._clampZoom(f.getZoom());if(void 0===c&&(c=f.getCenter()),void 0!==this._tileZoom){var A=this._getTiledPixelBounds(c),W=this._pxBoundsToTileRange(A),ue=W.getCenter(),ke=[],Ve=this.options.keepBuffer,Ke=new Ge(W.getBottomLeft().subtract([Ve,-Ve]),W.getTopRight().add([Ve,-Ve]));if(!(isFinite(W.min.x)&&isFinite(W.min.y)&&isFinite(W.max.x)&&isFinite(W.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var dt in this._tiles){var Mt=this._tiles[dt].coords;(Mt.z!==this._tileZoom||!Ke.contains(new Ie(Mt.x,Mt.y)))&&(this._tiles[dt].current=!1)}if(Math.abs(y-this._tileZoom)>1)return void this._setView(c,y);for(var nn=W.min.y;nn<=W.max.y;nn++)for(var On=W.min.x;On<=W.max.x;On++){var Ya=new Ie(On,nn);if(Ya.z=this._tileZoom,this._isValidTile(Ya)){var ia=this._tiles[this._tileCoordsToKey(Ya)];ia?ia.current=!0:ke.push(Ya)}}if(ke.sort(function(Qa,ql){return Qa.distanceTo(ue)-ql.distanceTo(ue)}),0!==ke.length){this._loading||(this._loading=!0,this.fire("loading"));var Bs=document.createDocumentFragment();for(On=0;On<ke.length;On++)this._addTile(ke[On],Bs);this._level.el.appendChild(Bs)}}}},_isValidTile:function(c){var f=this._map.options.crs;if(!f.infinite){var y=this._globalTileRange;if(!f.wrapLng&&(c.x<y.min.x||c.x>y.max.x)||!f.wrapLat&&(c.y<y.min.y||c.y>y.max.y))return!1}if(!this.options.bounds)return!0;var A=this._tileCoordsToBounds(c);return St(this.options.bounds).overlaps(A)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var f=this._map,y=this.getTileSize(),A=c.scaleBy(y),W=A.add(y);return[f.unproject(A,c.z),f.unproject(W,c.z)]},_tileCoordsToBounds:function(c){var f=this._tileCoordsToNwSe(c),y=new ot(f[0],f[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var f=c.split(":"),y=new Ie(+f[0],+f[1]);return y.z=+f[2],y},_removeTile:function(c){var f=this._tiles[c];f&&(gi(f.el),delete this._tiles[c],this.fire("tileunload",{tile:f.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){Me(c,"leaflet-tile");var f=this.getTileSize();c.style.width=f.x+"px",c.style.height=f.y+"px",c.onselectstart=D,c.onmousemove=D,xt.ielt9&&this.options.opacity<1&&bt(c,this.options.opacity)},_addTile:function(c,f){var y=this._getTilePos(c),A=this._tileCoordsToKey(c),W=this.createTile(this._wrapCoords(c),K(this._tileReady,this,c));this._initTile(W),this.createTile.length<2&&Z(K(this._tileReady,this,c,null,W)),ei(W,y),this._tiles[A]={el:W,coords:c,current:!0},f.appendChild(W),this.fire("tileloadstart",{tile:W,coords:c})},_tileReady:function(c,f,y){f&&this.fire("tileerror",{error:f,tile:y,coords:c});var A=this._tileCoordsToKey(c);(y=this._tiles[A])&&(y.loaded=+new Date,this._map._fadeAnimated?(bt(y.el,0),ce(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),f||(Me(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),xt.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(K(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var f=new Ie(this._wrapX?O(c.x,this._wrapX):c.x,this._wrapY?O(c.y,this._wrapY):c.y);return f.z=c.z,f},_pxBoundsToTileRange:function(c){var f=this.getTileSize();return new Ge(c.min.unscaleBy(f).floor(),c.max.unscaleBy(f).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});var Wl=$l.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,f){this._url=c,(f=ee(this,f)).detectRetina&&xt.retina&&f.maxZoom>0?(f.tileSize=Math.floor(f.tileSize/2),f.zoomReverse?(f.zoomOffset--,f.minZoom=Math.min(f.maxZoom,f.minZoom+1)):(f.zoomOffset++,f.maxZoom=Math.max(f.minZoom,f.maxZoom-1)),f.minZoom=Math.max(0,f.minZoom)):f.zoomReverse?f.minZoom=Math.min(f.maxZoom,f.minZoom):f.maxZoom=Math.max(f.minZoom,f.maxZoom),"string"==typeof f.subdomains&&(f.subdomains=f.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,f){return this._url===c&&void 0===f&&(f=!0),this._url=c,f||this.redraw(),this},createTile:function(c,f){var y=document.createElement("img");return Dn(y,"load",K(this._tileOnLoad,this,f,y)),Dn(y,"error",K(this._tileOnError,this,f,y)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(y.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(c),y},getTileUrl:function(c){var f={r:xt.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var y=this._globalTileRange.max.y-c.y;this.options.tms&&(f.y=y),f["-y"]=y}return z(this._url,g(f,this.options))},_tileOnLoad:function(c,f){xt.ielt9?setTimeout(K(c,this,null,f),0):c(null,f)},_tileOnError:function(c,f,y){var A=this.options.errorTileUrl;A&&f.getAttribute("src")!==A&&(f.src=A),c(y,f)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom;return this.options.zoomReverse&&(c=this.options.maxZoom-c),c+this.options.zoomOffset},_getSubdomain:function(c){var f=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[f]},_abortLoading:function(){var c,f;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&((f=this._tiles[c].el).onload=D,f.onerror=D,!f.complete)){f.src=F;var y=this._tiles[c].coords;gi(f),delete this._tiles[c],this.fire("tileabort",{tile:f,coords:y})}},_removeTile:function(c){var f=this._tiles[c];if(f)return f.el.setAttribute("src",F),$l.prototype._removeTile.call(this,c)},_tileReady:function(c,f,y){if(this._map&&(!y||y.getAttribute("src")!==F))return $l.prototype._tileReady.call(this,c,f,y)}});function Hy(c,f){return new Wl(c,f)}var $f=Wl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,f){this._url=c;var y=g({},this.defaultWmsParams);for(var A in f)A in this.options||(y[A]=f[A]);var W=(f=ee(this,f)).detectRetina&&xt.retina?2:1,ue=this.getTileSize();y.width=ue.x*W,y.height=ue.y*W,this.wmsParams=y},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,Wl.prototype.onAdd.call(this,c)},getTileUrl:function(c){var f=this._tileCoordsToNwSe(c),y=this._crs,A=it(y.project(f[0]),y.project(f[1])),W=A.min,ue=A.max,ke=(this._wmsVersion>=1.3&&this._crs===By?[W.y,W.x,ue.y,ue.x]:[W.x,W.y,ue.x,ue.y]).join(","),Ve=Wl.prototype.getTileUrl.call(this,c);return Ve+X(this.wmsParams,Ve,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ke},setParams:function(c,f){return g(this.wmsParams,c),f||this.redraw(),this}});Wl.WMS=$f,Hy.wms=function jy(c,f){return new $f(c,f)};var No=Fs.extend({options:{padding:.1},initialize:function(c){ee(this,c),J(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Me(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,f){var y=this._map.getZoomScale(f,this._zoom),A=this._map.getSize().multiplyBy(.5+this.options.padding),W=this._map.project(this._center,f),ue=A.multiplyBy(-y).add(W).subtract(this._map._getNewPixelOrigin(c,f));xt.any3d?Ar(this._container,ue,y):ei(this._container,ue)},_reset:function(){for(var c in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,f=this._map.getSize(),y=this._map.containerPointToLayerPoint(f.multiplyBy(-c)).round();this._bounds=new Ge(y,y.add(f.multiplyBy(1+2*c)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Gl=No.extend({options:{tolerance:0},getEvents:function(){var c=No.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){No.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");Dn(c,"mousemove",this._onMouseMove,this),Dn(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Dn(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){ce(this._redrawRequest),delete this._ctx,gi(this._container),Dt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var f in this._redrawBounds=null,this._layers)this._layers[f]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){No.prototype._update.call(this);var c=this._bounds,f=this._container,y=c.getSize(),A=xt.retina?2:1;ei(f,c.min),f.width=A*y.x,f.height=A*y.y,f.style.width=y.x+"px",f.style.height=y.y+"px",xt.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){No.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[J(c)]=c;var f=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=f),this._drawLast=f,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var f=c._order,y=f.next,A=f.prev;y?y.prev=A:this._drawLast=A,A?A.next=y:this._drawFirst=y,delete c._order,delete this._layers[J(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if("string"==typeof c.options.dashArray){var A,W,f=c.options.dashArray.split(/[, ]+/),y=[];for(W=0;W<f.length;W++){if(A=Number(f[W]),isNaN(A))return;y.push(A)}c.options._dashArray=y}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var f=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ge,this._redrawBounds.extend(c._pxBounds.min.subtract([f,f])),this._redrawBounds.extend(c._pxBounds.max.add([f,f]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var f=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,f.x,f.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,f=this._redrawBounds;if(this._ctx.save(),f){var y=f.getSize();this._ctx.beginPath(),this._ctx.rect(f.min.x,f.min.y,y.x,y.y),this._ctx.clip()}this._drawing=!0;for(var A=this._drawFirst;A;A=A.next)c=A.layer,(!f||c._pxBounds&&c._pxBounds.intersects(f))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,f){if(this._drawing){var y,A,W,ue,ke=c._parts,Ve=ke.length,Ke=this._ctx;if(Ve){for(Ke.beginPath(),y=0;y<Ve;y++){for(A=0,W=ke[y].length;A<W;A++)Ke[A?"lineTo":"moveTo"]((ue=ke[y][A]).x,ue.y);f&&Ke.closePath()}this._fillStroke(Ke,c)}}},_updateCircle:function(c){if(this._drawing&&!c._empty()){var f=c._point,y=this._ctx,A=Math.max(Math.round(c._radius),1),W=(Math.max(Math.round(c._radiusY),1)||A)/A;1!==W&&(y.save(),y.scale(1,W)),y.beginPath(),y.arc(f.x,f.y/W,A,0,2*Math.PI,!1),1!==W&&y.restore(
1),this._fillStroke(y,c)}},_fillStroke:function(c,f){var y=f.options;y.fill&&(c.globalAlpha=y.fillOpacity,c.fillStyle=y.fillColor||y.color,c.fill(y.fillRule||"evenodd")),y.stroke&&0!==y.weight&&(c.setLineDash&&c.setLineDash(f.options&&f.options._dashArray||[]),c.globalAlpha=y.opacity,c.lineWidth=y.weight,c.strokeStyle=y.color,c.lineCap=y.lineCap,c.lineJoin=y.lineJoin,c.stroke())},_onClick:function(c){for(var y,A,f=this._map.mouseEventToLayerPoint(c),W=this._drawFirst;W;W=W.next)(y=W.layer).options.interactive&&y._containsPoint(f)&&("click"!==c.type&&"preclick"!==c.type||!this._map._draggableMoved(y))&&(A=y);this._fireEvent(!!A&&[A],c)},_onMouseMove:function(c){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var f=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,f)}},_handleMouseOut:function(c){var f=this._hoveredLayer;f&&(tt(this._container,"leaflet-interactive"),this._fireEvent([f],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,f){if(!this._mouseHoverThrottled){for(var y,A,W=this._drawFirst;W;W=W.next)(y=W.layer).options.interactive&&y._containsPoint(f)&&(A=y);A!==this._hoveredLayer&&(this._handleMouseOut(c),A&&(Me(this._container,"leaflet-interactive"),this._fireEvent([A],c,"mouseover"),this._hoveredLayer=A)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],c),this._mouseHoverThrottled=!0,setTimeout(K(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,f,y){this._map._fireDOMEvent(f,y||f.type,c)},_bringToFront:function(c){var f=c._order;if(f){var y=f.next,A=f.prev;if(!y)return;y.prev=A,A?A.next=y:y&&(this._drawFirst=y),f.prev=this._drawLast,this._drawLast.next=f,f.next=null,this._drawLast=f,this._requestRedraw(c)}},_bringToBack:function(c){var f=c._order;if(f){var y=f.next,A=f.prev;if(!A)return;A.next=y,y?y.prev=A:A&&(this._drawLast=A),f.prev=null,f.next=this._drawFirst,this._drawFirst.prev=f,this._drawFirst=f,this._requestRedraw(c)}}});function zy(c){return xt.canvas?new Gl(c):null}var Nc=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wf={_initContainer:function(){this._container=Nn("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(No.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var f=c._container=Nc("shape");
vendor: 4,274 bytes, line 1
1Me(f,"leaflet-vml-shape "+(this.options.className||"")),f.coordsize="1 1",c._path=Nc("path"),f.appendChild(c._path),this._updateStyle(c),this._layers[J(c)]=c},_addPath:function(c){var f=c._container;this._container.appendChild(f),c.options.interactive&&c.addInteractiveTarget(f)},_removePath:function(c){var f=c._container;gi(f),c.removeInteractiveTarget(f),delete this._layers[J(c)]},_updateStyle:function(c){var f=c._stroke,y=c._fill,A=c.options,W=c._container;W.stroked=!!A.stroke,W.filled=!!A.fill,A.stroke?(f||(f=c._stroke=Nc("stroke")),W.appendChild(f),f.weight=A.weight+"px",f.color=A.color,f.opacity=A.opacity,f.dashStyle=A.dashArray?q(A.dashArray)?A.dashArray.join(" "):A.dashArray.replace(/( *, *)/g," "):"",f.endcap=A.lineCap.replace("butt","flat"),f.joinstyle=A.lineJoin):f&&(W.removeChild(f),c._stroke=null),A.fill?(y||(y=c._fill=Nc("fill")),W.appendChild(y),y.color=A.fillColor||A.color,y.opacity=A.fillOpacity):y&&(W.removeChild(y),c._fill=null)},_updateCircle:function(c){var f=c._point.round(),y=Math.round(c._radius),A=Math.round(c._radiusY||y);this._setPath(c,c._empty()?"M0 0":"AL "+f.x+","+f.y+" "+y+","+A+" 0,23592600")},_setPath:function(c,f){c._path.v=f},_bringToFront:function(c){ae(c._container)},_bringToBack:function(c){le(c._container)}},Uu=xt.vml?Nc:N,Rc=No.extend({_initContainer:function(){this._container=Uu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Uu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){gi(this._container),Dt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){No.prototype._update.call(this);var c=this._bounds,f=c.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(f))&&(this._svgSize=f,y.setAttribute("width",f.x),y.setAttribute("height",f.y)),ei(y,c.min),y.setAttribute("viewBox",[c.min.x,c.min.y,f.x,f.y].join(" ")),this.fire("update")}},_initPath:function(c){var f=c._path=Uu("path");c.options.className&&Me(f,c.options.className),c.options.interactive&&Me(f,"leaflet-interactive"),this._updateStyle(c),this._layers[J(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){gi(c._path),c.removeInteractiveTarget(c._path),delete this._layers[J(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var f=c._path,y=c.options;f&&(y.stroke?(f.setAttribute("stroke",y.color),f.setAttribute("stroke-opacity",y.opacity),f.setAttribute("stroke-width",y.weight),f.setAttribute("stroke-linecap",y.lineCap),f.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?f.setAttribute("stroke-dasharray",y.dashArray):f.removeAttribute("stroke-dasharray"),y.dashOffset?f.setAttribute("stroke-dashoffset",y.dashOffset):f.removeAttribute("stroke-dashoffset")):f.setAttribute("stroke","none"),y.fill?(f.setAttribute("fill",y.fillColor||y.color),f.setAttribute("fill-opacity",y.fillOpacity),f.setAttribute("fill-rule",y.fillRule||"evenodd")):f.setAttribute("fill","none"))},_updatePoly:function(c,f){this._setPath(c,ie(c._parts,f))},_updateCircle:function(c){var f=c._point,y=Math.max(Math.round(c._radius),1),W="a"+y+","+(Math.max(Math.round(c._radiusY),1)||y)+" 0 1,0 ",ue=c._empty()?"M0 0":"M"+(f.x-y)+","+f.y+W+2*y+",0 "+W+2*-y+",0 ";this._setPath(c,ue)},_setPath:function(c,f){c._path.setAttribute("d",f)},_bringToFront:function(c){ae(c._path)},_bringToBack:function(c){le(c._path)}});function Hu(c){return xt.svg||xt.vml?new Rc(c):null}xt.vml&&Rc.include(Wf),ti.include({getRenderer:function(c){var f=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return f||(f=this._renderer=this._createRenderer()),this.hasLayer(f)||this.addLayer(f),f},_getPaneRenderer:function(c){if("overlayPane"===c||void 0===c)return!1;var f=this._paneRenderers[c];return void 0===f&&(f=this._createRenderer({pane:c}),this._paneRenderers[c]=f),f},_createRenderer:function(c){return this.options.preferCanvas&&zy(c)||Hu(c)}});var Wr=$r.extend({initialize:function(c,f){$r.prototype.initialize.call(this,this._boundsToLatLngs(c),f)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))}
1,_boundsToLatLngs:function(c){return[(c=St(c)).getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});Rc.create=Uu,Rc.pointsToPath=ie,Io.geometryToLayer=kc,Io.coordsToLatLng=jf,Io.coordsToLatLngs=Fu,Io.latLngToCoords=za,Io.latLngsToCoords=Od,Io.getFeature=Ao,Io.asFeature=zf,ti.mergeOptions({boxZoom:!0});var Gf=Ls.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){Dn(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){gi(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||1!==c.which&&1!==c.button)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),Os(),this._startPoint=this._map.mouseEventToContainerPoint(c),Dn(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Nn("div","leaflet-zoom-box",this._container),Me(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var f=new Ge(this._point,this._startPoint),y=f.getSize();ei(this._box,f.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(gi(this._box),tt(this._container,"leaflet-crosshair")),kr(),Id(),Dt(document,{contextmenu:To,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if((1===c.which||1===c.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(K(this._resetState,this),0);var f=new ot(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(f).fire("boxzoomend",{boxZoomBounds:f})}},_onKeyDown:function(c){27===c.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ti.addInitHook("addHandler","boxZoom",Gf),ti.mergeOptions({doubleClickZoom:!0});var Yy=Ls.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var f=this._map,y=f.getZoom(),A=f.options.zoomDelta,W=c.originalEvent.shiftKey?y-A:y+A;"center"===f.options.doubleClickZoom?f.setZoom(W):f.setZoomAround(c.containerPoint,W)}});ti.addInitHook("addHandler","doubleClickZoom",Yy),ti.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $y=Ls.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new xo(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}Me(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var f=St(this._map.options.maxBounds);this._offsetLimit=it(this._map.latLngToContainerPoint(f.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(f.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var f=this._lastTime=+new Date,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),this._times.push(f),this._prunePositions(f)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),f=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=f.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,f){return c-(c-f)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var c=this._draggable._newPos.subtract(this._draggable._startPos),f=this._offsetLimit;c.x<f.min.x&&(c.x=this._viscousLimit(c.x,f.min.x)),c.y<f.min.y&&(c.y=this._viscousLimit(c.y,f.min.y)),c.x>f.max.x&&(c.x=this._viscousLimit(c.x,f.max.x)),c.y>f.max.y&&(c.y=this._viscousLimit(c.y,f.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,f=Math.round(c/2),y=this._initialWorldOffset,A=this._draggable._newPos.x,W=(A-f+y)%c+f-y,ue=(A+f+y)%c-f-y,ke=Math.abs(W+y)<Math.abs(ue+y)?W:ue;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=ke},_onDragEnd:function(c){var f=this._map,y=f.options,A=!y.inertia||c.noInertia||this._times.length<2;if(f.fire("dragend",c),A)f.fire("moveend");else{this._prunePositions(+new Date);var W=this._lastPos.subtract(this._positions[0]),ke=y.easeLinearity,Ve=W.multiplyBy(ke/((this._lastTime-this._times[0])/1e3)),Ke=Ve.distanceTo([0,0]),dt=Math.min(y.inertiaMaxSpeed,Ke),Mt=Ve.multiplyBy(dt/Ke),nn=dt/(y.inertiaDeceleration*ke),On=Mt.multiplyBy(-nn/2).round();On.x||On.y?(On=f._limitOffset(On,f.options.maxBounds),Z(function(){f.panBy(On,{duration:nn,easeLinearity:ke,noMoveStart:!0,animate:!0})}
1)):f.fire("moveend")}}});ti.addInitHook("addHandler","dragging",$y),ti.mergeOptions({keyboard:!0,keyboardPanDelta:80});var pg=Ls.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),Dn(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Dt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,f=document.documentElement,y=c.scrollTop||f.scrollTop,A=c.scrollLeft||f.scrollLeft;this._map._container.focus(),window.scrollTo(A,y)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var A,W,f=this._panKeys={},y=this.keyCodes;for(A=0,W=y.left.length;A<W;A++)f[y.left[A]]=[-1*c,0];for(A=0,W=y.right.length;A<W;A++)f[y.right[A]]=[c,0];for(A=0,W=y.down.length;A<W;A++)f[y.down[A]]=[0,c];for(A=0,W=y.up.length;A<W;A++)f[y.up[A]]=[0,-1*c]},_setZoomDelta:function(c){var A,W,f=this._zoomKeys={},y=this.keyCodes;for(A=0,W=y.zoomIn.length;A<W;A++)f[y.zoomIn[A]]=c;for(A=0,W=y.zoomOut.length;A<W;A++)f[y.zoomOut[A]]=-c},_addHooks:function(){Dn(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var A,f=c.keyCode,y=this._map;if(f in this._panKeys){if(!y._panAnim||!y._panAnim._inProgress)if(A=this._panKeys[f],c.shiftKey&&(A=Ue(A).multiplyBy(3)),y.options.maxBounds&&(A=y._limitOffset(Ue(A),y.options.maxBounds)),y.options.worldCopyJump){var W=y.wrapLatLng(y.unproject(y.project(y.getCenter()).add(A)));y.panTo(W)}else y.panBy(A)}else if(f in this._zoomKeys)y.setZoom(y.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[f]);else{if(27!==f||!y._popup||!y._popup.options.closeOnEscapeKey)return;y.closePopup()}To(c)}}});ti.addInitHook("addHandler","keyboard",pg),ti.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ld=Ls.extend({addHooks:function(){Dn(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var f=Pu(c),y=this._map.options.wheelDebounceTime;this._delta+=f,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var A=Math.max(y-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(K(this._performZoom,this),A),To(c)},_performZoom:function(){var c=this._map,f=c.getZoom(),y=this._map.options.zoomSnap||0;c._stop();var W=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/M
1ath.LN2,ue=y?Math.ceil(W/y)*y:W,ke=c._limitZoom(f+(this._delta>0?ue:-ue))-f;this._delta=0,this._startTime=null,ke&&("center"===c.options.scrollWheelZoom?c.setZoom(f+ke):c.setZoomAround(this._lastMousePos,f+ke))}});ti.addInitHook("addHandler","scrollWheelZoom",Ld);ti.mergeOptions({tapHold:xt.touchNative&&xt.safari&&xt.mobile,tapTolerance:15});var Wy=Ls.extend({addHooks:function(){Dn(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),1===c.touches.length){var f=c.touches[0];this._startPos=this._newPos=new Ie(f.clientX,f.clientY),this._holdTimeout=setTimeout(K(function(){this._cancel(),this._isTapValid()&&(Dn(document,"touchend",Ft),Dn(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",f))},this),600),Dn(document,"touchend touchcancel contextmenu",this._cancel,this),Dn(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){Dt(document,"touchend",Ft),Dt(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),Dt(document,"touchend touchcancel contextmenu",this._cancel,this),Dt(document,"touchmove",this._onMove,this)},_onMove:function(c){var f=c.touches[0];this._newPos=new Ie(f.clientX,f.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,f){var y=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:f.screenX,screenY:f.screenY,clientX:f.clientX,clientY:f.clientY});y._simulated=!0,f.target.dispatchEvent(y)}});ti.addInitHook("addHandler","tapHold",Wy),ti.mergeOptions({touchZoom:xt.touch,bounceAtZoomLimits:!0});var Gy=Ls.extend({addHooks:function(){Me(this._map._container,"leaflet-touch-zoom"),Dn(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var f=this._map;if(c.touches&&2===c.touches.length&&!f._animatingZoom&&!this._zooming){var y=f.mouseEventToContainerPoint(c.touches[0]),A=f.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=f.getSize()._divideBy(2),this._startLatLng=f.containerPointToLatLng(this._centerPoint),"center"!==f.options.touchZoom&&(this._pinchStartLatLng=f.containerPointToLatLng(y.add(A)._divideBy(2))),this._startDist=y.distanceTo(A),this._startZoom=f.getZoom(),this._moved=!1,this._zooming=!0,f._stop(),Dn(document,"touchmove",this._onTouchMove,this),Dn(document,"touchend touchcancel",this._onTouchEnd,this),Ft(c)}},_onTouchMove:function(c){if(c.touches&&2===c.touches.length&&this._zooming){var f=this._map,y=f.mouseEventToContainerPoint(c.touches[0]),A=f.mouseEventToContainerPoint(c.touches[1]),W=y.distanceTo(A)/this._startDist;if(this._zoom=f.getScaleZoom(W,this._startZoom),!f.options.bounceAtZoomLimits&&(this._zoom<f.getMinZoom()&&W<1||this._zoom>f.getMaxZoom()&&W>1)&&(this._zoom=f._limitZoom(this._zoom)),"center"===f.options.touchZoom){if(this._center=this._startLatLng,1===W)return}else{var ue=y._add(A)._divideBy(2)._subtract(this._centerPoint);if(1===W&&0===ue.x&&0===ue.y)return;this._center=f.unproject(f.project(this._pinchStartLatLng,this._zoom).subtract(ue),this._zoom)}this._moved||(f._moveStart(!0,!1),this._moved=!0),ce(this._animRequest);var ke=K(f._move,f,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(ke,this,!0),Ft(c)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,ce(this._animRequest),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ti.addInitHook("addHandler","touchZoom",Gy),ti.BoxZoom=Gf,ti.DoubleClickZoom=Yy,ti.Drag=$y,ti.Keyboard=pg,ti.ScrollWheelZoom=Ld,ti.TapHold=Wy,ti.TouchZoom=Gy,ve.Bounds=Ge,ve.Browser=xt,ve.CRS=st,ve.Canvas=Gl,ve.Circle=Yl,ve.CircleMarker=fl,ve.Class=me,ve.Control=us,ve.DivIcon=Yf,ve.DivOverlay=fr,ve.DomEvent=ag,ve.DomUtil=O2,ve.Draggable=xo,ve.Evented=Oe,ve.FeatureGroup=Eo,ve.GeoJSON=Io,ve.GridLayer=$l,ve.Handler=Ls,ve.Icon=ul,ve.ImageOverlay=Bu,ve.LatLng=Tt,ve.LatLngBounds=ot,ve.Layer=Fs,ve.LayerGroup=Rd,ve.LineUtil=Ac,ve.Map=ti,ve.Marker=Hf,ve.Mixin=Nd,ve.Path=zl,ve.Point=Ie,ve.PolyUtil=Oy,ve.Polygon=$r,ve.Polyline=ja,ve.Popup=ko,ve.PosAnimation=sg,ve.Projection=Uf,ve.Rectangle=Wr,ve.Re
1nderer=No,ve.SVG=Rc,ve.SVGOverlay=Rn,ve.TileLayer=Wl,ve.Tooltip=fg,ve.Transformation=mn,ve.Util=w,ve.VideoOverlay=Vu,ve.bind=K,ve.bounds=it,ve.canvas=zy,ve.circle=function xD(c,f,y){return new Yl(c,f,y)},ve.circleMarker=function TD(c,f){return new fl(c,f)},ve.control=jl,ve.divIcon=function Uy(c){return new Yf(c)},ve.extend=g,ve.featureGroup=function(c,f){return new Eo(c,f)},ve.geoJSON=si,ve.geoJson=ps,ve.gridLayer=function H2(c){return new $l(c)},ve.icon=function ug(c){return new ul(c)},ve.imageOverlay=function(c,f,y){return new Bu(c,f,y)},ve.latLng=Et,ve.latLngBounds=St,ve.layerGroup=function(c,f){return new Rd(c,f)},ve.map=function Qe(c,f){return new ti(c,f)},ve.marker=function SD(c,f){return new Hf(c,f)},ve.point=Ue,ve.polygon=function Pd(c,f){return new $r(c,f)},ve.polyline=function MD(c,f){return new ja(c,f)},ve.popup=function(c,f){return new ko(c,f)},ve.rectangle=function Pc(c,f){return new Wr(c,f)},ve.setOptions=ee,ve.stamp=J,ve.svg=Hu,ve.svgOverlay=function ga(c,f,y){return new Rn(c,f,y)},ve.tileLayer=Hy,ve.tooltip=function(c,f){return new fg(c,f)},ve.transformation=je,ve.version="1.9.4",ve.videoOverlay=function ms(c,f,y){return new Vu(c,f,y)};var ID=window.L;ve.noConflict=function(){return window.L=ID,this},window.L=ve}(rn)},8291:(yt,rn,ve)=>{var S=ve(6589);ve(7097),ve(812);var g=S.asn1,I=yt.exports=S.pkcs7asn1=S.pkcs7asn1||{};S.pkcs7=S.pkcs7||{},S.pkcs7.asn1=I;var K={name:"ContentInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};I.contentInfoValidator=K;var te={name:"EncryptedContentInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:g.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};I.envelopedDataValidator={name:"EnvelopedData",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(te)},I.encryptedDataValidator={name:"EncryptedData",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"version"}].concat(te)},I.signedDataValidator={name:"SignedData",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},K,{name:"SignedData.Certificates",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:g.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,capture:"signerInfos",optional:!0,value:[{name:"SignerInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,c
vendor: 16,641 bytes, line 1
1onstructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:g.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:g.Class.UNIVERSAL,type:g.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:g.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]}]}]},I.recipientInfoValidator={name:"RecipientInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:g.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:g.Class.UNIVERSAL,type:g.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}},8321:(yt,rn,ve)=>{var S=ve(6589);ve(812),ve(1675),ve(983),yt.exports=S.kem=S.kem||{};var g=S.jsbn.BigInteger;function I(K,te,J,H){K.generate=function(O,D){for(var V=new S.util.ByteBuffer,re=Math.ceil(D/H)+J,Se=new S.util.ByteBuffer,ee=J;ee<re;++ee){Se.putInt32(ee),te.start(),te.update(O+Se.getBytes());var X=te.digest();V.putBytes(X.getBytes(H))}return V.truncate(V.length()-D),V.getBytes()}}S.kem.rsa={},S.kem.rsa.create=function(K,te){var J=(te=te||{}).prng||S.random;return{encrypt:function(O,D){var re,V=Math.ceil(O.n.bitLength()/8);do{re=new g(S.util.bytesToHex(J.getBytesSync(V)),16).mod(O.n)}while(re.compareTo(g.ONE)<=0);var Se=V-(re=S.util.hexToBytes(re.toString(16))).length;return Se>0&&(re=S.util.fillString("\0",Se)+re),{encapsulation:O.encrypt(re,"NONE"),key:K.generate(re,D)}},decrypt:function(O,D,V){var re=O.decrypt(D,"NONE");return K.generate(re,V)}}},S.kem.kdf1=function(K,te){I(this,K,0,te||K.digestLength)},S.kem.kdf2=function(K,te){I(this,K,1,te||K.digestLength)}},8588:(yt,rn,ve)=>{var S=ve(6589);ve(1675),ve(812),(yt.exports=S.pss=S.pss||{}).create=function(I){3===arguments.length&&(I={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var O,K=I.md,te=I.mgf,J=K.digestLength,H=I.salt||null;if("string"==typeof H&&(H=S.util.createBuffer(H)),"saltLength"in I)O=I.saltLength;else{if(null===H)throw new Error("Salt length not specified or specific salt not given.");O=H.length()}if(null!==H&&H.length()!==O)throw new Error("Given salt length does not match length of given salt.");var D=I.prng||S.random;return{encode:function(re,Se){var ee,q,X=Se-1,ne=Math.ceil(X/8),z=re.digest().getBytes();if(ne<J+O+2)throw new Error("Message is too long to encrypt.");q=null===H?D.getBytesSync(O):H.bytes();var x=new S.util.ByteBuffer;x.fillWithByte(0,8),x.putBytes(z),x.putBytes(q),K.start(),K.update(x.getBytes());var F=K.digest().getBytes(),Y=new S.util.ByteBuffer;Y.fillWithByte(0,ne-O-J-2),Y.putByte(1),Y.putBytes(q);var se=Y.getBytes(),pe=ne-J-1,Te=te.generate(F,pe),j="";for(ee=0;ee<pe;ee++)j+=String.fromCharCode(se.charCodeAt(ee)^Te.charCodeAt(ee));var Z=65280>>8*ne-X&255;return(j=String.fromCharCode(j.charCodeAt(0)&~Z)+j.substr(1))+F+"\xbc"},verify:function(re,Se,ee){var X,ne=ee-1,z=Math.ceil(ne/8);if(Se=Se.substr(-z),z<J+O+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(188!==Se.charCodeAt(z-1))throw new Error("Encoded message does not end in 0xBC.");var q=z-J-1,x=Se.substr(0,q),F=Se.substr(q,J),Y=65280>>8*z-ne&255;if(x.charCodeAt(0)&Y)throw new Error("Bits beyond keysize not zero as expected.");var se=te.generate(F,q),pe="";for(X=0;X<q;X++)pe+=String.fromCharCode(x.charCodeAt(X)^se.charCodeAt(X));pe=String.fromCharCode(pe.charCodeAt(0)&~Y)+pe.substr(1);var Te=z-J-O-2;for(X=0;X<Te;X++)if(0!==pe.charCodeAt(X))throw new Error("Leftmost octets not zero as expected");if(1!==pe.charCodeAt(Te))throw new Error("Inconsistent PSS signature, 0x01 marker not found");var j=pe.substr(-O),Z=new S.util.ByteBuffer;return Z.fillWithByte(0,8),Z.putBytes(re),Z.putBytes(j),K.start(),K.update(Z.getBytes()),F===K.digest().getBytes()}}}},8788:(yt,rn,ve)=>{var S=ve(6589);ve(812),ve(1675),ve(8825);var g=yt.exports=S.pkcs1=S.pkcs1||{};function I(K,te,J){J||(J=S.md.sha1.create());for(var H="",O=Math.ceil(te/J.digestLength),D=0;D<O;++D){var V=String.fromCharCode(D>>24&255,D>>16&255,D>>8&255,255&D);J.start(),J.update(K+V),H+=J.digest().getBytes()}return H.substring(0,te)}g.encode_rsa_oaep=function(K,te,J){var H,O,D,V;"string"==typeof J?(H=J,O=arguments[3]||void 0,D=arguments[4]||void 0):J&&(H=J.label||void 0,O=J.seed||void 0,D=J.md||void 0,J.mgf1&&J.mgf1.md&&(V=J.mgf1.md)),D?D.start():D=S.md.sha1.create(),V||(V=D);var re=Math.ceil(K.n.bitLength()/8),Se=re-2*D.digestLength-2;if(te.length>Se)throw(ee=new Error("RSAES-OAEP input message length is too long.")).length=te.length,ee.maxLength=Se,ee;H||(H=""),D.update(H,"raw");for(var X=D.digest(),ne="",z=Se-te.length,q=0;q<z;q++)ne+="\0";var x=X.getBytes()+ne+"\x01"+te;if(O){if(O.length!==D.digestLength){var ee;throw(ee=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.")).seedLength=O.length,ee.digestLength=D.digestLength,ee}}else O=S.random.getBytes(D.digestLength);var F=I(O,re-D.digestLength-1,V),Y=S.util.xorBytes(x,F,x.length),se=I(Y,D.digestLength,V);return"\0"+S.util.xorBytes(O,se,O.length)+Y},g.decode_rsa_oaep=function(K,te,J){var H,O,D;"string"==typeof J?(H=J,O=arguments[3]||void 0):J&&(H=J.label||void 0,O=J.md||void 0,J.mgf1&&J.mgf1.md&&(D=J.mgf1.md));var V=Math.ceil(K.n.bitLength()/8);if(te.length!==V)throw(Y=new Error("RSAES-OAEP encoded message length is invalid.")).length=te.length,Y.expectedLength=V,Y;if(void 0===O?O=S.md.sha1.create():O.start(),D||(D=O),V<2*O.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");H||(H=""),O.update(H,"raw");for(var re=O.digest().getBytes(),Se=te.charAt(0),ee=te.substring(1,O.digestLength+1),X=te.substring(1+O.digestLength),ne=I(X,O.digestLength,D),q=I(S.util.xorBytes(ee,ne,ee.length),V-O.digestLength-1,D),x=S.util.xorBytes(X,q,X.length),F=x.substring(0,O.digestLength),Y="\0"!==Se,se=0;se<O.digestLength;++se)Y|=re.charAt(se)!==F.charAt(se);for(var pe=1,Te=O.digestLength,j=O.digestLength;j<x.length;j++){var Z=x.charCodeAt(j);Y|=Z&(pe?65534:0),Te+=pe&=1&Z^1}if(Y||1!==x.charCodeAt(Te))throw new Error("Invalid RSAES-OAEP padding.");return x.substring(Te+1)}},8825:(yt,rn,ve)=>{var S=ve(6589);ve(5437),ve(812);var g=yt.exports=S.sha1=S.sha1||{};S.md.sha1=S.md.algorithms.sha1=g,g.create=function(){K||function te(){I="\x80",I+=S.util.fillString("\0",64),K=!0}();var H=null,O=S.util.createBuffer(),D=new Array(80),V={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8,start:function(){V.messageLength=0,V.fullMessageLength=V.messageLength64=[];for(var re=V.messageLengthSize/4,Se=0;Se<re;++Se)V.fullMessageLength.push(0);return O=S.util.createBuffer(),H={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},V}};return V.start(),V.update=function(re,Se){"utf8"===Se&&(re=S.util.encodeUtf8(re));var ee=re.length;V.messageLength+=ee,ee=[ee/4294967296>>>0,ee>>>0];for(var X=V.fullMessageLength.length-1;X>=0;--X)V.fullMessageLength[X]+=ee[1],ee[1]=ee[0]+(V.fullMessageLength[X]/4294967296>>>0),V.fullMessageLength[X]=V.fullMessageLength[X]>>>0,ee[0]=ee[1]/4294967296>>>0;return O.putBytes(re),J(H,D,O),(O.read>2048||0===O.length())&&O.compact(),V},V.digest=function(){var re=S.util.createBuffer();re.putBytes(O.bytes()),re.putBytes(I.substr(0,V.blockLength-(V.fullMessageLength[V.fullMessageLength.length-1]+V.messageLengthSize&V.blockLength-1)));for(var X,z=8*V.fullMessageLength[0],q=0;q<V.fullMessageLength.length-1;++q)re.putInt32((z+=(X=8*V.fullMessageLength[q+1])/4294967296>>>0)>>>0),z=X>>>0;re.putInt32(z);var x={h0:H.h0,h1:H.h1,h2:H.h2,h3:H.h3,h4:H.h4};J(x,D,re);var F=S.util.createBuffer();return F.putInt32(x.h0),F.putInt32(x.h1),F.putInt32(x.h2),F.putInt32(x.h3),F.putInt32(x.h4),F},V};var I=null,K=!1;function J(H,O,D){for(var V,re,Se,ee,X,ne,q,x=D.length();x>=64;){for(re=H.h0,Se=H.h1,ee=H.h2,X=H.h3,ne=H.h4,q=0;q<16;++q)V=D.getInt32(),O[q]=V,V=(re<<5|re>>>27)+(X^Se&(ee^X))+ne+1518500249+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;for(;q<20;++q)O[q]=V=(V=O[q-3]^O[q-8]^O[q-14]^O[q-16])<<1|V>>>31,V=(re<<5|re>>>27)+(X^Se&(ee^X))+ne+1518500249+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;for(;q<32;++q)O[q]=V=(V=O[q-3]^O[q-8]^O[q-14]^O[q-16])<<1|V>>>31,V=(re<<5|re>>>27)+(Se^ee^X)+ne+1859775393+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;for(;q<40;++q)O[q]=V=(V=O[q-6]^O[q-16]^O[q-28]^O[q-32])<<2|V>>>30,V=(re<<5|re>>>27)+(Se^ee^X)+ne+1859775393+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;for(;q<60;++q)O[q]=V=(V=O[q-6]^O[q-16]^O[q-28]^O[q-32])<<2|V>>>30,V=(re<<5|re>>>27)+(Se&ee|X&(Se^ee))+ne+2400959708+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;for(;q<80;++q)O[q]=V=(V=O[q-6]^O[q-16]^O[q-28]^O[q-32])<<2|V>>>30,V=(re<<5|re>>>27)+(Se^ee^X)+ne+3395469782+V,ne=X,X=ee,ee=(Se<<30|Se>>>2)>>>0,Se=re,re=V;H.h0=H.h0+re|0,H.h1=H.h1+Se|0,H.h2=H.h2+ee|0,H.h3=H.h3+X|0,H.h4=H.h4+ne|0,x-=64}}},9228:(yt,rn,ve)=>{yt.exports=ve(5437),ve(4846),ve(8825),ve(2507),ve(1290)},9368:(yt,rn,ve)=>{var S=ve(6589);ve(812);var g=yt.exports=S.pem=S.pem||{};function I(te){for(var J=te.name+": ",H=[],O=function(ee,X){return" "+X},D=0;D<te.values.length;++D)H.push(te.values[D].replace(/^(\S+\r\n)/,O));J+=H.join(",")+"\r\n";var V=0,re=-1;for(D=0;D<J.length;++D,++V)if(V>65&&-1!==re){var Se=J[re];","===Se?(++re,J=J.substr(0,re)+"\r\n "+J.substr(re)):J=J.substr(0,re)+"\r\n"+Se+J.substr(re+1),V=D-re-1,re=-1,++D}else(" "===J[D]||"\t"===J[D]||","===J[D])&&(re=D);return J}function K(te){return te.replace(/^\s+/,"")}g.encode=function(te,J){J=J||{};var O,H="-----BEGIN "+te.type+"-----\r\n";if(te.procType&&(H+=I(O={name:"Proc-Type",values:[String(te.procType.version),te.procType.type]})),te.contentDomain&&(H+=I(O={name:"Content-Domain",values:[te.contentDomain]})),te.dekInfo&&(O={name:"DEK-Info",values:[te.dekInfo.algorithm]},te.dekInfo.parameters&&O.values.push(te.dekInfo.parameters),H+=I(O)),te.headers)for(var D=0;D<te.headers.length;++D)H+=I(te.headers[D]);return te.procType&&(H+="\r\n"),(H+=S.util.encode64(te.body,J.maxline||64)+"\r\n")+"-----END "+te.type+"-----\r\n"},g.decode=function(te){for(var V,J=[],H=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,O=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,D=/\r?\n/;V=H.exec(te);){var re=V[1];"NEW CERTIFICATE REQUEST"===re&&(re="CERTIFICATE REQUEST");var Se={type:re,procType:null,contentDomain:null,dekInfo:null,headers:[],body:S.util.decode64(V[3])};if(J.push(Se),V[2]){for(var ee=V[2].split(D),X=0;V&&X<ee.length;){for(var ne=ee[X].replace(/\s+$/,""),z=X+1;z<ee.length;++z){var q=ee[z];if(!/\s/.test(q[0]))break;ne+=q,X=z}if(V=ne.match(O)){for(var x={name:V[1],values:[]},F=V[2].split(","),Y=0;Y<F.length;++Y)x.values.push(K(F[Y]));if(Se.procType)if(Se.contentDomain||"Content-Domain"!==x.name)if(Se.dekInfo||"DEK-Info"!==x.name)Se.headers.push(x);else{if(0===x.values.length)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');Se.dekInfo={algorithm:F[0],parameters:F[1]||null}}else Se.contentDomain=F[0]||"";else{if("Proc-Type"!==x.name)throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(2!==x.values.length)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');Se.procType={version:F[0],type:F[1]}}}++X}if("ENCRYPTED"===Se.procType&&!Se.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(0===J.length)throw new Error("Invalid PEM formatted message.");return J}},9436:(yt,rn,ve)=>{var S=ve(6589);ve(57),ve(7097),ve(3674),ve(5437),ve(8040),ve(1817),ve(9368),ve(8588),ve(2880),ve(812);var g=S.asn1,I=yt.exports=S.pki=S.pki||{},K=I.oids,te={};te.CN=K.commonName,te.commonName="CN",te.C=K.countryName,te.countryName="C",te.L=K.localityName,te.localityName="L",te.ST=K.stateOrProvinceName,te.stateOrProvinceName="ST",te.O=K.organizationName,te.organizationName="O",te.OU=K.organizationalUnitName,te.organizationalUnitName="OU",te.E=K.emailAddress,te.emailAddress="E";var J=S.pki.rsa.publicKeyValidator,H={name:"Certificate",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:g.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:g.Class.UNIVERSAL,type:g.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:g.Class.UNIVERSAL,type:g.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:g.Class.UNIVERSAL,type:g.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:g.Class.UNIVERSAL,type:g.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},J,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:g.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:g.Class.UNIVERSAL,type:g.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:g.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:g.Class.UNIVERSAL,type:g.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:g.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:g.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParam
1s"}]},{name:"Certificate.signatureValue",tagClass:g.Class.UNIVERSAL,type:g.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},O={name:"rsapss",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:g.Class.UNIVERSAL,type:g.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:g.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:g.Class.UNIVERSAL,type:g.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:g.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:g.Class.UNIVERSAL,type:g.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:g.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:g.Class.UNIVERSAL,type:g.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},V={name:"CertificationRequest",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[{name:"CertificationRequestInfo",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:g.Class.UNIVERSAL,type:g.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},J,{name:"CertificationRequestInfo.attributes",tagClass:g.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:g.Class.UNIVERSAL,type:g.Type.SET,constructed:!0}]}]}]},{name:"CertificationRequest.signatureAlgorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:g.Class.UNIVERSAL,type:g.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:g.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:g.Class.UNIVERSAL,type:g.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};function re(j,Z){"string"==typeof Z&&(Z={shortName:Z});for(var w,ce=null,me=0;null===ce&&me<j.attributes.length;++me)w=j.attributes[me],(Z.type&&Z.type===w.type||Z.name&&Z.name===w.name||Z.shortName&&Z.shortName===w.shortName)&&(ce=w);return ce}I.RDNAttributesAsArray=function(j,Z){for(var w,me,Ee,ce=[],ge=0;ge<j.value.length;++ge){w=j.value[ge];for(var Oe=0;Oe<w.value.length;++Oe)(Ee={}).type=g.derToOid((me=w.value[Oe]).value[0].value),Ee.value=me.value[1].value,Ee.valueTagClass=me.value[1].type,Ee.type in K&&(Ee.name=K[Ee.type],Ee.name in te&&(Ee.shortName=te[Ee.name])),Z&&(Z.update(Ee.type),Z.update(Ee.value)),ce.push(Ee)}return ce},I.CRIAttributesAsArray=function(j){for(var Z=[],ce=0;ce<j.length;++ce)for(var w=j[ce],me=g.derToOid(w.value[0].value),Ee=w.value[1].value,ge=0;ge<Ee.length;++ge){var Oe={};if(Oe.type=me,Oe.value=Ee[ge].value,Oe.valueTagClass=Ee[ge].type,Oe.type in K&&(Oe.name=K[Oe.type],Oe.name in te&&(Oe.shortName=te[Oe.name])),Oe.type===K.extensionRequest){Oe.extensions=[];for(var Ie=0;Ie<Oe.value.length;++Ie)Oe.extensions.push(I.certificateExtensionFromAsn1(Oe.value[Ie]))}Z.push(Oe)}return Z};var Se=function(j,Z,ce){var w={};if(j!==K["RSASSA-PSS"])return w;ce&&(w={hash:{algorithmOid:K.sha1},mgf:{algorithmOid:K.mgf1,hash:{algorithmOid:K.sha1}},saltLength:20});var me={},Ee=[];if(!g.validate(Z,O,me,Ee)){var ge=new Error("Cannot read RSASSA-PSS parameter block.");throw ge.errors=Ee,ge}return void 0!==me.hashOid&&(w.hash=w.hash||{},w.hash.algorithmOid=g.derToOid(me.hashOid)),void 0!==me.maskGenOid&&(w.mgf=w.mgf||{},w.mgf.algorithmOid=g.derToOid(me.maskGenOid),w.mgf.hash=w.mgf.hash||{},w.mgf.hash.algorithmOid=g.derToOid(me.maskGenHashOid)),void 0!==me.
vendor: 31,297 bytes, line 1
1saltLength&&(w.saltLength=me.saltLength.charCodeAt(0)),w},ee=function(j){switch(K[j.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return S.md.sha1.create();case"md5WithRSAEncryption":return S.md.md5.create();case"sha256WithRSAEncryption":case"RSASSA-PSS":return S.md.sha256.create();case"sha384WithRSAEncryption":return S.md.sha384.create();case"sha512WithRSAEncryption":return S.md.sha512.create();default:var Z=new Error("Could not compute "+j.type+" digest. Unknown signature OID.");throw Z.signatureOid=j.signatureOid,Z}},X=function(j){var ce,Z=j.certificate;switch(Z.signatureOid){case K.sha1WithRSAEncryption:case K.sha1WithRSASignature:break;case K["RSASSA-PSS"]:var w,me,Ee;if(void 0===(w=K[Z.signatureParameters.mgf.hash.algorithmOid])||void 0===S.md[w])throw(Ee=new Error("Unsupported MGF hash function.")).oid=Z.signatureParameters.mgf.hash.algorithmOid,Ee.name=w,Ee;if(void 0===(me=K[Z.signatureParameters.mgf.algorithmOid])||void 0===S.mgf[me])throw(Ee=new Error("Unsupported MGF function.")).oid=Z.signatureParameters.mgf.algorithmOid,Ee.name=me,Ee;if(me=S.mgf[me].create(S.md[w].create()),void 0===(w=K[Z.signatureParameters.hash.algorithmOid])||void 0===S.md[w])throw(Ee=new Error("Unsupported RSASSA-PSS hash function.")).oid=Z.signatureParameters.hash.algorithmOid,Ee.name=w,Ee;ce=S.pss.create(S.md[w].create(),me,Z.signatureParameters.saltLength)}return Z.publicKey.verify(j.md.digest().getBytes(),j.signature,ce)};function ne(j){for(var ce,w,Z=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]),me=j.attributes,Ee=0;Ee<me.length;++Ee){var ge=(ce=me[Ee]).value,Oe=g.Type.PRINTABLESTRING;"valueTagClass"in ce&&(Oe=ce.valueTagClass)===g.Type.UTF8&&(ge=S.util.encodeUtf8(ge)),w=g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(ce.type).getBytes()),g.create(g.Class.UNIVERSAL,Oe,!1,ge)])]),Z.value.push(w)}return Z}function q(j){for(var Z,ce=0;ce<j.length;++ce){if(typeof(Z=j[ce]).name>"u"&&(Z.type&&Z.type in I.oids?Z.name=I.oids[Z.type]:Z.shortName&&Z.shortName in te&&(Z.name=I.oids[te[Z.shortName]])),typeof Z.type>"u"){if(!Z.name||!(Z.name in I.oids))throw(w=new Error("Attribute type not specified.")).attribute=Z,w;Z.type=I.oids[Z.name]}if(typeof Z.shortName>"u"&&Z.name&&Z.name in te&&(Z.shortName=te[Z.name]),Z.type===K.extensionRequest&&(Z.valueConstructed=!0,Z.valueTagClass=g.Type.SEQUENCE,!Z.value&&Z.extensions)){Z.value=[];for(var me=0;me<Z.extensions.length;++me)Z.value.push(I.certificateExtensionToAsn1(x(Z.extensions[me])))}var w;if(typeof Z.value>"u")throw(w=new Error("Attribute value not specified.")).attribute=Z,w}}function x(j,Z){if(Z=Z||{},typeof j.name>"u"&&j.id&&j.id in I.oids&&(j.name=I.oids[j.id]),typeof j.id>"u"){if(!j.name||!(j.name in I.oids))throw(ce=new Error("Extension ID not specified.")).extension=j,ce;j.id=I.oids[j.name]}if(typeof j.value<"u")return j;if("keyUsage"===j.name){var w=0,me=0,Ee=0;j.digitalSignature&&(me|=128,w=7),j.nonRepudiation&&(me|=64,w=6),j.keyEncipherment&&(me|=32,w=5),j.dataEncipherment&&(me|=16,w=4),j.keyAgreement&&(me|=8,w=3),j.keyCertSign&&(me|=4,w=2),j.cRLSign&&(me|=2,w=1),j.encipherOnly&&(me|=1,w=0),j.decipherOnly&&(Ee|=128,w=7);var ge=String.fromCharCode(w);0!==Ee?ge+=String.fromCharCode(me)+String.fromCharCode(Ee):0!==me&&(ge+=String.fromCharCode(me)),j.value=g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,ge)}else if("basicConstraints"===j.name)j.value=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]),j.cA&&j.value.value.push(g.create(g.Class.UNIVERSAL,g.Type.BOOLEAN,!1,"\xff")),"pathLenConstraint"in j&&j.value.value.push(g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(j.pathLenConstraint).getBytes()));else if("extKeyUsage"===j.name){j.value=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);var Oe=j.value.value;for(var Ie in j)!0===j[Ie]&&(Ie in K?Oe.push(g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(K[Ie]).getBytes())):-1!==Ie.indexOf(".")&&Oe.push(g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(Ie).getBytes())))}else if("nsCertType"===j.name)w=0,me=0,j.client&&(me|=128,w=7),j.server&&(me|=64,w=6),j.email&&(me|=32,w=5),j.objsign&&(me|=16,w=4),j.reserved&&(me|=8,w=3),j.sslCA&&(me|=4,w=2),j.emailCA&&(me|=2,w=1),j.objCA&&(me|=1,w=0),ge=String.fromCharCode(w),0!==me&&(ge+=String.fromCharCode(me)),j.value=g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,ge);else if("subjectAltName"===j.name||"issuerAltName"===j.name){j.value=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);for(var Ue=0;Ue<j.altNames.length;++Ue){if(ge=(Be=j.altNames[Ue]).value,7===Be.type&&Be.ip){if(null===(ge=S.util.bytesFromIP(Be.ip)))throw(ce=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=j,ce}else 8===Be.type&&(ge=g.oidToDer(Be.oid?g.oidToDer(Be.oid):ge));j.value.value.push(g.create(g.Class.CONTEXT_SPECIFIC,Be.type,!1,ge))}}else if("nsComment"===j.name&&Z.cert){if(!/^[\x00-\x7F]*$/.test(j.comment)||j.comment.length<1||j.comment.length>128)throw new Error('Invalid "nsComment" content.');j.value=g.create(g.Class.UNIVERSAL,g.Type.IA5STRING,!1,j.comment)}else if("subjectKeyIdentifier"===j.name&&Z.cert){var Ge=Z.cert.generateSubjectKeyIdentifier();j.subjectKeyIdentifier=Ge.toHex(),j.value=g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,Ge.getBytes())}else if("authorityKeyIdentifier"===j.name&&Z.cert){if(j.value=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]),Oe=j.value.value,j.keyIdentifier){var it=!0===j.keyIdentifier?Z.cert.generateSubjectKeyIdentifier().getBytes():j.keyIdentifier;Oe.push(g.create(g.Class.CONTEXT_SPECIFIC,0,!1,it))}if(j.authorityCertIssuer){var ot=[g.create(g.Class.CONTEXT_SPECIFIC,4,!0,[ne(!0===j.authorityCertIssuer?Z.cert.issuer:j.authorityCertIssuer)])];Oe.push(g.create(g.Class.CONTEXT_SPECIFIC,1,!0,ot))}if(j.serialNumber){var St=S.util.hexToBytes(!0===j.serialNumber?Z.cert.serialNumber:j.serialNumber);Oe.push(g.create(g.Class.CONTEXT_SPECIFIC,2,!1,St))}}else if("cRLDistributionPoints"===j.name){j.value=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]),Oe=j.value.value;var Be,Tt=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]),Et=g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[]);for(Ue=0;Ue<j.altNames.length;++Ue){if(ge=(Be=j.altNames[Ue]).value,7===Be.type&&Be.ip){if(null===(ge=S.util.bytesFromIP(Be.ip)))throw(ce=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.')).extension=j,ce}else 8===Be.type&&(ge=g.oidToDer(Be.oid?g.oidToDer(Be.oid):ge));Et.value.push(g.create(g.Class.CONTEXT_SPECIFIC,Be.type,!1,ge))}Tt.value.push(g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[Et])),Oe.push(Tt)}var ce;if(typeof j.value>"u")throw(ce=new Error("Extension value not specified.")).extension=j,ce;return j}function F(j,Z){if(j===K["RSASSA-PSS"]){var ce=[];return void 0!==Z.hash.algorithmOid&&ce.push(g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(Z.hash.algorithmOid).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")])])),void 0!==Z.mgf.algorithmOid&&ce.push(g.create(g.Class.CONTEXT_SPECIFIC,1,!0,[g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(Z.mgf.algorithmOid).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(Z.mgf.hash.algorithmOid).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")])])])),void 0!==Z.saltLength&&ce.push(g.create(g.Class.CONTEXT_SPECIFIC,2,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(Z.saltLength).getBytes())])),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,ce)}return g.create(g.Class.UNIVERSAL,g.Type.NULL,!1,"")}function Y(j){var Z=g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[]);if(0===j.attributes.length)return Z;for(var ce=j.attributes,w=0;w<ce.length;++w){var me=ce[w],Ee=me.value,ge=g.Type.UTF8;"valueTagClass"in me&&(ge=me.valueTagClass),ge===g.Type.UTF8&&(Ee=S.util.encodeUtf8(Ee));var Oe=!1;"valueConstructed"in me&&(Oe=me.valueConstructed);var Ie=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(me.type).getBytes()),g.create(g.Class.UNIVERSAL,g.Type.SET,!0,[g.create(g.Class.UNIVERSAL,ge,Oe,Ee)])]);Z.value.push(Ie)}return Z}I.certificateFromPem=function(j,Z,ce){var w=S.pem.decode(j)[0];if("CERTIFICATE"!==w.type&&"X509 CERTIFICATE"!==w.type&&"TRUSTED CERTIFICATE"!==w.type){var me=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw me.headerType=w.type,me}if(w.procType&&"ENCRYPTED"===w.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var Ee=g.fromDer(w.body,ce);return I.certificateFromAsn1(Ee,Z)},I.certificateToPem=function(j,Z){var ce={type:"CERTIFICATE",body:g.toDer(I.certificateToAsn1(j)).getBytes()};return S.pem.encode(ce,{maxline:Z})},I.publicKeyFromPem=function(j){var Z=S.pem.decode(j)[0];if("PUBLIC KEY"!==Z.type&&"RSA PUBLIC KEY"!==Z.type){var ce=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw ce.headerType=Z.type,ce}if(Z.procType&&"ENCRYPTED"===Z.procType.type)throw new Error("Could not convert public key from PEM; PEM is encrypted.");var w=g.fromDer(Z.body);return I.publicKeyFromAsn1(w)},I.publicKeyToPem=function(j,Z){var ce={type:"PUBLIC KEY",body:g.toDer(I.publicKeyToAsn1(j)).getBytes()};return S.pem.encode(ce,{maxline:Z})},I.publicKeyToRSAPublicKeyPem=function(j,Z){var ce={type:"RSA PUBLIC KEY",body:g.toDer(I.publicKeyToRSAPublicKey(j)).getBytes()};return S.pem.encode(ce,{maxline:Z})},I.getPublicKeyFingerprint=function(j,Z){var me,ce=(Z=Z||{}).md||S.md.sha1.create();switch(Z.type||"RSAPublicKey"){case"RSAPublicKey":me=g.toDer(I.publicKeyToRSAPublicKey(j)).getBytes();break;case"SubjectPublicKeyInfo":me=g.toDer(I.publicKeyToAsn1(j)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+Z.type+'".')}ce.start(),ce.update(me);var Ee=ce.digest();if("hex"===Z.encoding){var ge=Ee.toHex();return Z.delimiter?ge.match(/.{2}/g).join(Z.delimiter):ge}if("binary"===Z.encoding)return Ee.getBytes();if(Z.encoding)throw new Error('Unknown encoding "'+Z.encoding+'".');return Ee},I.certificationRequestFromPem=function(j,Z,ce){var w=S.pem.decode(j)[0];if("CERTIFICATE REQUEST"!==w.type){var me=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw me.headerType=w.type,me}if(w.procType&&"ENCRYPTED"===w.procType.type)throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var Ee=g.fromDer(w.body,ce);return I.certificationRequestFromAsn1(Ee,Z)},I.certificationRequestToPem=function(j,Z){var ce={type:"CERTIFICATE REQUEST",body:g.toDer(I.certificationRequestToAsn1(j)).getBytes()};return S.pem.encode(ce,{maxline:Z})},I.createCertificate=function(){var j={version:2,serialNumber:"00",signatureOid:null,signature:null,siginfo:{}};return j.siginfo.algorithmOid=null,j.validity={},j.validity.notBefore=new Date,j.validity.notAfter=new Date,j.issuer={},j.issuer.getField=function(Z){return re(j.issuer,Z)},j.issuer.addField=function(Z){q([Z]),j.issuer.attributes.push(Z)},j.issuer.attributes=[],j.issuer.hash=null,j.subject={},j.subject.getField=function(Z){return re(j.subject,Z)},j.subject.addField=function(Z){q([Z]),j.subject.attributes.push(Z)},j.subject.attributes=[],j.subject.hash=null,j.extensions=[],j.publicKey=null,j.md=null,j.setSubject=function(Z,ce){q(Z),j.subject.attributes=Z,delete j.subject.uniqueId,ce&&(j.subject.uniqueId=ce),j.subject.hash=null},j.setIssuer=function(Z,ce){q(Z),j.issuer.attributes=Z,delete j.issuer.uniqueId,ce&&(j.issuer.uniqueId=ce),j.issuer.hash=null},j.setExtensions=function(Z){for(var ce=0;ce<Z.length;++ce)x(Z[ce],{cert:j});j.extensions=Z},j.getExtension=function(Z){"string"==typeof Z&&(Z={name:Z});for(var w,ce=null,me=0;null===ce&&me<j.extensions.length;++me)w=j.extensions[me],(Z.id&&w.id===Z.id||Z.name&&w.name===Z.name)&&(ce=w);return ce},j.sign=function(Z,ce){j.md=ce||S.md.sha1.create();var w=K[j.md.algorithm+"WithRSAEncryption"];if(!w){var me=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw me.algorithm=j.md.algorithm,me}j.signatureOid=j.siginfo.algorithmOid=w,j.tbsCertificate=I.getTBSCertificate(j);var Ee=g.toDer(j.tbsCertificate);j.md.update(Ee.getBytes()),j.signature=Z.sign(j.md)},j.verify=function(Z){var ce=!1;if(!j.issued(Z)){var w=Z.issuer,me=j.subject,Ee=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw Ee.expectedIssuer=me.attributes,Ee.actualIssuer=w.attributes,Ee}var ge=Z.md;if(null===ge){ge=ee({signatureOid:Z.signatureOid,type:"certificate"});var Oe=Z.tbsCertificate||I.getTBSCertificate(Z),Ie=g.toDer(Oe);ge.update(Ie.getBytes())}return null!==ge&&(ce=X({certificate:j,md:ge,signature:Z.signature})),ce},j.isIssuer=function(Z){var ce=!1,w=j.issuer,me=Z.subject;if(w.hash&&me.hash)ce=w.hash===me.hash;else if(w.attributes.length===me.attributes.length){ce=!0;for(var Ee,ge,Oe=0;ce&&Oe<w.attributes.length;++Oe)((Ee=w.attributes[Oe]).type!==(ge=me.attributes[Oe]).type||Ee.value!==ge.value)&&(ce=!1)}return ce},j.issued=function(Z){return Z.isIssuer(j)},j.generateSubjectKeyIdentifier=function(){return I.getPublicKeyFingerprint(j.publicKey,{type:"RSAPublicKey"})},j.verifySubjectKeyIdentifier=function(){for(var Z=K.subjectKeyIdentifier,ce=0;ce<j.extensions.length;++ce){var w=j.extensions[ce];if(w.id===Z){var me=j.generateSubjectKeyIdentifier().getBytes();return S.util.hexToBytes(w.subjectKeyIdentifier)===me}}return!1},j},I.certificateFromAsn1=function(j,Z){var ce={},w=[];if(!g.validate(j,H,ce,w)){var me=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw me.errors=w,me}if(g.derToOid(ce.publicKeyOid)!==I.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var ge=I.createCertificate();ge.version=ce.certVersion?ce.certVersion.charCodeAt(0):0;var Oe=S.util.createBuffer(ce.certSerialNumber);ge.serialNumber=Oe.toHex(),ge.signatureOid=S.asn1.derToOid(ce.certSignatureOid),ge.signatureParameters=Se(ge.signatureOid,ce.certSignatureParams,!0),ge.siginfo.algorithmOid=S.asn1.derToOid(ce.certinfoSignatureOid),ge.siginfo.parameters=Se(ge.siginfo.algorithmOid,ce.certinfoSignatureParams,!1),ge.signature=ce.certSignature;var Ie=[];if(void 0!==ce.certValidity1UTCTime&&Ie.push(g.utcTimeToDate(ce.certValidity1UTCTime)),void 0!==ce.certValidity2GeneralizedTime&&Ie.push(g.generalizedTimeToDate(ce.certValidity2GeneralizedTime)),void 0!==ce.certValidity3UTCTime&&Ie.push(g.utcTimeToDate(ce.certValidity3UTCTime)),void 0!==ce.certValidity4GeneralizedTime&&Ie.push(g.generalizedTimeToDate(ce.certValidity4GeneralizedTime)),Ie.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(Ie.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(ge.validity.notBefore=Ie[0],ge.validity.notAfter=Ie[1],ge.tbsCertificate=ce.tbsCertificate,Z){ge.md=ee({signatureOid:ge.signatureOid,type:"certificate"});var Be=g.toDer(ge.tbsCertificate);ge.md.update(Be.getBytes())}var Ue=S.md.sha1.create(),Ge=g.toDer(ce.certIssuer);Ue.update(Ge.getBytes()),ge.issuer.getField=function(St){return re(ge.issuer,St)},ge.issuer.addField=function(St){q([St]),ge.issuer.attributes.push(St)},ge.issuer.attributes=I.RDNAttributesAsArray(ce.certIssuer),ce.certIssuerUniqueId&&(ge.issuer.uniqueId=ce.certIssuerUniqueId),ge.issuer.hash=Ue.digest().toHex();var it=S.md.sha1.create(),ot=g.toDer(ce.certSubject);return it.update(ot.getBytes()),ge.subject.getField=function(St){return re(ge.subject,St)},ge.subject.addField=function(St){q([St]),ge.subject.attributes.push(St)},ge.subject.attributes=I.RDNAttributesAsArray(ce.certSubject),ce.certSubjectUniqueId&&(ge.subject.uniqueId=ce.certSubjectUniqueId),ge.subject.hash=it.digest().toHex(),ge.extensions=ce.certExtensions?I.certificateExtensionsFromAsn1(ce.certExtensions):[],ge.publicKey=I.publicKeyFromAsn1(ce.subjectPublicKeyInfo),ge},I.certificateExtensionsFromAsn1=function(j){for(var Z=[],ce=0;ce<j.value.length;++ce)for(var w=j.value[ce],me=0;me<w.value.length;++me)Z.push(I.certificateExtensionFromAsn1(w.value[me]));return Z},I.certificateExtensionFromAsn1=function(j){var Z={};if(Z.id=g.derToOid(j.value[0].value),Z.critical=!1,j.value[1].type===g.Type.BOOLEAN?(Z.critical=0!==j.value[1].value.charCodeAt(0),Z.value=j.value[2].value):Z.value=j.value[1].value,Z.id in K)if(Z.name=K[Z.id],"keyUsage"===Z.name){var w=0,me=0;(ce=g.fromDer(Z.value)).value.length>1&&(w=ce.value.charCodeAt(1),me=ce.value.length>2?ce.value.charCodeAt(2):0),Z.digitalSignature=!(128&~w),Z.nonRepudiation=!(64&~w),Z.keyEncipherment=!(32&~w),Z.dataEncipherment=!(16&~w),Z.keyAgreement=!(8&~w),Z.keyCertSign=!(4&~w),Z.cRLSign=!(2&~w),Z.encipherOnly=!(1&~w),Z.decipherOnly=!(128&~me)}else if("basicConstraints"===Z.name){var ce=g.fromDer(Z.value);Z.cA=ce.value.length>0&&ce.value[0].type===g.Type.BOOLEAN&&0!==ce.value[0].value.charCodeAt(0);var Ee=null;ce.value.length>0&&ce.value[0].type===g.Type.INTEGER?Ee=ce.value[0].value:ce.value.length>1&&(Ee=ce.value[1].value),null!==Ee&&(Z.pathLenConstraint=g.derToInteger(Ee))}else if("extKeyUsage"===Z.name){ce=g.fromDer(Z.value);for(var ge=0;ge<ce.value.length;++ge){var Oe=g.derToOid(ce.value[ge].value);Oe in K?Z[K[Oe]]=!0:Z[Oe]=!0}}else if("nsCertType"===Z.name)w=0,(ce=g.fromDer(Z.value)).value.length>1&&(w=ce.value.charCodeAt(1)),Z.client=!(128&~w),Z.server=!(64&~w),Z.email=!(32&~w),Z.objsign=!(16&~w),Z.reserved=!(8&~w),Z.sslCA=!(4&~w),Z.emailCA=!(2&~w),Z.objCA=!(1&~w);else if("subjectAltName"===Z.name||"issuerAltName"===Z.name){Z.altNames=[],ce=g.fromDer(Z.value);for(var Ie,Be=0;Be<ce.value.length;++Be){var Ue={type:(Ie=ce.value[Be]).type,value:Ie.value};switch(Z.altNames.push(Ue),Ie.type){case 1:case 2:case 6:break;case 7:Ue.ip=S.util.bytesToIP(Ie.value);break;case 8:Ue.oid=g.derToOid(Ie.value)}}}else"subjectKeyIdentifier"===Z.name&&(ce=g.fromDer(Z.value),Z.subjectKeyIdentifier=S.util.bytesToHex(ce.value));return Z},I.certificationRequestFromAsn1=function(j,Z){var ce={},w=[];if(!g.validate(j,V,ce,w)){var me=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw me.errors=w,me}if(g.derToOid(ce.publicKeyOid)!==I.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var ge=I.createCertificationRequest();if(ge.version=ce.csrVersion?ce.csrVersion.charCodeAt(0):0,ge.signatureOid=S.asn1.derToOid(ce.csrSignatureOid),ge.signatureParameters=Se(ge.signatureOid,ce.csrSignatureParams,!0),ge.siginfo.algorithmOid=S.asn1.derToOid(ce.csrSignatureOid),ge.siginfo.parameters=Se(ge.siginfo.algorithmOid,ce.csrSignatureParams,!1),ge.signature=ce.csrSignature,ge.certificationRequestInfo=ce.certificationRequestInfo,Z){ge.md=ee({signatureOid:ge.signatureOid,type:"certification request"});var Oe=g.toDer(ge.certificationRequestInfo);ge.md.update(Oe.getBytes())}var Ie=S.md.sha1.create();return ge.subject.getField=function(Be){return re(ge.subject,Be)},ge.subject.addField=function(Be){q([Be]),ge.subject.attributes.push(Be)},ge.subject.attributes=I.RDNAttributesAsArray(ce.certificationRequestInfoSubject,Ie),ge.subject.hash=Ie.digest().toHex(),ge.publicKey=I.publicKeyFromAsn1(ce.subjectPublicKeyInfo),ge.getAttribute=function(Be){return re(ge,Be)},ge.addAttribute=function(Be){q([Be]),ge.attributes.push(Be)},ge.attributes=I.CRIAttributesAsArray(ce.certificationRequestInfoAttributes||[]),ge},I.createCertificationRequest=function(){var j={version:0,signatureOid:null,signature:null,siginfo:{}};return j.siginfo.algorithmOid=null,j.subject={},j.subject.getField=function(Z){return re(j.subject,Z)},j.subject.addField=function(Z){q([Z]),j.subject.attributes.push(Z)},j.subject.attributes=[],j.subject.hash=null,j.publicKey=null,j.attributes=[],j.getAttribute=function(Z){return re(j,Z)},j.addAttribute=function(Z){q([Z]),j.attributes.push(Z)},j.md=null,j.setSubject=function(Z){q(Z),j.subject.attributes=Z,j.subject.hash=null},j.setAttributes=function(Z){q(Z),j.attributes=Z},j.sign=function(Z,ce){j.md=ce||S.md.sha1.create();var w=K[j.md.algorithm+"WithRSAEncryption"];if(!w){var me=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw me.algorithm=j.md.algorithm,me}j.signatureOid=j.siginfo.algorithmOid=w,j.certificationRequestInfo=I.getCertificationRequestInfo(j);var Ee=g.toDer(j.certificationRequestInfo);j.md.update(Ee.getBytes()),j.signature=Z.sign(j.md)},j.verify=function(){var Z=!1,ce=j.md;if(null===ce){ce=ee({signatureOid:j.signatureOid,type:"certification request"});var w=j.certificationRequestInfo||I.getCertificationRequestInfo(j),me=g.toDer(w);ce.update(me.getBytes())}return null!==ce&&(Z=X({certificate:j,md:ce,signature:j.signature})),Z},j};var se=new Date("1950-01-01T00:00:00Z"),pe=new Date("2050-01-01T00:00:00Z");function Te(j){return j>=se&&j<pe?g.create(g.Class.UNIVERSAL,g.Type.UTCTIME,!1,g.dateToUtcTime(j)):g.create(g.Class.UNIVERSAL,g.Type.GENERALIZEDTIME,!1,g.dateToGeneralizedTime(j))}I.getTBSCertificate=function(j){var Z=Te(j.validity.notBefore),ce=Te(j.validity.notAfter),w=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.CONTEXT_SPECIFIC,0,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(j.version).getBytes())]),g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,S.util.hexToBytes(j.serialNumber)),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(j.siginfo.algorithmOid).getBytes()),F(j.siginfo.algorithmOid,j.siginfo.parameters)]),ne(j.issuer),g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[Z,ce]),ne(j.subject),I.publicKeyToAsn1(j.publicKey)]);return j.issuer.uniqueId&&w.value.push(g.create(g.Class.CONTEXT_SPECIFIC,1,!0,[g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,"\0"+j.issuer.uniqueId)])),j.subject.uniqueId&&w.value.push(g.create(g.Class.CONTEXT_SPECIFIC,2,!0,[g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,"\0"+j.subject.uniqueId)])),j.extensions.length>0&&w.value.push(I.certificateExtensionsToAsn1(j.extensions)),w},I.getCertificationRequestInfo=function(j){return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.INTEGER,!1,g.integerToDer(j.version).getBytes()),ne(j.subject),I.publicKeyToAsn1(j.publicKey),Y(j)])},I.distinguishedNameToAsn1=function(j){return ne(j)},I.certificateToAsn1=function(j){var Z=j.tbsCertificate||I.getTBSCertificate(j);return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[Z,g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(j.signatureOid).getBytes()),F(j.signatureOid,j.signatureParameters)]),g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,"\0"+j.signature)])},I.certificateExtensionsToAsn1=function(j){var Z=g.create(g.Class.CONTEXT_SPECIFIC,3,!0,[]),ce=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);Z.value.push(ce);for(var w=0;w<j.length;++w)ce.value.push(I.certificateExtensionToAsn1(j[w]));return Z},I.certificateExtensionToAsn1=function(j){var Z=g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[]);Z.value.push(g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(j.id).getBytes())),j.critical&&Z.value.push(g.create(g.Class.UNIVERSAL,g.Type.BOOLEAN,!1,"\xff"));var ce=j.value;return"string"!=typeof j.value&&(ce=g.toDer(ce).getBytes()),Z.value.push(g.create(g.Class.UNIVERSAL,g.Type.OCTETSTRING,!1,ce)),Z},I.certificationRequestToAsn1=function(j){var Z=j.certificationRequestInfo||I.getCertificationRequestInfo(j);return g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[Z,g.create(g.Class.UNIVERSAL,g.Type.SEQUENCE,!0,[g.create(g.Class.UNIVERSAL,g.Type.OID,!1,g.oidToDer(j.signatureOid).getBytes()),F(j.signatureOid,j.signatureParameters)]),g.create(g.Class.UNIVERSAL,g.Type.BITSTRING,!1,"\0"+j.signature)])},I.createCaStore=function(j){var Z={certs:{}};function ce(ge){return w(ge),Z.certs[ge.hash]||null}function w(ge){if(!ge.hash){var Oe=S.md.sha1.create();ge.attributes=I.RDNAttributesAsArray(ne(ge),Oe),ge.hash=Oe.digest().toHex()}}if(Z.getIssuer=function(ge){return ce(ge.issuer)},Z.addCertificate=function(ge){if("string"==typeof ge&&(ge=S.pki.certificateFromPem(ge)),w(ge.subject),!Z.hasCertificate(ge))if(ge.subject.hash in Z.certs){var Oe=Z.certs[ge.subject.hash];S.util.isArray(Oe)||(Oe=[Oe]),Oe.push(ge),Z.certs[ge.subject.hash]=Oe}else Z.certs[ge.subject.hash]=ge},Z.hasCertificate=function(ge){"string"==typeof ge&&(ge=S.pki.certificateFromPem(ge));var Oe=ce(ge.subject);if(!Oe)return!1;S.util.isArray(Oe)||(Oe=[Oe]);for(var Ie=g.toDer(I.certificateToAsn1(ge)).getBytes(),Be=0;Be<Oe.length;++Be)if(Ie===g.toDer(I.certificateToAsn1(Oe[Be])).getBytes())return!0;return!1},Z.listAllCertificates=function(){var ge=[];for(var Oe in Z.certs)if(Z.certs.hasOwnProperty(Oe)){var Ie=Z.certs[Oe];if(S.util.isArray(Ie))for(var Be=0;Be<Ie.length;++Be)ge.push(Ie[Be]);else ge.push(Ie)}return ge},Z.removeCertificate=function(ge){var Oe;if("string"==typeof ge&&(ge=S.pki.certificateFromPem(ge)),w(ge.subject),!Z.hasCertificate(ge))return null;var Ie=ce(ge.subject);if(!S.util.isArray(Ie))return Oe=Z.certs[ge.subject.hash],delete Z.certs[ge.subject.hash],Oe;for(var Be=g.toDer(I.certificateToAsn1(ge)).getBytes(),Ue=0;Ue<Ie.length;++Ue)Be===g.toDer(I.certificateToAsn1(Ie[Ue])).getBytes()&&(Oe=Ie[Ue],Ie.splice(Ue,1));return 0===Ie.length&&delete Z.certs[ge.subject.hash],Oe},j)for(var me=0;me<j.length;++me)Z.addCertificate(j[me]);return Z},I.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},I.verifyCertificateChain=function(j,Z,ce){"function"==typeof ce&&(ce={verify:ce}),ce=ce||{};var w=(Z=Z.slice(0)).slice(0),me=ce.validityCheckDate;typeof me>"u"&&(me=new Date);var Ee=!0,ge=null,Oe=0;do{var Ie=Z.shift(),Be=null,Ue=!1;if(me&&(me<Ie.validity.notBefore||me>Ie.validity.notAfter)&&(ge={message:"Certificate is not valid yet or has expired.",error:I.certificateError.certificate_expired,notBefore:Ie.validity.notBefore,notAfter:Ie.validity.notAfter,now:me}),null===ge){if(null===(Be=Z[0]||j.getIssuer(Ie))&&Ie.isIssuer(Ie)&&(Ue=!0,Be=Ie),Be){var Ge=Be;S.util.isArray(Ge)||(Ge=[Ge]);for(var it=!1;!it&&Ge.length>0;){Be=Ge.shift();try{it=Be.verify(Ie)}catch{}}it||(ge={message:"Certificate signature is invalid.",error:I.certificateError.bad_certificate})}null===ge&&(!Be||Ue)&&!j.hasCertificate(Ie)&&(ge={message:"Certificate is not trusted.",error:I.certificateError.unknown_ca})}if(null===ge&&Be&&!Ie.isIssuer(Be)&&(ge={message:"Certificate issuer is invalid.",error:I.certificateError.bad_certificate}),null===ge)for(var ot={keyUsage:!0,basicConstraints:!0},St=0;null===ge&&St<Ie.extensions.length;++St){var Tt=Ie.extensions[St];Tt.critical&&!(Tt.name in ot)&&(ge={message:"Certificate has an unsupported critical extension.",error:I.certificateError.unsupported_certificate})}if(null===ge&&(!Ee||0===Z.length&&(!Be||Ue))){var Et=Ie.getExtension("basicConstraints"),st=Ie.getExtension("keyUsage");null!==st&&(!st.keyCertSign||null===Et)&&(ge={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:I.certificateError.bad_certificate}),null===ge&&null!==Et&&!Et.cA&&(ge={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:I.certificateError.bad_certificate}),null===ge&&null!==st&&"pathLenConstraint"in Et&&Oe-1>Et.pathLenConstraint&&(ge={message:"Certificate basicConstraints pathLenConstraint violated.",error:I.certificateError.bad_certificate})}var It=null===ge||ge.error,jn=ce.verify?ce.verify(It,Oe,w):It;if(!0!==jn)throw!0===It&&(ge={message:"The application rejected the certificate.",error:I.certificateError.bad_certificate}),(jn||0===jn)&&("object"!=typeof jn||S.util.isArray(jn)?"string"==typeof jn&&(ge.error=jn):(jn.message&&(ge.message=jn.message),jn.error&&(ge.error=jn.error))),ge;ge=null,Ee=!1,++Oe}while(Z.length>0);return!0}},9622:(yt,rn,ve)=>{var S=ve(6589);ve(7097),ve(1817),ve(1347),ve(9368),ve(1097),ve(4724),ve(8588),ve(2880),ve(812),ve(9436);var g=S.asn1,I=yt.exports=S.pki=S.pki||{};I.pemToDer=function(K){var te=S.pem.decode(K)[0];if(te.procType&&"ENCRYPTED"===te.procType.type)throw new Error("Could not convert PEM to DER; PEM is encrypted.");return S.util.createBuffer(te.body)},I.privateKeyFromPem=function(K){var te=S.pem.decode(K)[0];if("PRIVATE KEY"!==te.type&&"RSA PRIVATE KEY"!==te.type){var J=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw J.headerType=te.type,J}if(te.procType&&"ENCRYPTED"===te.procType.type)throw new Error("Could not convert private key from PEM; PEM is encrypted.");var H=g.fromDer(te.body);return I.privateKeyFromAsn1(H)},I.privateKeyToPem=function(K,te){var J={type:"RSA PRIVATE KEY",body:g.toDer(I.privateKeyToAsn1(K)).getBytes()};return S.pem.encode(J,{maxline:te})},I.privateKeyInfoToPem=function(K,te){var J={type:"PRIVATE KEY",body:g.toDer(K).getBytes()};return S.pem.encode(J,{maxline:te})}},9807:(yt,rn,ve)=>{var S=ve(6589);ve(7097),ve(4579),ve(4846),ve(9368),ve(9622),ve(1675),ve(8825),ve(812);var g=function(R,N,ie,xe){var Re=S.util.createBuffer(),ze=R.length>>1,Ne=ze+(1&R.length),ct=R.substr(0,Ne),Nt=R.substr(ze,Ne),Ht=S.util.createBuffer(),rt=S.hmac.create();ie=N+ie;var ft=Math.ceil(xe/16),Gt=Math.ceil(xe/20);rt.start("MD5",ct);var Mn=S.util.createBuffer();Ht.putBytes(ie);for(var tn=0;tn<ft;++tn)rt.start(null,null),rt.update(Ht.getBytes()),Ht.putBuffer(rt.digest()),rt.start(null,null),rt.update(Ht.bytes()+ie),Mn.putBuffer(rt.digest());rt.start("SHA1",Nt);var jt=S.util.createBuffer();for(Ht.clear(),Ht.putBytes(ie),tn=0;tn<Gt;++tn)rt.start(null,null),rt.update(Ht.getBytes()),Ht.putBuffer(rt.digest()),rt.start(null,null),rt.update(Ht.bytes()+ie),jt.putBuffer(rt.digest());return Re.putBytes(S.util.xorBytes(Mn.getBytes(),jt.getBytes(),xe)),Re},te=function(R,N,ie){var xe=!1;try{var Re=R.deflate(N.fragment.getBytes());N.fragment=S.util.createBuffer(Re),N.length=Re.length,xe=!0}catch{}return xe},J=function(R,N,ie){var xe=!1;try{var Re=R.inflate(N.fragment.getBytes());N.fragment=S.util.createBuffer(Re),N.length=Re.length,xe=!0}catch{}return xe},H=function(R,N){var ie=0;switch(N){case 1:ie=R.getByte();break;case 2:ie=R.getInt16();break;case 3:ie=R.getInt24();break;case 4:ie=R.getInt32()}return S.util.createBuffer(R.getBytes(ie))},O=function(R,N,ie){R.putInt(ie.length(),N<<3),R.putBuffer(ie)},D={Versions:{TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}}};D.SupportedVersions=[D.Versions.TLS_1_1,D.Versions.TLS_1_0],D.Version=D.SupportedVersions[0],D.MaxFragment=15360,D.ConnectionEnd={server:0,client:1},D.PRFAlgorithm={tls_prf_sha256:0},D.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2}
1,D.CipherType={stream:0,block:1,aead:2},D.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},D.CompressionMethod={none:0,deflate:1},D.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},D.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},D.Alert={},D.Alert.Level={warning:1,fatal:2},D.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},D.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},D.CipherSuites={},D.getCipherSuite=function(R){var N=null;for(var ie in D.CipherSuites){var xe=D.CipherSuites[ie];
vendor: 34,424 bytes, line 1
1if(xe.id[0]===R.charCodeAt(0)&&xe.id[1]===R.charCodeAt(1)){N=xe;break}}return N},D.handleUnexpected=function(R,N){!R.open&&R.entity===D.ConnectionEnd.client||R.error(R,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unexpected_message}})},D.handleHelloRequest=function(R,N,ie){!R.handshaking&&R.handshakes>0&&(D.queue(R,D.createAlert(R,{level:D.Alert.Level.warning,description:D.Alert.Description.no_renegotiation})),D.flush(R)),R.process()},D.parseHelloMessage=function(R,N,ie){var xe=null,Re=R.entity===D.ConnectionEnd.client;if(ie<38)R.error(R,{message:Re?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});else{var ze=N.fragment,Ne=ze.length();if(xe={version:{major:ze.getByte(),minor:ze.getByte()},random:S.util.createBuffer(ze.getBytes(32)),session_id:H(ze,1),extensions:[]},Re?(xe.cipher_suite=ze.getBytes(2),xe.compression_method=ze.getByte()):(xe.cipher_suites=H(ze,2),xe.compression_methods=H(ze,1)),(Ne=ie-(Ne-ze.length()))>0){for(var ct=H(ze,2);ct.length()>0;)xe.extensions.push({type:[ct.getByte(),ct.getByte()],data:H(ct,2)});if(!Re)for(var Nt=0;Nt<xe.extensions.length;++Nt){var Ht=xe.extensions[Nt];if(0===Ht.type[0]&&0===Ht.type[1])for(var rt=H(Ht.data,2);rt.length()>0&&0===rt.getByte();)R.session.extensions.server_name.serverNameList.push(H(rt,2).getBytes())}}if(R.session.version&&(xe.version.major!==R.session.version.major||xe.version.minor!==R.session.version.minor))return R.error(R,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}});if(Re)R.session.cipherSuite=D.getCipherSuite(xe.cipher_suite);else for(var Gt=S.util.createBuffer(xe.cipher_suites.bytes());Gt.length()>0&&(R.session.cipherSuite=D.getCipherSuite(Gt.getBytes(2)),null===R.session.cipherSuite););if(null===R.session.cipherSuite)return R.error(R,{message:"No cipher suites in common.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.handshake_failure},cipherSuite:S.util.bytesToHex(xe.cipher_suite)});R.session.compressionMethod=Re?xe.compression_method:D.CompressionMethod.none}return xe},D.createSecurityParameters=function(R,N){var ie=R.entity===D.ConnectionEnd.client,xe=N.random.bytes(),Re=ie?R.session.sp.client_random:xe,ze=ie?xe:D.createRandom().getBytes();R.session.sp={entity:R.entity,prf_algorithm:D.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:R.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:Re,server_random:ze}},D.handleServerHello=function(R,N,ie){var xe=D.parseHelloMessage(R,N,ie);if(!R.fail){if(!(xe.version.minor<=R.version.minor))return R.error(R,{message:"Incompatible TLS version.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}});R.version.minor=xe.version.minor,R.session.version=R.version;var Re=xe.session_id.bytes();Re.length>0&&Re===R.session.id?(R.expect=ne,R.session.resuming=!0,R.session.sp.server_random=xe.random.bytes()):(R.expect=re,R.session.resuming=!1,D.createSecurityParameters(R,xe)),R.session.id=Re,R.process()}},D.handleClientHello=function(R,N,ie){var xe=D.parseHelloMessage(R,N,ie);if(!R.fail){var Re=xe.session_id.bytes(),ze=null;if(R.sessionCache&&(null===(ze=R.sessionCache.getSession(Re))?Re="":(ze.version.major!==xe.version.major||ze.version.minor>xe.version.minor)&&(ze=null,Re="")),0===Re.length&&(Re=S.random.getBytes(32)),R.session.id=Re,R.session.clientHelloVersion=xe.version,R.session.sp={},ze)R.version=R.session.version=ze.version,R.session.sp=ze.sp;else{for(var Ne,ct=1;ct<D.SupportedVersions.length&&!((Ne=D.SupportedVersions[ct]).minor<=xe.version.minor);++ct);R.version={major:Ne.major,minor:Ne.minor},R.session.version=R.version}null!==ze?(R.expect=Te,R.session.resuming=!0,R.session.sp.client_random=xe.random.bytes()):(R.expect=!1!==R.verifyClient?Y:se,R.session.resuming=!1,D.createSecurityParameters(R,xe)),R.open=!0,D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createServerHello(R)})),R.session.resuming?(D.queue(R,D.createRecord(R,{type:D.ContentType.change_cipher_spec,data:D.createChangeCipherSpec()})),R.state.pending=D.createConnectionState(R),R.state.current.write=R.state.pending.write,D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createFinished(R)}))):(D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createCertificate(R)})),R.fail||(D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createServerKeyExchange(R)})),!1!==R.verifyClient&&D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createCertificateRequest(R)})),D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createServerHelloDone(R)})))),D.flush(R),R.process()}},D.handleCertificate=function(R,N,ie){if(ie<3)return R.error(R,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var ze,Ne,Re={certificate_list:H(N.fragment,3)},ct=[];try{for(;Re.certificate_list.length()>0;)ze=H(Re.certificate_list,3),Ne=S.asn1.fromDer(ze),ze=S.pki.certificateFromAsn1(Ne,!0),ct.push(ze)}catch(Ht){return R.error(R,{message:"Could not parse certificate list.",cause:Ht,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.bad_certificate}})}var Nt=R.entity===D.ConnectionEnd.client;!Nt&&!0!==R.verifyClient||0!==ct.length?0===ct.length?R.expect=Nt?Se:se:(Nt?R.session.serverCertificate=ct[0]:R.session.clientCertificate=ct[0],D.verifyCertificateChain(R,ct)&&(R.expect=Nt?Se:se)):R.error(R,{message:Nt?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}}),R.process()},D.handleServerKeyExchange=function(R,N,ie){if(ie>0)return R.error(R,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unsupported_certificate}});R.expect=ee,R.process()},D.handleClientKeyExchange=function(R,N,ie){if(ie<48)return R.error(R,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unsupported_certificate}});var Re={enc_pre_master_secret:H(N.fragment,2).getBytes()},ze=null;if(R.getPrivateKey)try{ze=R.getPrivateKey(R,R.session.serverCertificate),ze=S.pki.privateKeyFromPem(ze)}catch(Nt){R.error(R,{message:"Could not get private key.",cause:Nt,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}})}if(null===ze)return R.error(R,{message:"No private key set.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}});try{var Ne=R.session.sp;Ne.pre_master_secret=ze.decrypt(Re.enc_pre_master_secret);var ct=R.session.clientHelloVersion;if(ct.major!==Ne.pre_master_secret.charCodeAt(0)||ct.minor!==Ne.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{Ne.pre_master_secret=S.random.getBytes(48)}R.expect=Te,null!==R.session.clientCertificate&&(R.expect=pe),R.process()},D.handleCertificateRequest=function(R,N,ie){if(ie<3)return R.error(R,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var xe=N.fragment,Re={certificate_types:H(xe,1),certificate_authorities:H(xe,2)};R.session.certificateRequest=Re,R.expect=X,R.process()},D.handleCertificateVerify=function(R,N,ie){if(ie<2)return R.error(R,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var xe=N.fragment;xe.read-=4;var Re=xe.bytes();xe.read+=4;var ze={signature:H(xe,2).getBytes()},Ne=S.util.createBuffer();Ne.putBuffer(R.session.md5.digest()),Ne.putBuffer(R.session.sha1.digest()),Ne=Ne.getBytes();try{if(!R.session.clientCertificate.publicKey.verify(Ne,ze.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");R.session.md5.update(Re),R.session.sha1.update(Re)}catch{return R.error(R,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.handshake_failure}})}R.expect=Te,R.process()},D.handleServerHelloDone=function(R,N,ie){if(ie>0)return R.error(R,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.record_overflow}});if(null===R.serverCertificate){var xe={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.insufficient_security}},ze=R.verify(R,xe.alert.description,0,[]);if(!0!==ze)return(ze||0===ze)&&("object"!=typeof ze||S.util.isArray(ze)?"number"==typeof ze&&(xe.alert.description=ze):(ze.message&&(xe.message=ze.message),ze.alert&&(xe.alert.description=ze.alert))),R.error(R,xe)}null!==R.session.certificateRequest&&(N=D.createRecord(R,{type:D.ContentType.handshake,data:D.createCertificate(R)}),D.queue(R,N)),N=D.createRecord(R,{type:D.ContentType.handshake,data:D.createClientKeyExchange(R)}),D.queue(R,N),R.expect=x;var Ne=function(ct,Nt){null!==ct.session.certificateRequest&&null!==ct.session.clientCertificate&&D.queue(ct,D.createRecord(ct,{type:D.ContentType.handshake,data:D.createCertificateVerify(ct,Nt)})),D.queue(ct,D.createRecord(ct,{type:D.ContentType.change_cipher_spec,data:D.createChangeCipherSpec()})),ct.state.pending=D.createConnectionState(ct),ct.state.current.write=ct.state.pending.write,D.queue(ct,D.createRecord(ct,{type:D.ContentType.handshake,data:D.createFinished(ct)})),ct.expect=ne,D.flush(ct),ct.process()};if(null===R.session.certificateRequest||null===R.session.clientCertificate)return Ne(R,null);D.getClientSignature(R,Ne)},D.handleChangeCipherSpec=function(R,N){if(1!==N.fragment.getByte())return R.error(R,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.illegal_parameter}});var ie=R.entity===D.ConnectionEnd.client;(R.session.resuming&&ie||!R.session.resuming&&!ie)&&(R.state.pending=D.createConnectionState(R)),R.state.current.read=R.state.pending.read,(!R.session.resuming&&ie||R.session.resuming&&!ie)&&(R.state.pending=null),R.expect=ie?z:j,R.process()},D.handleFinished=function(R,N,ie){var xe=N.fragment;xe.read-=4;var Re=xe.bytes();xe.read+=4;var ze=N.fragment.getBytes();(xe=S.util.createBuffer()).putBuffer(R.session.md5.digest()),xe.putBuffer(R.session.sha1.digest());var Ne=R.entity===D.ConnectionEnd.client;if((xe=g(R.session.sp.master_secret,Ne?"server finished":"client finished",xe.getBytes(),12)).getBytes()!==ze)return R.error(R,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.decrypt_error}});R.session.md5.update(Re),R.session.sha1.update(Re),(R.session.resuming&&Ne||!R.session.resuming&&!Ne)&&(D.queue(R,D.createRecord(R,{type:D.ContentType.change_cipher_spec,data:D.createChangeCipherSpec()})),R.state.current.write=R.state.pending.write,R.state.pending=null,D.queue(R,D.createRecord(R,{type:D.ContentType.handshake,data:D.createFinished(R)}))),R.expect=Ne?q:Z,R.handshaking=!1,++R.handshakes,R.peerCertificate=Ne?R.session.serverCertificate:R.session.clientCertificate,D.flush(R),R.isConnected=!0,R.connected(R),R.process()},D.handleAlert=function(R,N){var Re,ie=N.fragment,xe={level:ie.getByte(),description:ie.getByte()};switch(xe.description){case D.Alert.Description.close_notify:Re="Connection closed.";break;case D.Alert.Description.unexpected_message:Re="Unexpected message.";break;case D.Alert.Description.bad_record_mac:Re="Bad record MAC.";break;case D.Alert.Description.decryption_failed:Re="Decryption failed.";break;case D.Alert.Description.record_overflow:Re="Record overflow.";break;case D.Alert.Description.decompression_failure:Re="Decompression failed.";break;case D.Alert.Description.handshake_failure:Re="Handshake failure.";break;case D.Alert.Description.bad_certificate:Re="Bad certificate.";break;case D.Alert.Description.unsupported_certificate:Re="Unsupported certificate.";break;case D.Alert.Description.certificate_revoked:Re="Certificate revoked.";break;case D.Alert.Description.certificate_expired:Re="Certificate expired.";break;case D.Alert.Description.certificate_unknown:Re="Certificate unknown.";break;case D.Alert.Description.illegal_parameter:Re="Illegal parameter.";break;case D.Alert.Description.unknown_ca:Re="Unknown certificate authority.";break;case D.Alert.Description.access_denied:Re="Access denied.";break;case D.Alert.Description.decode_error:Re="Decode error.";break;case D.Alert.Description.decrypt_error:Re="Decrypt error.";break;case D.Alert.Description.export_restriction:Re="Export restriction.";break;case D.Alert.Description.protocol_version:Re="Unsupported protocol version.";break;case D.Alert.Description.insufficient_security:Re="Insufficient security.";break;case D.Alert.Description.internal_error:Re="Internal error.";break;case D.Alert.Description.user_canceled:Re="User canceled.";break;case D.Alert.Description.no_renegotiation:Re="Renegotiation not supported.";break;default:Re="Unknown error."}if(xe.description===D.Alert.Description.close_notify)return R.close();R.error(R,{message:Re,send:!1,origin:R.entity===D.ConnectionEnd.client?"server":"client",alert:xe}),R.process()},D.handleHandshake=function(R,N){var ie=N.fragment,xe=ie.getByte(),Re=ie.getInt24();if(Re>ie.length())return R.fragmented=N,N.fragment=S.util.createBuffer(),ie.read-=4,R.process();R.fragmented=null,ie.read-=4;var ze=ie.bytes(Re+4);ie.read+=4,xe in st[R.entity][R.expect]?(R.entity===D.ConnectionEnd.server&&!R.open&&!R.fail&&(R.handshaking=!0,R.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:S.md.md5.create(),sha1:S.md.sha1.create()}),xe!==D.HandshakeType.hello_request&&xe!==D.HandshakeType.certificate_verify&&xe!==D.HandshakeType.finished&&(R.session.md5.update(ze),R.session.sha1.update(ze)),st[R.entity][R.expect][xe](R,N,Re)):D.handleUnexpected(R,N)},D.handleApplicationData=function(R,N){R.data.putBuffer(N.fragment),R.dataReady(R),R.process()},D.handleHeartbeat=function(R,N){var ie=N.fragment,xe=ie.getByte(),Re=ie.getInt16(),ze=ie.getBytes(Re);if(xe===D.HeartbeatMessageType.heartbeat_request){if(R.handshaking||Re>ze.length)return R.process();D.queue(R,D.createRecord(R,{type:D.ContentType.heartbeat,data:D.createHeartbeat(D.HeartbeatMessageType.heartbeat_response,ze)})),D.flush(R)}else if(xe===D.HeartbeatMessageType.heartbeat_response){if(ze!==R.expectedHeartbeatPayload)return R.process();R.heartbeatReceived&&R.heartbeatReceived(R,S.util.createBuffer(ze))}R.process()};var re=1,Se=2,ee=3,X=4,ne=5,z=6,q=7,x=8,Y=1,se=2,pe=3,Te=4,j=5,Z=6,w=D.handleUnexpected,me=D.handleChangeCipherSpec,Ee=D.handleAlert,ge=D.handleHandshake,Oe=D.handleApplicationData,Ie=D.handleHeartbeat,Be=[];Be[D.ConnectionEnd.client]=[[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[me,Ee,w,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,Oe,Ie],[w,Ee,ge,w,Ie]],Be[D.ConnectionEnd.server]=[[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,w,Ie],[me,Ee,w,w,Ie],[w,Ee,ge,w,Ie],[w,Ee,ge,Oe,Ie],[w,Ee,ge,w,Ie]];var Ue=D.handleHelloRequest,it=D.handleCertificate,ot=D.handleServerKeyExchange,St=D.handleCertificateRequest,Tt=D.handleServerHelloDone,Et=D.handleFinished,st=[];st[D.ConnectionEnd.client]=[[w,w,D.handleServerHello,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,it,ot,St,Tt,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,ot,St,Tt,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,St,Tt,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,w,Tt,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,Et],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[Ue,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w]],st[D.ConnectionEnd.server]=[[w,D.handleClientHello,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,it,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,D.handleClientKeyExchange,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,D.handleCertificateVerify,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,Et],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w],[w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w,w]],D.generateKeys=function(R,N){var ie=g,xe=N.client_random+N.server_random;R.session.resuming||(N.master_secret=ie(N.pre_master_secret,"master secret",xe,48).bytes(),N.pre_master_secret=null);var Re=2*N.mac_key_length+2*N.enc_key_length,ze=R.version.major===D.Versions.TLS_1_0.major&&R.version.minor===D.Versions.TLS_1_0.minor;ze&&(Re+=2*N.fixed_iv_length);var Ne=ie(N.master_secret,"key expansion",xe=N.server_random+N.client_random,Re),ct={client_write_MAC_key:Ne.getBytes(N.mac_key_length),server_write_MAC_key:Ne.getBytes(N.mac_key_length),client_write_key:Ne.getBytes(N.enc_key_length),server_write_key:Ne.getBytes(N.enc_key_length)};return ze&&(ct.client_write_IV=Ne.getBytes(N.fixed_iv_length),ct.server_write_IV=Ne.getBytes(N.fixed_iv_length)),ct},D.createConnectionState=function(R){var N=R.entity===D.ConnectionEnd.client,ie=function(){var ze={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(Ne){return!0},compressionState:null,compressFunction:function(Ne){return!0},updateSequenceNumber:function(){4294967295===ze.sequenceNumber[1]?(ze.sequenceNumber[1]=0,++ze.sequenceNumber[0]):++ze.sequenceNumber[1]}};return ze},xe={read:ie(),write:ie()};if(xe.read.update=function(ze,Ne){return xe.read.cipherFunction(Ne,xe.read)?xe.read.compressFunction(ze,Ne,xe.read)||ze.error(ze,{message:"Could not decompress record.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.decompression_failure}}):ze.error(ze,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.bad_record_mac}}),!ze.fail},xe.write.update=function(ze,Ne){return xe.write.compressFunction(ze,Ne,xe.write)?xe.write.cipherFunction(Ne,xe.write)||ze.error(ze,{message:"Could not encrypt record.",send:!1,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}):ze.error(ze,{message:"Could not compress record.",send:!1,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}),!ze.fail},R.session){var Re=R.session.sp;switch(R.session.cipherSuite.initSecurityParameters(Re),Re.keys=D.generateKeys(R,Re),xe.read.macKey=N?Re.keys.server_write_MAC_key:Re.keys.client_write_MAC_key,xe.write.macKey=N?Re.keys.client_write_MAC_key:Re.keys.server_write_MAC_key,R.session.cipherSuite.initConnectionState(xe,R,Re),Re.compression_algorithm){case D.CompressionMethod.none:break;case D.CompressionMethod.deflate:xe.read.compressFunction=J,xe.write.compressFunction=te;break;default:throw new Error("Unsupported compression algorithm.")}}return xe},D.createRandom=function(){var R=new Date,N=+R+6e4*R.getTimezoneOffset(),ie=S.util.createBuffer();return ie.putInt32(N),ie.putBytes(S.random.getBytes(28)),ie},D.createRecord=function(R,N){return N.data?{type:N.type,version:{major:R.version.major,minor:R.version.minor},length:N.data.length(),fragment:N.data}:null},D.createAlert=function(R,N){var ie=S.util.createBuffer();return ie.putByte(N.level),ie.putByte(N.description),D.createRecord(R,{type:D.ContentType.alert,data:ie})},D.createClientHello=function(R){R.session.clientHelloVersion={major:R.version.major,minor:R.version.minor};for(var N=S.util.createBuffer(),ie=0;ie<R.cipherSuites.length;++ie){var xe=R.cipherSuites[ie];N.putByte(xe.id[0]),N.putByte(xe.id[1])}var Re=N.length(),ze=S.util.createBuffer();ze.putByte(D.CompressionMethod.none);var Ne=ze.length(),ct=S.util.createBuffer();if(R.virtualHost){var Nt=S.util.createBuffer();Nt.putByte(0),Nt.putByte(0);var Ht=S.util.createBuffer();Ht.putByte(0),O(Ht,2,S.util.createBuffer(R.virtualHost));var rt=S.util.createBuffer();O(rt,2,Ht),O(Nt,2,rt),ct.putBuffer(Nt)}var ft=ct.length();ft>0&&(ft+=2);var Gt=R.session.id,Mn=Gt.length+1+2+4+28+2+Re+1+Ne+ft,tn=S.util.createBuffer();return tn.putByte(D.HandshakeType.client_hello),tn.putInt24(Mn),tn.putByte(R.version.major),tn.putByte(R.version.minor),tn.putBytes(R.session.sp.client_random),O(tn,1,S.util.createBuffer(Gt)),O(tn,2,N),O(tn,1,ze),ft>0&&O(tn,2,ct),tn},D.createServerHello=function(R){var N=R.session.id,ie=N.length+1+2+4+28+2+1,xe=S.util.createBuffer();return xe.putByte(D.HandshakeType.server_hello),xe.putInt24(ie),xe.putByte(R.version.major),xe.putByte(R.version.minor),xe.putBytes(R.session.sp.server_random),O(xe,1,S.util.createBuffer(N)),xe.putByte(R.session.cipherSuite.id[0]),xe.putByte(R.session.cipherSuite.id[1]),xe.putByte(R.session.compressionMethod),xe},D.createCertificate=function(R){var N=R.entity===D.ConnectionEnd.client,ie=null;R.getCertificate&&(ie=R.getCertificate(R,N?R.session.certificateRequest:R.session.extensions.server_name.serverNameList));var Re=S.util.createBuffer();if(null!==ie)try{S.util.isArray(ie)||(ie=[ie]);for(var ze=null,Ne=0;Ne<ie.length;++Ne){var ct=S.pem.decode(ie[Ne])[0];if("CERTIFICATE"!==ct.type&&"X509 CERTIFICATE"!==ct.type&&"TRUSTED CERTIFICATE"!==ct.type){var Nt=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw Nt.headerType=ct.type,Nt}if(ct.procType&&"ENCRYPTED"===ct.procType.type)throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var Ht=S.util.createBuffer(ct.body);null===ze&&(ze=S.asn1.fromDer(Ht.bytes(),!1));var rt=S.util.createBuffer();O(rt,3,Ht),Re.putBuffer(rt)}ie=S.pki.certificateFromAsn1(ze),N?R.session.clientCertificate=ie:R.session.serverCertificate=ie}catch(Mn){return R.error(R,{message:"Could not send certificate list.",cause:Mn,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.bad_certificate}})}var ft=3+Re.length(),Gt=S.util.createBuffer();return Gt.putByte(D.HandshakeType.certificate),Gt.putInt24(ft),O(Gt,3,Re),Gt},D.createClientKeyExchange=function(R){var N=S.util.createBuffer();N.putByte(R.session.clientHelloVersion.major),N.putByte(R.session.clientHelloVersion.minor),N.putBytes(S.random.getBytes(46));var ie=R.session.sp;ie.pre_master_secret=N.getBytes();var Re=(N=R.session.serverCertificate.publicKey.encrypt(ie.pre_master_secret)).length+2,ze=S.util.createBuffer();return ze.putByte(D.HandshakeType.client_key_exchange),ze.putInt24(Re),ze.putInt16(N.length),ze.putBytes(N),ze},D.createServerKeyExchange=function(R){return S.util.createBuffer()},D.getClientSignature=function(R,N){var ie=S.util.createBuffer();ie.putBuffer(R.session.md5.digest()),ie.putBuffer(R.session.sha1.digest()),ie=ie.getBytes(),R.getSignature=R.getSignature||function(xe,Re,ze){var Ne=null;if(xe.getPrivateKey)try{Ne=xe.getPrivateKey(xe,xe.session.clientCertificate),Ne=S.pki.privateKeyFromPem(Ne)}catch(ct){xe.error(xe,{message:"Could not get private key.",cause:ct,send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}})}null===Ne?xe.error(xe,{message:"No private key set.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.internal_error}}):Re=Ne.sign(Re,null),ze(xe,Re)},R.getSignature(R,ie,N)},D.createCertificateVerify=function(R,N){var ie=N.length+2,xe=S.util.createBuffer();return xe.putByte(D.HandshakeType.certificate_verify),xe.putInt24(ie),xe.putInt16(N.length),xe.putBytes(N),xe},D.createCertificateRequest=function(R){var N=S.util.createBuffer();N.putByte(1);var ie=S.util.createBuffer();for(var xe in R.caStore.certs){var ze=S.pki.distinguishedNameToAsn1(R.caStore.certs[xe].subject),Ne=S.asn1.toDer(ze);ie.putInt16(Ne.length()),ie.putBuffer(Ne)}var ct=1+N.length()+2+ie.length(),Nt=S.util.createBuffer();return Nt.putByte(D.HandshakeType.certificate_request),Nt.putInt24(ct),O(Nt,1,N),O(Nt,2,ie),Nt},D.createServerHelloDone=function(R){var N=S.util.createBuffer();return N.putByte(D.HandshakeType.server_hello_done),N.putInt24(0),N},D.createChangeCipherSpec=function(){var R=S.util.createBuffer();return R.putByte(1),R},D.createFinished=function(R){var N=S.util.createBuffer();N.putBuffer(R.session.md5.digest()),N.putBuffer(R.session.sha1.digest()),N=g(R.session.sp.master_secret,R.entity===D.ConnectionEnd.client?"client finished":"server finished",N.getBytes(),12);var ct=S.util.createBuffer();return ct.putByte(D.HandshakeType.finished),ct.putInt24(N.length()),ct.putBuffer(N),ct},D.createHeartbeat=function(R,N,ie){typeof ie>"u"&&(ie=N.length);var xe=S.util.createBuffer();xe.putByte(R),xe.putInt16(ie),xe.putBytes(N);var Re=xe.length(),ze=Math.max(16,Re-ie-3);return xe.putBytes(S.random.getBytes(ze)),xe},D.queue=function(R,N){if(N&&(0!==N.fragment.length()||N.type!==D.ContentType.handshake&&N.type!==D.ContentType.alert&&N.type!==D.ContentType.change_cipher_spec)){if(N.type===D.ContentType.handshake){var ie=N.fragment.bytes();R.session.md5.update(ie),R.session.sha1.update(ie),ie=null}var xe;if(N.fragment.length()<=D.MaxFragment)xe=[N];else{xe=[];for(var Re=N.fragment.bytes();Re.length>D.MaxFragment;)xe.push(D.createRecord(R,{type:N.type,data:S.util.createBuffer(Re.slice(0,D.MaxFragment))})),Re=Re.slice(D.MaxFragment);Re.length>0&&xe.push(D.createRecord(R,{type:N.type,data:S.util.createBuffer(Re)}))}for(var ze=0;ze<xe.length&&!R.fail;++ze){var Ne=xe[ze];R.state.current.write.update(R,Ne)&&R.records.push(Ne)}}},D.flush=function(R){for(var N=0;N<R.records.length;++N){var ie=R.records[N];R.tlsData.putByte(ie.type),R.tlsData.putByte(ie.version.major),R.tlsData.putByte(ie.version.minor),R.tlsData.putInt16(ie.fragment.length()),R.tlsData.putBuffer(R.records[N].fragment)}return R.records=[],R.tlsDataReady(R)};var mn=function(R){switch(R){case!0:return!0;case S.pki.certificateError.bad_certificate:return D.Alert.Description.bad_certificate;case S.pki.certificateError.unsupported_certificate:return D.Alert.Description.unsupported_certificate;case S.pki.certificateError.certificate_revoked:return D.Alert.Description.certificate_revoked;case S.pki.certificateError.certificate_expired:return D.Alert.Description.certificate_expired;case S.pki.certificateError.certificate_unknown:return D.Alert.Description.certificate_unknown;case S.pki.certificateError.unknown_ca:return D.Alert.Description.unknown_ca;default:return D.Alert.Description.bad_certificate}};for(var He in D.verifyCertificateChain=function(R,N){try{var ie={};for(var xe in R.verifyOptions)ie[xe]=R.verifyOptions[xe];ie.verify=function(ze,Ne,ct){mn(ze);var Ht=R.verify(R,ze,Ne,ct);if(!0!==Ht){if("object"==typeof Ht&&!S.util.isArray(Ht)){var rt=new Error("The application rejected the certificate.");throw rt.send=!0,rt.alert={level:D.Alert.Level.fatal,description:D.Alert.Description.bad_certificate},Ht.message&&(rt.message=Ht.message),Ht.alert&&(rt.alert.description=Ht.alert),rt}Ht!==ze&&(Ht=function(R){switch(R){case!0:return!0;case D.Alert.Description.bad_certificate:return S.pki.certificateError.bad_certificate;case D.Alert.Description.unsupported_certificate:return S.pki.certificateError.unsupported_certificate;case D.Alert.Description.certificate_revoked:return S.pki.certificateError.certificate_revoked;case D.Alert.Description.certificate_expired:return S.pki.certificateError.certificate_expired;case D.Alert.Description.certificate_unknown:return S.pki.certificateError.certificate_unknown;case D.Alert.Description.unknown_ca:return S.pki.certificateError.unknown_ca;default:return S.pki.certificateError.bad_certificate}}(Ht))}return Ht},S.pki.verifyCertificateChain(R.caStore,N,ie)}catch(ze){var Re=ze;("object"!=typeof Re||S.util.isArray(Re))&&(Re={send:!0,alert:{level:D.Alert.Level.fatal,description:mn(ze)}}),"send"in Re||(Re.send=!0),"alert"in Re||(Re.alert={level:D.Alert.Level.fatal,description:mn(Re.error)}),R.error(R,Re)}return!R.fail},D.createSessionCache=function(R,N){var ie=null;if(R&&R.getSession&&R.setSession&&R.order)ie=R;else{for(var xe in(ie={}).cache=R||{},ie.capacity=Math.max(N||100,1),ie.order=[],R)ie.order.length<=N?ie.order.push(xe):delete R[xe];ie.getSession=function(Re){var ze=null,Ne=null;if(Re?Ne=S.util.bytesToHex(Re):ie.order.length>0&&(Ne=ie.order[0]),null!==Ne&&Ne in ie.cache)for(var ct in ze=ie.cache[Ne],delete ie.cache[Ne],ie.order)if(ie.order[ct]===Ne){ie.order.splice(ct,1);break}return ze},ie.setSession=function(Re,ze){if(ie.order.length===ie.capacity){var Ne=ie.order.shift();delete ie.cache[Ne]}Ne=S.util.bytesToHex(Re),ie.order.push(Ne),ie.cache[Ne]=ze}}return ie},D.createConnection=function(R){var N;N=R.caStore?S.util.isArray(R.caStore)?S.pki.createCaStore(R.caStore):R.caStore:S.pki.createCaStore();var ie=R.cipherSuites||null;if(null===ie)for(var xe in ie=[],D.CipherSuites)ie.push(D.CipherSuites[xe]);var Re=R.server?D.ConnectionEnd.server:D.ConnectionEnd.client,ze=R.sessionCache?D.createSessionCache(R.sessionCache):null,Ne={version:{major:D.Version.major,minor:D.Version.minor},entity:Re,sessionId:R.sessionId,caStore:N,sessionCache:ze,cipherSuites:ie,connected:R.connected,virtualHost:R.virtualHost||null,verifyClient:R.verifyClient||!1,verify:R.verify||function(rt,ft,Gt,Mn){return ft},verifyOptions:R.verifyOptions||{},getCertificate:R.getCertificate||null,getPrivateKey:R.getPrivateKey||null,getSignature:R.getSignature||null,input:S.util.createBuffer(),tlsData:S.util.createBuffer(),data:S.util.createBuffer(),tlsDataReady:R.tlsDataReady,dataReady:R.dataReady,heartbeatReceived:R.heartbeatReceived,closed:R.closed,error:function(rt,ft){ft.origin=ft.origin||(rt.entity===D.ConnectionEnd.client?"client":"server"),ft.send&&(D.queue(rt,D.createAlert(rt,ft.alert)),D.flush(rt));var Gt=!1!==ft.fatal;Gt&&(rt.fail=!0),R.error(rt,ft),Gt&&rt.close(!1)},deflate:R.deflate||null,inflate:R.inflate||null,reset:function(rt){Ne.version={major:D.Version.major,minor:D.Version.minor},Ne.record=null,Ne.session=null,Ne.peerCertificate=null,Ne.state={pending:null,current:null},Ne.expect=0,Ne.fragmented=null,Ne.records=[],Ne.open=!1,Ne.handshakes=0,Ne.handshaking=!1,Ne.isConnected=!1,Ne.fail=!(rt||typeof rt>"u"),Ne.input.clear(),Ne.tlsData.clear(),Ne.data.clear(),Ne.state.current=D.createConnectionState(Ne)}};return Ne.reset(),Ne.handshake=function(rt){if(Ne.entity!==D.ConnectionEnd.client)Ne.error(Ne,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(Ne.handshaking)Ne.error(Ne,{message:"Handshake already in progress.",fatal:!1});else{Ne.fail&&!Ne.open&&0===Ne.handshakes&&(Ne.fail=!1),Ne.handshaking=!0;var ft=null;(rt=rt||"").length>0&&(Ne.sessionCache&&(ft=Ne.sessionCache.getSession(rt)),null===ft&&(rt="")),0===rt.length&&Ne.sessionCache&&null!==(ft=Ne.sessionCache.getSession())&&(rt=ft.id),Ne.session={id:rt,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:S.md.md5.create(),sha1:S.md.sha1.create()},ft&&(Ne.version=ft.version,Ne.session.sp=ft.sp),Ne.session.sp.client_random=D.createRandom().getBytes(),Ne.open=!0,D.queue(Ne,D.createRecord(Ne,{type:D.ContentType.handshake,data:D.createClientHello(Ne)})),D.flush(Ne)}},Ne.process=function(rt){var ft=0;return rt&&Ne.input.putBytes(rt),Ne.fail||(null!==Ne.record&&Ne.record.ready&&Ne.record.fragment.isEmpty()&&(Ne.record=null),null===Ne.record&&(ft=function(rt){var ft=0,Gt=rt.input,Mn=Gt.length();if(Mn<5)ft=5-Mn;else{rt.record={type:Gt.getByte(),version:{major:Gt.getByte(),minor:Gt.getByte()},length:Gt.getInt16(),fragment:S.util.createBuffer(),ready:!1};var tn=rt.record.version.major===rt.version.major;tn&&rt.session&&rt.session.version&&(tn=rt.record.version.minor===rt.version.minor),tn||rt.error(rt,{message:"Incompatible TLS version.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.protocol_version}})}return ft}(Ne)),!Ne.fail&&null!==Ne.record&&!Ne.record.ready&&(ft=function(rt){var ft=0,Gt=rt.input,Mn=Gt.length();return Mn<rt.record.length?ft=rt.record.length-Mn:(rt.record.fragment.putBytes(Gt.getBytes(rt.record.length)),Gt.compact(),rt.state.current.read.update(rt,rt.record)&&(null!==rt.fragmented&&(rt.fragmented.type===rt.record.type?(rt.fragmented.fragment.putBuffer(rt.record.fragment),rt.record=rt.fragmented):rt.error(rt,{message:"Invalid fragmented record.",send:!0,alert:{level:D.Alert.Level.fatal,description:D.Alert.Description.unexpected_message}})),rt.record.ready=!0)),ft}(Ne)),!Ne.fail&&null!==Ne.record&&Ne.record.ready&&function(rt,ft){var Gt=ft.type-D.ContentType.change_cipher_spec,Mn=Be[rt.entity][rt.expect];Gt in Mn?Mn[Gt](rt,ft):D.handleUnexpected(rt,ft)}(Ne,Ne.record)),ft},Ne.prepare=function(rt){return D.queue(Ne,D.createRecord(Ne,{type:D.ContentType.application_data,data:S.util.createBuffer(rt)})),D.flush(Ne)},Ne.prepareHeartbeatRequest=function(rt,ft){return rt instanceof S.util.ByteBuffer&&(rt=rt.bytes()),typeof ft>"u"&&(ft=rt.length),Ne.expectedHeartbeatPayload=rt,D.queue(Ne,D.createRecord(Ne,{type:D.ContentType.heartbeat,data:D.createHeartbeat(D.HeartbeatMessageType.heartbeat_request,rt,ft)})),D.flush(Ne)},Ne.close=function(rt){if(!Ne.fail&&Ne.sessionCache&&Ne.session){var ft={id:Ne.session.id,version:Ne.session.version,sp:Ne.session.sp};ft.sp.keys=null,Ne.sessionCache.setSession(ft.id,ft)}Ne.open&&(Ne.open=!1,Ne.input.clear(),(Ne.isConnected||Ne.handshaking)&&(Ne.isConnected=Ne.handshaking=!1,D.queue(Ne,D.createAlert(Ne,{level:D.Alert.Level.warning,description:D.Alert.Description.close_notify})),D.flush(Ne)),Ne.closed(Ne)),Ne.reset(rt)},Ne},yt.exports=S.tls=S.tls||{},D)"function"!=typeof D[He]&&(S.tls[He]=D[He]);S.tls.prf_tls1=g,S.tls.hmac_sha1=function(R,N,ie){var xe=S.hmac.create();xe.start("SHA1",R);var Re=S.util.createBuffer();return Re.putInt32(N[0]),Re.putInt32(N[1]),Re.putByte(ie.type),Re.putByte(ie.version.major),Re.putByte(ie.version.minor),Re.putInt16(ie.length),Re.putBytes(ie.fragment.bytes()),xe.update(Re.getBytes()),xe.digest().getBytes()},S.tls.createSessionCache=D.createSessionCache,S.tls.createConnection=D.createConnection}},yt=>{yt(yt.s=3975)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.