1(self.webpackChunkglobot_frontend=self.webpackChunkglobot_frontend||[]).push([[179],{7666:(o,u,a)=>{"use strict";a.d(u,{G:()=>w});var t=a(2340),e=a(529),s=a(1135),D=a(4004),x=a(4650),M=a(4080);let w=(()=>{class I{constructor(S,k){this.http=S,this.logger=k,this.apiAddress=t.N.apiAddress,this.haveBotSubject=new s.X(!1),this.haveBots$=this.haveBotSubject.asObservable(),this.botCache=new Map}getBot$(S){return this.botCache.has(S)||(this.botCache.set(S,new s.X(null)),this.loadBot(S)),this.botCache.get(S).asObservable()}loadBot(S){this.http.get(`${this.apiAddress}/bot/${S}`).subscribe({next:k=>{var z;return null===(z=this.botCache.get(S))||void 0===z?void 0:z.next(k)},error:k=>this.logger.error("Error loading bot",k)})}getBots(){return this.http.get(`${this.apiAddress}/bot`)}getBot(S){return this.http.get(`${this.apiAddress}/bot/${S}`)}generateSampleQuestions(S){return this.http.post(`${this.apiAddress}/bot/${S}/sample-questions/generate`,{}).pipe((0,D.U)(k=>{var z,F;return null!==(F=null===(z=k?.data)||void 0===z?void 0:z.questions)&&void 0!==F?F:[]}))}deleteBot(S){return this.http.delete(`${this.apiAddress}/bot/${S}`)}postBot(S){return this.http.post(`${this.apiAddress}/bot`,S)}uploadSource(S,k){return this.http.post(`${this.apiAddress}/bot/${k}/source_upload/url`,S)}scanUrl(S,k){return this.http.post(`${this.apiAddress}/bot/${k}/source_upload/url_scan`,S)}getScannedUrls(S,k){return this.http.get(`${this.apiAddress}/bot/${k}/source_upload/url_scan/${S}/results`)}deleteScannedUrl(S,k){return this.http.delete(`${this.apiAddress}/bot-job/${S}/scanned_url/${k}`)}deleteJobId(S){return this.http.delete(`${this.apiAddress}/bot-job/${S}/delete`)}uploadUrlsByJob(S,k){return this.http.post(`${this.apiAddress}/bot/${S}/upload/job/${k}`,null)}uploadSourceFile(S,k){const z=new FormData;return z.append("file",S),this.http.post(`${this.apiAddress}/bot/${k}/source_upload`,z)}sendMessage(S,k,z,F){let ne;return(F||z)&&(ne=new e.WM),F&&ne&&(ne=ne.append("GLOBOTCHANNEL",F)),z&&ne&&(ne=ne.append("GLOBOTORIGIN",z)),this.http.post(`${this.apiAddress}/bot/${k}/prompt`,S,{headers:ne})}updateBot(S,k){return this.http.put(`${this.apiAddress}/bot/${k}`,S)}getRecords(S,k,z){const F={};return null!=z?.lastHours?F.last_hours=z.lastHours:k&&(F.init=k[0],F.term=k[1]),this.http.get(`${this.apiAddress}/bot/${S}/history`,{params:F})}getChatHistory(S,k,z=!0){return this.http.get(`${this.apiAddress}/bot/${S}/history/chat/${k}?group=${z}`)}haveBots(){return this.haveBotSubject.value}setHaveBots(S){this.haveBotSubject.next(S)}getRecordsSummary(S){return this.http.get(`${this.apiAddress}/bot/${S}/history/summary`)}
1getWelcomeMessage(S){return this.http.get(`${this.apiAddress}/bot/${S}/welcome-message`)}updateWelcomeMessage(S,k){return this.http.put(`${this.apiAddress}/bot/${S}/welcome-message`,k)}saveWidgetConfig(S,k){return this.http.put(`${this.apiAddress}/bot/${S}/widget_config`,k)}getWidget(S){return this.http.get(`${this.apiAddress}/bot/${S}/widget_config`)}getFaqs(S){return this.http.get(`${this.apiAddress}/bot/${S}/faqs`).pipe((0,D.U)(k=>k.data))}createFaq(S,k){return this.http.post(`${this.apiAddress}/bot/${S}/faqs`,k).pipe((0,D.U)(z=>z.data))}updateFaq(S,k,z){return this.http.put(`${this.apiAddress}/bot/${S}/faqs/${k}`,z).pipe((0,D.U)(F=>F.data))}deleteFaq(S,k){return this.http.delete(`${this.apiAddress}/bot/${S}/faqs/${k}`)}reorderFaqs(S,k){return this.http.put(`${this.apiAddress}/bot/${S}/faqs/reorder`,k).pipe((0,D.U)(z=>z.data))}}return I.\u0275fac=function(S){return new(S||I)(x.LFG(e.eN),x.LFG(M.m))},I.\u0275prov=x.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},736:(o,u,a)=>{"use strict";a.d(u,{T:()=>x});var t=a(1135),e=a(2340),s=a(4650),D=a(529);let x=(()=>{class M{constructor(I){this.http=I,this.apiAddress=e.N.apiAddress,this.selectedCustomerData=new t.X(null),this.customerData$=this.selectedCustomerData.asObservable()}takeControl(I,P){return this.http.post(`${this.apiAddress}/bot/${I}/chat/take-control`,P)}updateChatHeader(I,P){return this.http.put(`${this.apiAddress}/bot/${I}/chat/update`,{new_message:!1,correlation_id:P})}sendAnswer(I,P,S){return this.http.post(`${this.apiAddress}/bot/${I}/chat/answer`,{correlation_id:P,answer:S})}updateCustomerData(I){this.selectedCustomerData.next({created_at:I.created_at,channel:I.channel,name:I.name,phone:I.phone,email:I.email,sender_requirement:I.sender_requirement,correlation_id:I.correlation_id})}updateCustomerField(I,P,S){const k=Object.assign(Object.assign({correlation_id:P},S),{new_message:!1});return this.http.put(`${this.apiAddress}/bot/${I}/chat/update`,k)}setAiResponseDelay(I,P){return this.http.put(`${this.apiAddress}/bot/${I}/ai_response_delay`,{time_in_minutes:P})}}return M.\u0275fac=function(I){return new(I||M)(s.LFG(D.eN))},M.\u0275prov=s.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},5332:(o,u,a)=>{"use strict";a.d(u,{s:()=>D});var t=a(2340),e=a(529),s=a(4650);let D=(()=>{class x{constructor(w){this.http=w,this.apiAddress=t.N.apiAddress}getConversationStats(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/conversation_stats?init=${I}&term=${P}`)}getConversationDistributionStats(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/conversation_time_distribution_stats?init=${I}&term=${P}`)}getConversationLeads(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/conversation_leads?init=${I}&term=${P}`)}getConversationNonDocumentResponse(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/conversation_non_document_based_responses?init=${I}&term=${P}`)}updateLeadsConfig(w,I){return this.http.put(`${this.apiAddress}/bot/${w}/leads_config`,I)}getFeedbackStats(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/feedback_stats?init=${I}&term=${P}`)}getMonthlyConversationsStats(w){return this.http.get(`${this.apiAddress}/bot/${w}/monthly_conversations_stats`)}getKeywords(w,I,P){return this.http.get(`${this.apiAddress}/bot/${w}/keywords?init=${I}&term=${P}`)}getLeads(w,I){let P=new e.LE;return I.status&&(P=P.set("status",I.status)),I.channel&&(P=P.set("channel",I.channel)),I.search&&(P=P.set("search",I.search)),I.date_from&&(P=P.set("date_from",I.date_from)),I.date_to&&(P=P.set("date_to",I.date_to)),I.page&&(P=P.set("page",I.page.toString())),I.page_size&&(P=P.set("page_size",I.page_size.toString())),I.sort_by&&(P=P.set("sort_by",I.sort_by)),I.sort_order&&(P=P.set("sort_order",I.sort_order)),this.http.get(`${this.apiAddress}/bot/${w}/leads`,{params:P})}updateLeadStatus(w,I,P,S){const k={status:P};return S&&(k.converted_via=S),this.http.put(`${this.apiAddress}/bot/${w}/leads/${I}/status`,k)}exportLeads(w,I){let P=new e.LE;return I.status&&(P=P.set("status",I.status)),I.channel&&(P=P.set("channel",I.channel)),I.search&&(P=P.set("search",I.search)),I.date_from&&(P=P.set("date_from",I.date_from)),I.date_to&&(P=P.set("date_to",I.date_to)),this.http.get(`${this.apiAddress}/bot/${w}/leads/export`,{params:P,responseType:"blob"})}getLeadNotificationConfig(w){return this.http.get(`${this.apiAddress}/workspace/${w}/lead-notifications`)}updateLeadNotificationConfig(w,I){return this.http.put(`${this.apiAddress}/workspace/${w}/lead-notifications`,I)}getDigestNotificationConfig(w){return this.http.get(`${this.apiAddress}/workspace/${w}/digest-notifications`)}updateDigestNotificationConfig(w,I){return this.http.put(`${this.apiAddress}/workspace/${w}/digest-notifications`,I)}}return x.\u0275fac=function(w){return new(w||x)(s.LFG(e.eN))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},7536:(o,u,a)=>{"use strict";a.d(u,{f:()=>I});var t=a(1764),s=a(5268),D=a.n(s),x=a(1545),M=a.n(x),w=a(4650);let I=(()=>{class P{constructor(){t.extend(D()),t.extend(M())}formatRelativeDateUtc(k){if(null==k||""===k)return"";const z=t(k);if(!z.isValid())return"";const F=t(),ne=F.diff(z,"minute");return Math.abs(ne)<2?"Ahora":z.isSame(F,"day")?`Hoy ${z.format("HH:mm")}`:z.isSame(F.subtract(1,"day"),"day")?`Ayer ${z.format("HH:mm")}`:`${z.format("DD/MM/YY")} ${z.format("HH:mm")}`}formatGroupDate(k){const z=new Date,F=new Date(z);return F.setDate(z.getDate()-1),k.toDateString()===z.toDateString()?"Hoy":k.toDateString()===F.toDateString()?"Ayer":k.toLocaleDateString("es-ES",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}return P.\u0275fac=function(k){return new(k||P)},P.\u0275prov=w.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},2252:(o,u,a)=>{"use strict";a.d(u,{W:()=>s});var t=a(7579),e=a(4650);let s=(()=>
1{class D{constructor(){this.subject=new t.x}publish(M,w){this.subject.next({type:M,data:w})}getObservable(){return this.subject}ngOnDestroy(){this.subject.complete()}}return D.\u0275fac=function(M){return new(M||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},4080:(o,u,a)=>{"use strict";a.d(u,{m:()=>D});var t=a(2340),e=a(4650),s=(()=>{return(x=s||(s={}))[x.DEBUG=0]="DEBUG",x[x.INFO=1]="INFO",x[x.WARN=2]="WARN",x[x.ERROR=3]="ERROR",x[x.NONE=4]="NONE",s;var x})();let D=(()=>{class x{constructor(){this.logLevel=t.N.production?s.WARN:s.DEBUG,this.enableConsole=!0}setLogLevel(w){this.logLevel=w}setConsoleLogging(w){this.enableConsole=w}debug(w,...I){this.log(s.DEBUG,w,I)}info(w,...I){this.log(s.INFO,w,I)}warn(w,...I){this.log(s.WARN,w,I)}error(w,I,...P){const S=I?[I,...P]:P;this.log(s.ERROR,w,S)}log(w,I,P){if(!this.shouldLog(w))return;const z=`[${(new Date).toISOString()}] [${s[w]}] ${I}`;if(this.enableConsole)switch(w){case s.DEBUG:case s.INFO:console.log(z,...P);break;case s.WARN:console.warn(z,...P);break;case s.ERROR:console.error(z,...P)}}shouldLog(w){return w>=this.logLevel}}return x.\u0275fac=function(w){return new(w||x)},x.\u0275prov=e.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},1645:(o,u,a)=>{"use strict";a.d(u,{g:()=>s});var t=a(7579),e=a(4650);let s=(()=>{class D{constructor(){this.alertSource=new t.x,this.alert$=this.alertSource.asObservable()}showAlert(M){this.alertSource.next(M)}}return D.\u0275fac=function(M){return new(M||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},5431:(o,u,a)=>{"use strict";a.d(u,{$:()=>D});var t=a(1135),e=a(4004),s=a(4650);let D=(()=>{class x{constructor(){this.membership$=new t.X(null)}setMembership(w){this.membership$.next(w)}get currentRole$(){return this.membership$.pipe((0,e.U)(w=>{var I;return null!==(I=w?.role)&&void 0!==I?I:null}))}get currentRole(){var w,I;return null!==(I=null===(w=this.membership$.value)||void 0===w?void 0:w.role)&&void 0!==I?I:null}get permissions(){var w,I;return null!==(I=null===(w=this.membership$.value)||void 0===w?void 0:w.permissions)&&void 0!==I?I:[]}hasPermission(w){return this.permissions.includes(w)}hasAnyPermission(w){const I=this.permissions;return w.some(P=>I.includes(P))}hasPermission$(w){return this.membership$.pipe((0,e.U)(I=>{var P,S;return null!==(S=null===(P=I?.permissions)||void 0===P?void 0:P.includes(w))&&void 0!==S&&S}))}hasAnyPermission$(w){return this.membership$.pipe((0,e.U)(I=>w.some(P=>{var S,k;return null!==(k=null===(S=I?.permissions)||void 0===S?void 0:S.includes(P))&&void 0!==k&&k})))}clear(){this.membership$.next(null)}}return x.\u0275fac=function(w){return new(w||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},2741:(o,u,a)=>{"use strict";a.d(u,{m:()=>fs});var t={};a.r(t),a.d(t,{Decoder:()=>ni,Encoder:()=>ai,PacketType:()=>dn,isPacketValid:()=>Is,protocol:()=>nn});var e={};a.r(e),a.d(e,{Fetch:()=>pt,Manager:()=>Li,NodeWebSocket:()=>re,NodeXHR:()=>Un,Socket:()=>Ai,WebSocket:()=>re,WebTransport:()=>pe,XHR:()=>Un,connect:()=>ps,default:()=>ps,io:()=>ps,protocol:()=>nn});var s=a(2340),D=a(4650),x=a(9751),M=a(3099);const w=Object.create(null);w.open="0",w.close="1",w.ping="2",w.pong="3",w.message="4",w.upgrade="5",w.noop="6";const I=Object.create(null);
vendor: 15,854 bytes, line 1
1Object.keys(w).forEach(Ve=>{I[w[Ve]]=Ve});const P={type:"error",data:"parser error"},S="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),k="function"==typeof ArrayBuffer,z=Ve=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(Ve):Ve&&Ve.buffer instanceof ArrayBuffer,F=({type:Ve,data:he},we,Ne)=>S&&he instanceof Blob?we?Ne(he):ne(he,Ne):k&&(he instanceof ArrayBuffer||z(he))?we?Ne(he):ne(new Blob([he]),Ne):Ne(w[Ve]+(he||"")),ne=(Ve,he)=>{const we=new FileReader;return we.onload=function(){const Ne=we.result.split(",")[1];he("b"+(Ne||""))},we.readAsDataURL(Ve)};function B(Ve){return Ve instanceof Uint8Array?Ve:Ve instanceof ArrayBuffer?new Uint8Array(Ve):new Uint8Array(Ve.buffer,Ve.byteOffset,Ve.byteLength)}let G;const Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Ve=0;Ve<Y.length;Ve++)fe[Y.charCodeAt(Ve)]=Ve;const O="function"==typeof ArrayBuffer,ee=(Ve,he)=>{if("string"!=typeof Ve)return{type:"message",data:_e(Ve,he)};const we=Ve.charAt(0);return"b"===we?{type:"message",data:ue(Ve.substring(1),he)}:I[we]?Ve.length>1?{type:I[we],data:Ve.substring(1)}:{type:I[we]}:P},ue=(Ve,he)=>{if(O){const we=(Ve=>{let Ne,rn,hn,Gn,Xn,he=.75*Ve.length,we=Ve.length,vt=0;"="===Ve[Ve.length-1]&&(he--,"="===Ve[Ve.length-2]&&he--);const ji=new ArrayBuffer(he),Ni=new Uint8Array(ji);for(Ne=0;Ne<we;Ne+=4)rn=fe[Ve.charCodeAt(Ne)],hn=fe[Ve.charCodeAt(Ne+1)],Gn=fe[Ve.charCodeAt(Ne+2)],Xn=fe[Ve.charCodeAt(Ne+3)],Ni[vt++]=rn<<2|hn>>4,Ni[vt++]=(15&hn)<<4|Gn>>2,Ni[vt++]=(3&Gn)<<6|63&Xn;return ji})(Ve);return _e(we,he)}return{base64:!0,data:Ve}},_e=(Ve,he)=>"blob"===he?Ve instanceof Blob?Ve:new Blob([Ve]):Ve instanceof ArrayBuffer?Ve:Ve.buffer,be=String.fromCharCode(30);let K;function X(Ve){return Ve.reduce((he,we)=>he+we.length,0)}function V(Ve,he){if(Ve[0].length===he)return Ve.shift();const we=new Uint8Array(he);let Ne=0;for(let vt=0;vt<he;vt++)we[vt]=Ve[0][Ne++],Ne===Ve[0].length&&(Ve.shift(),Ne=0);return Ve.length&&Ne<Ve[0].length&&(Ve[0]=Ve[0].slice(Ne)),we}function ye(Ve){if(Ve)return function nt(Ve){for(var he in ye.prototype)Ve[he]=ye.prototype[he];return Ve}(Ve)}ye.prototype.on=ye.prototype.addEventListener=function(Ve,he){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Ve]=this._callbacks["$"+Ve]||[]).push(he),this},ye.prototype.once=function(Ve,he){function we(){this.off(Ve,we),he.apply(this,arguments)}return we.fn=he,this.on(Ve,we),this},ye.prototype.off=ye.prototype.removeListener=ye.prototype.removeAllListeners=ye.prototype.removeEventListener=function(Ve,he){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var we=this._callbacks["$"+Ve];if(!we)return this;if(1==arguments.length)return delete this._callbacks["$"+Ve],this;for(var Ne,vt=0;vt<we.length;vt++)if((Ne=we[vt])===he||Ne.fn===he){we.splice(vt,1);break}return 0===we.length&&delete this._callbacks["$"+Ve],this},ye.prototype.emitReserved=ye.prototype.emit=function(Ve){this._callbacks=this._callbacks||{};for(var he=new Array(arguments.length-1),we=this._callbacks["$"+Ve],Ne=1;Ne<arguments.length;Ne++)he[Ne-1]=arguments[Ne];if(we){Ne=0;for(var vt=(we=we.slice(0)).length;Ne<vt;++Ne)we[Ne].apply(this,he)}return this},ye.prototype.listeners=function(Ve){return this._callbacks=this._callbacks||{},this._callbacks["$"+Ve]||[]},ye.prototype.hasListeners=function(Ve){return!!this.listeners(Ve).length};const at="function"==typeof Promise&&"function"==typeof Promise.resolve?he=>Promise.resolve().then(he):(he,we)=>we(he,0),me=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function Xe(Ve,...he){return he.reduce((we,Ne)=>(Ve.hasOwnProperty(Ne)&&(we[Ne]=Ve[Ne]),we),{})}const rt=me.setTimeout,mt=me.clearTimeout;function $t(Ve,he){he.useNativeTimers?(Ve.setTimeoutFn=rt.bind(me),Ve.clearTimeoutFn=mt.bind(me)):(Ve.setTimeoutFn=me.setTimeout.bind(me),Ve.clearTimeoutFn=me.clearTimeout.bind(me))}const tn=1.33;function yt(Ve){return"string"==typeof Ve?function bt(Ve){let he=0,we=0;for(let Ne=0,vt=Ve.length;Ne<vt;Ne++)he=Ve.charCodeAt(Ne),he<128?we+=1:he<2048?we+=2:he<55296||he>=57344?we+=3:(Ne++,we+=4);return we}(Ve):Math.ceil((Ve.byteLength||Ve.size)*tn)}function Ye(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class pn extends Error{constructor(he,we,Ne){super(he),this.description=we,this.context=Ne,this.type="TransportError"}}class _n extends ye{constructor(he){super(),this.writable=!1,$t(this,he),this.opts=he,this.query=he.query,this.socket=he.socket,this.supportsBinary=!he.forceBase64}onError(he,we,Ne){return super.emitReserved("error",new pn(he,we,Ne)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(he){"open"===this.readyState&&this.write(he)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(he){const we=ee(he,this.socket.binaryType);this.onPacket(we)}onPacket(he){super.emitReserved("packet",he)}onClose(he){this.readyState="closed",super.emitReserved("close",he)}pause(he){}createUri(he,we={}){return he+"://"+this._hostname()+this._port()+this.opts.path+this._query(we)}_hostname(){const he=this.opts.hostname;return-1===he.indexOf(":")?he:"["+he+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(he){const we=function Nt(Ve){let he="";for(let we in Ve)Ve.hasOwnProperty(we)&&(he.length&&(he+="&"),he+=encodeURIComponent(we)+"="+encodeURIComponent(Ve[we]));return he}(he);return we.length?"?"+we:""}}class zt extends _n{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(he){this.readyState="pausing";const we=()=>{this.readyState="paused",he()};if(this._polling||!this.writable){let Ne=0;this._polling&&(Ne++,this.once("pollComplete",function(){--Ne||we()})),this.writable||(Ne++,this.once("drain",function(){--Ne||we()}))}else we()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(he){((Ve,he)=>{const we=Ve.split(be),Ne=[];for(let vt=0;vt<we.length;vt++){const rn=ee(we[vt],he);if(Ne.push(rn),"error"===rn.type)break}return Ne})(he,this.socket.binaryType).forEach(Ne=>{if("opening"===this.readyState&&"open"===Ne.type&&this.onOpen(),"close"===Ne.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Ne)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const he=()=>{this.write([{type:"close"}])};"open"===this.readyState?he():this.once("open",he)}write(he){this.writable=!1,((Ve,he)=>{const we=Ve.length,Ne=new Array(we);let vt=0;Ve.forEach((rn,hn)=>{F(rn,!1,Gn=>{Ne[hn]=Gn,++vt===we&&he(Ne.join(be))})})})(he,we=>{this.doWrite(we,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const he=this.opts.secure?"https":"http",we=this.query||{};return!1!==this.opts.timestampRequests&&(we[this.opts.timestampParam]=Ye()),!this.supportsBinary&&!we.sid&&(we.b64=1),this.createUri(he,we)}}let Yt=!1;try{Yt=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const It=Yt;function bn(){}class Rn extends zt{constructor(he){if(super(he),typeof location<"u"){const we="https:"===location.protocol;let Ne=location.port;Ne||(Ne=we?"443":"80"),this.xd=typeof location<"u"&&he.hostname!==location.hostname||Ne!==he.port}}doWrite(he,we){const Ne=this.request({method:"POST",data:he});Ne.on("success",we),Ne.on("error",(vt,rn)=>{this.onError("xhr post error",vt,rn)})}doPoll(){const he=this.request();he.on("data",this.onData.bind(this)),he.on("error",(we,Ne)=>{this.onError("xhr poll error",we,Ne)}),this.pollXhr=he}}let Sn=(()=>{class Ve extends ye{constructor(we,Ne,vt){super(),this.createRequest=we,$t(this,vt),this._opts=vt,this._method=vt.method||"GET",this._uri=Ne,this._data=void 0!==vt.data?vt.data:null,this._create()}_create(){var we;const Ne=Xe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");Ne.xdomain=!!this._opts.xd;const vt=this._xhr=this.createRequest(Ne);try{vt.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){vt.setDisableHeaderCheck&&vt.setDisableHeaderCheck(!0);for(let rn in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(rn)&&vt.setRequestHeader(rn,this._opts.extraHeaders[rn])}}catch{}if("POST"===this._method)try{vt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{vt.setRequestHeader("Accept","*/*")}catch{}null===(we=this._opts.cookieJar)||void 0===we||we.addCookies(vt),"withCredentials"in vt&&(vt.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(vt.timeout=this._opts.requestTimeout),vt.onreadystatechange=()=>{var rn;3===vt.readyState&&(null===(rn=this._opts.cookieJar)||void 0===rn||rn.parseCookies(vt.getResponseHeader("set-cookie"))),4===vt.readyState&&(200===vt.status||1223===vt.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof vt.status?vt.status:0)},0))},vt.send(this._data)}catch(rn){return void this.setTimeoutFn(()=>{this._onError(rn)},0)}typeof document<"u"&&(this._index=Ve.requestsCount++,Ve.requests[this._index]=this)}_onError(we){this.emitReserved("error",we,this._xhr),this._cleanup(!0)}_cleanup(we){if(!(typeof this._xhr>"u"||null===this._xhr)){if(this._xhr.onreadystatechange=bn,we)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ve.requests[this._index],this._xhr=null}}_onLoad(){const we=this._xhr.responseText;null!==we&&(this.emitReserved("data",we),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return Ve.requestsCount=0,Ve.requests={},Ve})();function vn(){for(let Ve in Sn.requests)Sn.requests.hasOwnProperty(Ve)&&Sn.requests[Ve].abort()}typeof document<"u"&&("function"==typeof attachEvent?attachEvent("onunload",vn):"function"==typeof addEventListener&&addEventListener("onpagehide"in me?"pagehide":"unload",vn,!1));const mi=function(){const Ve=Jn({xdomain:!1});return Ve&&null!==Ve.responseType}();class Un extends Rn{constructor(he){super(he),this.supportsBinary=mi&&!(he&&he.forceBase64)}request(he={}){return Object.assign(he,{xd:this.xd},this.opts),new Sn(Jn,this.uri(),he)}}function Jn(Ve){const he=Ve.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!he||It))return new XMLHttpRequest}catch{}if(!he)try{return new(me[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch{}}const Mt=typeof navigator<"u"&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class Vt extends _n{get name(){return"websocket"}doOpen(){const he=this.uri(),we=this.opts.protocols,Ne=Mt?{}:Xe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Ne.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(he,we,Ne)}catch(vt){return this.emitReserved("error",vt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=he=>this.onClose({description:"websocket connection closed",context:he}),this.ws.onmessage=he=>this.onData(he.data),this.ws.onerror=he=>this.onError("websocket error",he)}write(he){this.writable=!1;for(let we=0;we<he.length;we++){const Ne=he[we],vt=we===he.length-1;F(Ne,this.supportsBinary,rn=>{try{this.doWrite(Ne,rn)}catch{}vt&&at(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const he=this.opts.secure?"wss":"ws",we=this.query||{};return this.opts.timestampRequests&&(we[this.opts.timestampParam]=Ye()),this.supportsBinary||(we.b64=1),this.createUri(he,we)}}const Z=me.WebSocket||me.MozWebSocket;class re extends Vt{createSocket(he,we,Ne){return Mt?new Z(he,we,Ne):we?new Z(he,we):new Z(he)}doWrite(he,we){this.ws.send(we)}}class pe extends _n{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(he){return this.emitReserved("error",he)}this._transport.closed.then(()=>{this.onClose()}).catch(he=>{this.onError("webtransport error",he)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(he=>{const we=function q(Ve,he){K||(K=new TextDecoder);const we=[];let Ne=0,vt=-1,rn=!1;return new TransformStream({transform(hn,Gn){for(we.push(hn);;){if(0===Ne){if(X(we)<1)break;const Xn=V(we,1);rn=128==(128&Xn[0]),vt=127&Xn[0],Ne=vt<126?3:126===vt?1:2}else if(1===Ne){if(X(we)<2)break;const Xn=V(we,2);vt=new DataView(Xn.buffer,Xn.byteOffset,Xn.length).getUint16(0),Ne=3}else if(2===Ne){if(X(we)<8)break;const Xn=V(we,8),ji=new DataView(Xn.buffer,Xn.byteOffset,Xn.length),Ni=ji.getUint32(0);if(Ni>Math.pow(2,21)-1){Gn.enqueue(P);break}vt=Ni*Math.pow(2,32)+ji.getUint32(4),Ne=3}else{if(X(we)<vt)break;const Xn=V(we,vt);Gn.enqueue(ee(rn?Xn:K.decode(Xn),he)),Ne=0}if(0===vt||vt>Ve){Gn.enqueue(P);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Ne=he.readable.pipeThrough(we).getReader(),vt=function Oe(){return new TransformStream({transform(Ve,he){!function W(Ve,he){S&&Ve.data instanceof Blob?Ve.data.arrayBuffer().then(B).then(he):k&&(Ve.data instanceof ArrayBuffer||z(Ve.data))?he(B(Ve.data)):F(Ve,!1,we=>{G||(G=new TextEncoder),he(G.encode(we))})}(Ve,we=>{const Ne=we.length;let vt;if(Ne<126)vt=new Uint8Array(1),new DataView(vt.buffer).setUint8(0,Ne);else if(Ne<65536){vt=new Uint8Array(3);const rn=new DataView(vt.buffer);rn.setUint8(0,126),rn.setUint16(1,Ne)}else{vt=new Uint8Array(9);const rn=new DataView(vt.buffer);rn.setUint8(0,127),rn.setBigUint64(1,BigInt(Ne))}Ve.data&&"string"!=typeof Ve.data&&(vt[0]|=128),he.enqueue(vt),he.enqueue(we)})}})}();vt.readable.pipeTo(he.writable),this._writer=vt.writable.getWriter();const rn=()=>{Ne.read().then(({done:Gn,value:Xn})=>{Gn||(this.onPacket(Xn),rn())}).catch(Gn=>{})};rn();const hn={type:"open"};this.query.sid&&(hn.data=`{"sid":"${this.query.sid}"}`),this._writer.write(hn).then(()=>this.onOpen())})})}write(he){this.writable=!1;for(let we=0;we<he.length;we++){const vt=we===he.length-1;this._writer.write(he[we]).then(()=>{vt&&at(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var he;null===(he=this._transport)||void 0===he||he.close()}}const Re={websocket:re,webtransport:pe,polling:Un},Bt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _t(Ve){if(Ve.length>8e3)throw"URI too long";const he=Ve,we=Ve.indexOf("["),Ne=Ve.indexOf("]");-1!=we&&-1!=Ne&&(Ve=Ve.substring(0,we)+Ve.substring(we,Ne).replace(/:/g,";")+Ve.substring(Ne,Ve.length));let vt=Bt.exec(Ve||""),rn={},hn=14;for(;hn--;)rn[jt[hn]]=vt[hn]||"";return-1!=we&&-1!=Ne&&(rn.source=he,rn.host=rn.host.substring(1,rn.host.length-1).replace(/;/g,":"),rn.authority=rn.authority.replace("[","").replace("]","").replace(/;/g,":"),rn.ipv6uri=!0),rn.pathNames=function dt(Ve,he){const Ne=he.replace(/\/{2,9}/g,"/").split("/");return("/"==he.slice(0,1)||0===he.length)&&Ne.splice(0,1),"/"==he.slice(-1)&&Ne.splice(Ne.length-1,1),Ne}(0,rn.path),rn.queryKey=function Be(Ve,he){const we={};return he.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Ne,vt,rn){vt&&(we[vt]=rn)}),we}
vendor: 7,505 bytes, line 1
1(0,rn.query),rn}const Te="function"==typeof addEventListener&&"function"==typeof removeEventListener,We=[];Te&&addEventListener("offline",()=>{We.forEach(Ve=>Ve())},!1);let ft=(()=>{class Ve extends ye{constructor(we,Ne){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,we&&"object"==typeof we&&(Ne=we,we=null),we){const vt=_t(we);Ne.hostname=vt.host,Ne.secure="https"===vt.protocol||"wss"===vt.protocol,Ne.port=vt.port,vt.query&&(Ne.query=vt.query)}else Ne.host&&(Ne.hostname=_t(Ne.host).host);$t(this,Ne),this.secure=null!=Ne.secure?Ne.secure:typeof location<"u"&&"https:"===location.protocol,Ne.hostname&&!Ne.port&&(Ne.port=this.secure?"443":"80"),this.hostname=Ne.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=Ne.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},Ne.transports.forEach(vt=>{const rn=vt.prototype.name;this.transports.push(rn),this._transportsByName[rn]=vt}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},Ne),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function xn(Ve){let he={},we=Ve.split("&");for(let Ne=0,vt=we.length;Ne<vt;Ne++){let rn=we[Ne].split("=");he[decodeURIComponent(rn[0])]=decodeURIComponent(rn[1])}return he}(this.opts.query)),Te&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},We.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(we){const Ne=Object.assign({},this.opts.query);Ne.EIO=4,Ne.transport=we,this.id&&(Ne.sid=this.id);const vt=Object.assign({},this.opts,{query:Ne,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[we]);return new this._transportsByName[we](vt)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const we=this.opts.rememberUpgrade&&Ve.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const Ne=this.createTransport(we);Ne.open(),this.setTransport(Ne)}setTransport(we){this.transport&&this.transport.removeAllListeners(),this.transport=we,we.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",Ne=>this._onClose("transport close",Ne))}onOpen(){this.readyState="open",Ve.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(we){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",we),this.emitReserved("heartbeat"),we.type){case"open":this.onHandshake(JSON.parse(we.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const Ne=new Error("server error");Ne.code=we.data,this._onError(Ne);break;case"message":this.emitReserved("data",we.data),this.emitReserved("message",we.data)}}onHandshake(we){this.emitReserved("handshake",we),this.id=we.sid,this.transport.query.sid=we.sid,this._pingInterval=we.pingInterval,this._pingTimeout=we.pingTimeout,this._maxPayload=we.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const we=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+we,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},we),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const we=this._getWritablePackets();this.transport.send(we),this._prevBufferLen=we.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let Ne=1;for(let vt=0;vt<this.writeBuffer.length;vt++){const rn=this.writeBuffer[vt].data;if(rn&&(Ne+=yt(rn)),vt>0&&Ne>this._maxPayload)return this.writeBuffer.slice(0,vt);Ne+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const we=Date.now()>this._pingTimeoutTime;return we&&(this._pingTimeoutTime=0,at(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),we}write(we,Ne,vt){return this._sendPacket("message",we,Ne,vt),this}send(we,Ne,vt){return this._sendPacket("message",we,Ne,vt),this}_sendPacket(we,Ne,vt,rn){if("function"==typeof Ne&&(rn=Ne,Ne=void 0),"function"==typeof vt&&(rn=vt,vt=null),"closing"===this.readyState||"closed"===this.readyState)return;(vt=vt||{}).compress=!1!==vt.compress;const hn={type:we,data:Ne,options:vt};this.emitReserved("packetCreate",hn),this.writeBuffer.push(hn),rn&&this.once("flush",rn),this.flush()}close(){const we=()=>{this._onClose("forced close"),this.transport.close()},Ne=()=>{this.off("upgrade",Ne),this.off("upgradeError",Ne),we()},vt=()=>{this.once("upgrade",Ne),this.once("upgradeError",Ne)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?vt():we()}):this.upgrading?vt():we()),this}_onError(we){if(Ve.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",we),this._onClose("transport error",we)}_onClose(we,Ne){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Te&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const vt=We.indexOf(this._offlineEventListener);-1!==vt&&We.splice(vt,1)}this.readyState="closed",this.id=null,this.emitReserved("close",we,Ne),this.writeBuffer=[],this._prevBufferLen=0}}}return Ve.protocol=4,Ve})();class Ft extends ft{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let he=0;he<this._upgrades.length;he++)this._probe(this._upgrades[he])}_probe(he){let we=this.createTransport(he),Ne=!1;ft.priorWebsocketSuccess=!1;const vt=()=>{Ne||(we.send([{type:"ping",data:"probe"}]),we.once("packet",xi=>{if(!Ne)if("pong"===xi.type&&"probe"===xi.data){if(this.upgrading=!0,this.emitReserved("upgrading",we),!we)return;ft.priorWebsocketSuccess="websocket"===we.name,this.transport.pause(()=>{Ne||"closed"!==this.readyState&&(Ni(),this.setTransport(we),we.send([{type:"upgrade"}
1]),this.emitReserved("upgrade",we),we=null,this.upgrading=!1,this.flush())})}else{const ms=new Error("probe error");ms.transport=we.name,this.emitReserved("upgradeError",ms)}}))};function rn(){Ne||(Ne=!0,Ni(),we.close(),we=null)}const hn=xi=>{const ms=new Error("probe error: "+xi);ms.transport=we.name,rn(),this.emitReserved("upgradeError",ms)};function Gn(){hn("transport closed")}function Xn(){hn("socket closed")}function ji(xi){we&&xi.name!==we.name&&rn()}const Ni=()=>{we.removeListener("open",vt),we.removeListener("error",hn),we.removeListener("close",Gn),this.off("close",Xn),this.off("upgrading",ji)};we.once("open",vt),we.once("error",hn),we.once("close",Gn),this.once("close",Xn),this.once("upgrading",ji),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==he?this.setTimeoutFn(()=>{Ne||we.open()},200):we.open()}onHandshake(he){this._upgrades=this._filterUpgrades(he.upgrades),super.onHandshake(he)}_filterUpgrades(he){const we=[];for(let Ne=0;Ne<he.length;Ne++)~this.transports.indexOf(he[Ne])&&we.push(he[Ne]);return we}}class Pt extends Ft{constructor(he,we={}){const Ne="object"==typeof he,vt=Ne?{...he}:{...we};(!vt.transports||vt.transports&&"string"==typeof vt.transports[0])&&(vt.transports=(vt.transports||["polling","websocket","webtransport"]).map(rn=>Re[rn]).filter(rn=>!!rn)),super(Ne?vt:he,vt)}}class pt extends zt{doPoll(){this._fetch().then(he=>{if(!he.ok)return this.onError("fetch read error",he.status,he);he.text().then(we=>this.onData(we))}).catch(he=>{this.onError("fetch read error",he)})}doWrite(he,we){this._fetch(he).then(Ne=>{if(!Ne.ok)return this.onError("fetch write error",Ne.status,Ne);we()}).catch(Ne=>{this.onError("fetch write error",Ne)})}_fetch(he){var we;const Ne=void 0!==he,vt=new Headers(this.opts.extraHeaders);return Ne&&vt.set("content-type","text/plain;charset=UTF-8"),null===(we=this.socket._cookieJar)||void 0===we||we.appendCookies(vt),fetch(this.uri(),{method:Ne?"POST":"GET",body:Ne?he:null,headers:vt,credentials:this.opts.withCredentials?"include":"omit"}).then(rn=>{var hn;return null===(hn=this.socket._cookieJar)||void 0===hn||hn.parseCookies(rn.headers.getSetCookie()),rn})}}const xt="function"==typeof ArrayBuffer,$e=Ve=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(Ve):Ve.buffer instanceof ArrayBuffer,ht=Object.prototype.toString,Ht="function"==typeof Blob||typeof Blob<"u"&&"[object BlobConstructor]"===ht.call(Blob),Jt="function"==typeof File||typeof File<"u"&&"[object FileConstructor]"===ht.call(File);function Dn(Ve){return xt&&(Ve instanceof ArrayBuffer||$e(Ve))||Ht&&Ve instanceof Blob||Jt&&Ve instanceof File}function En(Ve,he){if(!Ve||"object"!=typeof Ve)return!1;if(Array.isArray(Ve)){for(let we=0,Ne=Ve.length;we<Ne;we++)if(En(Ve[we]))return!0;return!1}if(Dn(Ve))return!0;if(Ve.toJSON&&"function"==typeof Ve.toJSON&&1===arguments.length)return En(Ve.toJSON(),!0);for(const we in Ve)if(Object.prototype.hasOwnProperty.call(Ve,we)&&En(Ve[we]))return!0;return!1}function At(Ve){const he=[],Ne=Ve;return Ne.data=Ct(Ve.data,he),Ne.attachments=he.length,{packet:Ne,buffers:he}}function Ct(Ve,he,we){if(!Ve)return Ve;if(Dn(Ve)){const Ne={_placeholder:!0,num:he.length};return he.push(Ve),Ne}if(Array.isArray(Ve)){const Ne=new Array(Ve.length);for(let vt=0;vt<Ve.length;vt++)Ne[vt]=Ct(Ve[vt],he);return Ne}if("object"==typeof Ve&&!(Ve instanceof Date)){if(Ve.toJSON&&"function"==typeof Ve.toJSON&&!we)return Ct(Ve.toJSON(),he,!0);const Ne={};for(const vt in Ve)Object.prototype.hasOwnProperty.call(Ve,vt)&&(Ne[vt]=Ct(Ve[vt],he));return Ne}return Ve}function qe(Ve,he){return Ve.data=Tt(Ve.data,he),delete Ve.attachments,Ve}function Tt(Ve,he){if(!Ve)return Ve;if(Ve&&!0===Ve._placeholder){if("number"==typeof Ve.num&&Ve.num>=0&&Ve.num<he.length)return he[Ve.num];throw new Error("illegal attachments")}if(Array.isArray(Ve))for(let we=0;we<Ve.length;
vendor: 5,001 bytes, line 1
1we++)Ve[we]=Tt(Ve[we],he);else if("object"==typeof Ve)for(const we in Ve)Object.prototype.hasOwnProperty.call(Ve,we)&&(Ve[we]=Tt(Ve[we],he));return Ve}const Qt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],nn=5;var dn=(()=>{return(Ve=dn||(dn={}))[Ve.CONNECT=0]="CONNECT",Ve[Ve.DISCONNECT=1]="DISCONNECT",Ve[Ve.EVENT=2]="EVENT",Ve[Ve.ACK=3]="ACK",Ve[Ve.CONNECT_ERROR=4]="CONNECT_ERROR",Ve[Ve.BINARY_EVENT=5]="BINARY_EVENT",Ve[Ve.BINARY_ACK=6]="BINARY_ACK",dn;var Ve})();class ai{constructor(he){this.replacer=he}encode(he){return he.type!==dn.EVENT&&he.type!==dn.ACK||!En(he)?[this.encodeAsString(he)]:this.encodeAsBinary({type:he.type===dn.EVENT?dn.BINARY_EVENT:dn.BINARY_ACK,nsp:he.nsp,data:he.data,id:he.id})}encodeAsString(he){let we=""+he.type;return(he.type===dn.BINARY_EVENT||he.type===dn.BINARY_ACK)&&(we+=he.attachments+"-"),he.nsp&&"/"!==he.nsp&&(we+=he.nsp+","),null!=he.id&&(we+=he.id),null!=he.data&&(we+=JSON.stringify(he.data,this.replacer)),we}encodeAsBinary(he){const we=At(he),Ne=this.encodeAsString(we.packet),vt=we.buffers;return vt.unshift(Ne),vt}}class ni extends ye{constructor(he){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof he?{reviver:he}:he)}add(he){let we;if("string"==typeof he){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");we=this.decodeString(he);const Ne=we.type===dn.BINARY_EVENT;Ne||we.type===dn.BINARY_ACK?(we.type=Ne?dn.EVENT:dn.ACK,this.reconstructor=new ei(we)):super.emitReserved("decoded",we)}else{if(!Dn(he)&&!he.base64)throw new Error("Unknown type: "+he);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");we=this.reconstructor.takeBinaryData(he),we&&(this.reconstructor=null,super.emitReserved("decoded",we))}}decodeString(he){let we=0;const Ne={type:Number(he.charAt(0))};if(void 0===dn[Ne.type])throw new Error("unknown packet type "+Ne.type);if(Ne.type===dn.BINARY_EVENT||Ne.type===dn.BINARY_ACK){const rn=we+1;for(;"-"!==he.charAt(++we)&&we!=he.length;);const hn=he.substring(rn,we);if(hn!=Number(hn)||"-"!==he.charAt(we))throw new Error("Illegal attachments");const Gn=Number(hn);if(!Js(Gn)||Gn<1)throw new Error("Illegal attachments");if(Gn>this.opts.maxAttachments)throw new Error("too many attachments");Ne.attachments=Gn}if("/"===he.charAt(we+1)){const rn=we+1;for(;++we&&","!==he.charAt(we)&&we!==he.length;);Ne.nsp=he.substring(rn,we)}else Ne.nsp="/";const vt=he.charAt(we+1);if(""!==vt&&Number(vt)==vt){const rn=we+1;for(;++we;){const hn=he.charAt(we);if(null==hn||Number(hn)!=hn){--we;break}if(we===he.length)break}Ne.id=Number(he.substring(rn,we+1))}if(he.charAt(++we)){const rn=this.tryParse(he.substr(we));if(!ni.isPayloadValid(Ne.type,rn))throw new Error("invalid payload");Ne.data=rn}return Ne}tryParse(he){try{return JSON.parse(he,this.opts.reviver)}catch{return!1}}static isPayloadValid(he,we){switch(he){case dn.CONNECT:return Mi(we);case dn.DISCONNECT:return void 0===we;case dn.CONNECT_ERROR:return"string"==typeof we||Mi(we);case dn.EVENT:case dn.BINARY_EVENT:return Array.isArray(we)&&("number"==typeof we[0]||"string"==typeof we[0]&&-1===Qt.indexOf(we[0]));case dn.ACK:case dn.BINARY_ACK:return Array.isArray(we)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ei{constructor(he){this.packet=he,this.buffers=[],this.reconPack=he}takeBinaryData(he){if(this.buffers.push(he),this.buffers.length===this.reconPack.attachments){const we=qe(this.reconPack,this.buffers);return this.finishedReconstruction(),we}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Js=Number.isInteger||function(Ve){return"number"==typeof Ve&&isFinite(Ve)&&Math.floor(Ve)===Ve};function Mi(Ve){return"[object Object]"===Object.prototype.toString.call(Ve)}function Is(Ve){return function rs(Ve){return"string"==typeof Ve}(Ve.nsp)&&function Ss(Ve){return void 0===Ve||Js(Ve)}(Ve.id)&&function bs(Ve,he){switch(Ve){case dn.CONNECT:return void 0===he||Mi(he);case dn.DISCONNECT:return void 0===he;case dn.EVENT:return Array.isArray(he)&&("number"==typeof he[0]||"string"==typeof he[0]&&-1===Qt.indexOf(he[0]));case dn.ACK:return Array.isArray(he);case dn.CONNECT_ERROR:return"string"==typeof he||Mi(he);default:return!1}}(Ve.type,Ve.data)}function Yn(Ve,he,we){return Ve.on(he,we),function(){Ve.off(he,we)}}const Ji=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ai extends ye{constructor(he,we,Ne){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=he,this.nsp=we,Ne&&Ne.auth&&(this.auth=Ne.auth),this._opts=Object.assign({},Ne),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const he=this.io;this.subs=[Yn(he,"open",this.onopen.bind(this)),Yn(he,"packet",this.onpacket.b
vendor: 10,114 bytes, line 1
1ind(this)),Yn(he,"error",this.onerror.bind(this)),Yn(he,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...he){return he.unshift("message"),this.emit.apply(this,he),this}emit(he,...we){var Ne,vt,rn;if(Ji.hasOwnProperty(he))throw new Error('"'+he.toString()+'" is a reserved event name');if(we.unshift(he),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(we),this;const hn={type:dn.EVENT,data:we,options:{}};if(hn.options.compress=!1!==this.flags.compress,"function"==typeof we[we.length-1]){const Ni=this.ids++,xi=we.pop();this._registerAckCallback(Ni,xi),hn.id=Ni}const Gn=null===(vt=null===(Ne=this.io.engine)||void 0===Ne?void 0:Ne.transport)||void 0===vt?void 0:vt.writable,Xn=this.connected&&!(null!==(rn=this.io.engine)&&void 0!==rn&&rn._hasPingExpired());return this.flags.volatile&&!Gn||(Xn?(this.notifyOutgoingListeners(hn),this.packet(hn)):this.sendBuffer.push(hn)),this.flags={},this}_registerAckCallback(he,we){var Ne;const vt=null!==(Ne=this.flags.timeout)&&void 0!==Ne?Ne:this._opts.ackTimeout;if(void 0===vt)return void(this.acks[he]=we);const rn=this.io.setTimeoutFn(()=>{delete this.acks[he];for(let Gn=0;Gn<this.sendBuffer.length;Gn++)this.sendBuffer[Gn].id===he&&this.sendBuffer.splice(Gn,1);we.call(this,new Error("operation has timed out"))},vt),hn=(...Gn)=>{this.io.clearTimeoutFn(rn),we.apply(this,Gn)};hn.withError=!0,this.acks[he]=hn}emitWithAck(he,...we){return new Promise((Ne,vt)=>{const rn=(hn,Gn)=>hn?vt(hn):Ne(Gn);rn.withError=!0,we.push(rn),this.emit(he,...we)})}_addToQueue(he){let we;"function"==typeof he[he.length-1]&&(we=he.pop());const Ne={id:this._queueSeq++,tryCount:0,pending:!1,args:he,flags:Object.assign({fromQueue:!0},this.flags)};he.push((vt,...rn)=>(null!==vt?Ne.tryCount>this._opts.retries&&(this._queue.shift(),we&&we(vt)):(this._queue.shift(),we&&we(null,...rn)),Ne.pending=!1,this._drainQueue())),this._queue.push(Ne),this._drainQueue()}_drainQueue(he=!1){if(!this.connected||0===this._queue.length)return;const we=this._queue[0];we.pending&&!he||(we.pending=!0,we.tryCount++,this.flags=we.flags,this.emit.apply(this,we.args))}packet(he){he.nsp=this.nsp,this.io._packet(he)}onopen(){"function"==typeof this.auth?this.auth(he=>{this._sendConnectPacket(he)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(he){this.packet({type:dn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},he):he})}onerror(he){this.connected||this.emitReserved("connect_error",he)}onclose(he,we){this.connected=!1,delete this.id,this.emitReserved("disconnect",he,we),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(he=>{if(!this.sendBuffer.some(Ne=>String(Ne.id)===he)){const Ne=this.acks[he];delete this.acks[he],Ne.withError&&Ne.call(this,new Error("socket has been disconnected"))}})}onpacket(he){if(he.nsp===this.nsp)switch(he.type){case dn.CONNECT:he.data&&he.data.sid?this.onconnect(he.data.sid,he.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case dn.EVENT:case dn.BINARY_EVENT:this.onevent(he);break;case dn.ACK:case dn.BINARY_ACK:this.onack(he);break;case dn.DISCONNECT:this.ondisconnect();break;case dn.CONNECT_ERROR:this.destroy();const Ne=new Error(he.data.message);Ne.data=he.data.data,this.emitReserved("connect_error",Ne)}}onevent(he){const we=he.data||[];null!=he.id&&we.push(this.ack(he.id)),this.connected?this.emitEvent(we):this.receiveBuffer.push(Object.freeze(we))}emitEvent(he){if(this._anyListeners&&this._anyListeners.length){const we=this._anyListeners.slice();for(const Ne of we)Ne.apply(this,he)}super.emit.apply(this,he),this._pid&&he.length&&"string"==typeof he[he.length-1]&&(this._lastOffset=he[he.length-1])}ack(he){const we=this;let Ne=!1;return function(...vt){Ne||(Ne=!0,we.packet({type:dn.ACK,id:he,data:vt}))}}onack(he){const we=this.acks[he.id];"function"==typeof we&&(delete this.acks[he.id],we.withError&&he.data.unshift(null),we.apply(this,he.data))}onconnect(he,we){this.id=he,this.recovered=we&&this._pid===we,this._pid=we,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(he=>this.emitEvent(he)),this.receiveBuffer=[],this.sendBuffer.forEach(he=>{this.notifyOutgoingListeners(he),this.packet(he)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(he=>he()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:dn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(he){return this.flags.compress=he,this}get volatile(){return this.flags.volatile=!0,this}timeout(he){return this.flags.timeout=he,this}onAny(he){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(he),this}prependAny(he){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(he),this}offAny(he){if(!this._anyListeners)return this;if(he){const we=this._anyListeners;for(let Ne=0;Ne<we.length;Ne++)if(he===we[Ne])return we.splice(Ne,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(he){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(he),this}prependAnyOutgoing(he){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(he),this}offAnyOutgoing(he){if(!this._anyOutgoingListeners)return this;if(he){const we=this._anyOutgoingListeners;for(let Ne=0;Ne<we.length;Ne++)if(he===we[Ne])return we.splice(Ne,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(he){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const we=this._anyOutgoingListeners.slice();for(const Ne of we)Ne.apply(this,he.data)}}}function Qi(Ve){this.ms=(Ve=Ve||{}).min||100,this.max=Ve.max||1e4,this.factor=Ve.factor||2,this.jitter=Ve.jitter>0&&Ve.jitter<=1?Ve.jitter:0,this.attempts=0}Qi.prototype.duration=function(){var Ve=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var he=Math.random(),we=Math.floor(he*this.jitter*Ve);Ve=1&Math.floor(10*he)?Ve+we:Ve-we}return 0|Math.min(Ve,this.max)},Qi.prototype.reset=function(){this.attempts=0},Qi.prototype.setMin=function(Ve){this.ms=Ve},Qi.prototype.setMax=function(Ve){this.max=Ve},Qi.prototype.setJitter=function(Ve){this.jitter=Ve};class Li extends ye{constructor(he,we){var Ne;super(),this.nsps={},this.subs=[],he&&"object"==typeof he&&(we=he,he=void 0),(we=we||{}).path=we.path||"/socket.io",this.opts=we,$t(this,we),this.reconnection(!1!==we.reconnection),this.reconnectionAttempts(we.reconnectionAttempts||1/0),this.reconnectionDelay(we.reconnectionDelay||1e3),this.reconnectionDelayMax(we.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(Ne=we.randomizationFactor)&&void 0!==Ne?Ne:.5),this.backoff=new Qi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==we.timeout?2e4:we.timeout),this._readyState="closed",this.uri=he;const vt=we.parser||t;this.encoder=new vt.Encoder,this.decoder=new vt.Decoder,this._autoConnect=!1!==we.autoConnect,this._autoConnect&&this.open()}reconnection(he){return arguments.length?(this._reconnection=!!he,he||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(he){return void 0===he?this._reconnectionAttempts:(this._reconnectionAttempts=he,this)}reconnectionDelay(he){var we;return void 0===he?this._reconnectionDelay:(this._reconnectionDelay=he,null===(we=this.backoff)||void 0===we||we.setMin(he),this)}randomizationFactor(he){var we;return void 0===he?this._randomizationFactor:(this._randomizationFactor=he,null===(we=this.backoff)||void 0===we||we.setJitter(he),this)}reconnectionDelayMax(he){var we;return void 0===he?this._reconnectionDelayMax:(this._reconnectionDelayMax=he,null===(we=this.backoff)||void 0===we||we.setMax(he),this)}timeout(he){return arguments.length?(this._timeout=he,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(he){if(~this._readyState.indexOf("open"))return this;this.engine=new Pt(this.uri,this.opts);const we=this.engine,Ne=this;this._readyState="opening",this.skipReconnect=!1;const vt=Yn(we,"open",function(){Ne.onopen(),he&&he()}),rn=Gn=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Gn),he?he(Gn):this.maybeReconnectOnOpen()},hn=Yn(we,"error",rn);if(!1!==this._timeout){const Xn=this.setTimeoutFn(()=>{vt(),rn(new Error("timeout")),we.close()},this._timeout);this.opts.autoUnref&&Xn.unref(),this.subs.push(()=>{this.clearTimeoutFn(Xn)})}return this.subs.push(vt),this.subs.push(hn),this}connect(he){return this.open(he)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const he=this.engine;this.subs.push(Yn(he,"ping",this.onping.bind(this)),Yn(he,"data",this.ondata.bind(this)),Yn(he,"error",this.onerror.bind(this)),Yn(he,"close",this.onclose.bind(this)),Yn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(he){try{this.decoder.add(he)}catch(we){this.onclose("parse error",we)}}ondecoded(he){at(()=>{this.emitReserved("packet",he)},this.setTimeoutFn)}onerror(he){this.emitReserved("error",he)}socket(he,we){let Ne=this.nsps[he];return Ne?this._autoConnect&&!Ne.active&&Ne.connect():(Ne=new Ai(this,he,we),this.nsps[he]=Ne),Ne}_destroy(he){const we=Object.keys(this.nsps);for(const Ne of we)if(this.nsps[Ne].active)return;this._close()}_packet(he){const we=this.encoder.encode(he);for(let Ne=0;Ne<we.length;Ne++)this.engine.write(we[Ne],he.options)}
1cleanup(){this.subs.forEach(he=>he()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(he,we){var Ne;this.cleanup(),null===(Ne=this.engine)||void 0===Ne||Ne.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",he,we),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const he=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const we=this.backoff.duration();this._reconnecting=!0;const Ne=this.setTimeoutFn(()=>{he.skipReconnect||(this.emitReserved("reconnect_attempt",he.backoff.attempts),!he.skipReconnect&&he.open(vt=>{vt?(he._reconnecting=!1,he.reconnect(),this.emitReserved("reconnect_error",vt)):he.onreconnect()}))},we);this.opts.autoUnref&&Ne.unref(),this.subs.push(()=>{this.clearTimeoutFn(Ne)})}}onreconnect(){const he=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",he)}}const ls={};function ps(Ve,he){"object"==typeof Ve&&(he=Ve,Ve=void 0);const we=function lt(Ve,he="",we){let Ne=Ve;we=we||typeof location<"u"&&location,null==Ve&&(Ve=we.protocol+"//"+we.host),"string"==typeof Ve&&("/"===Ve.charAt(0)&&(Ve="/"===Ve.charAt(1)?we.protocol+Ve:we.host+Ve),/^(https?|wss?):\/\//.test(Ve)||(Ve=typeof we<"u"?we.protocol+"//"+Ve:"https://"+Ve),Ne=_t(Ve)),Ne.port||(/^(http|ws)$/.test(Ne.protocol)?Ne.port="80":/^(http|ws)s$/.test(Ne.protocol)&&(Ne.port="443")),Ne.path=Ne.path||"/";const rn=-1!==Ne.host.indexOf(":")?"["+Ne.host+"]":Ne.host;return Ne.id=Ne.protocol+"://"+rn+":"+Ne.port+he,Ne.href=Ne.protocol+"://"+rn+(we&&we.port===Ne.port?"":":"+Ne.port),Ne}(Ve,(he=he||{}).path||"/socket.io"),Ne=we.source,vt=we.id;let Xn;return he.forceNew||he["force new connection"]||!1===he.multiplex||ls[vt]&&we.path in ls[vt].nsps?Xn=new Li(Ne,he):(ls[vt]||(ls[vt]=new Li(Ne,he)),Xn=ls[vt]),we.query&&!he.query&&(he.query=we.queryKey),Xn.socket(we.path,he)}Object.assign(ps,{Manager:Li,Socket:Ai,io:ps,connect:ps});class Ms{config;appRef;subscribersCounter={};eventObservables$={};namespaces={};ioSocket;emptyConfig={url:"",options:{}};constructor(he,we){this.config=he,this.appRef=we,void 0===he&&(he=this.emptyConfig),this.ioSocket=(ps||e)(he.url,he.options)}get auth(){return this.ioSocket.auth}set auth(he){this.ioSocket.auth=he}get io(){return this.ioSocket.io}get open(){return this.connect}get close(){return this.disconnect}of(he){if(!he||"/"===he)return this;const we=this.namespaces[he];if(we)return we;const{url:Ne,...vt}=this.config,rn={url:Ne.endsWith("/")||he.startsWith("/")?`${Ne}${he}`:`${Ne}/${he}`,...vt},hn=new Ms(rn,this.appRef);return this.namespaces[he]=hn,hn}on(he,we){return this.ioSocket.on(he,we),this}once(he,we){return this.ioSocket.once(he,we),this}connect(){return this.ioSocket.connect(),this}disconnect(){return this.ioSocket.disconnect(),this}emit(he,...we){return this.ioSocket.emit(he,...we),this}send(...he){return this.ioSocket.send(...he),this}emitWithAck(he,...we){return this.ioSocket.emitWithAck(he,...we)}removeListener(he,we){return this.ioSocket.removeListener(he,we),this}removeAllListeners(he){return this.ioSocket.removeAllListeners(he),this}fromEvent(he){return this.subscribersCounter[he]||(this.subscribersCounter[he]=0),this.subscribersCounter[he]++,this.eventObservables$[he]||(this.eventObservables$[he]=new x.y(we=>{const Ne=vt=>{we.next(vt),this.appRef.tick()};return this.ioSocket.on(he,Ne),()=>{this.subscribersCounter[he]--,0===this.subscribersCounter[he]&&(this.ioSocket.removeListener(he,Ne),delete this.eventObservables$[he])}}).pipe((0,M.B)())),this.eventObservables$[he]}fromOneTimeEvent(he){return new Promise(we=>this.once(he,we))}listeners(he){return this.ioSocket.listeners(he)}hasListeners(he){return this.ioSocket.hasListeners(he)}listenersAny(){return this.ioSocket.listenersAny()}listenersAnyOutgoing(){return this.ioSocket.listenersAnyOutgoing()}off(he,we){return this.ioSocket.off(he,we),this}offAny(he){return this.ioSocket.offAny(he),this}offAnyOutgoing(he){return this.ioSocket.offAnyOutgoing(he),this}onAny(he){return this.ioSocket.onAny(he),this}onAnyOutgoing(he){return this.ioSocket.onAnyOutgoing(he),this}prependAny(he){return this.ioSocket.prependAny(he),this}prependAnyOutgoing(he){return this.ioSocket.prependAnyOutgoing(he),this}timeout(he){return this.ioSocket.timeout(he),this}get volatile(){return this}get active(){return this.ioSocket.active}get connected(){return this.ioSocket.connected}get disconnected(){return this.ioSocket.disconnected}get recovered(){return this.ioSocket.recovered}get id(){return this.ioSocket.id}compress(he){return this.ioSocket.compress(he),this}}new D.OlP("__SOCKET_IO_CONFIG__");let fs=(()=>{class Ve extends Ms{constructor(we){super({url:s.N.apiAddressSockets,options:{path:"/ws/socket.io",autoConnect:!1,reconnection:!0}
1},we)}connectToRoom(we,Ne){try{this.ioSocket.connect(),this.ioSocket.emit("join",{room:we}),this.ioSocket.on("new_message",vt=>{vt.toUpperCase()==="refresh".toUpperCase()&&Ne()})}catch(vt){console.error("Error al conectar a la sala:",vt)}}disconnectRoom(we){try{this.ioSocket.emit("leave",{room:we}),this.ioSocket.disconnect()}catch(Ne){console.error("Error al desconectar de la sala:",Ne)}}}return Ve.\u0275fac=function(we){return new(we||Ve)(D.LFG(D.z2F))},Ve.\u0275prov=D.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})()},4649:(o,u,a)=>{"use strict";a.d(u,{V:()=>s});var t=a(4707),e=a(4650);let s=(()=>{class D{constructor(){this.httpLoading$=new t.t(1)}httpProgress(){return this.httpLoading$.asObservable()}setHttpProgressStatus(M){this.httpLoading$.next(M)}}return D.\u0275fac=function(M){return new(M||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},8936:(o,u,a)=>{"use strict";a.d(u,{K:()=>S});var t=a(2340),e=a(1135),s=a(4650),D=a(529),x=a(2510),M=a(6895);let w=(()=>{class k{constructor(F,ne){this.document=F,this.platformId=ne,this.documentIsAccessible=(0,M.NF)(this.platformId)}static getCookieRegExp(F){const ne=F.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+ne+"|;\\s*"+ne+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(F){try{return decodeURIComponent(F)}catch{return F}}check(F){return!!this.documentIsAccessible&&(F=encodeURIComponent(F),k.getCookieRegExp(F).test(this.document.cookie))}get(F){if(this.documentIsAccessible&&this.check(F)){F=encodeURIComponent(F);const B=k.getCookieRegExp(F).exec(this.document.cookie);return B[1]?k.safeDecodeURIComponent(B[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const F={},ne=this.document;return ne.cookie&&""!==ne.cookie&&ne.cookie.split(";").forEach(B=>{const[G,W]=B.split("=");F[k.safeDecodeURIComponent(G.replace(/^ /,""))]=k.safeDecodeURIComponent(W)}),F}set(F,ne,B,G,W,Y,fe){if(!this.documentIsAccessible)return;if("number"==typeof B||B instanceof Date||G||W||Y||fe)return void this.set(F,ne,{expires:B,path:G,domain:W,secure:Y,sameSite:fe||"Lax"});let N=encodeURIComponent(F)+"="+encodeURIComponent(ne)+";";const Q=B||{};Q.expires&&(N+="number"==typeof Q.expires?"expires="+new Date((new Date).getTime()+1e3*Q.expires*60*60*24).toUTCString()+";":"expires="+Q.expires.toUTCString()+";"),Q.path&&(N+="path="+Q.path+";"),Q.domain&&(N+="domain="+Q.domain+";"),!1===Q.secure&&"None"===Q.sameSite&&(Q.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${F} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),Q.secure&&(N+="secure;"),Q.sameSite||(Q.sameSite="Lax"),N+="sameSite="+Q.sameSite+";",this.document.cookie=N}delete(F,ne,B,G,W="Lax"){this.documentIsAccessible&&this.set(F,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:ne,domain:B,secure:G,sameSite:W})}deleteAll(F,ne,B,G="Lax"){if(!this.documentIsAccessible)return;const W=this.getAll();for(const Y in W)W.hasOwnProperty(Y)&&this.delete(Y,F,ne,B,G)}}return k.\u0275fac=function(F){return new(F||k)(s.LFG(M.K0),s.LFG(s.Lbi))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var I=a(4815),P=a(4080);let S=(()=>{class k{constructor(F,ne,B,G,W){this.http=F,this.router=ne,this.cookieService=B,this.oneSignal=G,this.logger=W,this.apiAddress=t.N.apiAddress,this.urlSubject=new e.X(""),this.url$=this.urlSubject.asObservable(),this.nameSubject=new e.X(""),this.name$=this.nameSubject.asObservable(),this.userSubject=new e.X(void 0),this.user$=this.userSubject.asObservable()}setUser(F){localStorage.setItem("user",JSON.stringify(F)),this.userSubject.next(F)}changeUrl(F){this.urlSubject.next(F);const ne=this.getUserLocalStorage();ne&&(ne.picture=F,this.setUser(ne))}changeName(F){this.nameSubject.next(F);const ne=this.getUserLocalStorage();ne&&(ne.name=F,this.setUser(ne))}getUser(){return this.http.get(`${this.apiAddress}/user`)}updateUser(F){return this.http.put(`${this.apiAddress}/user`,F)}logOutService(){return this.http.get(`${this.apiAddress}/logout`)}getUserLocalStorage(){const F=localStorage.getItem("user");return F?JSON.parse(F):void 0}createSubscription(F,ne){return this.http.post(`${this.apiAddress}/subscription/${F}`,ne)}updatePassword(F,ne,B){return this.http.post(`${this.apiAddress}/user/password`,{token:F,password:ne,create:B})}registerUser(F,ne,B){const G={name:F,email:ne};return B&&(G.invite_token=B),this.http.post(`${this.apiAddress}/user`,G)}loginUser(F,ne){return this.http.post(`${this.apiAddress}/login/manual`,{email:F,password:ne})}forgotPassword(F){return this.http.post(`${this.apiAddress}/user/forgot-password`,{email:F})}uploadImage(F){return this.http.post(`${this.apiAddress}/user/upload/picture`,F)}deleteUser(){return this.http.delete(`${this.apiAddress}/user/account/delete`)}updateAcquisitionSource(F){return this.http.patch(`${this.apiAddress}/user/acquisition-source`,{source:F})}updateLocalAcquisitionSource(F){const ne=this.getUserLocalStorage();ne&&(ne.acquisition_source=F,this.setUser(ne))}getMessageCount(){return this.http.get(`${this.apiAddress}/user/account/messages/count`)}cancelSubscription(){return this.http.post(`${this.apiAddress}/subscription/cancel`,{})}reactivate(F){return this.http.post(`${this.apiAddress}/subscription/reactivate`,{new_plan_id:F})}getUpgradePreview(F){return this.http.get(`${this.apiAddress}/subscription/upgrade-preview?new_plan_id=${F}`)}upgrade(F){return this.http.post(`${this.apiAddress}/subscription/upgrade`,{new_plan_id:F})}scheduleDowngrade(F){return this.http.post(`${this.apiAddress}/subscription/schedule-downgrade`,{new_plan_id:F})}revertScheduledDowngrade(){return this.http.post(`${this.apiAddress}/subscription/revert-scheduled-downgrade`,{})}getPaymentHistory(){return this.http.get(`${this.apiAddress}/subscription/payments`)}getPaymentMethod(){return this.http.get(`${this.apiAddress}/subscription/payment-method`)}deletePaymentMethod(){return this.http.delete(`${this.apiAddress}/subscription/payment-method`)}deletePictureUser(){return this.http.delete(`${this.apiAddress}/user/delete/picture`)}logout(){this.logOutService().subscribe({next:F=>{localStorage.removeItem("user"),localStorage.removeItem("current_workspace_id"),this.userSubject.next(void 0),this.oneSignal.logout(),this.router.navigate(["dashboard/login"])},error:F=>{this.logger.error("No se pudo cerrar sesi\xf3n",F)}})}}return k.\u0275fac=function(F){return new(F||k)(s.LFG(D.eN),s.LFG(x.F0),s.LFG(w),s.LFG(I.HE),s.LFG(P.m))},k.\u0275prov=s.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},2318:(o,u,a)=>{"use strict";a.d(u,{A:()=>z});var t=a(2340),e=a(1135),s=a(9646),D=a(4004),x=a(8505),M=a(262),w=a(4650),I=a(529),P=a(4080),S=a(2510),k=a(5431);let z=(()=>{class F{constructor(B,G,W,Y){this.http=B,this.logger=G,this.router=W,this.permissionService=Y,this.apiAddress=t.N.apiAddress,this.STORAGE_KEY="current_workspace_id",this.currentWorkspace$=new e.X(null),this.loadError$=new e.X(null),this.loadWorkspaceFromStorage()}getCurrentWorkspace(){return this.http.get(`${this.apiAddress}/workspace/current`).pipe((0,D.U)(B=>B.data),(0,x.b)(B=>{var G;this.setCurrentWorkspace(B.id),this.currentWorkspace$.next(B),this.permissionService.setMembership(null!==(G=B.membership)&&void 0!==G?G:null),this.loadError$.next(null)}),(0,M.K)(B=>(this.handleCurrentWorkspaceFailure(B),(0,s.of)(null))))}handleCurrentWorkspaceFailure(B){this.logger.error("Error getting current workspace",B),this.loadError$.next(B),[400,401,403,404].includes(B?.status)&&(localStorage.removeItem(this.STORAGE_KEY),this.currentWorkspace$.next(null),this.permissionService.clear())}getLoadErrorObservable(){return this.loadError$.asObservable()}hasLoadError(){return null!==this.loadError$.value}getOwnedWorkspace(){return this.http.get(`${this.apiAddress}/workspace/owned`).pipe((0,D.U)(B=>B.data),(0,M.K)(B=>(404!==B?.status&&this.logger.error("Error getting owned workspace",B),(0,s.of)(null))))}getUserWorkspaces(){return this.http.get(`${this.apiAddress}/workspace`).pipe((0,D.U)(B=>B.data),(0,M.K)(B=>(this.logger.error("Error getting user workspaces",B),(0,s.of)([]))))}getWorkspace(B){return this.http.get(`${this.apiAddress}/workspace/${B}
1`).pipe((0,D.U)(G=>G.data),(0,M.K)(G=>{throw this.logger.error("Error getting workspace",G),G}))}createWorkspace(B){return this.http.post(`${this.apiAddress}/workspace`,{name:B}).pipe((0,D.U)(G=>G.data),(0,x.b)(G=>{this.setCurrentWorkspace(G.id),this.currentWorkspace$.next(G)}),(0,M.K)(G=>{throw this.logger.error("Error creating workspace",G),G}))}updateWorkspace(B,G){return this.http.put(`${this.apiAddress}/workspace/${B}`,G).pipe((0,D.U)(W=>W.data),(0,x.b)(W=>{this.getCurrentWorkspaceFromStorage()===B&&this.currentWorkspace$.next(W)}),(0,M.K)(W=>{throw this.logger.error("Error updating workspace",W),W}))}deleteWorkspace(B){return this.http.delete(`${this.apiAddress}/workspace/${B}`).pipe((0,D.U)(()=>{this.getCurrentWorkspaceFromStorage()===B&&(localStorage.removeItem(this.STORAGE_KEY),this.currentWorkspace$.next(null))}),(0,M.K)(G=>{throw this.logger.error("Error deleting workspace",G),G}))}switchWorkspace(B){return this.http.post(`${this.apiAddress}/workspace/${B}/switch`,{}).pipe((0,x.b)(()=>{this.setCurrentWorkspace(B),this.getCurrentWorkspace().subscribe()}),(0,D.U)(()=>{const G=this.currentWorkspace$.value;if(!G)throw new Error("Workspace not loaded");return G}),(0,M.K)(G=>{throw this.logger.error("Error switching workspace",G),G}))}getWorkspaceUsage(B){return this.http.get(`${this.apiAddress}/workspace/${B}/usage`).pipe((0,D.U)(G=>G.data),(0,M.K)(G=>{throw this.logger.error("Error getting workspace usage",G),G}))}getMembers(B){return this.http.get(`${this.apiAddress}/workspace/${B}/members`).pipe((0,D.U)(G=>G.data),(0,M.K)(G=>{throw this.logger.error("Error getting workspace members",G),G}))}inviteMember(B,G,W){return this.http.post(`${this.apiAddress}/workspace/${B}/members/invite`,{email:G,role:W}).pipe((0,D.U)(Y=>Y.data),(0,M.K)(Y=>{throw this.logger.error("Error inviting member",Y),Y}))}updateMemberRole(B,G,W){return this.http.put(`${this.apiAddress}/workspace/${B}/members/${G}`,{role:W}).pipe((0,D.U)(Y=>Y.data),(0,M.K)(Y=>{throw this.logger.error("Error updating member role",Y),Y}))}removeMember(B,G){return this.http.delete(`${this.apiAddress}/workspace/${B}/members/${G}`).pipe((0,D.U)(()=>{}),(0,M.K)(W=>{throw this.logger.error("Error removing member",W),W}))}getInvitationByToken(B){return this.http.get(`${this.apiAddress}/workspace/invite/${B}`).pipe((0,D.U)(G=>G.data))}acceptInvitation(B){return this.http.post(`${this.apiAddress}/workspace/invite/accept`,{token:B}).pipe((0,D.U)(G=>G.data))}cancelInvitation(B,G){return this.http.delete(`${this.apiAddress}/workspace/${B}/invitations/${G}`).pipe((0,D.U)(()=>{}),(0,M.K)(W=>{throw this.logger.error("Error cancelling invitation",W),W}))}setCurrentWorkspace(B){localStorage.setItem(this.STORAGE_KEY,B)}getCurrentWorkspaceFromStorage(){return localStorage.getItem(this.STORAGE_KEY)}loadWorkspaceFromStorage(){this.getCurrentWorkspaceFromStorage()&&this.getCurrentWorkspace().subscribe()}getCurrentWorkspaceObservable(){return this.currentWorkspace$.asObservable()}switchWorkspaceAndNavigate(B){this.showWorkspaceTransition(),this.switchWorkspace(B).subscribe({next:()=>{this.router.navigateByUrl("/dashboard").then(()=>{window.location.reload()})},error:G=>{this.logger.error("Error switching workspace",G),this.hideWorkspaceTransition()}})}showWorkspaceTransition(){localStorage.setItem("ws_transition","1");const B=document.getElementById("workspace-transition");B&&(B.style.display="flex",B.style.opacity="1")}hideWorkspaceTransition(){localStorage.removeItem("ws_transition");const B=document.getElementById("workspace-transition");B&&(B.style.opacity="0",setTimeout(()=>{B.style.display="none"},400))}getDefaultWorkspace(){return this.http.get(`${this.apiAddress}/user/default-workspace`).pipe((0,D.U)(B=>B.data),(0,M.K)(B=>(this.logger.error("Error getting default workspace",B),(0,s.of)({workspace_id:null}))))}setDefaultWorkspace(B){return this.http.put(`${this.apiAddress}/user/default-workspace`,{workspace_id:B}).pipe((0,D.U)(G=>G.data),(0,M.K)(G=>{throw this.logger.error("Error setting default workspace",G),G}))}clearDefaultWorkspace(){return this.http.delete(`${this.apiAddress}/user/default-workspace`).pipe((0,D.U)(()=>{}),(0,M.K)(B=>{throw this.logger.error("Error clearing default workspace",B),B}))}leaveWorkspace(B){return this.http.post(`${this.apiAddress}/workspace/${B}/leave`,{}).pipe((0,D.U)(()=>{}),(0,M.K)(G=>{throw this.logger.error("Error leaving workspace",G),G}))}clearCurrentWorkspace(){localStorage.removeItem(this.STORAGE_KEY),this.currentWorkspace$.next(null),this.permissionService.clear()}}return F.\u0275fac=function(B){return new(B||F)(w.LFG(I.eN),w.LFG(P.m),w.LFG(S.F0),w.LFG(k.$))},F.\u0275prov=w.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},6484:(o,u,a)=>{"use strict";a.d(u,{L:()=>_n});var t=a(6895),e=a(5593),s=a(9766),D=a(4006),x=a(2137),M=a(1795),w=a(3608),I=a(1329),P=a(6075),S=a(4650);function k(zt,Yt){if(1&zt){const It=S.EpF();
1S.TgZ(0,"div",5)(1,"globot-button",6),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw();return S.KtG(Sn.onClickBackEvent(Rn))}),S.qZA()()}if(2&zt){const It=S.oxw();S.xp6(1),S.Q6J("text",It.textBack)}}function z(zt,Yt){if(1&zt){const It=S.EpF();S.TgZ(0,"div",7)(1,"globot-button",6),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw();return S.KtG(Sn.onClickBackEvent(Rn))}),S.qZA()()}if(2&zt){const It=S.oxw();S.xp6(1),S.Q6J("text",It.textBack)}}function F(zt,Yt){if(1&zt){const It=S.EpF();S.TgZ(0,"div",8)(1,"globot-button",9),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw();return S.KtG(Sn.onClickNextEvent(Rn))}),S.qZA()()}if(2&zt){const It=S.oxw();S.xp6(1),S.Q6J("text",It.textNext)}}function ne(zt,Yt){if(1&zt){const It=S.EpF();S.ynx(0),S.TgZ(1,"div",10)(2,"div",11)(3,"globot-button",12),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw();return S.KtG(Sn.onClickBackEvent(Rn))}),S.qZA()(),S.TgZ(4,"div",13)(5,"globot-button",14),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw();return S.KtG(Sn.onClickNextEvent(Rn))}),S.qZA()()(),S.BQk()}if(2&zt){const It=S.oxw();S.xp6(3),S.Q6J("text",It.textBack),S.xp6(2),S.Q6J("text",It.textNext)}}function B(zt,Yt){if(1&zt){const It=S.EpF();S.ynx(0),S.TgZ(1,"div",16)(2,"globot-button",12),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw(2);return S.KtG(Sn.onClickBackEvent(Rn))}),S.qZA()(),S.BQk()}if(2&zt){const It=S.oxw(2);S.xp6(2),S.Q6J("text",It.textBack)}}function G(zt,Yt){if(1&zt){const It=S.EpF();S.ynx(0),S.TgZ(1,"div",17)(2,"globot-button",14),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw(2);return S.KtG(Sn.onClickNextEvent(Rn))}),S.qZA()(),S.BQk()}if(2&zt){const It=S.oxw(2);S.xp6(2),S.Q6J("text",It.textNext)}}function W(zt,Yt){if(1&zt){const It=S.EpF();S.ynx(0),S.TgZ(1,"div",16)(2,"globot-button",12),S.NdJ("clickEvent",function(Rn){S.CHM(It);const Sn=S.oxw(2);return S.KtG(Sn.onClickBackEvent(Rn))}),S.qZA()(),S.BQk()}if(2&zt){const It=S.oxw(2);S.xp6(2),S.Q6J("text",It.textBack)}}function Y(zt,Yt){if(1&zt&&(S.YNc(0,B,3,1,"ng-container",15),S.YNc(1,G,3,1,"ng-container",15),S.YNc(2,W,3,1,"ng-container",15)),2&zt){const It=S.oxw();S.Q6J("ngIf",It.isMobile&&It.visibleBack),S.xp6(1),S.Q6J("ngIf",It.isMobile&&It.visibleNext),S.xp6(1),S.Q6J("ngIf",It.isMobile&&It.visibleCenter)}}const fe="@media (min-height: 767px){.layout-button-left[_ngcontent-%COMP%]{position:absolute;bottom:10px;left:10px;width:calc(50% - 20px)}.layout-button-right[_ngcontent-%COMP%]{position:absolute;bottom:10px;right:10px;width:calc(50% - 20px);text-align:right}}@media (max-height: 765px){.container[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:row;gap:30px;justify-content:space-between;align-items:center;width:100%}.layout-button-left[_ngcontent-%COMP%], .layout-button-right[_ngcontent-%COMP%]{position:relative;width:100%}}";let N=(()=>{class zt{constructor(){this.visibleBack=!1,this.visibleNext=!1,this.visibleCenter=!1,this.textBack="",this.textNext="",this.isMobile=window.innerWidth<768,this.clickBack=new S.vpe,this.clickNext=new S.vpe,this.style=""}onClickBackEvent(It){this.clickBack.emit(It)}onClickNextEvent(It){this.clickNext.emit(It)}}return zt.\u0275fac=function(It){return new(It||zt)},zt.\u0275cmp=S.Xpm({type:zt,selectors:[["globot-button-steps"]],inputs:{visibleBack:"visibleBack",visibleNext:"visibleNext",visibleCenter:"visibleCenter",textBack:"textBack",textNext:"textNext"},outputs:{clickBack:"clickBack",clickNext:"clickNext"},standalone:!0,features:[S.jDz],decls:6,vars:5,consts:[["style","position: absolute; bottom: 2vh; left: 10px",4,"ngIf"],["style","position: absolute; bottom: 2vh; left: 45%; width: 150px",4,"ngIf"],["style","position: absolute; bottom: 2vh; right: 10px; text-align: right",4,"ngIf"],[4,"ngIf","ngIfElse"],["oneButton",""],[2,"position","absolute","bottom","2vh","left","10px"],["styleClass","secondary","icon","pi pi-arrow-left","iconPosition","left","width","w-100",3,"text","clickEvent"],[2,"position","absolute","bottom","2vh","left","45%","width","150px"],[2,"position","absolute","bottom","2vh","right","10px","text-align","right"],["styleClass","raised","icon","pi pi-arrow-right","iconPosition","right","width","w-100",3,"text","clickEvent"],[1,"container"],[1,"layout-button-left"],["styleClass","secondary","width","w-100","icon","pi pi-arrow-left",3,"text","clickEvent"],[1,"layout-button-right"],["styleClass","raised","width","w-100","iconPosition","right","icon","pi pi-arrow-right",3,"text","clickEvent"],[4,"ngIf"],[2,"position","relative","width","85vw"],[2,"position","relative","bottom","10px","width","85vw"]],template:function(It,bn){if(1&It&&(S.YNc(0,k,2,1,"div",0),S.YNc(1,z,2,1,"div",1),S.YNc(2,F,2,1,"div",2),S.YNc(3,ne,6,2,"ng-container",3),S.YNc(4,Y,3,3,"ng-template",null,4,S.W1O)),2&It){const Rn=S.MAs(5);S.Q6J("ngIf",bn.visibleBack&&!bn.isMobile),S.xp6(1),S.Q6J("ngIf",bn.visibleCenter&&!bn.isMobile),S.xp6(1),S.Q6J("ngIf",bn.visibleNext&&!bn.isMobile),S.xp6(1),S.Q6J("ngIf",bn.visibleNext&&bn.visibleBack&&bn.isMobile)("ngIfElse",Rn)}},dependencies:[t.O5,I.z],styles:[fe,fe]}),zt})();var Q=a(7772);let Oe=(()=>{class zt{}return zt.\u0275fac=function(It){return new(It||zt)},zt.\u0275mod=S.oAB({type:zt}),zt.\u0275inj=S.cJS({imports:[t.ez]}),zt})();var K=a(7913),X=a(8377),V=a(5722),q=a(1493),Ee=a(7804),ye=a(1208),nt=a(7932),at=a(8235),me=a(2174),ve=a(585),je=a(5922),Xe=a(9541),rt=a(8396),mt=a(3631),$t=a(613),tn=a(2210),yt=a(1989),bt=a(3054),Ye=a(6679),Nt=a(8639),xn=a(1740),pn=a(8596);let _n=(()=>{class zt{}return zt.\u0275fac=function(It){return new(It||zt)},zt.\u0275mod=S.oAB({type:zt}),zt.\u0275inj=S.cJS({imports:[t.ez,e.hJ,s.Gg,D.u5,q.S,x.D,M.T,D.UX,w.z,I.z,N,P.T,Q.$,Oe,K.Iu,X.kK,V.q4,Ee.e$,ye.QG,nt.L,at.q,me.fx,ve._8,je.S,Xe.vQ,rt.U$,mt.WN,$t.cc,tn.kW,yt.nD,bt.A,Ye.W,Nt.TX,xn.j,pn.K]}),zt})()},5602:(o,u,a)=>{"use strict";a.d(u,{O:()=>s});var t=a(4650);const e=["*"];let s=(()=>{class D{constructor(){this.tile="",this.message="No hay informaci\xf3n"}}return D.\u0275fac=function(M){return new(M||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["globot-no-info"]],inputs:{tile:"tile",message:"message"},ngContentSelectors:e,decls:12,vars:2,consts:[[1,"container-center"],["xmlns","http://www.w3.org/2000/svg","width","101","height","94","viewBox","0 0 101 94","fill","none"],["opacity","0.6"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.375 43.8561C0.375 19.003 23.5005 0 50.5 0C77.4995 0 100.625 19.003 100.625 43.8561C100.625 68.7092 77.4995 87.7122 50.5 87.7122C47.3459 87.7122 44.1918 87.4636 41.077 86.9401C33.9312 92.0835 25.2019 94.5308 16.4202 93.8764C15.6088 93.8241 14.8367 93.5493 14.1561 93.1043C13.4756 92.6593 12.9389 92.0442 12.5725 91.3244C12.206 90.6046 12.0228 89.8063 12.0621 88.9948C12.1014 88.1834 12.3369 87.3981 12.7557 86.7176C14.8105 83.4065 15.936 79.6111 16.0276 75.711C6.49993 67.8193 0.375 56.5379 0.375 43.8561Z","fill","#DA94FB"],["d","M50.5001 73.408C70.7386 73.408 87.1451 60.7047 87.1451 45.0343C87.1451 29.364 70.7386 16.6607 50.5001 16.6607C30.2617 16.6607 13.8552 29.364 13.8552 45.0343C13.8552 60.7047 30.2617 73.408 50.5001 73.408Z","fill","white"],["d","M38.695 36.2924C41.7182 36.2924 44.1655 38.7397 44.1655 41.7629V49.0134C44.1655 52.0366 41.7182 54.4839 38.695 54.4839C35.6718 54.4839 33.2244 52.0366 33.2244 49.0134V41.7629C33.2244 38.7397 35.6718 36.2924 38.695 36.2924Z","fill","#DA94FB"],["d","M63.3264 36.2924C66.3496 36.2924 68.797 38.7397 68.797 41.7629V49.0134C68.797 52.0366 66.3496 54.4839 63.3264 54.4839C60.3032 54.4839 57.8558 52.0366 57.8558 49.0134V41.7629C57.8558 38.7397 60.3032 36.2924 63.3264 36.2924Z","fill","#DA94FB"],[1,"mt-5"]],template:function(M,w){1&M&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"g",2),t._UZ(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6),t.qZA()(),t.kcU(),t.TgZ(7,"h1",7),t._uU(8),t.qZA(),t.TgZ(9,"p"),t._uU(10),t.qZA(),t.Hsn(11),t.qZA()),2&M&&(t.xp6(8),t.Oqu(w.tile),t.xp6(2),t.Oqu(w.message))},styles:[".container-center[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:55vh;width:75vw}h1[_ngcontent-%COMP%]{color:var(--color-text);font-family:Inter,serif;font-size:20px;font-style:normal;font-weight:700;line-height:normal}@media screen and (max-width: 768px){h1[_ngcontent-%COMP%]{color:var(--color-text);font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:normal}p[_ngcontent-%COMP%]{text-align:center;color:var(--color-text);font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}}"]}),D})()},8568:(o,u,a)=>{"use strict";a.d(u,{P:()=>s});var t=a(7579),e=a(4650);let s=(()=>{class D{constructor(){this.config={ripple:!1,inputStyle:"outlined",menuMode:"static",colorScheme:"light",theme:"lara-light-indigo",scale:14},this.state={staticMenuDesktopInactive:!1,overlayMenuActive:!1,profileSidebarVisible:!1,
1configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,sidebarCollapsed:!1},this.configUpdate=new t.x,this.overlayOpen=new t.x,this.configUpdate$=this.configUpdate.asObservable(),this.overlayOpen$=this.overlayOpen.asObservable()}onMenuToggle(){this.isOverlay()&&(this.state.overlayMenuActive=!this.state.overlayMenuActive,this.state.overlayMenuActive&&this.overlayOpen.next(null)),this.isDesktop()?this.state.staticMenuDesktopInactive=!this.state.staticMenuDesktopInactive:(this.state.staticMenuMobileActive=!this.state.staticMenuMobileActive,this.state.staticMenuMobileActive&&this.overlayOpen.next(null))}showProfileSidebar(){this.state.profileSidebarVisible=!this.state.profileSidebarVisible,this.state.profileSidebarVisible&&this.overlayOpen.next(null)}showConfigSidebar(){this.state.configSidebarVisible=!0}isOverlay(){return"overlay"===this.config.menuMode}isDesktop(){return window.innerWidth>991}isMobile(){return!this.isDesktop()}toggleSidebar(){this.state.sidebarCollapsed=!this.state.sidebarCollapsed}onConfigUpdate(){this.configUpdate.next(this.config)}}return D.\u0275fac=function(M){return new(M||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},6075:(o,u,a)=>{"use strict";a.d(u,{T:()=>ne});var t=a(6895),e=a(4650),s=a(4006),D=a(585),x=a(7913),M=a(3054),w=a(805);function I(B,G){1&B&&e._UZ(0,"i",23)}function P(B,G){1&B&&e._UZ(0,"i",23)}function S(B,G){if(1&B&&(e.TgZ(0,"div",24),e._UZ(1,"i",25),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&B){const W=e.oxw();e.xp6(3),e.Oqu(W.channelNote)}}const z="00:00",F="00:00";let ne=(()=>{class B{constructor(){this.config=null,this.saving=!1,this.channelNote=null,this.save=new e.vpe,this.awayMessageMaxLength=500,this.scheduleEnabled=!1,this.startTime=null,this.endTime=null,this.awayMessageEnabled=!1,this.awayMessageText="",this.awayMessagePending=!1}ngOnChanges(W){var Y;W.config&&this.config&&(this.scheduleEnabled=!!this.config.attention_schedule_enabled,this.startTime=this.toDate(this.config.attention_schedule_start_time),this.endTime=this.toDate(this.config.attention_schedule_end_time),this.awayMessagePending||(this.awayMessageEnabled=!!this.config.away_message_enabled,this.awayMessageText=null!==(Y=this.config.away_message_text)&&void 0!==Y?Y:""))}onScheduleToggle(W){if(this.scheduleEnabled=W,!W)return void this.save.emit({attention_schedule_enabled:!1});const Y={attention_schedule_enabled:!0};this.startTime||(this.startTime=this.toDate(z),Y.attention_schedule_start_time=z),this.endTime||(this.endTime=this.toDate(F),Y.attention_schedule_end_time=F),this.save.emit(Y)}onStartTimeClose(){var W,Y;const fe=this.toTimeString(this.startTime);fe!==(null!==(Y=null===(W=this.config)||void 0===W?void 0:W.attention_schedule_start_time)&&void 0!==Y?Y:null)&&this.save.emit({attention_schedule_start_time:fe})}onEndTimeClose(){var W,Y;const fe=this.toTimeString(this.endTime);fe!==(null!==(Y=null===(W=this.config)||void 0===W?void 0:W.attention_schedule_end_time)&&void 0!==Y?Y:null)&&this.save.emit({attention_schedule_end_time:fe})}onAwayMessageToggle(W){if(this.awayMessageEnabled=W,!W)return this.awayMessagePending=!1,void this.save.emit({away_message_enabled:!1});this.awayMessageText.trim()?this.save.emit({away_message_enabled:!0}):this.awayMessagePending=!0}onAwayMessageBlur(){var W,Y,fe;const N=this.awayMessageText.trim()||null,Q=N!==(null!==(Y=null===(W=this.config)||void 0===W?void 0:W.away_message_text)&&void 0!==Y?Y:null),O=this.awayMessageEnabled!==!(null===(fe=this.config)||void 0===fe||!fe.away_message_enabled);if(this.awayMessagePending=!1,!Q&&!O)return;const ee={};Q&&(ee.away_message_text=N),O&&(ee.away_message_enabled=this.awayMessageEnabled),this.save.emit(ee)}toDate(W){if(!W)return null;const[Y,fe]=W.split(":").map(Number),N=new Date;return N.setHours(Y,fe,0,0),N}toTimeString(W){return W?`${W.getHours().toString().padStart(2,"0")}:${W.getMinutes().toString().padStart(2,"0")}`:null}}return B.\u0275fac=function(W){return new(W||B)},B.\u0275cmp=e.Xpm({type:B,selectors:[["globot-attention-schedule-config"]],inputs:{config:"config",saving:"saving",channelNote:"channelNote"},outputs:{save:"save"},standalone:!0,features:[e.TTD,e.jDz],decls:44,vars:28,consts:[[1,"asc-top"],[1,"asc-top-left"],[1,"asc-title-row"],[1,"asc-title"],[1,"asc-badge"],[1,"asc-sub"],[1,"asc-switch-col"],[3,"ngModel","disabled","onChange"],[1,"asc-switch-label"],[1,"asc-divider"],[1,"asc-body"],[1,"asc-time-row"],[1,"asc-time-col"],[1,"asc-field-label"],["hourFormat","24","appendTo","body",1,"asc-time-box",3,"ngModel","timeOnly","showIcon","disabled","ngModelChange","onClose"],["pTemplate","inputicon"],[1,"asc-tz-row"],[1,"pi","pi-globe"],["class","asc-note",4,"ngIf"],[1,"asc-away"],[1,"asc-away-top"],[1,"asc-title","asc-title--sm"],["pInputTextarea","","placeholder","Ej.: Estamos fuera de horario \u{1f64f}",1,"asc-away-textarea",3,"rows","disabled","ngModel","maxlength","ngModelChange","blur"],[1,"pi","pi-clock"],[1,"asc-note"],[1,"pi","pi-info-circle"]],template:function(W,Y){1&W&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e._uU(4,"Horario de atenci\xf3n"),e.qZA(),e.TgZ(5,"span",4),e._uU(6,"Nuevo"),e.qZA()(),e.TgZ(7,"span",5),e._uU(8,"Fuera de este horario, el asistente no responde con IA (el mensaje queda guardado)."),e.qZA()(),e.TgZ(9,"div",6)(10,"p-inputSwitch",7),e.NdJ("onChange",function(N){return Y.onScheduleToggle(N.checked)}),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA()()(),e._UZ(13,"div",9),e.TgZ(14,"div",10)(15,"div",11)(16,"div",12)(17,"span",13),e._uU(18,"Desde"),e.qZA(),e.TgZ(19,"p-calendar",14),e.NdJ("ngModelChange",function(N){return Y.startTime=N})("onClose",function(){return Y.onStartTimeClose()}),e.YNc(20,I,1,0,"ng-template",15),e.qZA()(),e.TgZ(21,"div",12)(22,"span",13),e._uU(23,"Hasta"),e.qZA(),e.TgZ(24,"p-calendar",14),e.NdJ("ngModelChange",function(N){return Y.endTime=N})("onClose",function(){return Y.onEndTimeClose()}),e.YNc(25,P,1,0,"ng-template",15),e.qZA()()(),e.TgZ(26,"div",16),e._UZ(27,"i",17),e.TgZ(28,"span"),e._uU(29,"Zona horaria: America/Santiago"),e.qZA()(),e.YNc(30,S,4,1,"div",18),e.qZA(),e._UZ(31,"div",9),e.TgZ(32,"div",19)(33,"div",20)(34,"div",1)(35,"span",21),e._uU(36,"Mensaje de aviso fuera de horario"),e.qZA(),e.TgZ(37,"span",5),e._uU(38),e.qZA()(),e.TgZ(39,"div",6)(40,"p-inputSwitch",7),e.NdJ("onChange",function(N){return Y.onAwayMessageToggle(N.checked)}),e.qZA(),e.TgZ(41,"span",8),e._uU(42),e.qZA()()(),e.TgZ(43,"textarea",22),e.NdJ("ngModelChange",function(N){return Y.awayMessageText=N})("blur",function(){return Y.onAwayMessageBlur()}),e.qZA()()),2&W&&(e.xp6(10),e.Q6J("ngModel",Y.scheduleEnabled)("disabled",Y.saving),e.xp6(1),e.ekj("asc-switch-label--off",!Y.scheduleEnabled),e.xp6(1),e.Oqu(Y.scheduleEnabled?"Activo":"Inactivo"),e.xp6(2),e.ekj("asc-body--muted",!Y.scheduleEnabled),e.xp6(
15),e.Q6J("ngModel",Y.startTime)("timeOnly",!0)("showIcon",!0)("disabled",Y.saving||!Y.scheduleEnabled),e.xp6(5),e.Q6J("ngModel",Y.endTime)("timeOnly",!0)("showIcon",!0)("disabled",Y.saving||!Y.scheduleEnabled),e.xp6(6),e.Q6J("ngIf",Y.channelNote),e.xp6(2),e.ekj("asc-body--muted",!Y.scheduleEnabled),e.xp6(6),e.Oqu(Y.scheduleEnabled?"Opcional. Se env\xeda como \xfanica respuesta cuando llega un mensaje fuera de horario.":"Activa primero el horario de atenci\xf3n para poder configurar este aviso."),e.xp6(2),e.Q6J("ngModel",Y.awayMessageEnabled)("disabled",Y.saving||!Y.scheduleEnabled),e.xp6(1),e.ekj("asc-switch-label--off",!Y.awayMessageEnabled),e.xp6(1),e.Oqu(Y.awayMessageEnabled?"Activo":"Inactivo"),e.xp6(1),e.Q6J("rows",2)("disabled",Y.saving||!Y.scheduleEnabled||!Y.awayMessageEnabled)("ngModel",Y.awayMessageText)("maxlength",Y.awayMessageMaxLength))},dependencies:[t.ez,t.O5,s.u5,s.Fj,s.JJ,s.nD,s.On,D._8,D.f,w.jx,x.Iu,x.Ql,M.A,M.g,w.m8],styles:["[_nghost-%COMP%]{display:block}.asc-top[_ngcontent-%COMP%], .asc-away-top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px}.asc-away-top[_ngcontent-%COMP%]{padding:0}.asc-top-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;flex:1}.asc-title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.asc-title[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#111827}.asc-title--sm[_ngcontent-%COMP%]{font-size:13px}.asc-badge[_ngcontent-%COMP%]{background:#f3f0ff;color:#7b5cf5;font-size:10px;font-weight:700;border-radius:12px;padding:3px 8px}.asc-sub[_ngcontent-%COMP%]{font-size:12px;color:#6b7280;line-height:1.4}.asc-switch-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}.asc-switch-label[_ngcontent-%COMP%]{font-size:10px;font-weight:600;color:#7b5cf5}.asc-switch-label.asc-switch-label--off[_ngcontent-%COMP%]{color:#9ca3af}.asc-divider[_ngcontent-%COMP%]{height:1px;background:#f0f0f0}.asc-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:20px}.asc-body--muted[_ngcontent-%COMP%]{opacity:.45;pointer-events:none}.asc-time-row[_ngcontent-%COMP%]{display:flex;gap:16px}.asc-time-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.asc-field-label[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#6b7280}.asc-time-box[_ngcontent-%COMP%]{width:100%}.asc-time-box[_ngcontent-%COMP%] .p-inputtext{width:100%;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;padding:10px 14px;font-size:14px;font-weight:600;color:#111827}.asc-time-box[_ngcontent-%COMP%] .p-datepicker-trigger{background:transparent;border:none;color:#9ca3af}.asc-tz-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.asc-tz-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#9ca3af;font-size:13px}.asc-tz-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:11px;color:#9ca3af}.asc-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:#f3f0ff;border-radius:8px;padding:10px 14px}.asc-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#7b5cf5;font-size:13px;flex-shrink:0}.asc-note[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:11px;font-weight:500;color:#5b3fd9;line-height:1.4}.asc-away[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;padding:20px}.asc-away-textarea[_ngcontent-%COMP%]{width:100%;resize:vertical;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;padding:10px 14px;font-size:13px;color:#111827}@media (max-width: 576px){.asc-top[_ngcontent-%COMP%], .asc-body[_ngcontent-%COMP%], .asc-away[_ngcontent-%COMP%]{padding:16px}.asc-time-row[_ngcontent-%COMP%]{flex-direction:column}}"]}),B})()},1329:(o,u,a)=>{"use strict";a.d(u,{z:()=>w});var t=a(4650),e=a(6895);function s(I,P){1&I&&t._UZ(0,"i",3)}function D(I,P){if(1&I&&t._UZ(0,"i",4),2&I){const S=t.oxw();t.Q6J("ngClass",S.icon)}}function x(I,P){if(1&I&&t._UZ(0,"i",4),2&I){const S=t.oxw();t.Q6J("ngClass",S.icon)}}function M(I,P){1&I&&t._UZ(0,"i",3)}let w=(()=>{class I{constructor(){this.text="",this.icon="",this.iconPosition="left",this.styleClass="raised",this.disabled=!1,this.loading=!1,this.type="button",this.width="",this.clickEvent=new t.vpe,this.style=""}onClickEvent(S){this.clickEvent.emit(S)}ngOnInit(){this.style=`${this.styleClass} ${this.width}`}}return I.\u0275fac=function(S){return new(S||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["globot-button"]],inputs:{text:"text",icon:"icon",iconPosition:"iconPosition",styleClass:"styleClass",disabled:"disabled",loading:"loading",type:"type",width:"width"},outputs:{clickEvent:"clickEvent"},standalone:!0,features:[t.jDz],decls:6,vars:7,consts:[[3,"disabled","ngClass","click"],["class","pi pi-spin pi-spinner","style","font-size: 1rem",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"pi","pi-spin","pi-spinner",2,"font-size","1rem"],[3,"ngClass"]],template:function(S,k){1&S&&(t.TgZ(0,"button",0),t.NdJ("click",function(F){return k.onClickEvent(F)}),t.YNc(1,s,1,0,"i",1),t.YNc(2,D,1,1,"i",2),t._uU(3),t.YNc(4,x,1,1,"i",2),t.YNc(5,M,1,0,"i",1),t.qZA()),2&S&&(t.Q6J("disabled",k.loading)("ngClass",k.style),t.xp6(1),t.Q6J("ngIf","left"===k.iconPosition&&!0===k.loading),t.xp6(1),t.Q6J("ngIf","left"===k.iconPosition&&!1===k.loading),t.xp6(1),t.hij(" ",k.text," "),t.xp6(1),t.Q6J("ngIf","right"===k.iconPosition&&!1===k.loading),t.xp6(1),t.Q6J("ngIf","right"===k.iconPosition&&!0===k.loading))},dependencies:[e.mk,e.O5],styles:['.raised[_ngcontent-%COMP%]{border:none;display:flex;padding:12px;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:var(--color-primary);color:var(--light-text-inverse-text, #fff);font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.disabled-button[_ngcontent-%COMP%]{opacity:.6!important}.raised[_ngcontent-%COMP%]:hover{background:var(--Primary-1, #9277ff);cursor:pointer}.facebook[_ngcontent-%COMP%]{border:none;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:#0866ff;padding:12px 25px;font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;color:#fff;font-size:1.2rem;font-weight:600;font-style:bold;line-height:24px}.facebook[_ngcontent-%COMP%]:hover{background:var(--Primary-1, #0d65d9);cursor:pointer}.whatsapp[_ngcontent-%COMP%]{border:none;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:#25d366;padding:12px 25px;font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;color:#fff;font-size:1.2rem;font-weight:600;line-height:24px}.whatsapp[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.whatsapp[_ngcontent-%COMP%]:hover{background:#128c7e;cursor:pointer}.instagram[_ngcontent-%COMP%]{border:none;display:flex;padding:14px 24px;justify-content:center;align-items:center;gap:10px;border-radius:10px;background:linear-gradient(135deg,#fcaf45 0%,#e1306c 50%,#833ab4 100%);font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;color:#fff;font-size:14px;font-weight:700;line-height:1.4}.instagram[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px}.instagram[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#e09a38 0%,#c42860 50%,#6e319a 100%);cursor:pointer}.facebook-outline[_ngcontent-%COMP%]{border:1px solid #e5e7eb;display:flex;padding:12px 24px;justify-content:center;align-items:center;gap:10px;border-radius:10px;background:#ffffff;font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;color:#1877f2;font-size:13px;font-weight:500;line-height:1.4}.facebook-outline[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px;color:#1877f2}.facebook-outline[_ngcontent-%COMP%]:hover{background:#f0f7ff;border-color:#1877f2;cursor:pointer}.primary[_ngcontent-%COMP%]{border:none;border-radius:4px;background:var(--color-primary);
1width:200px;box-shadow:0 2px 4px -2px #0000001a,0 4px 6px -1px #0000001a;display:flex;padding:12px;justify-content:center;align-items:center;gap:8px;color:var(--light-text-inverse-text, #fff);font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:16px;font-style:normal;font-weight:500;line-height:15px}.secondary[_ngcontent-%COMP%]{border:none;border-radius:4px;background:var(--light-surfaces-content, #fff);width:200px;box-shadow:0 2px 4px -2px #0000001a,0 4px 6px -1px #0000001a;display:flex;padding:12px;justify-content:center;align-items:center;gap:8px;color:var(--color-primary);font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.secondary[_ngcontent-%COMP%]:hover{background:var(--light-surfaces-content, #fff);cursor:pointer}.w-100[_ngcontent-%COMP%]{width:100%}.w-90[_ngcontent-%COMP%]{width:90%}.w-80[_ngcontent-%COMP%]{width:80%}.w-75[_ngcontent-%COMP%]{width:75%}.w-66[_ngcontent-%COMP%]{width:66%}.w-50[_ngcontent-%COMP%]{width:50%}.w-33[_ngcontent-%COMP%]{width:33%}.w-25[_ngcontent-%COMP%]{width:25%}.w-auto[_ngcontent-%COMP%]{width:auto}@media (max-width: 767px){.raised[_ngcontent-%COMP%]{display:flex;padding:12px;justify-content:center;align-items:center;gap:8px;flex-shrink:0;border-radius:4px;background:var(--color-primary)}.secondary[_ngcontent-%COMP%]{display:flex;padding:12px;justify-content:center;align-items:center;gap:8px;flex-shrink:0;width:100%;color:var(--color-primary);font-family:apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:16px;font-style:normal;font-weight:500;line-height:24px}}']}),I})()},8596:(o,u,a)=>{"use strict";a.d(u,{K:()=>O});var t=a(6895),e=a(4650);function s(ee,ue){if(1&ee&&e._UZ(0,"img",47),2&ee){const _e=e.oxw(3);e.Q6J("src",_e.profilePictureUrl,e.LSH)}}function D(ee,ue){if(1&ee&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(3);e.xp6(1),e.hij(" ",_e.username.charAt(0).toUpperCase()," ")}}function x(ee,ue){if(1&ee&&(e.TgZ(0,"span",35),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(3);e.xp6(1),e.Oqu(_e.publicReplyMessage)}}function M(ee,ue){1&ee&&(e.TgZ(0,"span",49),e._uU(1,"Escribe tu respuesta p\xfablica..."),e.qZA())}function w(ee,ue){1&ee&&(e.TgZ(0,"span",35),e._uU(1,"Gracias por escribirnos \u{1f60a} Revisa tus DMs."),e.qZA())}function I(ee,ue){if(1&ee&&(e.TgZ(0,"div",41)(1,"div",42),e.YNc(2,s,1,1,"img",43),e.YNc(3,D,2,1,"span",44),e.qZA(),e.TgZ(4,"div",31)(5,"div",32)(6,"span",33),e._uU(7),e.qZA(),e.TgZ(8,"span",34),e._uU(9,"Ahora"),e.qZA()(),e.YNc(10,x,2,1,"span",45),e.YNc(11,M,2,0,"span",46),e.YNc(12,w,2,0,"span",45),e.qZA()()),2&ee){const _e=e.oxw(2);e.xp6(2),e.Q6J("ngIf",_e.profilePictureUrl),e.xp6(1),e.Q6J("ngIf",!_e.profilePictureUrl),e.xp6(4),e.Oqu(_e.username),e.xp6(3),e.Q6J("ngIf",_e.sendPublicReply&&_e.publicReplyMessage),e.xp6(1),e.Q6J("ngIf",_e.sendPublicReply&&!_e.publicReplyMessage),e.xp6(1),e.Q6J("ngIf",!_e.sendPublicReply)}}function P(ee,ue){if(1&ee&&(e.ynx(0),e.TgZ(1,"div",22),e._UZ(2,"div",23),e.qZA(),e.TgZ(3,"div",24)(4,"span",25),e._uU(5,"Comentarios"),e.qZA(),e.TgZ(6,"span",26),e._uU(7,"\u22ef"),e.qZA()(),e.TgZ(8,"div",27),e._uU(9,"Para ti \u2304"),e.qZA(),e._UZ(10,"div",28),e.TgZ(11,"div",29),e._UZ(12,"div",30),e.TgZ(13,"div",31)(14,"div",32)(15,"span",33),e._uU(16,"nombre_usuario"),e.qZA(),e.TgZ(17,"span",34),e._uU(18,"1 sem"),e.qZA()(),e.TgZ(19,"span",35),e._uU(20,"Me gusta \u{1f60d}"),e.qZA(),e.TgZ(21,"div",36)(22,"span",37),e._uU(23,"Responder"),e.qZA(),e.TgZ(24,"span",37),e._uU(25,"Ocultar"),e.qZA()()(),e.TgZ(26,"div",38)(27,"span",39),e._uU(28,"\u2661"),e.qZA()()(),e.YNc(29,I,13,6,"div",40),e.BQk()),2&ee){const _e=e.oxw();e.xp6(29),e.Q6J("ngIf",_e.sendDm||_e.sendPublicReply)}}function S(ee,ue){if(1&ee&&e._UZ(0,"img",47),2&ee){const _e=e.oxw(2);e.Q6J("src",_e.profilePictureUrl,e.LSH)}}function k(ee,ue){if(1&ee&&(e.TgZ(0,"span",48),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(2);e.xp6(1),e.hij(" ",_e.username.charAt(0).toUpperCase()," ")}}function z(ee,ue){if(1&ee&&e._UZ(0,"img",47),2&ee){const _e=e.oxw(2);e.Q6J("src",_e.profilePictureUrl,e.LSH)}}function F(ee,ue){if(1&ee&&(e.TgZ(0,"span",69),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(2);e.xp6(1),e.hij(" ",_e.username.charAt(0).toUpperCase()," ")}}function ne(ee,ue){if(1&ee&&(e.TgZ(0,"div",70),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(2);e.xp6(1),e.Oqu(_e.dmMessage)}}function B(ee,ue){1&ee&&(e.TgZ(0,"div",71),e._uU(1,"Escribe tu mensaje directo..."),e.qZA())}function G(ee,ue){if(1&ee&&(e.ynx(0),e.TgZ(1,"div",50)(2,"div",51),e.YNc(3,S,1,1,"img",43),e.YNc(4,k,2,1,"span",44),e.qZA(),e.TgZ(5,"div",52)(6,"span",53),e._uU(7),e.qZA(),e.TgZ(8,"span",54),e._uU(9,"Activo/a ahora"),e.qZA()(),e.TgZ(10,"div",55),e.O4$(),e.TgZ(11,"svg",56),e._UZ(12,"path",57),e.qZA(),e.TgZ(13,"svg",56),e._UZ(14,"polygon",58)(15,"rect",59),e.qZA()()(),e.kcU(),e._UZ(16,"div",28),e.TgZ(17,"div",60)(18,"span",61),e._uU(19),e.qZA(),e.TgZ(20,"div",62)(21,"div",63),e.YNc(22,z,1,1,"img",43),e.YNc(23,F,2,1,"span",64),e.qZA(),e.YNc(24,ne,2,1,"div",65),e.YNc(25,B,2,0,"ng-template",null,66,e.W1O),e.qZA(),e.TgZ(27,"div",67)(28,"div",68),e._uU(29,"Muchas gracias \u{1f60a}"),e.qZA()()(),e.BQk()),2&ee){const _e=e.MAs(26),be=e.oxw();e.xp6(3),e.Q6J("ngIf",be.profilePictureUrl),e.xp6(1),e.Q6J("ngIf",!be.profilePictureUrl),e.xp6(3),e.Oqu(be.username),e.xp6(12),e.hij("",be.username," te envi\xf3 un DM sobre un comentario en su publicaci\xf3n."),e.xp6(3),e.Q6J("ngIf",be.profilePictureUrl),e.xp6(1),e.Q6J("ngIf",!be.profilePictureUrl),e.xp6(1),e.Q6J("ngIf",be.sendDm&&be.dmMessage)("ngIfElse",_e)}}function W(ee,ue){1&ee&&(e.ynx(0),e.TgZ(1,"div",72)(2,"span"),e._uU(3,"\u2764\ufe0f"),e.qZA(),e.TgZ(4,"span"),e._uU(5,"\u{1f64c}"),e.qZA(),e.TgZ(6,"span"),e._uU(7,"\u{1f525}"),e.qZA(),e.TgZ(8,"span"),e._uU(9,"\u{1f4af}"),e.qZA(),e.TgZ(10,"span"),e._uU(11,"\u{1f62e}"),e.qZA(),e.TgZ(12,"span"),e._uU(13,"\u{1f60d}"),e.qZA(),e.TgZ(14,"span"),e._uU(15,"\u{1f602}"),e.qZA()(),e._UZ(16,"div",28),e.BQk())}function Y(ee,ue){1&ee&&(e.ynx(0),e._UZ(1,"div",28),e.TgZ(2,"div",73)(3,"div",74),e.O4$(),e.TgZ(4,"svg",75),e._UZ(5,"path",76)(6,"circle",77),e.qZA()(),e.kcU(),e.TgZ(7,"span",78),e._uU(8,"Mensaje..."),e.qZA(),e.TgZ(9,"div",79),e.O4$(),e.TgZ(10,"svg",80),e._UZ(11,"path",81)(12,"path",82)(13,"line",83)(14,"line",84),e.qZA(),e.TgZ(15,"svg",80),e._UZ(16,"circle",85)(17,"line",86)(18,"line",87),e.qZA()()(),e.BQk())}function fe(ee,ue){if(1&ee&&e._UZ(0,"img",47),2&ee){const _e=e.oxw(2);e.Q6J("src",_e.profilePictureUrl,e.LSH)}}function N(ee,ue){if(1&ee&&(e.TgZ(0,"span",69),e._uU(1),e.qZA()),2&ee){const _e=e.oxw(2);e.xp6(1),e.hij(" ",_e.username.charAt(0).toUpperCase()," ")}}function Q(ee,ue){if(1&ee&&(e.ynx(0),e.TgZ(1,"div",73)(2,"div",63),e.YNc(3,fe,1,1,"img",43),e.YNc(4,N,2,1,"span",64),e.qZA(),e.TgZ(5,"span",78),e._uU(6,"A\xf1adir un comentario..."),e.qZA()(),e.BQk()),2&ee){const _e=e.oxw();e.xp6(3),e.Q6J("ngIf",_e.profilePictureUrl),e.xp6(1),e.Q6J("ngIf",!_e.profilePictureUrl)}}let O=(()=>{class ee{constructor(){this.username="tu.cuenta",this.profilePictureUrl="",this.dmMessage="",this.sendDm=!0,this.sendPublicReply=!1,this.publicReplyMessage="",this.activeTab="comments"}setTab(_e){this.activeTab=_e}}return ee.\u0275fac=function(_e){return new(_e||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["globot-instagram-phone-preview"]],inputs:{username:"username",profilePictureUrl:"profilePictureUrl",dmMessage:"dmMessage",sendDm:"sendDm",sendPublicReply:"sendPublicReply",publicReplyMessage:"publicReplyMessage"},standalone:!0,features:[e.jDz],decls:34,vars:9,consts:[[1,"phone-wrapper"],[1,"ph
1one-frame"],[1,"notch-area"],[1,"notch"],[1,"status-bar"],[1,"status-time"],[1,"status-icons"],[1,"icon-signal"],[1,"icon-wifi"],["width","15","height","11","viewBox","0 0 15 11","fill","white"],["d","M7.5 2.8C9.8 2.8 11.9 3.7 13.4 5.2l1.1-1.1C12.9 2.4 10.3 1.3 7.5 1.3S2.1 2.4.5 4.1l1.1 1.1C3.1 3.7 5.2 2.8 7.5 2.8z"],["d","M7.5 5.3c-1.5 0-2.9.6-3.9 1.6l1.1 1.1c.7-.7 1.7-1.2 2.8-1.2s2.1.4 2.8 1.2l1.1-1.1C10.4 5.9 9 5.3 7.5 5.3z"],["cx","7.5","cy","10","r","1.3"],[1,"icon-battery"],[1,"battery-body"],[1,"battery-level"],[1,"battery-tip"],[1,"ig-screen"],[4,"ngIf"],[1,"home-indicator"],[1,"preview-tabs"],[1,"preview-tab",3,"click"],[1,"ig-post-mini"],[1,"ig-sheet-handle"],[1,"ig-comments-header"],[1,"ig-comments-title"],[1,"ig-dots-sm"],[1,"ig-comments-filter"],[1,"ig-divider"],[1,"ig-comment"],[1,"ig-avatar-sm","ig-avatar-grey"],[1,"ig-comment-body"],[1,"ig-comment-meta"],[1,"ig-comment-user"],[1,"ig-comment-time"],[1,"ig-comment-text"],[1,"ig-comment-actions"],[1,"ig-comment-reply-link"],[1,"ig-heart-col"],[1,"ig-heart"],["class","ig-comment ig-comment--reply",4,"ngIf"],[1,"ig-comment","ig-comment--reply"],[1,"ig-avatar-sm","ig-avatar-sm--reply"],["alt","avatar",3,"src",4,"ngIf"],["class","ig-avatar-placeholder ig-avatar-placeholder--sm",4,"ngIf"],["class","ig-comment-text",4,"ngIf"],["class","ig-placeholder-text",4,"ngIf"],["alt","avatar",3,"src"],[1,"ig-avatar-placeholder","ig-avatar-placeholder--sm"],[1,"ig-placeholder-text"],[1,"ig-dm-header"],[1,"ig-avatar-sm"],[1,"ig-dm-header-info"],[1,"ig-dm-username"],[1,"ig-dm-meta"],[1,"ig-dm-header-icons"],["width","15","height","15","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9a16 16 0 0 0 6.91 6.91l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"],["points","23 7 16 12 23 17 23 7"],["x","1","y","5","width","15","height","14","rx","2","ry","2"],[1,"ig-dm-messages"],[1,"ig-dm-system"],[1,"ig-dm-row","ig-dm-row--left"],[1,"ig-avatar-xs"],["class","ig-avatar-placeholder","style","font-size: 8px;",4,"ngIf"],["class","ig-dm-bubble ig-dm-bubble--bot",4,"ngIf","ngIfElse"],["noDmMessage",""],[1,"ig-dm-row","ig-dm-row--right"],[1,"ig-dm-bubble","ig-dm-bubble--user"],[1,"ig-avatar-placeholder",2,"font-size","8px"],[1,"ig-dm-bubble","ig-dm-bubble--bot"],[1,"ig-dm-bubble","ig-dm-bubble--bot","ig-dm-bubble--placeholder"],[1,"ig-emoji-bar"],[1,"ig-input-row"],[1,"ig-dm-camera-btn"],["width","13","height","13","viewBox","0 0 24 24","fill","white","stroke","none"],["d","M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"],["cx","12","cy","13","r","4","fill","#1a73e8"],[1,"ig-input-placeholder"],[1,"ig-dm-input-icons"],["width","14","height","14","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",2,"color","#a8a8a8"],["d","M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"],["d","M19 10v2a7 7 0 0 1-14 0v-2"],["x1","12","y1","19","x2","12","y2","23"],["x1","8","y1","23","x2","16","y2","23"],["cx","12","cy","12","r","10"],["x1","12","y1","8","x2","12","y2","16"],["x1","8","y1","12","x2","16","y2","12"]],template:function(_e,be){1&_e&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"div",3),e.qZA(),e.TgZ(4,"div",4)(5,"span",5),e._uU(6,"9:41"),e.qZA(),e.TgZ(7,"div",6)(8,"span",7),e._UZ(9,"span")(10,"span")(11,"span")(12,"span"),e.qZA(),e.TgZ(13,"span",8),e.O4$(),e.TgZ(14,"svg",9),e._UZ(15,"path",10)(16,"path",11)(17,"circle",12),e.qZA()(),e.kcU(),e.TgZ(18,"span",13)(19,"span",14),e._UZ(20,"span",15),e.qZA(),e._UZ(21,"span",16),e.qZA()()(),e.TgZ(22,"div",17),e.YNc(23,P,30,1,"ng-container",18),e.YNc(24,G,30,8,"ng-container",18),e.qZA(),e.YNc(25,W,17,0,"ng-container",18),e.YNc(26,Y,19,0,"ng-container",18),e.YNc(27,Q,7,2,"ng-container",18),e._UZ(28,"div",19),e.qZA(),e.TgZ(29,"div",20)(30,"button",21),e.NdJ("click",function(){return be.setTab("comments")}),e._uU(31,"Comentarios"),e.qZA(),e.TgZ(32,"button",21),e.NdJ("click",function(){return be.setTab("dm")}),e._uU(33,"DM"),e.qZA()()()),2&_e&&(e.xp6(23),e.Q6J("ngIf","comments"===be.activeTab),e.xp6(1),e.Q6J("ngIf","dm"===be.activeTab),e.xp6(1),e.Q6J("ngIf","comments"===be.activeTab),e.xp6(1),e.Q6J("ngIf","dm"===be.activeTab),e.xp6(1),e.Q6J("ngIf","comments"===be.activeTab),e.xp6(3),e.ekj("preview-tab--active","comments"===be.activeTab),e.xp6(2),e.ekj("preview-tab--active","dm"===be.activeTab))},dependencies:[t.ez,t.O5],styles:['.phone-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:14px;-webkit-user-select:none;user-select:none}.phone-frame[_ngcontent-%COMP%]{width:256px;height:520px;background:#000000;border-radius:40px;border:8px solid #1c1c1e;outline:1.5px solid #3a3a3c;box-shadow:0 24px 64px #0000008c,inset 0 1px #ffffff12;display:flex;flex-direction:column;overflow:hidden;position:relative}.phone-frame[_ngcontent-%COMP%]:before{content:"";position:absolute;
1left:-11px;top:88px;width:3px;height:28px;background:#3a3a3c;border-radius:2px 0 0 2px;box-shadow:0 38px #3a3a3c,0 70px #3a3a3c}.phone-frame[_ngcontent-%COMP%]:after{content:"";position:absolute;right:-11px;top:118px;width:3px;height:48px;background:#3a3a3c;border-radius:0 2px 2px 0}.notch-area[_ngcontent-%COMP%]{display:flex;justify-content:center;background:#000000;padding-top:4px}.notch[_ngcontent-%COMP%]{width:96px;height:24px;background:#1c1c1e;border-radius:0 0 18px 18px;position:relative}.notch[_ngcontent-%COMP%]:after{content:"";position:absolute;width:8px;height:8px;background:#2c2c2e;border-radius:50%;right:26px;top:7px}.status-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:2px 16px 0;background:#000000}.status-time[_ngcontent-%COMP%]{color:#fff;font-size:11px;font-weight:600;letter-spacing:.2px}.status-icons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px}.icon-signal[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:1.5px;height:10px}.icon-signal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:2.5px;background:#ffffff;border-radius:1px}.icon-signal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){height:3px}.icon-signal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){height:5px}.icon-signal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){height:7px}.icon-signal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){height:10px}.icon-battery[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1px}.battery-body[_ngcontent-%COMP%]{width:18px;height:9px;border:1.5px solid #ffffff;border-radius:2px;padding:1px;display:flex;align-items:center}.battery-level[_ngcontent-%COMP%]{width:70%;height:100%;background:#ffffff;border-radius:1px}.battery-tip[_ngcontent-%COMP%]{width:2px;height:5px;background:#ffffff;border-radius:0 1px 1px 0}.ig-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:6px 14px;background:#000000;border-bottom:.5px solid #262626}.ig-back[_ngcontent-%COMP%]{color:#fff;font-size:26px;line-height:1;cursor:default}.ig-header-center[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1px}.ig-header-title[_ngcontent-%COMP%]{color:#fff;font-size:13px;font-weight:700}.ig-header-user[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px;letter-spacing:.3px}.ig-dots[_ngcontent-%COMP%]{color:#fff;font-size:20px;letter-spacing:-1px;cursor:default}.ig-dots-sm[_ngcontent-%COMP%]{color:#fff;font-size:16px;margin-left:auto;cursor:default}.ig-screen[_ngcontent-%COMP%]{flex:1;background:#000000;overflow:hidden;display:flex;flex-direction:column}.ig-post-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#000000}.ig-post-username[_ngcontent-%COMP%]{color:#fff;font-size:11px;font-weight:600;flex:1}.ig-post-image[_ngcontent-%COMP%]{width:100%;height:200px;background:#111;display:flex;align-items:center;justify-content:center}.ig-post-image-placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.ig-post-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 4px;color:#fff}.ig-action-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.ig-action-icon[_ngcontent-%COMP%]{width:18px;height:18px;color:#fff;display:block;flex-shrink:0}.ig-action-icon--send[_ngcontent-%COMP%]{transform:rotate(10deg)}.ig-action-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.ig-action-count[_ngcontent-%COMP%]{color:#fff;font-size:10px;font-weight:500}.ig-post-caption[_ngcontent-%COMP%], .ig-post-see-comments[_ngcontent-%COMP%]{padding:0 10px 4px;font-size:10px;color:#fff}.ig-post-see-comments[_ngcontent-%COMP%]{color:#a8a8a8}.ig-post-mini[_ngcontent-%COMP%]{width:100%;height:90px;background:#111;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px}.ig-sheet-handle[_ngcontent-%COMP%]{width:32px;height:3px;background:rgba(255,255,255,.4);border-radius:2px}.ig-comments-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 6px;color:#fff}.ig-comments-title[_ngcontent-%COMP%]{font-size:12px;font-weight:700;flex:1;text-align:center;padding-left:16px}.ig-comments-filter[_ngcontent-%COMP%]{padding:4px 12px 6px;font-size:10px;color:#fff;font-weight:500}.ig-comment[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:6px 12px}.ig-comment--reply[_ngcontent-%COMP%]{padding-left:36px}.ig-comment--placeholder[_ngcontent-%COMP%]{opacity:.5}.ig-comment-body[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.ig-comment-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.ig-comment-user[_ngcontent-%COMP%]{color:#fff;font-size:10px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px}
1.ig-comment-time[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px;font-weight:400}.ig-comment-text[_ngcontent-%COMP%]{color:#fff;font-size:10px;line-height:1.4;word-break:break-word}.ig-placeholder-text[_ngcontent-%COMP%]{color:#a8a8a8;font-size:10px;font-style:italic}.ig-comment-actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-top:2px}.ig-comment-reply-link[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px;font-weight:600}.ig-comment-badge[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px;font-weight:400;border:.5px solid #a8a8a8;border-radius:3px;padding:0 3px;line-height:1.4}.ig-heart-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;flex-shrink:0;margin-top:2px}.ig-heart[_ngcontent-%COMP%]{color:#a8a8a8;font-size:13px}.ig-avatar-sm--reply[_ngcontent-%COMP%]{width:22px;height:22px}.ig-dm-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 10px 6px}.ig-dm-header-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}.ig-dm-header-icons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;color:#fff;flex-shrink:0}.ig-dm-username[_ngcontent-%COMP%]{color:#fff;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-dm-meta[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px}.ig-dm-profile-btns[_ngcontent-%COMP%]{display:flex;gap:6px;padding:4px 10px 8px}.ig-dm-profile-btn[_ngcontent-%COMP%]{flex:1;background:#262626;border:none;border-radius:8px;color:#fff;font-size:10px;font-weight:600;padding:5px 0;cursor:default}.ig-dm-messages[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:8px 10px 6px;gap:6px;flex:1}.ig-dm-system[_ngcontent-%COMP%]{color:#a8a8a8;font-size:9px;text-align:center;line-height:1.4;padding:4px 8px}.ig-dm-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:5px}.ig-dm-row--left[_ngcontent-%COMP%]{justify-content:flex-start}.ig-dm-row--right[_ngcontent-%COMP%]{justify-content:flex-end}.ig-dm-bubble[_ngcontent-%COMP%]{font-size:10px;line-height:1.5;padding:7px 10px;max-width:80%;word-break:break-word}.ig-dm-bubble--bot[_ngcontent-%COMP%]{background:#262626;color:#fff;border-radius:18px 18px 18px 4px}.ig-dm-bubble--user[_ngcontent-%COMP%]{background:#7c3aed;color:#fff;border-radius:18px 18px 4px}.ig-dm-bubble--placeholder[_ngcontent-%COMP%]{color:#a8a8a8;font-style:italic}.ig-dm-time[_ngcontent-%COMP%]{color:#a8a8a8;font-size:8px;text-align:center}.ig-dm-camera-btn[_ngcontent-%COMP%]{width:26px;height:26px;background:#0095f6;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.ig-dm-input-icons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}
1.ig-emoji-bar[_ngcontent-%COMP%]{display:flex;justify-content:space-around;padding:6px 12px;background:#000000;font-size:16px}.ig-input-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:6px 12px 4px;background:#000000}.ig-input-placeholder[_ngcontent-%COMP%]{color:#a8a8a8;font-size:10px;flex:1}.home-indicator[_ngcontent-%COMP%]{width:96px;height:4px;background:#ffffff;border-radius:4px;margin:6px auto 8px;opacity:.7}.ig-avatar-sm[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:50%;background:#333;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center}.ig-avatar-sm[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.ig-avatar-md[_ngcontent-%COMP%]{width:38px;height:38px;border-radius:50%;background:#333;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center}.ig-avatar-md[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.ig-avatar-xs[_ngcontent-%COMP%]{width:22px;height:22px;border-radius:50%;background:#333;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center}.ig-avatar-xs[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.ig-avatar-grey[_ngcontent-%COMP%]{background:#3a3a3a}.ig-avatar-placeholder[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:700}.ig-avatar-placeholder--sm[_ngcontent-%COMP%]{font-size:10px}.ig-divider[_ngcontent-%COMP%]{height:.5px;background:#262626;margin:0}.preview-tabs[_ngcontent-%COMP%]{display:flex;gap:4px;background:#7b5cf5;border-radius:24px;padding:3px}.preview-tab[_ngcontent-%COMP%]{border:none;background:transparent;color:#fff;font-size:12px;font-weight:500;font-family:inherit;padding:5px 14px;border-radius:20px;cursor:pointer;transition:background .15s,color .15s}.preview-tab--active[_ngcontent-%COMP%]{background:#fff;color:#7c3aed;font-weight:600;box-shadow:0 1px 3px #00000026}.preview-tab[_ngcontent-%COMP%]:hover:not(.preview-tab--active){color:#fff}']}),ee})()},7090:(o,u,a)=>{"use strict";a.d(u,{m:()=>e});var t=a(4650);let e=(()=>{class s{transform(x,M=36){return x.length>M?x.substring(0,M)+"...":x}}return s.\u0275fac=function(x){return new(x||s)},s.\u0275pipe=t.Yjl({name:"maxText",type:s,pure:!0}),s})()},2340:(o,u,a)=>{"use strict";a.d(u,{N:()=>t});const t={production:!0,apiAddress:"https://api.globot.ai",apiAddressSockets:"https://realtime.globot.ai",datasourceRetryAttempts:5,datasourceRetryIntervalTime:5e3,gdriveClientId:"1201299959-mdpv3l6t92o4bt649kksadcrshv1qkbh.apps.googleusercontent.com",facebookApiVersion:"v22.0",facebookAppId:"6703563753026473",facebookAppSecret:"0cd23cfaaba01f18052c620f06cede4a",messengerConfigId:0x5c3166173e21c,instagramConfigId:0x3f92f25c711a7,whatsappConfigId:0x394c6de8e5ca9,isFacebookReady:!0,isScanUrlReady:!0,isInstagramReady:!0,isLiveMessagingReady:!0,subscriptionsEnabled:!0,showGlobotLive:!1,showTestPlan:!1,demoTargetOrigin:"https://widget.globot.ai/",widgetUrl:"https://widget.globot.ai/demo/",termsUrl:"https://globot.ai/terminos-y-condiciones/",privacyUrl:"https://globot.ai/politica-de-privacidad/",googleDeveloperKey:"AIzaSyCAIH614O24npcu5e3vwnBmJeyEptjblCM",googleAppId:"llmchatbot-388900",onesignalAppId:"bcf4656a-1e2f-42df-95af-31bcc2164df2",clarityId:"wyc5tw1qfb",gaId:"G-5VTH0KYJNX"}},3405:(o,u,a)=>{"use strict";var t=a(1481),e=a(4650),s=a(6895),D=a(7579),x=a(6451),M=a(9646),w=a(5963),I=a(3900),P=a(9718),S=a(1884),k=a(4782),z=a(8675),F=a(4004),ne=a(2722);a(590);let W={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const fe=/[&<>"']/,N=new RegExp(fe.source,"g"),Q=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,O=new RegExp(Q.source,"g"),ee={"&":"&","<":"<",">":">",'"':""","'":"'"},ue=y=>ee[y];function _e(y,g){if(g){if(fe.test(y))return y.replace(N,ue)}else if(Q.test(y))return y.replace(O,ue);return y}const be=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Qe(y){return y.replace(be,(g,r)=>"colon"===(r=r.toLowerCase())?":":"#"===r.charAt(0)?"x"===r.charAt(1)?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):"")}const ze=/(^|[^\[])\^/g;function Oe(y,g){y="string"==typeof y?y:y.source,g=g||"";const r={replace:(f,C)=>(C=(C=C.source||C).replace(ze,"$1"),y=y.replace(f,C),r),getRegex:()=>new RegExp(y,g)};return r}const K=/[^\w:]/g,X=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(y,g,r){if(y){let f;try{f=decodeURIComponent(Qe(r)).replace(K,"").toLowerCase()}catch{return null}if(0===f.indexOf("javascript:")||0===f.indexOf("vbscript:")||0===f.indexOf("data:"))return null}g&&!X.test(r)&&(r=function at(y,g){q[" "+y]||(q[" "+y]=Ee.test(y)?y+"/":je(y,"/",!0));const r=-1===(y=q[" "+y]).indexOf(":");return"//"===g.substring(0,2)?r?g:y.replace(ye,"$1")+g:"/"===g.charAt(0)?r?g:y.replace(nt,"$1")+g:y+g}(g,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const q={},Ee=/^[^:]+:\/*[^/]*$/,ye=/^([^:]+:)[\s\S]*$/,nt=/^([^:]+:\/*[^/]*)[\s\S]*$/,me={exec:function(){}};function ve(y,g){const f=y.replace(/\|/g,(j,le,Ae)=>{let Ke=!1,it=le;for(;--it>=0&&"\\"===Ae[it];)Ke=!Ke;return Ke?"|":" |"}).split(/ \|/);let C=0;if(f[0].trim()||f.shift(),f.length>0&&!f[f.length-1].trim()&&f.pop(),f.length>g)f.splice(g);else for(;f.length<g;)f.push("");for(;C<f.length;C++)f[C]=f[C].trim().replace(/\\\|/g,"|");return f}function je(y,g,r){const f=y.length;if(0===f)return"";let C=0;for(;C<f;){const j=y.charAt(f-C-1);if(j!==g||r){if(j===g||!r)break;C++}else C++}return y.slice(0,f-C)}function mt(y,g){if(g<1)return"";let r="";for(;g>1;)1&g&&(r+=y),g>>=1,y+=y;return r+y}function $t(y,g,r,f){const C=g.href,j=g.title?_e(g.title):null,le=y[1].replace(/\\([\[\]])/g,"$1");if("!"!==y[0].charAt(0)){f.state.inLink=!0;const Ae={type:"link",raw:r,href:C,title:j,text:le,tokens:f.inlineTokens(le)};return f.state.inLink=!1,Ae}return{type:"image",raw:r,href:C,title:j,text:_e(le)}}class yt{constructor(g){this.options=g||W}space(g){const r=this.rules.block.newline.exec(g);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(g){const r=this.rules.block.code.exec(g);if(r){const f=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?f:je(f,"\n")}}}fences(g){const r=this.rules.block.fences.exec(g);if(r){const f=r[0],C=function tn(y,g){const r=y.match(/^(\s+)(?:```)/);if(null===r)return g;const f=r[1];return g.split("\n").map(C=>{const j=C.match(/^\s+/);if(null===j)return C;const[le]=j;return le.length>=f.length?C.slice(f.length):C}).join("\n")}(f,r[3]||"");return{type:"code",raw:f,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:C}}}heading(g){const r=this.rules.block.heading.exec(g);if(r){let f=r[2].trim();if(/#$/.test(f)){const C=je(f,"#");(this.options.pedantic||!C||/ $/.test(C))&&(f=C.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(g){const r=this.rules.block.hr.exec(g);if(r)return{type:"hr",raw:r[0]}}blockquote(g){const r=this.rules.block.blockquote.exec(g);if(r){const f=r[0].replace(/^ *>[ \t]?/gm,""),C=this.lexer.state.top;this.lexer.state.top=!0;const j=this.lexer.blockTokens(f);return this.lexer.state.top=C,{type:"blockquote",raw:r[0],tokens:j,text:f}}}list(g){let r=this.rules.block.list.exec(g);if(r){let f,C,j,le,Ae,Ke,it,Rt,Zt,fn,ln,On,zn=r[1].trim();const Si=zn.length>1,ii={type:"list",raw:"",ordered:Si,start:Si?+zn.slice(0,-1):"",loose:!1,items:[]};zn=Si?`\\d{1,9}\\${zn.slice(-1)}`:`\\${zn}`,this.options.pedantic&&(zn=Si?zn:"[*+-]");const Fi=new RegExp(`^( {0,3}${zn})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;g&&(On=!1,(r=Fi.exec(g))&&!this.rules.block.hr.test(g));){if(f=r[0],g=g.substring(f.length),Rt=r[2].split("\n",1)[0].replace(/^\t+/,ss=>" ".repeat(3*ss.length)),Zt=g.split("\n",1)[0],this.options.pedantic?(le=2,ln=Rt.trimLeft()):(le=r[2].search(/[^ ]/),le=le>4?1:le,ln=Rt.slice(le),le+=r[1].length),Ke=!1,!Rt&&/^ *$/.test(Zt)&&(f+=Zt+"\n",g=g.substring(Zt.length+1),On=!0),!On){const ss=new RegExp(`^ {0,${Math.min(3,le-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),Mr=new RegExp(`^ {0,${Math.min(3,le-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ks=new RegExp(`^ {0,${Math.min(3,le-1)}}(?:\`\`\`|~~~)`),Ys=new RegExp(`^ {0,${Math.min(3,le-1)}}#`);for(;g&&(fn=g.split("\n",1)[0],Zt=fn,this.options.pedantic&&(Zt=Zt.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ks.test(Zt)||Ys.test(Zt)||ss.test(Zt)||Mr.test(g)));){if(Zt.search(/[^ ]/)>
vendor: 4,593 bytes, line 1
1=le||!Zt.trim())ln+="\n"+Zt.slice(le);else{if(Ke||Rt.search(/[^ ]/)>=4||Ks.test(Rt)||Ys.test(Rt)||Mr.test(Rt))break;ln+="\n"+Zt}!Ke&&!Zt.trim()&&(Ke=!0),f+=fn+"\n",g=g.substring(fn.length+1),Rt=Zt.slice(le)}}ii.loose||(it?ii.loose=!0:/\n *\n *$/.test(f)&&(it=!0)),this.options.gfm&&(C=/^\[[ xX]\] /.exec(ln),C&&(j="[ ] "!==C[0],ln=ln.replace(/^\[[ xX]\] +/,""))),ii.items.push({type:"list_item",raw:f,task:!!C,checked:j,loose:!1,text:ln}),ii.raw+=f}ii.items[ii.items.length-1].raw=f.trimRight(),ii.items[ii.items.length-1].text=ln.trimRight(),ii.raw=ii.raw.trimRight();const Zs=ii.items.length;for(Ae=0;Ae<Zs;Ae++)if(this.lexer.state.top=!1,ii.items[Ae].tokens=this.lexer.blockTokens(ii.items[Ae].text,[]),!ii.loose){const ss=ii.items[Ae].tokens.filter(Ks=>"space"===Ks.type),Mr=ss.length>0&&ss.some(Ks=>/\n.*\n/.test(Ks.raw));ii.loose=Mr}if(ii.loose)for(Ae=0;Ae<Zs;Ae++)ii.items[Ae].loose=!0;return ii}}html(g){const r=this.rules.block.html.exec(g);if(r){const f={type:"html",raw:r[0],pre:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]};if(this.options.sanitize){const C=this.options.sanitizer?this.options.sanitizer(r[0]):_e(r[0]);f.type="paragraph",f.text=C,f.tokens=this.lexer.inline(C)}return f}}def(g){const r=this.rules.block.def.exec(g);if(r){const f=r[1].toLowerCase().replace(/\s+/g," "),C=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",j=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:f,raw:r[0],href:C,title:j}}}table(g){const r=this.rules.block.table.exec(g);if(r){const f={type:"table",header:ve(r[1]).map(C=>({text:C})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(f.header.length===f.align.length){f.raw=r[0];let j,le,Ae,Ke,C=f.align.length;for(j=0;j<C;j++)f.align[j]=/^ *-+: *$/.test(f.align[j])?"right":/^ *:-+: *$/.test(f.align[j])?"center":/^ *:-+ *$/.test(f.align[j])?"left":null;for(C=f.rows.length,j=0;j<C;j++)f.rows[j]=ve(f.rows[j],f.header.length).map(it=>({text:it}));for(C=f.header.length,le=0;le<C;le++)f.header[le].tokens=this.lexer.inline(f.header[le].text);for(C=f.rows.length,le=0;le<C;le++)for(Ke=f.rows[le],Ae=0;Ae<Ke.length;Ae++)Ke[Ae].tokens=this.lexer.inline(Ke[Ae].text);return f}}}lheading(g){const r=this.rules.block.lheading.exec(g);if(r)return{type:"heading",raw:r[0],depth:"="===r[2].charAt(0)?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(g){const r=this.rules.block.paragraph.exec(g);if(r){const f="\n"===r[1].charAt(r[1].length-1)?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:f,tokens:this.lexer.inline(f)}}}text(g){const r=this.rules.block.text.exec(g);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(g){const r=this.rules.inline.escape.exec(g);if(r)return{type:"escape",raw:r[0],text:_e(r[1])}}tag(g){const r=this.rules.inline.tag.exec(g);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):_e(r[0]):r[0]}}link(g){const r=this.rules.inline.link.exec(g);if(r){const f=r[2].trim();if(!this.options.pedantic&&/^</.test(f)){if(!/>$/.test(f))return;const le=je(f.slice(0,-1),"\\");if((f.length-le.length)%2==0)return}else{const le=function Xe(y,g){if(-1===y.indexOf(g[1]))return-1;const r=y.length;let f=0,C=0;for(;C<r;C++)if("\\"===y[C])C++;else if(y[C]===g[0])f++;else if(y[C]===g[1]&&(f--,f<0))return C;return-1}(r[2],"()");if(le>-1){const Ke=(0===r[0].indexOf("!")?5:4)+r[1].length+le;r[2]=r[2].substring(0,le),r[0]=r[0].substring(0,Ke).trim(),r[3]=""}}let C=r[2],j="";if(this.options.pedantic){const le=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(C);le&&(C=le[1],j=le[3])}else j=r[3]?r[3].slice(1,-1):"";return C=C.trim(),/^</.test(C)&&(C=this.options.pedantic&&!/>$/.test(f)?C.slice(1):C.slice(1,-1)),$t(r,{href:C&&C.replace(this.rules.inline._escapes,"$1"),title:j&&j.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(g,r){let f;if((f=this.rules.inline.reflink.exec(g))||(f=this.rules.inline.nolink.exec(g))){let C=(f[2]||f[1]).replace(/\s+/g," ");
vendor: 24,530 bytes, line 1
1if(C=r[C.toLowerCase()],!C){const j=f[0].charAt(0);return{type:"text",raw:j,text:j}}return $t(f,C,f[0],this.lexer)}}emStrong(g,r,f=""){let C=this.rules.inline.emStrong.lDelim.exec(g);if(!C||C[3]&&f.match(/[\p{L}\p{N}]/u))return;const j=C[1]||C[2]||"";if(!j||j&&(""===f||this.rules.inline.punctuation.exec(f))){const le=C[0].length-1;let Ae,Ke,it=le,Rt=0;const Zt="*"===C[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Zt.lastIndex=0,r=r.slice(-1*g.length+le);null!=(C=Zt.exec(r));){if(Ae=C[1]||C[2]||C[3]||C[4]||C[5]||C[6],!Ae)continue;if(Ke=Ae.length,C[3]||C[4]){it+=Ke;continue}if((C[5]||C[6])&&le%3&&!((le+Ke)%3)){Rt+=Ke;continue}if(it-=Ke,it>0)continue;Ke=Math.min(Ke,Ke+it+Rt);const fn=g.slice(0,le+C.index+(C[0].length-Ae.length)+Ke);if(Math.min(le,Ke)%2){const On=fn.slice(1,-1);return{type:"em",raw:fn,text:On,tokens:this.lexer.inlineTokens(On)}}const ln=fn.slice(2,-2);return{type:"strong",raw:fn,text:ln,tokens:this.lexer.inlineTokens(ln)}}}}codespan(g){const r=this.rules.inline.code.exec(g);if(r){let f=r[2].replace(/\n/g," ");const C=/[^ ]/.test(f),j=/^ /.test(f)&&/ $/.test(f);return C&&j&&(f=f.substring(1,f.length-1)),f=_e(f,!0),{type:"codespan",raw:r[0],text:f}}}br(g){const r=this.rules.inline.br.exec(g);if(r)return{type:"br",raw:r[0]}}del(g){const r=this.rules.inline.del.exec(g);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(g,r){const f=this.rules.inline.autolink.exec(g);if(f){let C,j;return"@"===f[2]?(C=_e(this.options.mangle?r(f[1]):f[1]),j="mailto:"+C):(C=_e(f[1]),j=C),{type:"link",raw:f[0],text:C,href:j,tokens:[{type:"text",raw:C,text:C}]}}}url(g,r){let f;if(f=this.rules.inline.url.exec(g)){let C,j;if("@"===f[2])C=_e(this.options.mangle?r(f[0]):f[0]),j="mailto:"+C;else{let le;do{le=f[0],f[0]=this.rules.inline._backpedal.exec(f[0])[0]}while(le!==f[0]);C=_e(f[0]),j="www."===f[1]?"http://"+f[0]:f[0]}return{type:"link",raw:f[0],text:C,href:j,tokens:[{type:"text",raw:C,text:C}]}}}inlineText(g,r){const f=this.rules.inline.text.exec(g);if(f){let C;return C=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(f[0]):_e(f[0]):f[0]:_e(this.options.smartypants?r(f[0]):f[0]),{type:"text",raw:f[0],text:C}}}}const bt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:me,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};bt.def=Oe(bt.def).replace("label",bt._label).replace("title",bt._title).getRegex(),bt.bullet=/(?:[*+-]|\d{1,9}[.)])/,bt.listItemStart=Oe(/^( *)(bull) */).replace("bull",bt.bullet).getRegex(),bt.list=Oe(bt.list).replace(/bull/g,bt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bt.def.source+")").getRegex(),bt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,bt.html=Oe(bt.html,"i").replace("comment",bt._comment).replace("tag",bt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bt.paragraph=Oe(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex(),bt.blockquote=Oe(bt.blockquote).replace("paragraph",bt.paragraph).getRegex(),bt.normal={...bt},bt.gfm={...bt.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},bt.gfm.table=Oe(bt.gfm.table).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex(),bt.gfm.paragraph=Oe(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bt.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex(),bt.pedantic={...bt.normal,html:Oe("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",bt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(bt.normal._paragraph).replace("hr",bt.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",bt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ye={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:me,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Nt(y){return y.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function xn(y){let r,f,g="";const C=y.length;for(r=0;r<C;r++)f=y.charCodeAt(r),Math.random()>.5&&(f="x"+f.toString(16)),g+="&#"+f+";";return g}Ye._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ye.punctuation=Oe(Ye.punctuation).replace(/punctuation/g,Ye._punctuation).getRegex(),Ye.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ye.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Ye._comment=Oe(bt._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ye.emStrong.lDelim=Oe(Ye.emStrong.lDelim).replace(/punct/g,Ye._punctuation).getRegex(),Ye.emStrong.rDelimAst=Oe(Ye.emStrong.rDelimAst,"g").replace(/punct/g,Ye._punctuation).getRegex(),Ye.emStrong.rDelimUnd=Oe(Ye.emStrong.rDelimUnd,"g").replace(/punct/g,Ye._punctuation).getRegex(),Ye._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ye._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ye._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ye.autolink=Oe(Ye.autolink).replace("scheme",Ye._scheme).replace("email",Ye._email).getRegex(),Ye._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ye.tag=Oe(Ye.tag).replace("comment",Ye._comment).replace("attribute",Ye._attribute).getRegex(),Ye._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ye._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ye._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ye.link=Oe(Ye.link).replace("label",Ye._label).replace("href",Ye._href).replace("title",Ye._title).getRegex(),Ye.reflink=Oe(Ye.reflink).replace("label",Ye._label).replace("ref",bt._label).getRegex(),Ye.nolink=Oe(Ye.nolink).replace("ref",bt._label).getRegex(),Ye.reflinkSearch=Oe(Ye.reflinkSearch,"g").replace("reflink",Ye.reflink).replace("nolink",Ye.nolink).getRegex(),Ye.normal={...Ye},Ye.pedantic={...Ye.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",Ye._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ye._label).getRegex()},Ye.gfm={...Ye.normal,escape:Oe(Ye.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ye.gfm.url=Oe(Ye.gfm.url,"i").replace("email",Ye.gfm._extended_email).getRegex(),Ye.breaks={...Ye.gfm,br:Oe(Ye.br).replace("{2,}","*").getRegex(),text:Oe(Ye.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class pn{constructor(g){this.tokens=[],this.tokens.links=Object.create(null),this.options=g||W,this.options.tokenizer=this.options.tokenizer||new yt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:bt.normal,inline:Ye.normal};this.options.pedantic?(r.block=bt.pedantic,r.inline=Ye.pedantic):this.options.gfm&&(r.block=bt.gfm,r.inline=this.options.breaks?Ye.breaks:Ye.gfm),this.tokenizer.rules=r}static get rules(){return{block:bt,inline:Ye}}static lex(g,r){return new pn(r).lex(g)}static lexInline(g,r){return new pn(r).inlineTokens(g)}lex(g){let r;for(g=g.replace(/\r\n|\r/g,"\n"),this.blockTokens(g,this.tokens);r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(g,r=[]){let f,C,j,le;for(g=this.options.pedantic?g.replace(/\t/g," ").replace(/^ +$/gm,""):g.replace(/^( *)(\t+)/gm,(Ae,Ke,it)=>Ke+" ".repeat(it.length));g;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Ae=>!!(f=Ae.call({lexer:this},g,r))&&(g=g.substring(f.raw.length),r.push(f),!0)))){if(f=this.tokenizer.space(g)){g=g.substring(f.raw.length),1===f.raw.length&&r.length>0?r[r.length-1].raw+="\n":r.push(f);continue}if(f=this.tokenizer.code(g)){g=g.substring(f.raw.length),C=r[r.length-1],!C||"paragraph"!==C.type&&"text"!==C.type?r.push(f):(C.raw+="\n"+f.raw,C.text+="\n"+f.text,this.inlineQueue[this.inlineQueue.length-1].src=C.text);continue}if(f=this.tokenizer.fences(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.heading(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.hr(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.blockquote(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.list(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.html(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.def(g)){g=g.substring(f.raw.length),C=r[r.length-1],!C||"paragraph"!==C.type&&"text"!==C.type?this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title}):(C.raw+="\n"+f.raw,C.text+="\n"+f.raw,this.inlineQueue[this.inlineQueue.length-1].src=C.text);continue}if(f=this.tokenizer.table(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.lheading(g)){g=g.substring(f.raw.length),r.push(f);continue}if(j=g,this.options.extensions&&this.options.extensions.startBlock){let Ae=1/0;const Ke=g.slice(1);let it;this.options.extensions.startBlock.forEach(function(Rt){it=Rt.call({lexer:this},Ke),"number"==typeof it&&it>=0&&(Ae=Math.min(Ae,it))}),Ae<1/0&&Ae>=0&&(j=g.substring(0,Ae+1))}if(this.state.top&&(f=this.tokenizer.paragraph(j))){C=r[r.length-1],le&&"paragraph"===C.type?(C.raw+="\n"+f.raw,C.text+="\n"+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=C.text):r.push(f),le=j.length!==g.length,g=g.substring(f.raw.length);continue}if(f=this.tokenizer.text(g)){g=g.substring(f.raw.length),C=r[r.length-1],C&&"text"===C.type?(C.raw+="\n"+f.raw,C.text+="\n"+f.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=C.text):r.push(f);continue}if(g){const Ae="Infinite loop on byte: "+g.charCodeAt(0);if(this.options.silent){console.error(Ae);break}throw new Error(Ae)}}return this.state.top=!0,r}inline(g,r=[]){return this.inlineQueue.push({src:g,tokens:r}),r}inlineTokens(g,r=[]){let f,C,j,Ae,Ke,it,le=g;if(this.tokens.links){const Rt=Object.keys(this.tokens.links);if(Rt.length>0)for(;null!=(Ae=this.tokenizer.rules.inline.reflinkSearch.exec(le));)Rt.includes(Ae[0].slice(Ae[0].lastIndexOf("[")+1,-1))&&(le=le.slice(0,Ae.index)+"["+mt("a",Ae[0].length-2)+"]"+le.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(Ae=this.tokenizer.rules.inline.blockSkip.exec(le));)le=le.slice(0,Ae.index)+"["+mt("a",Ae[0].length-2)+"]"+le.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(Ae=this.tokenizer.rules.inline.escapedEmSt.exec(le));)le=le.slice(0,Ae.index+Ae[0].length-2)+"++"+le.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;g;)if(Ke||(it=""),Ke=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(Rt=>!!(f=Rt.call({lexer:this},g,r))&&(g=g.substring(f.raw.length),r.push(f),!0)))){if(f=this.tokenizer.escape(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(g)){g=g.substring(f.raw.length),C=r[r.length-1],C&&"text"===f.type&&"text"===C.type?(C.raw+=f.raw,C.text+=f.text):r.push(f);continue}if(f=this.tokenizer.link(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(g,this.tokens.links)){g=g.substring(f.raw.length),C=r[r.length-1],C&&"text"===f.type&&"text"===C.type?(C.raw+=f.raw,C.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(g,le,it)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(g)){g=g.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(g,xn)){g=g.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(g,xn))){g=g.substring(f.raw.length),r.push(f);continue}if(j=g,this.options.extensions&&this.options.extensions.startInline){let Rt=1/0;const Zt=g.slice(1);let fn;this.options.extensions.startInline.forEach(function(ln){fn=ln.call({lexer:this},Zt),"number"==typeof fn&&fn>=0&&(Rt=Math.min(Rt,fn))}),Rt<1/0&&Rt>=0&&(j=g.substring(0,Rt+1))}if(f=this.tokenizer.inlineText(j,Nt)){g=g.substring(f.raw.length),"_"!==f.raw.slice(-1)&&(it=f.raw.slice(-1)),Ke=!0,C=r[r.length-1],C&&"text"===C.type?(C.raw+=f.raw,C.text+=f.text):r.push(f);continue}if(g){const Rt="Infinite loop on byte: "+g.charCodeAt(0);if(this.options.silent){console.error(Rt);break}throw new Error(Rt)}}return r}}class _n{constructor(g){this.options=g||W}code(g,r,f){const C=(r||"").match(/\S*/)[0];if(this.options.highlight){const j=this.options.highlight(g,C);null!=j&&j!==g&&(f=!0,g=j)}return g=g.replace(/\n$/,"")+"\n",C?'<pre><code class="'+this.options.langPrefix+_e(C)+'">'+(f?g:_e(g,!0))+"</code></pre>\n":"<pre><code>"+(f?g:_e(g,!0))+"</code></pre>\n"}blockquote(g){return`<blockquote>\n${g}</blockquote>\n`}html(g){return g}heading(g,r,f,C){return this.options.headerIds?`<h${r} id="${this.options.headerPrefix+C.slug(f)}">${g}</h${r}>\n`:`<h${r}>${g}</h${r}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(g,r,f){const C=r?"ol":"ul";return"<"+C+(r&&1!==f?' start="'+f+'"':"")+">\n"+g+"</"+C+">\n"}listitem(g){return`<li>${g}</li>\n`}checkbox(g){return"<input "+(g?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(g){return`<p>${g}</p>\n`}table(g,r){return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+g+"</thead>\n"+r+"</table>\n"}tablerow(g){return`<tr>\n${g}</tr>\n`}tablecell(g,r){const f=r.header?"th":"td";return(r.align?`<${f} align="${r.align}">`:`<${f}>`)+g+`</${f}>\n`}strong(g){return`<strong>${g}</strong>`}em(g){return`<em>${g}</em>`}codespan(g){return`<code>${g}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(g){return`<del>${g}</del>`}link(g,r,f){if(null===(g=V(this.options.sanitize,this.options.baseUrl,g)))return f;let C='<a href="'+g+'"';return r&&(C+=' title="'+r+'"'),C+=">"+f+"</a>",C}image(g,r,f){if(null===(g=V(this.options.sanitize,this.options.baseUrl,g)))return f;let C=`<img src="${g}" alt="${f}"`;return r&&(C+=` title="${r}"`),C+=this.options.xhtml?"/>":">",C}text(g){return g}}class zt{strong(g){return g}em(g){return g}codespan(g){return g}del(g){return g}html(g){return g}text(g){return g}link(g,r,f){return""+f}image(g,r,f){return""+f}br(){return""}}class Yt{constructor(){this.seen={}}serialize(g){return g.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(g,r){let f=g,C=0;if(this.seen.hasOwnProperty(f)){C=this.seen[g];do{C++,f=g+"-"+C}while(this.seen.hasOwnProperty(f))}return r||(this.seen[g]=C,this.seen[f]=0),f}slug(g,r={}){const f=this.serialize(g);return this.getNextSafeSlug(f,r.dryrun)}}class It{constructor(g){this.options=g||W,this.options.renderer=this.options.renderer||new _n,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new zt,this.slugger=new Yt}static parse(g,r){return new It(r).parse(g)}static parseInline(g,r){return new It(r).parseInline(g)}parse(g,r=!0){let C,j,le,Ae,Ke,it,Rt,Zt,fn,ln,On,zn,Si,ii,Fi,Zs,ss,Mr,Ks,f="";const Ys=g.length;for(C=0;C<Ys;C++)if(ln=g[C],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ln.type]&&(Ks=this.options.extensions.renderers[ln.type].call({parser:this},ln),!1!==Ks||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ln.type)))f+=Ks||"";else switch(ln.type){case"space":continue;case"hr":f+=this.renderer.hr();continue;case"heading":f+=this.renderer.heading(this.parseInline(ln.tokens),ln.depth,Qe(this.parseInline(ln.tokens,this.textRenderer)),this.slugger);continue;case"code":f+=this.renderer.code(ln.text,ln.lang,ln.escaped);continue;case"table":for(Zt="",Rt="",Ae=ln.header.length,j=0;j<Ae;j++)Rt+=this.renderer.tablecell(this.parseInline(ln.header[j].tokens),{header:!0,align:ln.align[j]});for(Zt+=this.renderer.tablerow(Rt),fn="",Ae=ln.rows.length,j=0;j<Ae;j++){for(it=ln.rows[j],Rt="",Ke=it.length,le=0;le<Ke;le++)Rt+=this.renderer.tablecell(this.parseInline(it[le].tokens),{header:!1,align:ln.align[le]});fn+=this.renderer.tablerow(Rt)}f+=this.renderer.table(Zt,fn);continue;case"blockquote":fn=this.parse(ln.tokens),f+=this.renderer.blockquote(fn);continue;case"list":for(On=ln.ordered,zn=ln.start,Si=ln.loose,Ae=ln.items.length,fn="",j=0;j<Ae;j++)Fi=ln.items[j],Zs=Fi.checked,ss=Fi.task,ii="",Fi.task&&(Mr=this.renderer.checkbox(Zs),Si?Fi.tokens.length>0&&"paragraph"===Fi.tokens[0].type?(Fi.tokens[0].text=Mr+" "+Fi.tokens[0].text,Fi.tokens[0].tokens&&Fi.tokens[0].tokens.length>0&&"text"===Fi.tokens[0].tokens[0].type&&(Fi.tokens[0].tokens[0].text=Mr+" "+Fi.tokens[0].tokens[0].text)):Fi.tokens.unshift({type:"text",text:Mr}):ii+=Mr),ii+=this.parse(Fi.tokens,Si),fn+=this.renderer.listitem(ii,ss,Zs);f+=this.renderer.list(fn,On,zn);continue;case"html":f+=this.renderer.html(ln.text);continue;case"paragraph":f+=this.renderer.paragraph(this.parseInline(ln.tokens));continue;case"text":for(fn=ln.tokens?this.parseInline(ln.tokens):ln.text;C+1<Ys&&"text"===g[C+1].type;)ln=g[++C],fn+="\n"+(ln.tokens?this.parseInline(ln.tokens):ln.text);f+=r?this.renderer.paragraph(fn):fn;continue;default:{const Ho='Token with "'+ln.type+'" type was not found.';if(this.options.silent)return void console.error(Ho);throw new Error(Ho)}}return f}parseInline(g,r){r=r||this.renderer;let C,j,le,f="";const Ae=g.length;for(C=0;C<Ae;C++)if(j=g[C],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[j.type]&&(le=this.options.extensions.renderers[j.type].call({parser:this},j),!1!==le||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(j.type)))f+=le||"";else switch(j.type){case"escape":case"text":f+=r.text(j.text);break;case"html":f+=r.html(j.text);break;case"link":f+=r.link(j.href,j.title,this.parseInline(j.tokens,r));break;case"image":f+=r.image(j.href,j.title,j.text);break;case"strong":f+=r.strong(this.parseInline(j.tokens,r));break;case"em":f+=r.em(this.parseInline(j.tokens,r));break;case"codespan":f+=r.codespan(j.text);break;case"br":f+=r.br();break;case"del":f+=r.del(this.parseInline(j.tokens,r));break;default:{const Ke='Token with "'+j.type+'" type was not found.';if(this.options.silent)return void console.error(Ke);throw new Error(Ke)}}return f}}class bn{constructor(g){this.options=g||W}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(g){return g}postprocess(g){return g}}function Sn(y,g){return(r,f,C)=>{"function"==typeof f&&(C=f,f=null);const j={...f},le=function Rn(y,g,r){return f=>{if(f.message+="\nPlease report this to https://github.com/markedjs/marked.",y){const C="<p>An error occurred:</p><pre>"+_e(f.message+"",!0)+"</pre>";return g?Promise.resolve(C):r?void r(null,C):C}if(g)return Promise.reject(f);if(!r)throw f;r(f)}}((f={...vn.defaults,...j}).silent,f.async,C);if(typeof r>"u"||null===r)return le(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return le(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(function rt(y){y&&y.sanitize&&!y.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(f),f.hooks&&(f.hooks.options=f),C){const Ae=f.highlight;let Ke;try{f.hooks&&(r=f.hooks.preprocess(r)),Ke=y(r,f)}catch(Zt){return le(Zt)}const it=function(Zt){let fn;
1if(!Zt)try{f.walkTokens&&vn.walkTokens(Ke,f.walkTokens),fn=g(Ke,f),f.hooks&&(fn=f.hooks.postprocess(fn))}catch(ln){Zt=ln}return f.highlight=Ae,Zt?le(Zt):C(null,fn)};if(!Ae||Ae.length<3||(delete f.highlight,!Ke.length))return it();let Rt=0;return vn.walkTokens(Ke,function(Zt){"code"===Zt.type&&(Rt++,setTimeout(()=>{Ae(Zt.text,Zt.lang,function(fn,ln){if(fn)return it(fn);null!=ln&&ln!==Zt.text&&(Zt.text=ln,Zt.escaped=!0),Rt--,0===Rt&&it()})},0))}),void(0===Rt&&it())}if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(r):r).then(Ae=>y(Ae,f)).then(Ae=>f.walkTokens?Promise.all(vn.walkTokens(Ae,f.walkTokens)).then(()=>Ae):Ae).then(Ae=>g(Ae,f)).then(Ae=>f.hooks?f.hooks.postprocess(Ae):Ae).catch(le);try{f.hooks&&(r=f.hooks.preprocess(r));const Ae=y(r,f);f.walkTokens&&vn.walkTokens(Ae,f.walkTokens);let Ke=g(Ae,f);return f.hooks&&(Ke=f.hooks.postprocess(Ke)),Ke}catch(Ae){return le(Ae)}}}function vn(y,g,r){return Sn(pn.lex,It.parse)(y,g,r)}vn.options=vn.setOptions=function(y){return function Y(y){W=y}(vn.defaults={...vn.defaults,...y}),vn},vn.getDefaults=function G(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},vn.defaults=W,vn.use=function(...y){const g=vn.defaults.extensions||{renderers:{},childTokens:{}};y.forEach(r=>{const f={...r};if(f.async=vn.defaults.async||f.async||!1,r.extensions&&(r.extensions.forEach(C=>{if(!C.name)throw new Error("extension name required");if(C.renderer){const j=g.renderers[C.name];g.renderers[C.name]=j?function(...le){let Ae=C.renderer.apply(this,le);return!1===Ae&&(Ae=j.apply(this,le)),Ae}:C.renderer}if(C.tokenizer){if(!C.level||"block"!==C.level&&"inline"!==C.level)throw new Error("extension level must be 'block' or 'inline'");g[C.level]?g[C.level].unshift(C.tokenizer):g[C.level]=[C.tokenizer],C.start&&("block"===C.level?g.startBlock?g.startBlock.push(C.start):g.startBlock=[C.start]:"inline"===C.level&&(g.startInline?g.startInline.push(C.start):g.startInline=[C.start]))}C.childTokens&&(g.childTokens[C.name]=C.childTokens)}),f.extensions=g),r.renderer){const C=vn.defaults.renderer||new _n;for(const j in r.renderer){const le=C[j];C[j]=(...Ae)=>{let Ke=r.renderer[j].apply(C,Ae);return!1===Ke&&(Ke=le.apply(C,Ae)),Ke}}f.renderer=C}if(r.tokenizer){const C=vn.defaults.tokenizer||new yt;for(const j in r.tokenizer){const le=C[j];C[j]=(...Ae)=>{let Ke=r.tokenizer[j].apply(C,Ae);return!1===Ke&&(Ke=le.apply(C,Ae)),Ke}}f.tokenizer=C}if(r.hooks){const C=vn.defaults.hooks||new bn;for(const j in r.hooks){const le=C[j];C[j]=bn.passThroughHooks.has(j)?Ae=>{if(vn.defaults.async)return Promise.resolve(r.hooks[j].call(C,Ae)).then(it=>le.call(C,it));const Ke=r.hooks[j].call(C,Ae);return le.call(C,Ke)}:(...Ae)=>{let Ke=r.hooks[j].apply(C,Ae);return!1===Ke&&(Ke=le.apply(C,Ae)),Ke}}f.hooks=C}if(r.walkTokens){const C=vn.defaults.walkTokens;f.walkTokens=function(j){let le=[];return le.push(r.walkTokens.call(this,j)),C&&(le=le.concat(C.call(this,j))),le}}vn.setOptions(f)})},vn.walkTokens=function(y,g){let r=[];for(const f of y)switch(r=r.concat(g.call(vn,f)),f.type){case"table":for(const C of f.header)r=r.concat(vn.walkTokens(C.tokens,g));for(const C of f.rows)for(const j of C)r=r.concat(vn.walkTokens(j.tokens,g));break;case"list":r=r.concat(vn.walkTokens(f.items,g));break;default:vn.defaults.extensions&&vn.defaults.extensions.childTokens&&vn.defaults.extensions.childTokens[f.type]?vn.defaults.extensions.childTokens[f.type].forEach(function(C){r=r.concat(vn.walkTokens(f[C],g))}):f.tokens&&(r=r.concat(vn.walkTokens(f.tokens,g)))}return r},vn.parseInline=Sn(pn.lexInline,It.parseInline),vn.Parser=It,vn.parser=It.parse,vn.Renderer=_n,vn.TextRenderer=zt,vn.Lexer=pn,vn.lexer=pn.lex,vn.Tokenizer=yt,vn.Slugger=Yt,vn.Hooks=bn,vn.parse=vn;var Re=a(529);const Bt=["*"];let dt=(()=>{class y{constructor(){this._buttonClick$=new D.x,this.copied$=this._buttonClick$.pipe((0,I.w)(()=>(0,x.T)((0,M.of)(!0),(0,w.H)(3e3).pipe((0,P.h)(!1)))),(0,S.x)(),(0,k.d)(1)),this.copiedText$=this.copied$.pipe((0,z.O)(!1),(0,F.U)(r=>r?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(r,f){1&r&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return f.onCopyToClipboardClick()}),e.ALo(1,"async"),e._uU(2),e.ALo(3,"async"),e.qZA()),2&r&&(e.ekj("copied",e.lcZ(1,3,f.copied$)),e.xp6(2),e.Oqu(e.l
1cZ(3,5,f.copiedText$)))},dependencies:[s.Ov],encapsulation:2,changeDetection:0}),y})();class Be{}var Ft=(()=>{return(y=Ft||(Ft={})).CommandLine="command-line",y.LineHighlight="line-highlight",y.LineNumbers="line-numbers",Ft;var y})();class Pt{}const Ht=new e.OlP("SECURITY_CONTEXT");let Dn=(()=>{class y{constructor(r,f,C,j,le,Ae){this.platform=r,this.securityContext=f,this.http=C,this.clipboardOptions=j,this.sanitizer=Ae,this.DEFAULT_MARKED_OPTIONS={renderer:new _n},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new D.x,this.reload$=this._reload$.asObservable(),this.options=le}get options(){return this._options}set options(r){this._options={...this.DEFAULT_MARKED_OPTIONS,...r}}get renderer(){return this.options.renderer}set renderer(r){this.options.renderer=r}parse(r,f=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:C,inline:j,emoji:le,mermaid:Ae,disableSanitizer:Ke}=f,it={...this.options,...f.markedOptions};Ae&&(this.renderer=this.extendRenderer(it.renderer||new _n));const Rt=this.trimIndentation(r),Zt=C?this.decodeHtml(Rt):Rt,fn=le?this.parseEmoji(Zt):Zt,ln=this.parseMarked(fn,it,j);return(Ke?ln:this.sanitizer.sanitize(this.securityContext,ln))||""}render(r,f=this.DEFAULT_RENDER_OPTIONS,C){const{clipboard:j,clipboardOptions:le,katex:Ae,katexOptions:Ke,mermaid:it,mermaidOptions:Rt}=f;j&&this.renderClipboard(r,C,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...le}),Ae&&this.renderKatex(r,{...this.DEFAULT_KATEX_OPTIONS,...Ke}),it&&this.renderMermaid(r,{...this.DEFAULT_MERMAID_OPTIONS,...Rt}),this.highlight(r)}reload(){this._reload$.next()}getSource(r){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(r,{responseType:"text"}).pipe((0,F.U)(f=>this.handleExtension(r,f)))}highlight(r){if(!(0,s.NF)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;r||(r=document);const f=r.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(f,C=>C.classList.add("language-none")),Prism.highlightAllUnder(r)}decodeHtml(r){if(!(0,s.NF)(this.platform))return r;const f=document.createElement("textarea");return f.innerHTML=r,f.value}extendRenderer(r){const f=r;if(!0===f.\u0275NgxMarkdownRendererExtended)return r;const C=r.code;return r.code=function(j,le,Ae){return"mermaid"===le?`<div class="mermaid">${j}</div>`:C.call(this,j,le,Ae)},f.\u0275NgxMarkdownRendererExtended=!0,r}handleExtension(r,f){const C=r.lastIndexOf("://"),j=C>-1?r.substring(C+4):r,le=j.lastIndexOf("/"),Ae=le>-1?j.substring(le+1).split("?")[0]:"",Ke=Ae.lastIndexOf("."),it=Ke>-1?Ae.substring(Ke+1):"";return it&&"md"!==it?"```"+it+"\n"+f+"\n```":f}parseMarked(r,f,C=!1){return C?vn.parseInline(r,f):vn.parse(r,f)}parseEmoji(r){if(!(0,s.NF)(this.platform))return r;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(r)}renderKatex(r,f){if((0,s.NF)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(r,f)}}renderClipboard(r,f,C){if(!(0,s.NF)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!f)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:j,buttonTemplate:le}=C,Ae=r.querySelectorAll("pre");for(let Ke=0;Ke<Ae.length;Ke++){const it=Ae.item(Ke),Rt=document.createElement("div");Rt.style.position="relative",it.parentNode.insertBefore(Rt,it),Rt.appendChild(it);const Zt=document.createElement("div");let fn,ln;Zt.style.position="absolute",Zt.style.top=".5em",Zt.style.right=".5em",Zt.style.opacity="0",Zt.style.transition="opacity 250ms ease-out",Rt.insertAdjacentElement("beforeend",Zt),it.onmouseover=()=>Zt.style.opacity="1",it.onmouseout=()=>Zt.style.opacity="0",fn=j?f.createComponent(j).hostView:le?f.createEmbeddedView(le):f.createComponent(dt).hostView,fn.rootNodes.forEac
1h(On=>{On.onmouseover=()=>Zt.style.opacity="1",Zt.appendChild(On),ln=new ClipboardJS(On,{text:()=>it.innerText})}),fn.onDestroy(()=>ln.destroy())}}renderMermaid(r,f=this.DEFAULT_MERMAID_OPTIONS){if(!(0,s.NF)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const C=r.querySelectorAll(".mermaid");0!==C.length&&(mermaid.initialize(f),mermaid.init(C))}trimIndentation(r){if(!r)return"";let f;return r.split("\n").map(C=>{let j=f;return C.length>0&&(j=isNaN(j)?C.search(/\S|$/):Math.min(C.search(/\S|$/),j)),isNaN(f)&&(f=j),j?C.substring(j):C}).join("\n")}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(e.Lbi),e.LFG(Ht),e.LFG(Re.eN,8),e.LFG(Be,8),e.LFG(Pt,8),e.LFG(t.H7))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})(),En=(()=>{class y{constructor(r,f,C){this.element=r,this.markdownService=f,this.viewContainerRef=C,this.error=new e.vpe,this.load=new e.vpe,this.ready=new e.vpe,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this._srcRelativeLink=!1,this.destroyed$=new D.x}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(r){this._disableSanitizer=this.coerceBooleanProperty(r)}get inline(){return this._inline}set inline(r){this._inline=this.coerceBooleanProperty(r)}get srcRelativeLink(){return this._srcRelativeLink}set srcRelativeLink(r){this._srcRelativeLink=this.coerceBooleanProperty(r)}get clipboard(){return this._clipboard}set clipboard(r){this._clipboard=this.coerceBooleanProperty(r)}get emoji(){return this._emoji}set emoji(r){this._emoji=this.coerceBooleanProperty(r)}get katex(){return this._katex}set katex(r){this._katex=this.coerceBooleanProperty(r)}get mermaid(){return this._mermaid}set mermaid(r){this._mermaid=this.coerceBooleanProperty(r)}get lineHighlight(){return this._lineHighlight}set lineHighlight(r){this._lineHighlight=this.coerceBooleanProperty(r)}get lineNumbers(){return this._lineNumbers}set lineNumbers(r){this._lineNumbers=this.coerceBooleanProperty(r)}get commandLine(){return this._commandLine}set commandLine(r){this._commandLine=this.coerceBooleanProperty(r)}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,ne.R)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(r,f=!1){let C;this.src&&this.srcRelativeLink&&(C={baseUrl:new URL(this.src,location.origin).pathname});const le={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},Ae=this.markdownService.parse(r,{decodeHtml:f,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,markedOptions:C,disableSanitizer:this.disableSanitizer});this.element.nativeElement.innerHTML=Ae,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,le,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(r){return null!=r&&"false"!=`${String(r)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:r=>{this.render(r),this.load.emit(r)},error:r=>this.error.emit(r)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Ft.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Ft.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(r,f){const C=r.querySelectorAll("pre");for(let j=0;j<C.length;j++){const le=f instanceof Array?f:[f];C.item(j).classList.add(...le)}}setPluginOptions(r,f){const C=r.querySelectorAll("pre");for(let j=0;j<C.length;j++)Object.keys(f).forEach(le=>{const Ae=f[le];if(Ae){const Ke=this.toLispCase(le);C.item(j).setAttribute(Ke,Ae.toString())}})}toLispCase(r){const f=r.match(/([A-Z])/g);if(!f)return r;let C=r.toString();for(let j=0,le=f.length;j<le;j++)C=C.replace(new RegExp(f[j]),"-"+f[j].toLowerCase());return"-"===C.slice(0,1)&&(C=C.slice(1)),C}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(e.SBq),e.Y36(Dn),e.Y36(e.s_b))},y.\u0275cmp=e.Xpm({type:y,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",srcRelativeLink:"srcRelativeLink",clipboard:"clipboard",clipboardButtonComponent:"
1clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[e.TTD],ngContentSelectors:Bt,decls:1,vars:0,template:function(r,f){1&r&&(e.F$t(),e.Hsn(0))},encapsulation:2}),y})(),Tt=(()=>{class y{static forRoot(r){return{ngModule:y,providers:[Dn,r&&r.loader||[],r&&r.clipboardOptions||[],r&&r.markedOptions||[],{provide:Ht,useValue:r&&null!=r.sanitize?r.sanitize:e.q3G.HTML}]}}static forChild(){return{ngModule:y}}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez]}),y})();var Qt;!function(y){let g;var C;let r,f;(C=g=y.SecurityLevel||(y.SecurityLevel={})).Strict="strict",C.Loose="loose",C.Antiscript="antiscript",C.Sandbox="sandbox",function(C){C.Base="base",C.Forest="forest",C.Dark="dark",C.Default="default",C.Neutral="neutral"}(r=y.Theme||(y.Theme={})),function(C){C[C.Debug=1]="Debug",C[C.Info=2]="Info",C[C.Warn=3]="Warn",C[C.Error=4]="Error",C[C.Fatal=5]="Fatal"}(f=y.LogLevel||(y.LogLevel={}))}(Qt||(Qt={}));var nn=a(2510),dn=a(1764),ai=a.n(dn),ni=a(2340),ei=a(805),rs=a(4649),Js=a(1645),Ss=a(2252),Mi=a(8936);let bs=(()=>{class y{constructor(r){this.http=r,this.apiAddress=ni.N.apiAddress}getPaymentUrl(){return this.http.get(`${this.apiAddress}/subscription/payment/url`)}getLastSubscription(){return this.http.get(`${this.apiAddress}/subscription/check/last`)}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(Re.eN))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();var Is=a(4080),Yn=a(7932),Ji=a(2453);function Ai(y,g){1&y&&(e.TgZ(0,"div",2)(1,"div",3),e._UZ(2,"p-progressSpinner"),e.qZA()())}let Qi=(()=>{class y{constructor(r,f,C,j,le,Ae,Ke,it,Rt,Zt){this.primengConfig=r,this.spinnerService=C,this.notificationService=j,this.ms=le,this.globalObservableService=Ae,this.router=Ke,this.userService=it,this.paymentService=Rt,this.logger=Zt,this.spinner=!1,f.get("assets/es.json").subscribe(fn=>{this.primengConfig.setTranslation(fn?.es)}),this.spinnerService.httpProgress().subscribe(fn=>{this.spinner=fn}),this.eventSubscription()}ngOnInit(){this.dismissWorkspaceTransition(),this.router.events.subscribe(r=>{if(r instanceof nn.m2){const f=this.sanitizeUrl(r.urlAfterRedirects);ni.N.gaId&&"function"==typeof gtag&>ag("config",ni.N.gaId,{page_path:f})}}),this.primengConfig.ripple=!0,this.notificationService.alert$.subscribe(r=>{this.ms.add("COMPLETE"===r?{key:"tst",severity:"success",summary:"Acci\xf3n exitosa",detail:"\xa1Fuente de datos conectada con exito!"}:{key:"tst",severity:"error",summary:"Acci\xf3n fallida",detail:"La fuente de datos no pudo a\xf1adirse"})})}sanitizeUrl(r){return r.replace(/\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/gi,"/ID")}eventSubscription(){this.subscription&&this.subscription.unsubscribe(),this.subscription=this.globalObservableService.getObservable().subscribe(r=>{if("some_event"!==r.type)return;const f=this.getUserFromLocalStorage();f&&this.checkAndUpdateUserSubscription(f)})}getUserFromLocalStorage(){const r=localStorage.getItem("user");return r?JSON.parse(r):null}checkAndUpdateUserSubscription(r){if(!r.latest_active_subscription)return;const f=ai()(),{is_active:C,end_date:j}=r.latest_active_subscription,le=j?ai()(j):null;!le||!f.isAfter(le)||!C||this.userService.getUser().subscribe(Ae=>{this.userService.setUser(Ae),this.paymentService.getLastSubscription().subscribe({next:Ke=>{Ke.is_active||(localStorage.setItem("showExpiredPlan","true"),this.globalObservableService.publish("subscription_inactive",{foo:"bar"}))},error:Ke=>{404===Ke.status&&53===Ke.error.code?this.logger.error(Ke.error.message):this.logger.error("Error",Ke)}})})}dismissWorkspaceTransition(){localStorage.getItem("ws_transition")&&(localStorage.removeItem("ws_transition"),setTimeout(()=>{const r=document.getElementById("workspace-transition");r&&(r.style.opacity="0",setTimeout(()=>{r.style.display="none"},400))},600))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ei.b4),e.Y36(Re.eN),e.Y36(rs.V),e.Y36(Js.g),e.Y36(ei.ez),e.Y36(Ss.W),e.Y36(nn.F0),e.Y36(Mi.K),e.Y36(bs),e.Y36(Is.m))},y.\u0275cmp=e.Xpm({type:y,selectors:[["app-root"]],decls:4,vars:1,consts:[["style","\n width: 100vw;\n height: 100vh;\n background-color: rgba(105, 105, 105, 0.5);\n display: flex;\n overflow: hidden;\n z-index: 999999;\n position: fixed;\n top: 0;\n ",4,"ngIf"],["key","tst"],[2,"width","100vw","height","100vh","background-color","rgba(105, 105, 105, 0.5)","display","flex","overflow","hidden","z-index","999999","position","fixed","top","0"],[2,"margin","auto"]],template:function(r,f){1&r&&(e.YNc(0,Ai,3,0,"div",0),e._UZ(1,"p-toast",1)(2,"p-toast")(3,"router-outlet")),2&r&&e.Q6J("ngIf",f.spinner)},dependencies:[nn.lC,s.O5,Yn.G,Ji.FN],encapsulation:2}),y})();var Li=a(9300),ls=a(8568),ps=a(727),Ms=a(5431),ki=a(7666),sn=a(7340);let Wn=(()=>{class y{constructor(){this.menuSource=new D.x,this.resetSource=new D.x,this.menuSource$=this.menuSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onMenuStateChange(r){this.menuSource.next(r)}reset(){this.resetSource.next(!0)}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();var hi=a(1795);const fs=["globot-menuitem",""];function Ve(y,g){if(1&y&&(e.TgZ(0,"div",4),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.item.label," ")}}function he(y,g){if(1&y&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&y){const r=e.oxw(2);e.xp6(1),e.Oqu(r.item.materialIcon)}}function we(y,g){if(1&y&&e._UZ(0,"i",11),2&y){const r=e.oxw(2);e.Q6J("ngClass",r.item.icon)}}function Ne(y,g){1&y&&e._UZ(0,"i",12)}function vt(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"a",5),e.NdJ("click",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.itemClick(C))}),e.YNc(1,he,2,1,"span",6),e.YNc(2,we,1,1,"i",7),e.TgZ(3,"span",8),e._uU(4),e.qZA(),e.YNc(5,Ne,1,0,"i",9),e.qZA()}if(2&y){const r=e.oxw();e.Q6J("ngClass",r.item.class),e.uIk("href",r.item.url,e.LSH)("target",r.item.target),e.xp6(1),e.Q6J("ngIf",r.item.materialIcon),e.xp6(1),e.Q6J("ngIf",!r.item.materialIcon),e.xp6(2),e.Oqu(r.item.label),e.xp6(1),e.Q6J("ngIf",r.item.items)}}function rn(y,g){if(1&y&&(e.TgZ(0,"span",10),e._uU(1),e.qZA()),2&y){const r=e.oxw(2);e.xp6(1),e.Oqu(r.item.materialIcon)}}function hn(y,g){if(1&y&&e._UZ(0,"i",11),2&y){const r=e.oxw(2);e.Q6J("ngClass",r.item.icon)}}function Gn(y,g){1&y&&e._UZ(0,"i",12)}const Xn=function(){return{paths:"exact",queryParams:"ignored",matrixParams:"ignored",fragment:"ignored"}};function ji(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"a",13),e.NdJ("click",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.itemClick(C))}),e.YNc(1,rn,2,1,"span",6),e.YNc(2,hn,1,1,"i",7),e.TgZ(3,"span",8),e._uU(4),e.qZA(),e.YNc(5,Gn,1,0,"i",9),e.qZA()}if(2&y){const r=e.oxw();e.Q6J("ngClass",r.item.class)("routerLink",r.item.routerLink)("routerLinkActiveOptions",r.item.routerLinkActiveOptions||e.DdM(15,Xn))("fragment",r.item.fragment)("queryParamsHandling",r.item.queryParamsHandling)("preserveFragment",r.item.preserveFragment)("skipLocationChange",r.item.skipLocationChange)("replaceUrl",r.item.replaceUrl)("state",r.item.state)("queryParams",r.item.queryParams),e.uIk("target",r.item.target),e.xp6(1),e.Q6J("ngIf",r.item.materialIcon),e.xp6(1),e.Q6J("ngIf",!r.item.materialIcon),e.xp6(2),e.Oqu(r.item.label),e.xp6(1),e.Q6J("ngIf",r.item.items)}}function Ni(y,g){if(1&y&&e._UZ(0,"li",15),2&y){const r=g.$implicit,f=g.index,C=e.oxw(2);e.Tol(r.badgeClass),e.Q6J("item",r)("index",f)("parentKey",C.key)}}function xi(y,g){if(1&y&&(e.TgZ(0,"ul"),e.YNc(1,Ni,1,5,"ng-template",14),e.qZA()),2&y){const r=e.oxw();e.Q6J("@children",r.submenuAnimation),e.xp6(1),e.Q6J("ngForOf",r.item.items)}}let ms=(()=>{class y{constructor(r,f,C,j){this.layoutService=r,this.cd=f,this.router=C,this.menuService=j,this.active=!1,this.key="",this.menuSourceSubscription=this.menuService.menuSource$.subscribe(le=>{Promise.resolve(null).then(()=>{this.active=le.routeEvent?le.key===this.key||le.key.startsWith(this.key+"-"):!(le.key===this.key||le.key.startsWith(this.key+"-"))})}),this.menuResetSubscription=this.menuService.resetSource$.subscribe(()=>{this.active=!1}),this.router.events.pipe((0,Li.h)(le=>le instanceof nn.m2)).subscribe(le=>{this.item.routerLink&&this.updateActiveStateFromRoute()})}ngOnInit(){this.key=this.parentKey?this.parentKey+"-"+this.index:String(this.index),this.item.routerLink&&this.updateActiveStateFromRoute()}updateActiveStateFromRoute(){this.router.isActive(this.item.routerLink[0],{paths:"exact",queryParams:"ignored",matrixParams:"ignored",fragment:"ignored"}
1)&&this.menuService.onMenuStateChange({key:this.key,routeEvent:!0})}itemClick(r){this.item.disabled?r.preventDefault():(this.item.command&&this.item.command({originalEvent:r,item:this.item}),this.item.items&&(this.active=!this.active),this.menuService.onMenuStateChange({key:this.key}))}get submenuAnimation(){return this.root||this.active?"expanded":"collapsed"}get activeClass(){return this.active&&!this.root}ngOnDestroy(){this.menuSourceSubscription&&this.menuSourceSubscription.unsubscribe(),this.menuResetSubscription&&this.menuResetSubscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ls.P),e.Y36(e.sBO),e.Y36(nn.F0),e.Y36(Wn))},y.\u0275cmp=e.Xpm({type:y,selectors:[["","globot-menuitem",""]],hostVars:4,hostBindings:function(r,f){2&r&&e.ekj("layout-root-menuitem",f.root)("active-menuitem",f.activeClass)},inputs:{item:"item",index:"index",root:"root",parentKey:"parentKey"},attrs:fs,decls:5,vars:4,consts:[["class","layout-menuitem-root-text",4,"ngIf"],["tabindex","0","pRipple","",3,"ngClass","click",4,"ngIf"],["routerLinkActive","active-route","tabindex","0","pRipple","",3,"ngClass","routerLink","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","queryParams","click",4,"ngIf"],[4,"ngIf"],[1,"layout-menuitem-root-text"],["tabindex","0","pRipple","",3,"ngClass","click"],["class","material-symbols-outlined layout-menuitem-icon",4,"ngIf"],["class","layout-menuitem-icon",3,"ngClass",4,"ngIf"],[1,"layout-menuitem-text"],["class","pi pi-fw pi-angle-down layout-submenu-toggler",4,"ngIf"],[1,"material-symbols-outlined","layout-menuitem-icon"],[1,"layout-menuitem-icon",3,"ngClass"],[1,"pi","pi-fw","pi-angle-down","layout-submenu-toggler"],["routerLinkActive","active-route","tabindex","0","pRipple","",3,"ngClass","routerLink","routerLinkActiveOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","queryParams","click"],["ngFor","",3,"ngForOf"],["globot-menuitem","",3,"item","index","parentKey"]],template:function(r,f){1&r&&(e.ynx(0),e.YNc(1,Ve,2,1,"div",0),e.YNc(2,vt,6,7,"a",1),e.YNc(3,ji,6,16,"a",2),e.YNc(4,xi,2,2,"ul",3),e.BQk()),2&r&&(e.xp6(1),e.Q6J("ngIf",f.root&&!1!==f.item.visible),e.xp6(1),e.Q6J("ngIf",(!f.item.routerLink||f.item.items)&&!1!==f.item.visible),e.xp6(1),e.Q6J("ngIf",f.item.routerLink&&!f.item.items&&!1!==f.item.visible),e.xp6(1),e.Q6J("ngIf",f.item.items&&!1!==f.item.visible))},dependencies:[s.mk,s.sg,s.O5,hi.H,nn.rH,nn.Od,y],encapsulation:2,data:{animation:[(0,sn.X$)("children",[(0,sn.SB)("collapsed",(0,sn.oB)({height:"0"})),(0,sn.SB)("expanded",(0,sn.oB)({height:"*"})),(0,sn.eR)("collapsed <=> expanded",(0,sn.jt)("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}}),y})();function Qs(y,g){if(1&y&&e._UZ(0,"li",4),2&y){const r=e.oxw(),C=r.index;e.Q6J("item",r.$implicit)("index",C)("root",!0)}}function Qn(y,g){1&y&&e._UZ(0,"li",5)}function ir(y,g){if(1&y&&(e.ynx(0),e.YNc(1,Qs,1,3,"li",2),e.YNc(2,Qn,1,0,"li",3),e.BQk()),2&y){const r=g.$implicit;e.xp6(1),e.Q6J("ngIf",!r.separator),e.xp6(1),e.Q6J("ngIf",r.separator)}}let qs=(()=>{class y{constructor(r,f,C,j,le){this.layoutService=r,this.router=f,this.permissionService=C,this.botService=j,this.userService=le,this.model=[],this.subscription=new ps.w0}ngOnInit(){this.buildMenu(),this.subscription.add(this.router.events.pipe((0,Li.h)(r=>r instanceof nn.m2)).subscribe(()=>this.buildMenu())),this.subscription.add(this.permissionService.currentRole$.subscribe(()=>this.buildMenu())),this.subscription.add(this.botService.haveBots$.subscribe(()=>this.buildMenu()))}buildMenu(){const f=this.router.routerState.snapshot.url.match(/edit-bot\/([^/]+)/);this.model=f?this.buildBotMenu(`/dashboard/edit-bot/${f[1]}`):this.buildDefaultMenu()}buildBotMenu(r){const f=it=>this.permissionService.hasPermission(it),C=it=>this.permissionService.hasAnyPermission(it),j=[{label:"Estad\xedsticas",icon:"pi pi-fw pi-chart-bar",routerLink:[`${r}/dashboard`]},{label:"Chat en vivo",icon:"pi pi-fw pi-comment",routerLink:[`${r}/live`]}];j.push({label:"Historial",icon:"pi pi-fw pi-history",routerLink:[`${r}/records`]});const le=[{label:"Probar asistente",icon:"pi pi-fw pi-play",routerLink:[`${r}/widget-config`]}];C(["chatbots.view","chatbots.config","chatbots.edit"])&&le.push({label:"Configuraciones",icon:"pi pi-fw pi-cog",routerLink:[`${r}/config`]}),C(["datasources.view","datasources.create","datasources.edit"])&&le.push({label:"Carga de informaci\xf3n",icon:"pi pi-fw pi-upload",routerLink:[`${r}/datasource`]});const Ae=[];(f("integrations.edit")||f("integrations.create")||f("integrations.view"))&&Ae.push({label:"Agregar a sitio web",icon:"pi pi-fw pi-globe",routerLink:[`${r}/embed`]},{label:"Whatsapp",icon:"pi pi-fw pi-whatsapp",routerLink:[`${r}/whatsapp`]},{label:"Messenger",icon:"pi pi-fw pi-facebook",routerLink:[`${r}/messenger`]},{label:"Instagram",icon:"pi pi-fw pi-instagram",routerLink:[`${r}/instagram`]});const Ke=[{label:"Operaci\xf3n",items:j}];return le.length>0&&Ke.push({label:"Configuraci\xf3n",items:le}),Ae.length>0&&Ke.push({label:"Canales",items:Ae}),Ke}buildDefaultMenu(){const r=it=>this.permissionService.hasPermission(it),f=this.userService.getUserLocalStorage(),j=!this.botService.haveBots()&&f?.on_boarding?{disabled:!0,class:"layout-menuitem-disabled"}:{},le=[Object.assign({label:"Mis asistentes",materialIcon:"smart_toy",routerLink:["/dashboard/bot"]},j)];(r("conversations.manage")||r("conversations.view"))&&le.push(Object.assign({label:"Clientes",icon:"pi pi-fw pi-id-card",routerLink:["/dashboard/crm/clientes"]},j));const Ae=[];Ae.push(Object.assign({label:"Mi equipo",icon:"pi pi-fw pi-users",routerLink:["/dashboard/team"]},j)),r("leads.config")&&Ae.push(Object.assign({label:"Notificaciones",icon:"pi pi-fw pi-bell",routerLink:["/dashboard/notifications"]},j));const Ke=[{label:"Operaci\xf3n",items:le}];return Ae.length>0&&Ke.push({label:"Configuraci\xf3n",items:Ae}),Ke}
1ngOnDestroy(){this.subscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ls.P),e.Y36(nn.F0),e.Y36(Ms.$),e.Y36(ki.G),e.Y36(Mi.K))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-menu"]],decls:2,vars:1,consts:[[1,"layout-menu"],[4,"ngFor","ngForOf"],["globot-menuitem","",3,"item","index","root",4,"ngIf"],["class","menu-separator",4,"ngIf"],["globot-menuitem","",3,"item","index","root"],[1,"menu-separator"]],template:function(r,f){1&r&&(e.TgZ(0,"ul",0),e.YNc(1,ir,3,2,"ng-container",1),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngForOf",f.model))},dependencies:[s.sg,s.O5,ms],encapsulation:2}),y})();var Ii=a(2318),Mn=a(4006),qi=a(3608),Xs=a(2210),Ti=a(9592),gs=a(982);function Ns(y,g){1&y&&e.GkF(0)}function Xi(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(C){e.CHM(r);const j=e.oxw(2);return e.KtG(j.onCloseClick(C))})("keydown.enter",function(){e.CHM(r);const C=e.oxw(2);return e.KtG(C.hide())}),e._UZ(1,"span",6),e.qZA()}if(2&y){const r=e.oxw(2);e.uIk("aria-label",r.ariaCloseLabel)}}const Yr=function(y,g){return{showTransitionParams:y,hideTransitionParams:g}},os=function(y,g){return{value:y,params:g}};function $i(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",1),e.NdJ("click",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onOverlayClick(C))})("@animation.start",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onAnimationStart(C))})("@animation.done",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onAnimationEnd(C))}),e.TgZ(1,"div",2),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onContentClick())})("mousedown",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onContentClick())}),e.Hsn(2),e.YNc(3,Ns,1,0,"ng-container",3),e.qZA(),e.YNc(4,Xi,2,1,"button",4),e.qZA()}if(2&y){const r=e.oxw();e.Tol(r.styleClass),e.Q6J("ngClass","p-overlaypanel p-component")("ngStyle",r.style)("@animation",e.WLB(10,os,r.overlayVisible?"open":"close",e.WLB(7,Yr,r.showTransitionOptions,r.hideTransitionOptions))),e.xp6(3),e.Q6J("ngTemplateOutlet",r.contentTemplate),e.xp6(1),e.Q6J("ngIf",r.showCloseIcon)}}const As=["*"];let Bs=(()=>{class y{constructor(r,f,C,j,le,Ae){this.el=r,this.renderer=f,this.cd=C,this.zone=j,this.config=le,this.overlayService=Ae,this.dismissable=!0,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new e.vpe,this.onHide=new e.vpe,this.overlayVisible=!1,this.render=!1,this.isOverlayAnimationInProgress=!1,this.selfClick=!1}
1ngAfterContentInit(){this.templates.forEach(r=>{r.getType(),this.contentTemplate=r.template,this.cd.markForCheck()})}bindDocumentClickListener(){!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular(()=>{let r=Ti.p.isIOS()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document",r,C=>{!this.container.contains(C.target)&&this.target!==C.target&&!this.target.contains(C.target)&&!this.selfClick&&this.zone.run(()=>{this.hide()}),this.selfClick=!1,this.cd.markForCheck()})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(r,f){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(r,f)&&(this.destroyCallback=()=>{this.show(null,f||r.currentTarget||r.target)}),this.hide()):this.show(r,f))}show(r,f){this.isOverlayAnimationInProgress||(this.target=f||r.currentTarget||r.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(r){this.overlayService.add({originalEvent:r,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(){this.selfClick=!0}hasTargetChanged(r,f){return null!=this.target&&this.target!==(f||r.currentTarget||r.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):Ti.p.appendChild(this.container,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}align(){this.autoZIndex&&gs.P9.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),Ti.p.absolutePosition(this.container,this.target);const r=Ti.p.getOffset(this.container),f=Ti.p.getOffset(this.target);let C=0;r.left<f.left&&(C=f.left-r.left),this.container.style.setProperty("--overlayArrowLeft",`${C}px`),r.top<f.top&&(Ti.p.addClass(this.container,"p-overlaypanel-flipped"),this.showCloseIcon&&(this.container.style.marginTop="30px"))}onAnimationStart(r){"open"===r.toState&&(this.container=r.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=f=>{this.container&&this.container.contains(f.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(r){switch(r.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&gs.P9.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let r=Ti.p.findSingle(this.container,"[autofocus]");r&&this.zone.runOutsideAngular(()=>{setTimeout(()=>r.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(r){this.hide(),r.preventDefault()}onWindowResize(r){this.overlayVisible&&!Ti.p.isTouchDevice()&&this.hide()}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ti.V(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&gs.P9.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(ei.b4),e.Y36(ei.F0))},y.\u0275cmp=e.Xpm({type:y,selectors:[["p-overlayPanel"]],contentQueries:function(r,f,C){if(1&r&&e.Suo(C,ei.jx,4),2&r){let j;e.iGM(j=e.CRH())&&(f.templates=j)}},hostAttrs:[1,"p-element"],inputs:{dismissable:"dismissable",showCloseIcon:"showCloseIcon",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",ariaCloseLabel:"ariaCloseLabel",baseZIndex:"baseZIndex",focusOnShow:"focusOnShow",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},ngContentSelectors:As,decls:1,vars:1,consts:[[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],[1,"p-overlaypanel-content",3,"click","mousedown"],[4,"ngTemplateOutlet"],["type","button","class","p-overlaypanel-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],["type","button","pRipple","",1,"p-overlaypanel-close","p-link",3,"click","keydown.enter"],[1,"p-overlaypanel-close-icon","pi","pi-times"]],template:function(r,f){1&r&&(e.F$t(),e.YNc(0,$i,5,13,"div",0)),2&r&&e.Q6J("ngIf",f.render)},dependencies:[s.mk,s.O5,s.tP,s.PC,hi.H],styles:['.p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.p-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after{border-bottom-color:transparent}.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n'],encapsulation:2,data:{animation:[(0,sn.X$)("animation",[(0,sn.SB)("void",(0,sn.oB)({transform:"scaleY(0.8)",opacity:0}
1)),(0,sn.SB)("close",(0,sn.oB)({opacity:0})),(0,sn.SB)("open",(0,sn.oB)({transform:"translateY(0)",opacity:1})),(0,sn.eR)("void => open",(0,sn.jt)("{{showTransitionParams}}")),(0,sn.eR)("open => close",(0,sn.jt)("{{hideTransitionParams}}"))])]},changeDetection:0}),y})(),ks=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,hi.T,ei.m8,ei.m8]}),y})();function ts(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",5)(1,"button",6),e.NdJ("click",function(C){e.CHM(r),e.oxw();const j=e.MAs(3);return e.KtG(j.toggle(C))}),e._uU(2),e.qZA()()}if(2&y){const r=e.oxw();e.Q6J("pTooltip",r.selectedWorkspace.name),e.xp6(1),e.uIk("aria-label","Cambiar equipo, actual: "+r.selectedWorkspace.name),e.xp6(1),e.hij(" ",r.getInitial(r.selectedWorkspace.name)," ")}}function Jr(y,g){1&y&&(e.TgZ(0,"span",14),e._uU(1,"(M\xedo)"),e.qZA())}function sr(y,g){if(1&y&&(e.TgZ(0,"div",11)(1,"span",12),e._uU(2),e.qZA(),e.YNc(3,Jr,2,0,"span",13),e.qZA()),2&y){const r=g.$implicit,f=e.oxw(2);e.xp6(2),e.Oqu(r.name),e.xp6(1),e.Q6J("ngIf",f.isPersonalWorkspace(r))}}function oo(y,g){1&y&&(e.TgZ(0,"span",14),e._uU(1,"(M\xedo)"),e.qZA())}function Dr(y,g){if(1&y&&(e.TgZ(0,"div",11)(1,"span",12),e._uU(2),e.qZA(),e.YNc(3,oo,2,0,"span",13),e.qZA()),2&y){const r=g.$implicit,f=e.oxw(2);e.xp6(2),e.Oqu(r.name),e.xp6(1),e.Q6J("ngIf",f.isPersonalWorkspace(r))}}const Vr=function(){return{width:"100%"}};function dr(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",7)(1,"p-dropdown",8),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.selectedWorkspaceId=C)})("onChange",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onWorkspaceChange(C.value))}),e.YNc(2,sr,4,2,"ng-template",9),e.YNc(3,Dr,4,2,"ng-template",10),e.qZA()()}if(2&y){const r=e.oxw();e.xp6(1),e.Akn(e.DdM(5,Vr)),e.Q6J("options",r.workspaces)("ngModel",r.selectedWorkspaceId)("disabled",r.loading)}}function Gi(y,g){1&y&&(e.TgZ(0,"span",14),e._uU(1,"(M\xedo)"),e.qZA())}function Ki(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",15),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(),Ae=e.MAs(3);return le.onWorkspaceChange(j.id),e.KtG(Ae.hide())}),e.TgZ(1,"div",16),e._uU(2),e.qZA(),e.TgZ(3,"span",12),e._uU(4),e.qZA(),e.YNc(5,Gi,2,0,"span",13),e.qZA()}if(2&y){const r=g.$implicit,f=e.oxw();e.ekj("ws-overlay-item--active",r.id===f.selectedWorkspaceId),e.uIk("aria-label","Cambiar a equipo "+r.name),e.xp6(2),e.Oqu(f.getInitial(r.name)),e.xp6(2),e.Oqu(r.name),e.xp6(1),e.Q6J("ngIf",f.isPersonalWorkspace(r))}}let rr=(()=>{class y{constructor(r,f,C){this.workspaceService=r,this.userService=f,this.messageService=C,this.collapsed=!1,this.workspaces=[],this.selectedWorkspaceId=null,this.loading=!0,this.subscription=new ps.w0}ngOnInit(){this.user=this.userService.getUserLocalStorage(),this.subscription.add(this.userService.user$.subscribe(r=>{r&&(this.user=r,this.sortWorkspaces())})),this.loadWorkspaces(),this.subscription.add(this.workspaceService.getCurrentWorkspaceObservable().subscribe(r=>{if(r){this.selectedWorkspaceId=r.id;const f=this.workspaces.findIndex(C=>C.id===r.id);-1!==f&&(this.workspaces[f]=Object.assign(Object.assign({},this.workspaces[f]),r),this.workspaces=[...this.workspaces])}}))}loadWorkspaces(){this.loading=!0,this.subscription.add(this.workspaceService.getUserWorkspaces().subscribe({next:r=>{this.workspaces=r,this.sortWorkspaces(),this.selectedWorkspaceId=this.workspaceService.getCurrentWorkspaceFromStorage(),!this.selectedWorkspaceId&&r.length>0&&this.subscription.add(this.workspaceService.getCurrentWorkspace().subscribe({next:f=>{f&&(this.selectedWorkspaceId=f.id)}})),this.loading=!1},error:()=>{this.loading=!1}}))}sortWorkspaces(){!this.user||!this.workspaces.length||this.workspaces.sort((r,f)=>{const C=r.owner_id===this.user.id,j=f.owner_id===this.user.id;return C&&!j?-1:!C&&j?1:r.name.localeCompare(f.name)})}isPersonalWorkspace(r){return!!this.user&&r.owner_id===this.user.id}getInitial(r){return r?r.charAt(0).toUpperCase():"?"}onWorkspaceChange(r){r!==this.workspaceService.getCurrentWorkspaceFromStorage()&&this.workspaceService.switchWorkspaceAndNavigate(r)}get selectedWorkspace(){return this.workspaces.find(r=>r.id===this.selectedWorkspaceId)}ngOnDestroy(){this.subscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(Ii.A),e.Y36(Mi.K),e.Y36(ei.ez))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-workspace-selector"]],inputs:{collapsed:"collapsed"},features:[e._Bn([ei.ez])],decls:6,vars:3,consts:[["class","ws-selector-collapsed","tooltipPosition","right",3,"pTooltip",4,"ngIf"],["class","ws-selector-expanded",4,"ngIf"],["o
1p",""],[1,"ws-overlay-list"],["type","button","class","ws-overlay-item",3,"ws-overlay-item--active","click",4,"ngFor","ngForOf"],["tooltipPosition","right",1,"ws-selector-collapsed",3,"pTooltip"],["type","button",1,"ws-avatar",3,"click"],[1,"ws-selector-expanded"],["optionValue","id","placeholder","Seleccionar equipo","styleClass","ws-dropdown","appendTo","body",3,"options","ngModel","disabled","ngModelChange","onChange"],["pTemplate","selectedItem"],["pTemplate","item"],[1,"ws-item"],[1,"ws-name"],["class","ws-badge",4,"ngIf"],[1,"ws-badge"],["type","button",1,"ws-overlay-item",3,"click"],["aria-hidden","true",1,"ws-avatar","ws-avatar--sm"]],template:function(r,f){1&r&&(e.YNc(0,ts,3,3,"div",0),e.YNc(1,dr,4,6,"div",1),e.TgZ(2,"p-overlayPanel",null,2)(4,"div",3),e.YNc(5,Ki,6,6,"button",4),e.qZA()()),2&r&&(e.Q6J("ngIf",f.collapsed&&f.selectedWorkspace),e.xp6(1),e.Q6J("ngIf",!f.collapsed),e.xp6(4),e.Q6J("ngForOf",f.workspaces))},dependencies:[s.sg,s.O5,Mn.JJ,Mn.On,ei.jx,qi.u,Xs.Lt,Bs],styles:["[_nghost-%COMP%]{display:block;width:100%}.ws-selector-collapsed[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:.5rem 0}.ws-selector-expanded[_ngcontent-%COMP%]{padding:0}.ws-avatar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:.5rem;border:none;padding:0;background:var(--primary-color, #7b5cf5);color:#fff;font-weight:600;font-size:.875rem;font-family:inherit;cursor:pointer;flex-shrink:0;transition:opacity .2s}.ws-avatar[_ngcontent-%COMP%]:hover{opacity:.85}.ws-avatar--sm[_ngcontent-%COMP%]{width:1.75rem;height:1.75rem;font-size:.75rem}.ws-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.ws-name[_ngcontent-%COMP%]{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ws-badge[_ngcontent-%COMP%]{font-size:.7rem;color:var(--primary-color, #7b5cf5);font-weight:600;white-space:nowrap} .ws-dropdown{width:100%} .ws-dropdown .p-dropdown-label{padding:.5rem .75rem;font-size:16px} .ws-dropdown .ws-name{font-size:16px;max-width:none}.ws-overlay-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;
1min-width:200px;max-height:300px;overflow-y:auto}.ws-overlay-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:.375rem;transition:background .15s}.ws-overlay-item[_ngcontent-%COMP%]:hover{background:var(--surface-hover, #f5f5f5)}.ws-overlay-item--active[_ngcontent-%COMP%]{background:var(--highlight-bg, #ede9fe)}"]}),y})();function Hr(y,g){1&y&&(e.TgZ(0,"span",15),e._uU(1,"Mis asistentes"),e.qZA())}function Os(y,g){if(1&y&&(e.TgZ(0,"li")(1,"a",14)(2,"span",10),e._uU(3,"smart_toy"),e.qZA(),e.YNc(4,Hr,2,0,"span",11),e.qZA()()),2&y){const r=e.oxw();e.xp6(4),e.Q6J("ngIf",!r.layoutService.state.sidebarCollapsed)}}function er(y,g){1&y&&(e.TgZ(0,"span",15),e._uU(1,"Ayuda"),e.qZA())}function zr(y,g){1&y&&(e.TgZ(0,"span",15),e._uU(1,"Mi cuenta"),e.qZA())}function Ir(y,g){1&y&&(e.TgZ(0,"span",15),e._uU(1,"Cerrar sesi\xf3n"),e.qZA())}let Qr=(()=>{class y{constructor(r,f,C,j){this.layoutService=r,this.el=f,this.router=C,this.userService=j}get isInsideBot(){return/edit-bot\//.test(this.router.routerState.snapshot.url)}openHelp(){window.open("https://globot.ai/tutoriales/","_blank","noopener")}logout(){this.userService.logout()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ls.P),e.Y36(e.SBq),e.Y36(nn.F0),e.Y36(Mi.K))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-sidebar"]],decls:25,vars:8,consts:[[1,"layout-sidebar"],[1,"sidebar-header"],["routerLink","/dashboard",1,"sidebar-brand"],["alt","Globot",1,"sidebar-brand-icon",3,"src"],[3,"collapsed"],[1,"sidebar-content"],[1,"sidebar-footer"],[1,"sidebar-footer-menu"],[4,"ngIf"],[1,"sidebar-footer-item",3,"click"],[1,"material-symbols-outlined","sidebar-footer-icon"],["class","sidebar-footer-label",4,"ngIf"],["routerLink","/dashboard/edit-user","routerLinkActive","active-route",1,"sidebar-footer-item"],[1,"sidebar-footer-item","sidebar-footer-item--logout",3,"click"],["routerLink","/dashboard/bot",1,"sidebar-footer-item"],[1,"sidebar-footer-label"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"a",2),e._UZ(3,"img",3),e.qZA()(),e._UZ(4,"globot-workspace-selector",4),e.TgZ(5,"div",5),e._UZ(6,"globot-menu"),e.qZA(),e.TgZ(7,"div",6)(8,"ul",7),e.YNc(9,Os,5,1,"li",8),e.TgZ(10,"li")(11,"a",9),e.NdJ("click",function(){return f.openHelp()}),e.TgZ(12,"span",10),e._uU(13,"help_outline"),e.qZA(),e.YNc(14,er,2,0,"span",11),e.qZA()(),e.TgZ(15,"li")(16,"a",12)(17,"span",10),e._uU(18,"person"),e.qZA(),e.YNc(19,zr,2,0,"span",11),e.qZA()(),e.TgZ(20,"li")(21,"a",13),e.NdJ("click",function(){return f.logout()}),e.TgZ(22,"span",10),e._uU(23,"logout"),e.qZA(),e.YNc(24,Ir,2,0,"span",11),e.qZA()()()()()),2&r&&(e.ekj("sidebar-collapsed",f.layoutService.state.sidebarCollapsed),e.xp6(3),e.Q6J("src",f.layoutService.state.sidebarCollapsed?"assets/icons/globot-icon.svg":"assets/icons/globot.svg",e.LSH),e.xp6(1),e.Q6J("collapsed",f.layoutService.state.sidebarCollapsed),e.xp6(5),e.Q6J("ngIf",f.isInsideBot),e.xp6(5),e.Q6J("ngIf",!f.layoutService.state.sidebarCollapsed),e.xp6(5),e.Q6J("ngIf",!f.layoutService.state.sidebarCollapsed),e.xp6(5),e.Q6J("ngIf",!f.layoutService.state.sidebarCollapsed))},dependencies:[s.O5,nn.rH,nn.Od,qs,rr],encapsulation:2}),y})();const qr=["sublist"],hr=function(y){return{"p-hidden":y}};function Ar(y,g){if(1&y&&e._UZ(0,"li",5),2&y){const r=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(1,hr,!1===r.visible))}}function ao(y,g){if(1&y&&e._UZ(0,"span",17),2&y){const r=e.oxw(3).$implicit;e.Q6J("ngClass",r.icon)("ngStyle",r.iconStyle)}}function Mo(y,g){if(1&y&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&y){const r=e.oxw(3).$implicit;e.xp6(1),e.Oqu(r.label)}}function Ws(y,g){if(1&y&&e._UZ(0,"span",19),2&y){const r=e.oxw(3).$implicit;e.Q6J("innerHTML",r.label,e.oJD)}}function Vs(y,g){if(1&y&&(e.TgZ(0,"span",20),e._uU(1),e.qZA()),2&y){const r=e.oxw(3).$implicit;e.Q6J("ngClass",r.badgeStyleClass),e.xp6(1),e.Oqu(r.badge)}}function Xr(y,g){1&y&&e._UZ(0,"span",21)}const pr=function(y){return{"p-menuitem-link":!0,"p-disabled":y}};function kr(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"a",11),e.NdJ("keydown",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemKeyDown(C,j))})("click",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemClick(C,j))})("mouseenter",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemMouseEnter(C,j))}),e.YNc(1,ao,1,2,"span",12),e.YNc(2,Mo,2,1,"span",13),e.YNc(3,Ws,1,1,"ng-template",null,14,e.W1O),e.YNc(5,Vs,2,2,"span",15),e.YNc(6,Xr,1,0,"span",16),e.qZA()}if(2&y){const r=e.MAs(4),f=e.oxw(2).$implicit,C=e.oxw();e.Q6J("target",f.target)("ngClass",e.VKq(14,pr,f.disabled)),e.uIk("href",f.url,e.LSH)("data-automationid",f.automationId)("title",f.title)("id",f.id)("tabindex",f.disabled?null:"0")("aria-haspopup",null!=C.item.items)("aria-expanded",C.item===C.activeItem),e.xp6(1),e.Q6J("ngIf",f.icon),e.xp6(1),e.Q6J("ngIf",!1!==f.escape)("ngIfElse",r),e.xp6(3),e.Q6J("ngIf",f.badge),e.xp6(1),e.Q6J("ngIf",f.items)}}function He(y,g){if(1&y&&e._UZ(0,"span",17),2&y){const r=e.oxw(3).$implicit;e.Q6J("ngClass",r.icon)("ngStyle",r.iconStyle)}}function gt(y,g){if(1&y&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&y){const r=e.oxw(3).$implicit;e.xp6(1),e.Oqu(r.label)}}function H(y,g){if(1&y&&e._UZ(0,"span",19),2&y){const r=e.oxw(3).$implicit;e.Q6J("innerHTML",r.label,e.oJD)}}function xe(y,g){if(1&y&&(e.TgZ(0,"span",20),e._uU(1),e.qZA()),2&y){const r=e.oxw(3).$implicit;e.Q6J("ngClass",r.badgeStyleClass),e.xp6(1),e.Oqu(r.badge)}}function Fe(y,g){1&y&&e._UZ(0,"span",21)}const et=function(){return{exact:!1}};function en(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"a",22),e.NdJ("keydown",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemKeyDown(C,j))})("click",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemClick(C,j))})("mouseenter",function(C){e.CHM(r);const j=e.oxw(2).$implicit,le=e.oxw();return e.KtG(le.onItemMouseEnter(C,j))}),e.YNc(1,He,1,2,"span",12),e.YNc(2,gt,2,1,"span",13),e.YNc(3,H,1,1,"ng-template",null,23,e.W1O),e.YNc(5,xe,2,2,"span",15),e.YNc(6,Fe,1,0,"span",16),e.qZA()}if(2&y){const r=e.MAs(4),f=e.oxw(2).$implicit;e.Q6J("routerLink",f.routerLink)("queryParams",f.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",f.routerLinkActiveOptions||e.DdM(21,et))("target",f.target)("ngClass",e.VKq(22,pr,f.disabled))("fragment",f.fragment)("queryParamsHandling",f.queryParamsHandling)("preserveFragment",f.preserveFragment)("skipLocationChange",f.skipLocationChange)("replaceUrl",f.replaceUrl)("state",f.state),e.uIk("data-automationid",f.automationId)("title",f.title)("id",f.id)("tabindex",f.disabled?null:"0"),e.xp6(1),e.Q6J("ngIf",f.icon),e.xp6(1),e.Q6J("ngIf",!1!==f.escape)("ngIfElse",r),e.xp6(3),e.Q6J("ngIf",f.badge),e.xp6(1),e.Q6J("ngIf",f.items)}}function mn(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"p-tieredMenuSub",24),e.NdJ("keydownItem",function(C){e.CHM(r);const j=e.oxw(3);return e.KtG(j.onChildItemKeyDown(C))})("leafClick",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.onLeafClick())}),e.qZA()}if(2&y){const r=e.oxw(2).$implicit,f=e.oxw();e.Q6J("parentActive",r===f.activeItem)("item",r)("mobileActive",f.mobileActive)("autoDisplay",f.autoDisplay)("popup",f.popup)}}const kn=function(y,g){return{"p-menuitem":!0,"p-menuitem-active":y,"p-hidden":g}};function ui(y,g){if(1&y&&(e.TgZ(0,"li",6,7),e.YNc(2,kr,7,16,"a",8),e.YNc(3,en,7,24,"a",9),e.YNc(4,mn,1,5,"p-tieredMenuSub",10),e.qZA()),2&y){const r=e.oxw().$implicit,f=e.oxw();e.Tol(r.styleClass),e.Q6J("ngClass",e.WLB(8,kn,r===f.activeItem,!1===r.visible))("ngStyle",r.style)("tooltipOptions",r.tooltipOptions),e.xp6(2),e.Q6J("ngIf",!r.routerLink),e.xp6(1),e.Q6J("ngIf",r.routerLink),e.xp6(1),e.Q6J("ngIf",r.items)}}function $n(y,g){if(1&y&&(e.YNc(0,Ar,1,3,"li",3),e.YNc(1,ui,5,11,"li",4)),2&y){const r=g.$implicit;e.Q6J("ngIf",r.separator),e.xp6(1),e.Q6J("ngIf",!r.separator)}}const pi=function(y){return{"p-submenu-list":y}},ns=function(y){return{"p-tieredmenu p-component":!0,"p-tieredmenu-overlay":y}},Oi=function(y,g){return{showTransitionParams:y,hideTransitionParams:g}},Ur=function(y){return{value:"visible",params:y}};function $r(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",1),e.NdJ("click",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onOverlayClick(C))})("@overlayAnimation.start",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onOverlayAnimationStart(C))})("@overlayAnimation.done",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.onOverlayAnimationEnd(C))}),e.TgZ(1,"p-tieredMenuSub",2),e.NdJ("leafClick",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onLeafClick())}),e.qZA()()}if(2&y){const r=e.oxw();e.Tol(r.styleClass),e.Q6J("ngClass",e.VKq(12,ns,r.popup))("ngStyle",r.style)("@overlayAnimation",e.VKq(17,Ur,e.WLB(14,Oi,r.showTransitionOptions,r.hideTransitionOptions)))("@.disabled",!0!==r.popup),e.xp6(1),e.Q6J("item",r.model)("parentActive",r.parentActive)("baseZIndex",r.baseZIndex)("autoZIndex",r.autoZIndex)("autoDisplay",r.autoDisplay)("popup",r.popup)}}let fr=(()=>{class y{constructor(r,f,C){this.el=r,this.renderer=f,this.cd=C,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new e.vpe,this.keydownItem=new e.vpe,this.menuHoverActive=!1}get parentActive(){return this._parentActive}set parentActive(r){this.root||(this._parentActive=r,r?this.positionSubmenu():this.activeItem=null)}onItemClick(r,f){f.disabled?r.preventDefault():(!f.url&&!f.routerLink&&r.preventDefault(),f.command&&f.command({originalEvent:r,item:f}),f.items&&(this.activeItem&&f===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=f,this.root&&this.bindDocumentClickListener())),f.items||this.onLeafClick())}onItemMouseEnter(r,f){f.disabled||this.mobileActive?r.preventDefault():this.root?(this.activeItem||this.autoDisplay||this.popup)&&(this.activeItem=f,this.bindDocumentClickListener()):(this.activeItem=f,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}onItemKeyDown(r,f){let C=r.currentTarget.parentElement;switch(r.key){case"ArrowDown":const j=this.findNextItem(C);j&&j.children[0].focus(),r.preventDefault();break;case"ArrowUp":const le=this.findPrevItem(C);le&&le.children[0].focus(),r.preventDefault();break;case"ArrowRight":f.items&&(this.activeItem=f,this.root&&this.bindDocumentClickListener(),setTimeout(()=>{C.children[1].children[0].children[0].children[0].focus()},50)),r.preventDefault();break;case"Enter":f.routerLink||this.onItemClick(r,f)}this.keydownItem.emit({originalEvent:r,element:C})}positionSubmenu(){let r=this.sublistViewChild&&this.sublistViewChild.nativeElement;if(r){const f=r.parentElement.parentElement,C=Ti.p.getOffset(f),j=Ti.p.getViewport(),le=r.offsetParent?r.offsetWidth:Ti.p.getHiddenElementOuterWidth(r),Ae=Ti.p.getOuterWidth(f.children[0]);parseInt(C.left,10)+Ae+le>j.width-Ti.p.calculateScrollbarWidth()&&Ti.p.addClass(r,"p-submenu-list-flipped")}}findNextItem(r){let f=r.nextElementSibling;return f?Ti.p.hasClass(f,"p-disabled")||!Ti.p.hasClass(f,"p-menuitem")?this.findNextItem(f):f:null}findPrevItem(r){let f=r.previousElementSibling;return f?Ti.p.hasClass(f,"p-disabled")||!Ti.p.hasClass(f,"p-menuitem")?this.findPrevItem(f):f:null}onChildItemKeyDown(r){"ArrowLeft"===r.originalEvent.key&&(this.activeItem=null,this.root&&this.unbindDocumentClickListener(),r.element.parentElement.parentElement.parentElement.children[0].focus())}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=r=>{this.el&&!this.el.nativeElement.contains(r.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},y.\u0275cmp=e.Xpm({type:y,selectors:[["p-tieredMenuSub"]],viewQuery:function(r,f){if(1&r&&e.Gf(qr,5),2&r){let C;e.iGM(C=e.CRH())&&(f.sublistViewChild=C.first)}},hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoDisplay:"autoDisplay",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",popup:"popup",parentActive:"parentActive"},outputs:{leafClick:"leafClick",keydownItem:"keydownItem"},decls:3,vars:4,consts:[[3,"ngClass"],["sublist",""],["ngFor","",3,"ngForOf"],["class","p-menu-separator",3,"ngClass",4,"ngIf"],["pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],[1,"p-menu-separator",3,"ngClass"],["pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["pRipple","",3,"target","ngClass","keydown","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter",4,"ngIf"],[3,"parentActive","
1item","mobileActive","autoDisplay","popup","keydownItem","leafClick",4,"ngIf"],["pRipple","",3,"target","ngClass","keydown","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],["class","p-submenu-icon pi pi-angle-right",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-submenu-icon","pi","pi-angle-right"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","popup","keydownItem","leafClick"]],template:function(r,f){1&r&&(e.TgZ(0,"ul",0,1),e.YNc(2,$n,2,2,"ng-template",2),e.qZA()),2&r&&(e.Q6J("ngClass",e.VKq(2,pi,!f.root)),e.xp6(2),e.Q6J("ngForOf",f.root?f.item:f.item.items))},dependencies:[s.mk,s.sg,s.O5,s.PC,nn.rH,nn.Od,hi.H,qi.u,y],encapsulation:2}),y})(),es=(()=>{class y{constructor(r,f,C,j,le){this.el=r,this.renderer=f,this.cd=C,this.config=j,this.overlayService=le,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new e.vpe,this.onHide=new e.vpe}toggle(r){this.visible?this.hide():this.show(r),this.preventDocumentDefault=!0}show(r){this.target=r.currentTarget,this.relativeAlign=r.relativeAlign,this.visible=!0,this.parentActive=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayClick(r){this.popup&&this.overlayService.add({originalEvent:r,target:this.el.nativeElement}),this.preventDocumentDefault=!0}onOverlayAnimationStart(r){switch(r.toState){case"visible":this.popup&&(this.container=r.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}alignOverlay(){this.relativeAlign?Ti.p.relativePosition(this.container,this.target):Ti.p.absolutePosition(this.container,this.target)}onOverlayAnimationEnd(r){"void"===r.toState&&gs.P9.clear(r.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):Ti.p.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&gs.P9.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.parentActive=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!Ti.p.isTouchDevice()&&this.hide()}onLeafClick(){this.popup&&this.hide(),this.unbindDocumentClickListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{!this.preventDocumentDefault&&this.popup&&this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ti.V(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&gs.P9.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(ei.b4),e.Y36(ei.F0))},y.\u0275cmp=e.Xpm({type:y,selectors:[["p-tieredMenu"]],hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["root","root",3,"item","parentActive","baseZIndex","autoZIndex","autoDisplay","popup","leafClick"]],template:function(r,f){1&r&&e.YNc(0,$r,2,19,"div",0),2&r&&e.Q6J("ngIf",!f.popup||f.visible)},dependencies:[s.mk,s.O5,s.PC,fr],styles:[".p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}\n"],encapsulation:2,data:{animation:[(0,sn.X$)("overlayAnimation",[(0,sn.eR)(":enter",[(0,sn.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,sn.jt)("{{showTransitionParams}}")]),(0,sn.eR)(":leave",[(0,sn.jt)("{{hideTransitionParams}}",(0,sn.oB)({opacity:0}
1))])])]},changeDetection:0}),y})(),eo=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,nn.Bz,hi.T,qi.z,nn.Bz,qi.z]}),y})();const mr=["menubutton"],Or=["topbarmenubutton"],tr=["topbarmenu"],Cr=["tieredMenu"],To=["menu"],Kn=["helpMenu"];function Hs(y,g){if(1&y&&(e.TgZ(0,"a",14),e._uU(1),e.qZA()),2&y){const r=e.oxw().$implicit;e.Q6J("routerLink",r.url),e.xp6(1),e.Oqu(r.label)}}function Ce(y,g){1&y&&(e.TgZ(0,"span",15),e._UZ(1,"i",16),e.qZA())}function ge(y,g){if(1&y&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&y){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.label)}}function ce(y,g){if(1&y&&(e.ynx(0),e.YNc(1,Hs,2,2,"a",11),e.YNc(2,Ce,2,0,"span",12),e.YNc(3,ge,2,1,"span",13),e.BQk()),2&y){const r=g.last;e.xp6(1),e.Q6J("ngIf",!r),e.xp6(1),e.Q6J("ngIf",!r),e.xp6(1),e.Q6J("ngIf",r)}}function Ze(y,g){if(1&y&&(e.TgZ(0,"nav",9),e.YNc(1,ce,4,3,"ng-container",10),e.qZA()),2&y){const r=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",r.breadcrumbs)("ngForTrackBy",r.trackByBreadcrumbUrl)}}function Gt(y,g){if(1&y){const r=e.EpF();e.ynx(0),e.TgZ(1,"div",3)(2,"button",4,5),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onSidebarToggle())}),e.TgZ(4,"span",6),e._uU(5,"menu"),e.qZA()()(),e.TgZ(6,"div",7),e.YNc(7,Ze,2,2,"nav",8),e.qZA(),e.BQk()}if(2&y){const r=e.oxw();e.xp6(7),e.Q6J("ngIf",r.breadcrumbs.length>0)}}function Nn(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"a",21),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(2);return e.KtG(C.goBack())}),e.TgZ(1,"span",6),e._uU(2,"arrow_back"),e.qZA()()}}function Hi(y,g){if(1&y&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,Nn,3,0,"a",18),e.qZA(),e.TgZ(3,"div",19)(4,"span",20),e._uU(5),e.qZA()(),e.BQk()),2&y){const r=e.oxw();e.xp6(2),e.Q6J("ngIf",r.breadcrumbs.length>1),e.xp6(3),e.Oqu(r.breadcrumbs.length>0?r.breadcrumbs[r.breadcrumbs.length-1].label:"Globot")}}const Xt=function(){return{width:"260px"}};function di(y,g){if(1&y){const r=e.EpF();e.ynx(0),e.TgZ(1,"div",23),e.NdJ("click",function(C){e.CHM(r);const j=e.MAs(5);return e.KtG(j.toggle(C))}),e.TgZ(2,"span",6),e._uU(3,"help_outline"),e.qZA(),e._UZ(4,"p-tieredMenu",24,25),e.qZA(),e._UZ(6,"p-tieredMenu",24,26),e.BQk()}if(2&y){const r=e.oxw(2);e.xp6(4),e.Akn(e.DdM(10,Xt)),e.Udp("position","fixed"),e.Q6J("model",r.helpItems)("popup",!0),e.xp6(2),e.Udp("position","fixed"),e.Q6J("model",r.items)("popup",!0)}}function xr(y,g){if(1&y&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&y){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.materialIcon)}}function to(y,g){if(1&y&&e._UZ(0,"i",56),2&y){const r=e.oxw().$implicit;e.Tol(r.icon)}}function as(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",38),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(5);return e.KtG(le.onMobileMenuItemClick(j))}),e.TgZ(1,"div",39),e.YNc(2,xr,2,1,"span",52),e.YNc(3,to,1,2,"i",53),e.qZA(),e.TgZ(4,"div",41)(5,"span",42),e._uU(6),e.qZA(),e.TgZ(7,"span",54),e._uU(8),e.qZA()(),e._UZ(9,"i",55),e.qZA()}if(2&y){const r=g.$implicit;e.xp6(2),e.Q6J("ngIf",r.materialIcon),e.xp6(1),e.Q6J("ngIf",!r.materialIcon),e.xp6(3),e.Oqu(r.label),e.xp6(2),e.Oqu(r.description)}}function Sa(y,g){if(1&y&&(e.TgZ(0,"section",36)(1,"h3",33),e._uU(2),e.qZA(),e.TgZ(3,"div",37),e.YNc(4,as,10,4,"div",51),e.qZA()()),2&y){const r=g.$implicit,f=e.oxw(4);e.xp6(2),e.Oqu(r.title),e.xp6(2),e.Q6J("ngForOf",r.items)("ngForTrackBy",f.trackByMenuItem)}}function Eo(y,g){if(1&y&&(e.TgZ(0,"span",6),e._uU(1),e.qZA()),2&y){const r=e.oxw().$implicit;e.xp6(1),e.Oqu(r.materialIcon)}}function Ps(y,g){if(1&y&&e._UZ(0,"i",56),2&y){const r=e.oxw().$implicit;e.Tol(r.icon)}}function zo(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",57),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(4);return e.KtG(le.onMobileMenuItemClick(j))}),e.YNc(1,Eo,2,1,"span",52),e.YNc(2,Ps,1,2,"i",53),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&y){const r=g.$implicit;e.xp6(1),e.Q6J("ngIf",r.materialIcon),e.xp6(1),e.Q6J("ngIf",!r.materialIcon),e.xp6(2),e.Oqu(r.label)}}function Uo(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",29)(1,"button",30),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.closeMobileMenu())}),e.TgZ(2,"span",6),e._uU(3,"close"),e.qZA()(),e.TgZ(4,"main",31)(5,"section",32)(6,"h3",33),e._uU(7,"EQUIPO"),e.qZA(),e._UZ(8,"globot-workspace-selector",34),e.qZA(),e.YNc(9,Sa,5,3,"
1section",35),e.TgZ(10,"section",36)(11,"h3",33),e._uU(12,"AYUDA"),e.qZA(),e.TgZ(13,"div",37)(14,"div",38),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.onMobileMenuItemClick({externalUrl:C.termsUrl}))}),e.TgZ(15,"div",39),e._UZ(16,"i",40),e.qZA(),e.TgZ(17,"div",41)(18,"span",42),e._uU(19,"T\xe9rminos y condiciones"),e.qZA()(),e._UZ(20,"i",43),e.qZA(),e.TgZ(21,"div",38),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.onMobileMenuItemClick({externalUrl:C.privacyUrl}))}),e.TgZ(22,"div",39),e._UZ(23,"i",44),e.qZA(),e.TgZ(24,"div",41)(25,"span",42),e._uU(26,"Pol\xedtica de privacidad"),e.qZA()(),e._UZ(27,"i",43),e.qZA(),e.TgZ(28,"div",38),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.onMobileMenuItemClick({externalUrl:"https://globot.ai/tutoriales/"}))}),e.TgZ(29,"div",39),e._UZ(30,"i",45),e.qZA(),e.TgZ(31,"div",41)(32,"span",42),e._uU(33,"Tutoriales"),e.qZA()(),e._UZ(34,"i",43),e.qZA(),e.TgZ(35,"div",38),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return C.openSupportForm(),e.KtG(C.closeMobileMenu())}),e.TgZ(36,"div",39),e._UZ(37,"i",46),e.qZA(),e.TgZ(38,"div",41)(39,"span",42),e._uU(40,"Contactar soporte"),e.qZA()(),e._UZ(41,"i",43),e.qZA()()()(),e.TgZ(42,"footer",47),e.YNc(43,zo,5,3,"div",48),e.TgZ(44,"div",49),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return C.logout(),e.KtG(C.closeMobileMenu())}),e._UZ(45,"i",50),e.TgZ(46,"span"),e._uU(47,"Cerrar sesi\xf3n"),e.qZA()()()()}if(2&y){const r=e.oxw(3);e.xp6(8),e.Q6J("collapsed",!1),e.xp6(1),e.Q6J("ngForOf",r.mobileMenuSections)("ngForTrackBy",r.trackBySectionTitle),e.xp6(34),e.Q6J("ngForOf",r.mobileMenuFooter)("ngForTrackBy",r.trackByMenuItem)}}function Ma(y,g){if(1&y){const r=e.EpF();e.ynx(0),e.TgZ(1,"a",27),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(2);return e.KtG(C.sidebarVisible=!C.sidebarVisible)}),e.TgZ(2,"span",6),e._uU(3),e.qZA()(),e.YNc(4,Uo,48,5,"div",28),e.BQk()}if(2&y){const r=e.oxw(2);e.xp6(1),e.uIk("aria-label",r.sidebarVisible?"Cerrar men\xfa":"Abrir men\xfa"),e.xp6(2),e.Oqu(r.sidebarVisible?"close":"menu"),e.xp6(1),e.Q6J("ngIf",r.sidebarVisible)}}function la(y,g){if(1&y&&(e.TgZ(0,"div",22),e.YNc(1,di,8,11,"ng-container",1),e.YNc(2,Ma,5,3,"ng-container",1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.Q6J("ngIf",!r.isMobile),e.xp6(1),e.Q6J("ngIf",r.isMobile)}}let $o=(()=>{class y{constructor(r,f,C,j,le,Ae,Ke,it,Rt,Zt,fn){this.userService=r,this.router=f,this.activatedRoute=C,this.messageService=j,this.botService=le,this.confirmationService=Ae,this.globalService=Ke,this.cd=it,this.layoutService=Rt,this.location=Zt,this.permissionService=fn,this.viewMenuConfig=!1,this.sidebarVisible=!1,this.botId="",this.currentOption=0,this.menuConfig=[],this.isMobile=!1,this.mobileMenuSections=[],this.mobileMenuFooter=[],this.urlProfile="",this.termsUrl=ni.N.termsUrl,this.privacyUrl=ni.N.privacyUrl,this.breadcrumbs=[],this.navCount=0,this.routeLabels={dashboard:"Estad\xedsticas",leads:"Leads",live:"Chat en vivo","widget-config":"Probar asistente",config:"Configuraciones",datasource:"Carga de informaci\xf3n",embed:"Agregar a sitio web",whatsapp:"WhatsApp",messenger:"Messenger",instagram:"Instagram",clients:"Clientes",clientes:"Clientes",pipeline:"Pipeline",records:"Historial","edit-user":"Mi cuenta","workspace-settings":"Perfil de negocio",team:"Mi equipo","new-bot":"Nuevo chatbot"},this.subscription=new ps.w0,this.destroy$=new D.x,this.user=void 0,this.undefined=void 0}onWindowResize(){this.isMobile=this.layoutService.isMobile()}onWindowScroll(){this.menuTieredMenu&&this.menuTieredMenu.hide(),this.helpMenu&&this.helpMenu.hide()}ngOnInit(){var r,f,C,j;this.subscription.add(this.userService.url$.pipe((0,ne.R)(this.destroy$)).subscribe(le=>{this.urlProfile=le,this.updateUserPicture(le)})),this.userService.name$.pipe((0,ne.R)(this.destroy$)).subscribe(le=>{this.user&&(this.user.name=le),this.cd.detectChanges()}),this.user=this.userService.getUserLocalStorage(),this.subscription.add(this.userService.user$.pipe((0,ne.R)(this.destroy$)).subscribe(le=>{var Ae,Ke,it,Rt;le&&(this.user=le,!(null===(Ae=this.items)||void 0===Ae)&&Ae.length&&(this.items[0].label="Plan "+(null!==(Rt=null===(it=null===(Ke=le.latest_active_subscription)||void 0===Ke?void 0:Ke.subscription_type)||void 0===it?void 0:it.alias)&&void 0!==Rt?Rt:"gratuito")),this.cd.detectChanges())})),this.items=[{label:"Plan "+(null!==(j=null===(C=null===(f=null===(r=this.user)||void 0===r?void 0:r.latest_active_subscription)||void 0===f?void 0:f.subscription_type)||void 0===C?void 0:C.alias)&&void 0!==j?j:"gratuito"),style:{"font-weight":"600"}},{separator:!0},{label:"Mis asistentes",icon:"pi pi-home",routerLink:"/dashboard",command:()=>{var le;this.router.navigate(["/dashboard"]),this.sidebarVisible=!1,this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}},{label:"Mi cuenta",icon:"pi pi-user",routerLink:"/dashboard/edit-user",command:()=>{var le;this.router.navigate(["/dashboard/edit-user"]),this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}},{label:"Cerrar sesi\xf3n",icon:"pi pi-sign-out",style:{color:"#7B5CF5"},command:()=>this.logout()}],this.helpItems=[{label:"T\xe9rminos y condiciones",icon:"pi pi-arrow-up-right",command:()=>{var le;window.open(this.termsUrl,"_blank"),this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}},{label:"Pol\xedtica de privacidad",icon:"pi pi-arrow-up-right",command:()=>{var le;window.open(this.privacyUrl,"_blank"),this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}},{label:"Tutoriales",icon:"pi pi-book",command:()=>{var le;window.open("https://globot.ai/tutoriales/","_blank","noopener"),this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}},{label:"Contactar soporte",icon:"pi pi-comments",command:()=>{var le;this.openSupportForm(),this.isMobile?this.sidebarVisible=!1:null===(le=this.menu)||void 0===le||le.nativeElement.hide()}}],this.checkCurrentRoute(),this.buildMobileMenu(),this.buildBreadcrumbs(),this.subscription.add(this.router.events.pipe((0,Li.h)(le=>le instanceof nn.m2),(0,ne.R)(this.destroy$)).subscribe(()=>{this.navCount++,this.checkCurrentRoute(),this.buildBreadcrumbs()})),this.subscription.add(this.globalService.getObservable().pipe((0,ne.R)(this.destroy$)).subscribe(le=>{"accountDeleted"===le.type&&this.logout(),"logOut"===le.type&&(this.user=void 0)})),this.subscription.add(this.permissionService.currentRole$.pipe((0,ne.R)(this.destroy$)).subscribe(()=>this.buildMobileMenu()))}
1updateUserPicture(r){this.user&&(this.user.picture=r),this.cd.detectChanges()}onSidebarToggle(){this.layoutService.toggleSidebar()}selectOption(r){this.currentOption=r}checkCurrentRoute(){const r=this.router.routerState.snapshot.url;this.isMobile=this.layoutService.isMobile();const f=this.viewMenuConfig;r?.includes("edit-bot")?(this.botId=r.split("/").slice(-2)[0],this.viewMenuConfig=!0):this.viewMenuConfig=!1,f!==this.viewMenuConfig&&this.buildMobileMenu()}logout(){this.user=void 0,this.userService.logout()}navigateTo(r){r&&(this.sidebarVisible=!1,r=`${this.router.routerState.snapshot.url.split("/").slice(0,-1).join("/")}/${r}`,this.router.navigate([r]))}navigateToDashboard(r){r.preventDefault(),this.router.navigateByUrl("/dashboard").then(()=>{window.location.reload()})}buildMobileMenu(){if(this.mobileMenuFooter=[{materialIcon:"smart_toy",label:"Mis asistentes",routerLink:"/dashboard"},{icon:"pi pi-user",label:"Mi cuenta",routerLink:"/dashboard/edit-user"}],this.viewMenuConfig){const r=`/dashboard/edit-bot/${this.botId}`;this.mobileMenuSections=[{title:"OPERACI\xd3N",items:[{icon:"pi pi-chart-bar",label:"Estad\xedsticas",description:"M\xe9tricas y rendimiento",routerLink:`${r}/dashboard`},{icon:"pi pi-comment",label:"Chat en vivo",description:"Chat en tiempo real",routerLink:`${r}/live`},{icon:"pi pi-id-card",label:"Leads",description:"Contactos capturados",routerLink:`${r}/leads`},{icon:"pi pi-history",label:"Historial",description:"Registro de conversaciones",routerLink:`${r}/records`}]},{title:"CONFIGURACI\xd3N",items:[{icon:"pi pi-play",label:"Probar chatbot",description:"Vista previa del widget",routerLink:`${r}/widget-config`},{icon:"pi pi-cog",label:"Configuraciones",description:"Personalidad y mensajes",routerLink:`${r}/config`},{icon:"pi pi-building",label:"Perfil de negocio",description:"Informaci\xf3n de tu empresa",routerLink:"/dashboard/workspace-settings"},{icon:"pi pi-upload",label:"Carga de informaci\xf3n",description:"Fuentes de conocimiento",routerLink:`${r}/datasource`}]},{title:"CANALES",items:[{icon:"pi pi-globe",label:"Agregar a sitio web",description:"C\xf3digo de inserci\xf3n",routerLink:`${r}/embed`},{icon:"pi pi-whatsapp",label:"WhatsApp",description:"Conexi\xf3n y configuraci\xf3n",routerLink:`${r}/whatsapp`},{icon:"pi pi-facebook",label:"Messenger",description:"Conexi\xf3n y configuraci\xf3n",routerLink:`${r}/messenger`},{icon:"pi pi-instagram",label:"Instagram",description:"Conexi\xf3n y configuraci\xf3n",routerLink:`${r}/instagram`}]}]}else{const r=[{icon:"pi pi-users",label:"Mi equipo",description:"Miembros del workspace",routerLink:"/dashboard/team"}];this.permissionService.hasPermission("leads.config")&&r.push({icon:"pi pi-bell",label:"Notificaciones",description:"Alertas y avisos",routerLink:"/dashboard/notifications"}),this.mobileMenuSections=[{title:"OPERACI\xd3N",items:[{materialIcon:"smart_toy",label:"Mis asistentes",description:"Gestiona y configura tus bots",routerLink:"/dashboard"}]},{title:"CONFIGURACI\xd3N",items:r}]}}buildBreadcrumbs(){const r=this.router.url.split("?")[0],f=r.split("/").filter(Boolean);if(this.breadcrumbs=[],"dashboard"!==f[0])return;this.breadcrumbs.push({label:"Mis asistentes",url:"/dashboard"});const C=f.indexOf("edit-bot");-1!==C&&f[C+1]?this.addEditBotBreadcrumbs(f,C):this.addTopLevelBreadcrumb(f,r)}getBotNameFromStorage(){try{const r=localStorage.getItem("bot");if(r){const f=JSON.parse(r);if(f?.name)return f.name}}catch{}return"Asistente"}addEditBotBreadcrumbs(r,f){const C=r[f+1],j=this.getBotNameFromStorage();this.breadcrumbs.push({label:j,url:`/dashboard/edit-bot/${C}/widget-config`});const le=r[f+2];le&&this.routeLabels[le]&&this.breadcrumbs.push({label:this.routeLabels[le],url:`/dashboard/edit-bot/${C}/${le}`})}addTopLevelBreadcrumb(r,f){const C=r.indexOf("crm");if(-1!==C)return void this.addCrmBreadcrumbs(r,C);const j=r[r.length-1];"dashboard"!==j&&this.routeLabels[j]&&this.breadcrumbs.push({label:this.routeLabels[j],url:f})}addCrmBreadcrumbs(r,f){const j=r[f+1],le={clientes:"Clientes",pipeline:"Pipeline",dashboard:"CRM"}[j];le&&(this.breadcrumbs.push({label:le,url:`/dashboard/crm/${j}`}),"clientes"===j&&r[f+2]&&this.breadcrumbs.push({label:"Cliente",url:this.router.url.split("?")[0]}))}openSupportForm(){var r,f,C,j;const le=encodeURIComponent(null!==(f=null===(r=this.user)||void 0===r?void 0:r.name)&&void 0!==f?f:""),Ae=encodeURIComponent(null!==(j=null===(C=this.user)||void 0===C?void 0:C.email)&&void 0!==j?j:"");window.open(`https://docs.google.com/forms/d/e/1FAIpQLSd8YIlIqRcejXIrdENlfy73H7Tk3NAncicXrByCcnNNCSvQ4A/viewform?usp=pp_url&entry.845095517=${le}&entry.1935575897=${Ae}`,"_blank","noopener")}goBack(){this.navCount>1?this.location.back():this.router.navigate(["/dashboard"])}closeMobileMenu(){this.sidebarVisible=!1}onMobileMenuItemClick(r){r.routerLink?this.router.navigate([r.routerLink]):r.externalUrl&&window.open(r.externalUrl,"_blank"),this.closeMobileMenu()}trackByBreadcrumbUrl(r,f){return f.url}trackBySectionTitle(r,f){return f.title}
1trackByMenuItem(r,f){var C,j;return`${f.label}|${null!==(j=null!==(C=f.routerLink)&&void 0!==C?C:f.externalUrl)&&void 0!==j?j:""}`}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(Mi.K),e.Y36(nn.F0),e.Y36(nn.gz),e.Y36(ei.ez),e.Y36(ki.G),e.Y36(ei.YP),e.Y36(Ss.W),e.Y36(e.sBO),e.Y36(ls.P),e.Y36(s.Ye),e.Y36(Ms.$))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-topbar"]],viewQuery:function(r,f){if(1&r&&(e.Gf(mr,5),e.Gf(Or,5),e.Gf(tr,5),e.Gf(Cr,5),e.Gf(To,5,es),e.Gf(Kn,5,es)),2&r){let C;e.iGM(C=e.CRH())&&(f.menuButton=C.first),e.iGM(C=e.CRH())&&(f.topbarMenuButton=C.first),e.iGM(C=e.CRH())&&(f.menu=C.first),e.iGM(C=e.CRH())&&(f.tieredMenu=C.first),e.iGM(C=e.CRH())&&(f.menuTieredMenu=C.first),e.iGM(C=e.CRH())&&(f.helpMenu=C.first)}},hostBindings:function(r,f){1&r&&e.NdJ("resize",function(){return f.onWindowResize()},!1,e.Jf7)("scroll",function(){return f.onWindowScroll()},!1,e.Jf7)},features:[e._Bn([ei.YP,ei.ez])],decls:4,vars:3,consts:[[1,"layout-topbar"],[4,"ngIf"],["class","topbar-right",4,"ngIf"],[1,"topbar-left"],["aria-label","Alternar men\xfa lateral",1,"topbar-sidebar-toggle",3,"click"],["menubutton",""],["aria-hidden","true",1,"material-symbols-outlined"],[1,"topbar-center"],["class","topbar-breadcrumb",4,"ngIf"],[1,"topbar-breadcrumb"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","breadcrumb-link",3,"routerLink",4,"ngIf"],["class","breadcrumb-separator",4,"ngIf"],["class","breadcrumb-current",4,"ngIf"],[1,"breadcrumb-link",3,"routerLink"],[1,"breadcrumb-separator"],["aria-hidden","true",1,"pi","pi-chevron-right"],[1,"breadcrumb-current"],["class","topbar-mobile-back","aria-label","Volver",3,"click",4,"ngIf"],[1,"topbar-center","topbar-center--mobile"],[1,"topbar-page-title"],["aria-label","Volver",1,"topbar-mobile-back",3,"click"],[1,"topbar-right"],["aria-label","Ayuda",1,"topbar-help",3,"click"],["appendTo","body",3,"model","popup"],["helpMenu",""],["menu",""],[1,"topbar-mobile-menu-btn",3,"click"],["class","mobile-menu-overlay",4,"ngIf"],[1,"mobile-menu-overlay"],["aria-label","Cerrar men\xfa",1,"mobile-menu-close-btn",3,"click"],[1,"mobile-menu-content"],[1,"mobile-menu-section","mobile-menu-workspace"],[1,"mobile-menu-section-title"],[3,"collapsed"],["class","mobile-menu-section",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mobile-menu-section"],[1,"mobile-menu-cards"],[1,"mobile-menu-card",3,"click"],[1,"mobile-menu-card-icon"],["aria-hidden","true",1,"pi","pi-file-edit"],[1,"mobile-menu-card-text"],[1,"mobile-menu-card-title"],["aria-hidden","true",1,"pi","pi-external-link","mobile-menu-card-chevron"],["aria-hidden","true",1,"pi","pi-shield"],["aria-hidden","true",1,"pi","pi-book"],["aria-hidden","true",1,"pi","pi-comments"],[1,"mobile-menu-footer"],["class","mobile-menu-footer-item",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mobile-menu-footer-item","mobile-menu-footer-item--logout",3,"click"],["aria-hidden","true",1,"pi","pi-sign-out"],["class","mobile-menu-card",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["class","material-symbols-outlined","aria-hidden","true",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],[1,"mobile-menu-card-desc"],["aria-hidden","true",1,"pi","pi-chevron-right","mobile-menu-card-chevron"],["aria-hidden","true"],[1,"mobile-menu-footer-item",3,"click"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0),e.YNc(1,Gt,8,1,"ng-container",1),e.YNc(2,Hi,6,2,"ng-container",1),e.YNc(3,la,3,2,"div",2),e.qZA()),2&r&&(e.xp6(1),e.Q6J("ngIf",!f.isMobile),e.xp6(1),e.Q6J("ngIf",f.isMobile),e.xp6(1),e.Q6J("ngIf",f.user))},dependencies:[s.sg,s.O5,nn.rH,es,rr],styles:[".topbar-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.topbar-sidebar-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:none;border-radius:8px;cursor:pointer;color:var(--color-text);transition:background-color .2s}.topbar-sidebar-toggle[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover, #f1f5f9)}.topbar-sidebar-toggle[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.topbar-mobile-back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;
1cursor:pointer;color:var(--color-text, #334155);text-decoration:none;transition:background-color .15s}.topbar-mobile-back[_ngcontent-%COMP%]:active{background-color:var(--surface-hover, #f1f5f9)}.topbar-mobile-back[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.topbar-center--mobile[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.topbar-page-title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:16px;font-weight:600;color:var(--color-text-dark, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.topbar-center[_ngcontent-%COMP%]{flex:1}.topbar-breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding-left:8px}.breadcrumb-link[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:var(--color-text-muted, #64748b);text-decoration:none;white-space:nowrap;transition:color .15s}.breadcrumb-link[_ngcontent-%COMP%]:hover{color:var(--color-primary, #16a34a)}.breadcrumb-separator[_ng
1content-%COMP%]{display:flex;align-items:center;color:var(--color-text-muted, #94a3b8)}.breadcrumb-separator[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:10px}.breadcrumb-current[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:13px;font-weight:600;color:var(--color-text, #0f172a);white-space:nowrap}.topbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.topbar-help[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;cursor:pointer;color:var(--color-text-muted);transition:background-color .2s}.topbar-help[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover, #f1f5f9);color:var(--color-text)}.topbar-help[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.topbar-divider[_ngcontent-%COMP%]{width:1px;height:32px;background-color:var(--color-border);margin:0 8px}.topbar-user[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 8px;border-radius:8px;transition:background-color .2s}.topbar-user[_ngcontent-%COMP%]:hover{background-color:var(--surface-hover, #f1f5f9)}.topbar-user-name[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:var(--color-text)}.topbar-chevron[_ngcontent-%COMP%]{font-size:14px!important;color:var(--color-text-muted);margin-left:0!important}.topbar-mobile-menu-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;cursor:pointer;color:var(--color-text);margin-left:8px}.topbar-mobile-menu-btn[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:24px}.mobile-menu-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;background:#f8fafc;overflow-y:auto;display:flex;flex-direction:column;animation:_ngcontent-%COMP%_mobileMenuSlideUp .25s ease-out}@keyframes _ngcontent-%COMP%_mobileMenuSlideUp{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.mobile-menu-close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;background:#fff;border-radius:50%;cursor:pointer;color:#334155;box-shadow:0 1px 3px #0000001a;z-index:1}.mobile-menu-close-btn[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.mobile-menu-close-btn[_ngcontent-%COMP%]:active{background:#f1f5f9}.mobile-menu-breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:16px 16px 0;flex-wrap:wrap}.mobile-menu-content[_ngcontent-%COMP%]{flex:1;padding:20px 16px 16px;overflow-y:auto}.mobile-menu-section[_ngcontent-%COMP%]{margin-bottom:4px}.mobile-menu-section-title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#94a3b8;padding:16px 4px 8px;margin:0}.mobile-menu-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.mobile-menu-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border-radius:12px;border:1px solid #f1f5f9;box-shadow:0 1px 2px #0000000a;cursor:pointer;transition:background-color .15s}.mobile-menu-card[_ngcontent-%COMP%]:active{background:#f8fafc}.mobile-menu-card-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;background:rgba(22,163,106,.1);color:var(--color-primary, #16a34a);border-radius:10px}.mobile-menu-card-icon[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.mobile-menu-card-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0}.mobile-menu-card-title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:15px;font-weight:600;color:#0f172a;line-height:1.3}.mobile-menu-card-desc[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:14px;color:#64748b;line-height:1.3;margin-top:1px}.mobile-menu-card-chevron[_ngcontent-%COMP%]{color:#cbd5e1;font-size:20px!important}.mobile-menu-footer[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid #e2e8f0;background:#fff}.mobile-menu-footer-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1;padding:8px 4px;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:11px;font-weight:500;color:#64748b}.mobile-menu-footer-item[_ngcontent-%COMP%] .material-symbols-outlined[_ngcontent-%COMP%]{font-size:22px}.mobile-menu-footer-item[_ngcontent-%COMP%]:active{background:#f1f5f9}.mobile-menu-footer-item--logout[_ngcontent-%COMP%]{color:#ef4444}
1@media (max-width: 768px){.topbar-user-name[_ngcontent-%COMP%]{display:none}}"]}),y})();var Cs=a(4815);function _i(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(2);return e.KtG(le.selectOption(j.value))})("keydown.enter",function(){const j=e.CHM(r).$implicit,le=e.oxw(2);return e.KtG(le.selectOption(j.value))})("keydown.space",function(){const j=e.CHM(r).$implicit,le=e.oxw(2);return e.KtG(le.selectOption(j.value))}),e.TgZ(1,"div",16),e._UZ(2,"i"),e.qZA(),e.TgZ(3,"div",17)(4,"span",18),e._uU(5),e.qZA(),e.TgZ(6,"span",19),e._uU(7),e.qZA()()()}if(2&y){const r=g.$implicit,f=e.oxw(2);e.ekj("acquisition-option--active",f.selectedSource===r.value),e.xp6(2),e.Gre("pi ",r.icon,""),e.xp6(3),e.Oqu(r.label),e.xp6(2),e.Oqu(r.description)}}function Pr(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",20)(1,"input",21),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw(2);return e.KtG(j.otherText=C)}),e.qZA()()}if(2&y){const r=e.oxw(2);e.xp6(1),e.Q6J("ngModel",r.otherText)}}function no(y,g){1&y&&e._UZ(0,"i",22)}function gr(y,g){1&y&&e._UZ(0,"i",23)}function io(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),e._UZ(4,"i",5),e.qZA(),e.TgZ(5,"h2",6),e._uU(6,"\xa1Bienvenido/a a Globot!"),e.qZA(),e.TgZ(7,"p",7),e._uU(8," Antes de comenzar, cu\xe9ntanos: "),e.TgZ(9,"strong"),e._uU(10,"\xbfc\xf3mo nos conociste?"),e.qZA()()(),e.TgZ(11,"div",8),e.YNc(12,_i,8,7,"div",9),e.qZA(),e.YNc(13,Pr,2,1,"div",10),e.TgZ(14,"div",11)(15,"button",12),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.save())}),e.YNc(16,no,1,0,"i",13),e.YNc(17,gr,1,0,"i",14),e._uU(18," Guardar "),e.qZA()()()()}if(2&y){const r=e.oxw();e.xp6(12),e.Q6J("ngForOf",r.options),e.xp6(1),e.Q6J("ngIf","other"===r.selectedSource),e.xp6(2),e.Q6J("disabled",!r.canSave||r.saving),e.xp6(1),e.Q6J("ngIf",!r.saving),e.xp6(1),e.Q6J("ngIf",r.saving)}}let Do=(()=>{class y{constructor(r){this.userService=r,this.visible=!1,this.closed=new e.vpe,this.options=[{value:"google",label:"Google / Web",description:"B\xfasqueda en internet",icon:"pi-search"},{value:"ai_recommendation",label:"Recomendaci\xf3n de IA",description:"ChatGPT, Gemini, Copilot...",icon:"pi-bolt"},{value:"recommendation",label:"Recomendaci\xf3n",description:"Un colega o conocido",icon:"pi-users"},{value:"social_media",label:"Redes sociales",description:"Instagram, TikTok, Facebook...",icon:"pi-instagram"},{value:"linkedin",label:"LinkedIn",description:"Publicaci\xf3n profesional",icon:"pi-linkedin"},{value:"news",label:"Noticia",description:"Le\xedste sobre nosotros",icon:"pi-book"},{value:"other",label:"Otro",description:"Cu\xe9ntanos c\xf3mo",icon:"pi-plus"},{value:"prefer_not_to_say",label:"Prefiero no decir",description:"Omitir esta pregunta",icon:"pi-minus-circle"}],this.selectedSource=null,this.otherText="",this.saving=!1}ngOnChanges(){this.visible&&(this.selectedSource=null,this.otherText="",this.saving=!1)}selectOption(r){this.selectedSource=r,"other"!==r&&(this.otherText="")}get canSave(){return!!this.selectedSource&&("other"!==this.selectedSource||this.otherText.trim().length>0)}save(){if(!this.canSave||this.saving)return;this.saving=!0;const r="other"===this.selectedSource?this.otherText.trim():this.selectedSource;this.userService.updateAcquisitionSource(r).subscribe({next:()=>{this.userService.updateLocalAcquisitionSource(r),this.saving=!1,this.closed.emit()},error:()=>{this.saving=!1}})}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(Mi.K))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-acquisition-source-modal"]],inputs:{visible:"visible"},outputs:{closed:"closed"},features:[e.TTD],decls:1,vars:1,consts:[["class","acquisition-backdrop",4,"ngIf"],[1,"acquisition-backdrop"],[1,"acquisition-modal"],[1,"acquisition-header"],[1,"acquisition-icon-wrap"],[1,"pi","pi-star-fill"],[1,"acquisition-title"],[1,"acquisition-subtitle"],[1,"acquisition-options"],["class","acquisition-option","role","button","tabindex","0",3,"acquisition-option--active","click","keydown.enter","keydown.space",4,"ngFor","ngForOf"],["class","acquisition-other",4,"ngIf"],[1,"acquisition-footer"],["type","button",1,"acquisition-btn-save",3,"disabled","click"],["class","pi pi-send",4,"ngIf"],["class","pi pi-spin pi-spinner",4,"ngIf"],["role","button","tabindex","0",1,"acquisition-option",3,"click","keydown.enter","keydown.space"],[1,"acquisition-option-icon"],[1,"acquisition-option-text"],[1,"acquisition-option-label"],[1,"acquisition-option-desc"],[1,"acquisition-other"],["type","text","placeholder","Cu\xe9ntanos c\xf3mo nos conociste...","maxlength","150",1,"acquisition-other-input",3,"ngModel","ngModelChange"],[1,"pi","pi-send"],[1,"pi","pi-spin","pi-spinner"]],template:function(r,f){1&r&&e.YNc(0,io,19,5,"div",0),2&r&&e.Q6J("ngIf",f.visible)},dependencies:[s.sg,s.O5,Mn.Fj,Mn.JJ,Mn.nD,Mn.On],styles:[".acquisition-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.65);z-index:1100;padding:16px}.acquisition-modal[_ngcontent-%COMP%]{width:100%;max-width:560px;border-radius:20px;background:#ffffff;box-shadow:0 24px 40px #0f172a33;padding:36px 32px 28px;display:flex;flex-direction:column;gap:24px}.acquisition-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.acquisition-icon-wrap[_ngcontent-%COMP%]{width:52px;height:52px;border-radius:50%;background:var(--color-primary-light, #eef2ff);display:flex;align-items:center;justify-content:center;margin-bottom:4px}.acquisition-icon-wrap[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;color:var(--color-primary, #7b5cf5)}.acquisition-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;color:var(--color-text, #27283b)}.acquisition-subtitle[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--color-text-muted, #64748b);line-height:1.5}.acquisition-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.acquisition-option[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1.5px solid var(--color-border, #e2e8f0);border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;position:relative}.acquisition-option[_ngcontent-%COMP%]:hover{border-color:var(--color-primary, #7b5cf5);background:rgba(123,92,245,.04)}.acquisition-option--active[_ngcontent-%COMP%]{border:2px solid var(--color-primary, #7b5cf5);background:linear-gradient(0deg,rgba(98,106,233,.08) 0%,rgba(98,106,233,.08) 100%),#fff;box-shadow:0 0 0 3px #7b5cf51f}.acquisition-option--active[_ngcontent-%COMP%] .acquisition-option-icon[_ngcontent-%COMP%]{background:var(--color-primary, #7b5cf5)}.acquisition-option--active[_ngcontent-%COMP%] .acquisition-option-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.acquisition-option--active[_ngcontent-%COMP%] .acquisition-option-label[_ngcontent-%COMP%]{color:var(--color-primary, #7b5cf5);font-weight:700}.acquisition-option-icon[_ngcontent-%COMP%]{flex-shrink:0;width:36px;height:36px;border-radius:8px;background:var(--color-primary-light, #eef2ff);display:flex;align-items:center;justify-content:center;transition:background .15s ease}.acquisition-option-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;color:var(--color-primary, #7b5cf5);transition:color .15s ease}.acquisition-option-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.acquisition-option-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--color-text, #27283b);transition:color .15s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.acquisition-option-desc[_ngcontent-%COMP%]{font-size:11px;color:var(--color-text-muted, #64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.acquisition-other[_ngcontent-%COMP%]{margin-top:-8px}.acquisition-other-input[_ngcontent-%COMP%]{width:100%;padding:10px 14px;border:1.5px solid var(--color-primary, #7b5cf5);border-radius:10px;font-size:14px;color:var(--color-text, #27283b);outline:none;background:rgba(123,92,245,.04);transition:border-color .15s ease;box-sizing:border-box}.acquisition-other-input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-muted, #64748b)}.acquisition-other-input[_ngcontent-%COMP%]:focus{border-color:var(--color-primary-dark, #603fdf);box-shadow:0 0 0 3px #7b5cf51f}.acquisition-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.acquisition-btn-save[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:10px 24px;border-radius:999px;border:none;background:var(--color-primary, #7b5cf5);color:#fff;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 8px 20px #7b5cf559;transition:background .15s ease,opacity .15s ease}.acquisition-btn-save[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:13px}.acquisition-btn-save[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-dark, #603fdf)}.acquisition-btn-save[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}@media screen and (max-width: 600px){.acquisition-modal[_ngcontent-%COMP%]{padding:28px 20px 22px;gap:20px}.acquisition-options[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;gap:8px}.acquisition-option[_ngcontent-%COMP%]{padding:12px;flex-direction:column;align-items:flex-start;gap:8px}.acquisition-option-desc[_ngcontent-%COMP%]{display:none}.acquisition-footer[_ngcontent-%COMP%]{justify-content:stretch}.acquisition-btn-save[_ngcontent-%COMP%]{width:100%;justify-content:center}}"]}),y})(),lo=(()=>{class y{constructor(r,f,C,j){this.layoutService=r,this.renderer=f,this.router=C,this.oneSignal=j,this.oneSignalAppId=ni.N.onesignalAppId,this.isLocalEnv=!ni.N.production,this.showAcquisitionModal=!1,this.overlayMenuOpenSubscription=this.layoutService.overlayOpen$.subscribe(()=>{this.menuOutsideClickListener||(this.menuOutsideClickListener=this.renderer.listen("document","click",le=>{!(this.appSidebar.el.nativeElement.isSameNode(le.target)||this.appSidebar.el.nativeElement.contains(le.target)||this.appTopbar.menuButton.nativeElement.isSameNode(le.target)||this.appTopbar.menuButton.nativeElement.contains(le.target))&&this.hideMenu()})),this.profileMenuOutsideClickListener||(this.profileMenuOutsideClickListener=this.renderer.listen("document","click",le=>{!(this.appTopbar.menu.nativeElement.isSameNode(le.target)||this.appTopbar.menu.nativeElement.contains(le.target)||this.appTopbar.topbarMenuButton.nativeElement.isSameNode(le.target)||this.appTopbar.topbarMenuButton.nativeElement.contains(le.target))&&this.hideProfileMenu()})),this.layoutService.state.staticMenuMobileActive&&this.blockBodyScroll()}),this.router.events.pipe((0,Li.h)(le=>le instanceof nn.m2)).subscribe(()=>{this.hideMenu(),this.hideProfileMenu()})}hideMenu(){this.layoutService.state.overlayMenuActive=!1,this.layoutService.state.staticMenuMobileActive=!1,this.layoutService.state.menuHoverActive=!1,this.menuOutsideClickListener&&(this.menuOutsideClickListener(),this.menuOutsideClickListener=null),this.unblockBodyScroll()}hideProfileMenu(){this.layoutService.state.profileSidebarVisible=!1,this.profileMenuOutsideClickListener&&(this.profileMenuOutsideClickListener(),this.profileMenuOutsideClickListener=null)}blockBodyScroll(){document.body.classList?document.body.classList.add("blocked-scroll"):document.body.className+=" blocked-scroll"}unblockBodyScroll(){document.body.classList?document.body.classList.remove("blocked-scroll"):document.body.className=document.body.className.replace(new RegExp("(^|\\b)"+"blocked-scroll".split(" ").join("|")+"(\\b|$)","gi")," ")}get containerClass(){return{"layout-theme-light":"light"===this.layoutService.config.colorScheme,"layout-theme-dark":"dark"===this.layoutService.config.colorScheme,"layout-overlay":"overlay"===this.layoutService.config.menuMode,"layout-static":"static"===this.layoutService.config.menuMode,"layout-static-inactive":this.layoutService.state.staticMenuDesktopInactive&&"static"===this.layoutService.config.menuMode,"layout-overlay-active":this.layoutService.state.overlayMenuActive,"layout-mobile-active":this.layoutService.state.staticMenuMobileActive,"layout-sidebar-collapsed":this.layoutService.state.sidebarCollapsed,"p-input-filled":"filled"===this.layoutService.config.inputStyle,"p-ripple-disabled":!this.layoutService.config.ripple}}ngOnInit(){let r=localStorage.getItem("user");if(!r)return;const f=JSON.parse(r);f.id&&(null==f.acquisition_source&&(this.showAcquisitionModal=!0),f&&this.oneSignal.init({appId:this.oneSignalAppId,autoResubscribe:!0,allowLocalhostAsSecureOrigin:this.isLocalEnv}).then(()=>{this.oneSignal.login(f.id),this.oneSignal.User.addEmail(f.email),this.oneSignal.Notifications.addEventListener("permissionChange",()=>{})}).catch(C=>{console.error("ERROR",C)}))}ngOnDestroy(){this.overlayMenuOpenSubscription&&this.overlayMenuOpenSubscription.unsubscribe(),this.menuOutsideClickListener&&this.menuOutsideClickListener()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ls.P),e.Y36(e.Qsj),e.Y36(nn.F0),e.Y36(Cs.HE))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-layout"]],viewQuery:function(r,f){if(1&r&&(e.Gf(Qr,5),e.Gf($o,5)),2&r){let C;e.iGM(C=e.CRH())&&(f.appSidebar=C.first),e.iGM(C=e.CRH())&&(f.appTopbar=C.first)}},decls:7,vars:2,consts:[[1,"layout-wrapper",3,"ngClass"],[1,"layout-main-container"],[1,"layout-main"],[3,"visible","closed"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0),e._UZ(1,"globot-topbar")(2,"globot-sidebar"),e.TgZ(3,"div",1)(4,"div",2),e._UZ(5,"router-outlet"),e.qZA()()(),e.TgZ(6,"globot-acquisition-source-modal",3),e.NdJ("closed",function(){return f.showAcquisitionModal=!1}),e.qZA()),2&r&&(e.Q6J("ngClass",f.containerClass),e.xp6(6),e.Q6J("visible",f.showAcquisitionModal))},dependencies:[s.mk,nn.lC,Do,$o,Qr],encapsulation:2}),y})();var co=a(1740),Rr=a(5593);const Rs=["scrollMe"],Io=["chatContainer"];function Ao(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"h1"),e._uU(3),e.qZA(),e.TgZ(4,"i",17),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.clearChat())}),e.qZA()(),e._UZ(5,"hr"),e.qZA()}if(2&y){const r=e.oxw();e.xp6(3),e.Oqu(r.bot.name)}}function Zo(y,g){1&y&&(e.TgZ(0,"span"),e._UZ(1,"img",20),e.qZA())}function uo(y,g){if(1&y&&e._UZ(0,"markdown",21),2&y){const r=e.oxw().$implicit;e.Q6J("data",r.message)}}const jo=function(y){return[y]};function Zr(y,g){if(1&y&&(e.TgZ(0,"div"),e.YNc(1,Zo,2,0,"span",18),e.YNc(2,uo,1,1,"ng-template",null,19,e.W1O),e.qZA()),2&y){const r=g.$implicit,f=e.MAs(3);
1e.Tol(e.VKq(4,jo,"msg-"+r.type)),e.xp6(1),e.Q6J("ngIf","loading"===r.type)("ngIfElse",f)}}function Go(y,g){1&y&&(e.TgZ(0,"div",22),e.O4$(),e.TgZ(1,"svg",23)(2,"g",24)(3,"g",25),e._UZ(4,"path",26),e.qZA(),e._UZ(5,"path",27)(6,"path",28),e.qZA()(),e._uU(7," Tengo problemas al procesar tu pregunta. Por favor, intenta de nuevo. "),e.qZA())}function Ta(y,g){1&y&&(e.TgZ(0,"div",22),e.O4$(),e.TgZ(1,"svg",23)(2,"g",24)(3,"g",25),e._UZ(4,"path",26),e.qZA(),e._UZ(5,"path",27)(6,"path",28),e.qZA()(),e._uU(7," Superaste el l\xedmite de 20 mensajes mensuales de tu plan actual. Suscr\xedbete para realizar m\xe1s consultas. "),e.qZA())}function Ea(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",29),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.reset())}),e._uU(1," Reintentar "),e.qZA()}}function Wo(y,g){1&y&&(e.TgZ(0,"button",30),e._uU(1," Suscribirse ahora "),e.qZA())}let ca=(()=>{class y{constructor(r,f,C,j,le,Ae){var Ke,it;if(this.router=r,this.cd=f,this.botService=C,this.aRoute=j,this.globalService=le,this.logger=Ae,this.destroy$=new D.x,this.haveError=!1,this.subscriptionLimitReached=!1,this.currentQuestion="",this.previousQuestion=null,this.botId="",this.chatHistory=[],this.onTransaction=!1,this.botId=null!==(Ke=this.aRoute.snapshot.paramMap.get("token"))&&void 0!==Ke?Ke:"",this.origin=null!==(it=this.aRoute.snapshot.queryParamMap.get("o"))&&void 0!==it?it:window.location.origin,0===this.botId.length){const Rt=this.router.routerState.snapshot.url.split("/");this.botId=Rt[3]}this.getBotInfo()}ngAfterViewChecked(){this.scrollToBottom(0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){this.globalService.getObservable().pipe((0,ne.R)(this.destroy$)).subscribe(C=>{"botName"===C.type&&(this.bot.name=C.data.name)});const r="chatHistory_"+this.botId,f=localStorage.getItem(r);if(f)try{this.chatHistory=JSON.parse(f)}catch(C){this.logger.error("Error parsing chat history",C),localStorage.removeItem(r)}this.scrollToBottom(0)}scrollToBottom(r){try{this.myScrollContainer.nativeElement.scrollTop=this.chatContainer.nativeElement.scrollHeight}catch{}this.cd.detectChanges()}sendQuestion(){var r;const f="chatHistory_"+this.botId;if(0===this.currentQuestion.length||this.onTransaction)return;this.haveError||(this.previousQuestion={message:this.currentQuestion,type:"human",date:new Date}),this.haveError=!1;const C={message:this.currentQuestion,type:"human",date:new Date};this.chatHistory.push(C),this.currentQuestion="",this.chatHistory.push({message:"...",type:"loading",date:new Date}),this.onTransaction=!0,this.botService.sendMessage({prompt:C.message},null===(r=this.bot)||void 0===r?void 0:r.token,this.origin).pipe((0,ne.R)(this.destroy$)).subscribe({next:le=>{const Ae={message:le?.response,type:"bot",date:new Date};this.chatHistory.pop(),this.chatHistory.push(Ae),localStorage.setItem(f,JSON.stringify(this.chatHistory))},complete:()=>{this.onTransaction=!1,this.cd.detectChanges()},error:le=>{this.onTransaction=!1,this.cd.detectChanges(),le.error&&4===le.error.code?this.subscriptionLimitReached=!0:this.haveError=!0,this.chatHistory.pop()}})}getBotInfo(){this.botService.getBot(this.botId).pipe((0,ne.R)(this.destroy$)).subscribe({next:r=>{this.bot=r,localStorage.setItem("bot",JSON.stringify(r)),this.verifyWelcomeMessage()}})}reset(){this.previousQuestion?this.sendPreviousQuestion():(this.onTransaction=!1,this.cd.detectChanges(),this.previousQuestion=null)}sendPreviousQuestion(){var r;this.haveError=!1;const f=this.previousQuestion;this.chatHistory.push({message:"...",type:"loading",date:new Date}),this.botService.sendMessage({prompt:f.message},null===(r=this.bot)||void 0===r?void 0:r.token,this.origin).pipe((0,ne.R)(this.destroy$)).subscribe({next:j=>{var le;const Ae={message:null===(le=j.body)||void 0===le?void 0:le.response,type:"bot",date:new Date};this.chatHistory.pop(),this.chatHistory.push(Ae)},complete:()=>{this.haveError=!1,this.onTransaction=!1,this.cd.detectChanges()},error:j=>{this.onTransaction=!1,this.cd.detectChanges(),this.haveError=!0,this.chatHistory.pop()}})}verifyWelcomeMessage(){var r;null!==(r=this.bot)&&void 0!==r&&r.enabled_welcome_message&&0!==this.bot.welcome_message.length&&this.chatHistory.push({message:this.bot.welcome_message,type:"bot",date:new Date})}trackByIndex(r){return r}clearChat(){this.chatHistory=[],localStorage.removeItem("chatHistory_"+this.botId),this.haveError=!1,this.onTransaction=!1,this.previousQuestion=null,this.cd.detectChanges()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(nn.F0),e.Y36(e.sBO),e.Y36(ki.G),e.Y36(nn.gz),e.Y36(Ss.W),e.Y36(Is.m))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-widget-conf"]],viewQuery:function(r,f){if(1&r&&(e.Gf(Rs,5),e.Gf(Io,5)),2&r){let C;e.iGM(C=e.CRH())&&(f.myScrollContainer=C.first),e.iGM(C=e.CRH())&&(f.chatContainer=C.first)}},decls:18,vars:11,consts:[[1,"chat"],["class","header",4,"ngIf"],[1,"panel",3,"scrollTop"],["scrollMe",""],[1,"chat-container"],["chatContainer",""],[3,"class",4,"ngFor","ngForOf","ngForTrackBy"],["class","msg-bot",4,"ngIf"],["style","margin-left: 10px","type","button","pButton","",3,"click",4,"ngIf"],["style","margin-left: 10px","type","button","pButton","","onclick","window.open('https://globot.ai/precios/', '_blank')",4,"ngIf"],[1,"message-input"],["type","text","pInputText","","placeholder","Escribe tu pregunta aqu\xed...",3,"disabled","ngModel","keyup.enter","ngModelChange"],["type","button","pButton","","pRipple","","label","","icon","pi pi-send","iconPos","right","aria-label","Enviar pregunta",3,"disabled","click"],[1,"generated-text"],["href","https://globot.ai/","target","_blank",2,"cursor","pointer"],[1,"header"],[1,"header-content"],["aria-label","Reiniciar conversaci\xf3n",1,"pi","pi-refresh",2,"font-size","1.4rem",3,"click"],[4,"ngIf","ngIfElse"],["message",""],["src","assets/loading-chat.svg","alt","load","height","40"],[1,"markdown-content",3,"data"],[1,"msg-bot"],["width","18","height","16","viewBox","0 0 18 16","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["id","exclamation-triangle"],["id","<Path>"],["id","Vector","d","M16.9999 15.75H0.999928C0.868876 15.7496 0.740155 15.7153 0.626262 15.6505C0.51237 15.5857 0.417177 15.4925 0.349927 15.38C0.285999 15.2653 0.252441 15.1363 0.252441 15.005C0.252441 14.8737 0.285999 14.7446 0.349927 14.63L8.34993 0.629997C8.42108 0.522734 8.51767 0.434746 8.63108 0.373879C8.7445 0.313012 8.87121 0.281158 8.99993 0.281158C9.12864 0.281158 9.25
1536 0.313012 9.36877 0.373879C9.48219 0.434746 9.57878 0.522734 9.64993 0.629997L17.6499 14.63C17.7139 14.7446 17.7474 14.8737 17.7474 15.005C17.7474 15.1363 17.7139 15.2653 17.6499 15.38C17.5827 15.4925 17.4875 15.5857 17.3736 15.6505C17.2597 15.7153 17.131 15.7496 16.9999 15.75ZM2.28993 14.25H15.7099L8.99993 2.51L2.28993 14.25Z","fill","#CC8925"],["id","Vector_2","d","M9 10.25C8.80189 10.2474 8.61263 10.1676 8.47253 10.0275C8.33244 9.88737 8.25259 9.69811 8.25 9.5V6C8.25 5.80109 8.32902 5.61032 8.46967 5.46967C8.61032 5.32902 8.80109 5.25 9 5.25C9.19891 5.25 9.38968 5.32902 9.53033 5.46967C9.67098 5.61032 9.75 5.80109 9.75 6V9.5C9.74741 9.69811 9.66756 9.88737 9.52747 10.0275C9.38737 10.1676 9.19811 10.2474 9 10.25Z","fill","#CC8925"],["id","Vector_3","d","M9 13.25C8.80189 13.2474 8.61263 13.1676 8.47253 13.0275C8.33244 12.8874 8.25259 12.6981 8.25 12.5V12C8.25 11.8011 8.32902 11.6103 8.46967 11.4697C8.61032 11.329 8.80109 11.25 9 11.25C9.19891 11.25 9.38968 11.329 9.53033 11.4697C9.67098 11.6103 9.75 11.8011 9.75 12V12.5C9.74741 12.6981 9.66756 12.8874 9.52747 13.0275C9.38737 13.1676 9.19811 13.2474 9 13.25Z","fill","#CC8925"],["type","button","pButton","",2,"margin-left","10px",3,"click"],["type","button","pButton","","onclick","window.open('https://globot.ai/precios/', '_blank')",2,"margin-left","10px"]],template:function(r,f){if(1&r&&(e.TgZ(0,"div",0),e.YNc(1,Ao,6,1,"div",1),e.TgZ(2,"div",2,3)(4,"div",4,5),e.YNc(6,Zr,4,6,"div",6),e.YNc(7,Go,8,0,"div",7),e.YNc(8,Ta,8,0,"div",7),e.qZA(),e.YNc(9,Ea,2,0,"button",8),e.YNc(10,Wo,2,0,"button",9),e.qZA(),e.TgZ(11,"div",10)(12,"input",11),e.NdJ("keyup.enter",function(){return f.sendQuestion()})("ngModelChange",function(j){return f.currentQuestion=j}),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){return f.sendQuestion()}),e.qZA()(),e.TgZ(14,"div",13),e._uU(15," Generado por "),e.TgZ(16,"a",14),e._uU(17,"Globot"),e.qZA()()()),2&r){const C=e.MAs(3);e.xp6(1),e.Q6J("ngIf",f.bot),e.xp6(1),e.Q6J("scrollTop",C.scrollHeight),e.xp6(4),e.Q6J("ngForOf",f.chatHistory)("ngForTrackBy",f.trackByIndex),e.xp6(1),e.Q6J("ngIf",f.haveError),e.xp6(1),e.Q6J("ngIf",f.subscriptionLimitReached),e.xp6(1),e.Q6J("ngIf",f.haveError),e.xp6(1),e.Q6J("ngIf",f.subscriptionLimitReached),e.xp6(2),e.Q6J("disabled",f.haveError)("ngModel",f.currentQuestion),e.xp6(1),e.Q6J("disabled",f.haveError)}},dependencies:[co.o,Rr.Hq,hi.H,s.sg,Mn.Fj,Mn.JJ,Mn.On,s.O5,En],styles:["h1[_ngcontent-%COMP%]{font-size:18px}.chat[_ngcontent-%COMP%]{position:relative}.chat[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0}.chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%]{background:#fff;height:390px;overflow:auto}.chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .chat-container[_ngcontent-%COMP%]{overflow-y:auto;font-size:14px;padding:10px;display:flex;flex-direction:column;gap:20px}.chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .chat-container[_ngcontent-%COMP%] .msg-human[_ngcontent-%COMP%]{font-size:14px;border-radius:14px;background:var(--color-primary);border-color:#ccc;color:var(--color-white);width:-moz-fit-content;width:fit-content;padding:16px;margin-left:auto}.chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .chat-container[_ngcontent-%COMP%] .msg-bot[_ngcontent-%COMP%]{color:var(--color-text-dark);width:-moz-fit-content;width:fit-content;border-radius:12px;background:rgba(203,213,225,.35);font-size:14px;font-style:normal;font-weight:400;line-height:24px;padding:16px}.chat[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .chat-container[_ngcontent-%COMP%] .msg-loading[_ngcontent-%COMP%]{background-color:var(--color-primary);color:var(--color-white);width:-moz-fit-content;width:fit-content;padding:0 10px;border-radius:0 5px 5px;box-shadow:5px 5px 10px 1px #00000052}.chat[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%]{padding:15px;margin-top:15px;display:flex;gap:8px;justify-content:center;align-self:center;align-items:center}.chat[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}.chat[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 12px}.chat[_ngcontent-%COMP%] .message-input[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer}.chat[_ngcontent-%COMP%] .generated-text[_ngcontent-%COMP%]{color:var(--color-text-dark);text-align:center;font-family:Inter,sans-serif;font-size:10px;font-style:normal;font-weight:500;line-height:24px;margin-top:14px}.markdown-content[_ngcontent-%COMP%] a{color:#06c;text-decoration:underline}.markdown-content[_ngcontent-%COMP%] a:hover{color:#0052a3}.markdown-content[_ngcontent-%COMP%] code{background-color:#f4f4f4;padding:2px 6px;border-radius:3px;font-family:Courier New,monospace;font-size:.9em}.markdown-content[_ngcontent-%COMP%] pre{background-color:#f4f4f4;padding:12px;border-radius:6px;overflow-x:auto}.markdown-content[_ngcontent-%COMP%] pre code{background-color:transparent;padding:0}.markdown-content[_ngcontent-%COMP%] ul, .markdown-content[_ngcontent-%COMP%] ol{margin:8px 0;padding-left:24px}.markdown-content[_ngcontent-%COMP%] h1, .markdown-content[_ngcontent-%COMP%] h2, .markdown-content[_ngcontent-%COMP%] h3{margin-top:16px;margin-bottom:8px}.markdown-content[_ngcontent-%COMP%] strong{font-weight:700}.markdown-content[_ngcontent-%COMP%] em{font-style:italic}.msg-human[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%]{color:#fff}.msg-human[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%] p{color:#fff}.msg-human[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%] *{color:#fff}.msg-human[_ngcontent-%COMP%] .markdown-content[_ngcontent-%COMP%] a{color:#fff;text-decoration:underline}"]}),y})();var Ja=a(8505),_s=a(262);let cs=(()=>{class y{constructor(r,f,C,j,le){this.router=r,this.botService=f,this.userService=C,this.globalObservable=j,this.logger=le}canActivate(r,f){const C=r.paramMap.get("action");if(C){try{"REFRESH_USER"===atob(C)&&(localStorage.removeItem("user"),localStorage.setItem("show_subscription_success_modal","true"))}catch{this.logger.warn("Invalid Base64 action parameter",C)}return this.router.navigate(["dashboard"]),!1}const j=this.userService.getUserLocalStorage();return(j?(0,M.of)(j):this.userService.getUser().pipe((0,Ja.b)(Ae=>this.userService.setUser(Ae)))).pipe((0,I.w)(Ae=>this.botService.getBots().pipe((0,F.U)(Ke=>(this.botService.setHaveBots(Ke.length>0),Ke.length>0||!Ae.on_boarding||this.router.createUrlTree(["/dashboard","new-bot"]))))),(0,_s.K)(Ae=>(401===Ae.status&&(localStorage.removeItem("user"),this.logger.error("Error 401: No autorizado. Redirigiendo al login..."),this.globalObservable.publish("logOut",{}),this.router.navigate(["dashboard","login"])),(0,M.of)(!1))))}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(nn.F0),e.LFG(ki.G),e.LFG
1(Mi.K),e.LFG(Ss.W),e.LFG(Is.m))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();var Wi=a(1492),Ko=a(8377),ua=a(1989);function da(y,g){if(1&y&&(e.TgZ(0,"div",58),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.getErrorMessage("name_on_invoice")," ")}}function Qa(y,g){if(1&y&&(e.TgZ(0,"div",58),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.getErrorMessage("document_value")," ")}}function Da(y,g){if(1&y&&(e.TgZ(0,"option",59),e._uU(1),e.qZA()),2&y){const r=g.$implicit;e.Q6J("value",r.dial_code),e.xp6(1),e.hij(" ",r.flag," ")}}function ha(y,g){if(1&y&&(e.TgZ(0,"div",58),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.getErrorMessage("phone")," ")}}function ho(y,g){1&y&&e._UZ(0,"img",60)}const ko=function(){return{width:"18px",height:"18px"}};function Oo(y,g){1&y&&e._UZ(0,"p-progressSpinner",61),2&y&&e.Akn(e.DdM(2,ko))}function se(y,g){1&y&&(e.TgZ(0,"div",58),e._uU(1," Debes aceptar los t\xe9rminos y condiciones "),e.qZA())}const De=function(){return{"background-color":"#E5E9EE",color:"var(--color-text)"}},de=function(){return{}},Le=function(){return{standalone:!0}};function ut(y){const g=y.value;return g&&!(0,Wi.fW)(g)?{rutInvalido:"Ingresa un RUT v\xe1lido"}:null}let Wt=(()=>{class y{constructor(r,f,C,j,le,Ae){this.fb=r,this.userService=f,this.route=C,this.router=j,this.ms=le,this.logger=Ae,this.noRut=!1,this.planType="",this.planPrice="",this.countries=[{name:"Chile",flag:"\u{1f1e8}\u{1f1f1}",dial_code:"56"},{name:"Argentina",flag:"\u{1f1e6}\u{1f1f7}",dial_code:"54"},{name:"Brasil",flag:"\u{1f1e7}\u{1f1f7}",dial_code:"55"},{name:"Colombia",flag:"\u{1f1e8}\u{1f1f4}",dial_code:"57"},{name:"Per\xfa",flag:"\u{1f1f5}\u{1f1ea}",dial_code:"51"},{name:"Venezuela",flag:"\u{1f1fb}\u{1f1ea}",dial_code:"58"}],this.selectedCountry="",this.loading=!1,this.termsUrl=ni.N.termsUrl,this.privacyUrl=ni.N.privacyUrl,this.subscriptionForm=this.fb.group({email:[""],name_on_invoice:["",[Mn.kI.required,Mn.kI.minLength(2),Mn.kI.maxLength(50),this.validarFormatoNombre]],document_value:["",[Mn.kI.required,ut]],phone:["",[Mn.kI.required,Mn.kI.minLength(9),Mn.kI.maxLength(13),this.validarTelefono]],type_document:["DNI"],country:["56"],acceptTerms:[!1,Mn.kI.requiredTrue]}),this.selectedCountry=this.subscriptionForm.controls.country.value}goBack(){this.router.navigate(["/dashboard/edit-user"],{queryParams:{tab:"plan"}})}ngOnInit(){this.userService.getUser().subscribe(r=>{if(this.subscriptionForm.controls.email.setValue(r.email),r.name_on_invoice&&this.subscriptionForm.controls.name_on_invoice.setValue(r.name_on_invoice),r.document_value&&this.subscriptionForm.controls.document_value.setValue((0,Wi.t2)(r.document_value)),r.phone_number){const f=r.phone_number,C=this.countries.find(j=>f.startsWith(j.dial_code));C?(this.subscriptionForm.controls.country.setValue(C.dial_code),this.selectedCountry=C.dial_code,this.subscriptionForm.controls.phone.setValue(f.slice(C.dial_co
1de.length))):this.subscriptionForm.controls.phone.setValue(f)}}),this.route.queryParamMap.subscribe(r=>{const f=r.get("subscriptionPlan");if(f)try{const C=atob(f);if(!C)return;const j=C;this.planType={BASE:"Standard",PREMIUM:"Premium",TEST:"Plan Prueba"}[j]||"",this.planPrice={BASE:"12.990",PREMIUM:"29.990",TEST:"1.000"}[j]||""}catch{return}})}validarTelefono(r){return/^\d{9,11}$/.test(r.value)?null:{telefonoInvalido:"Ingresa un tel\xe9fono v\xe1lido"}}checkboxRut(r){var f,C,j,le;this.noRut=r.checked,this.noRut?(this.subscriptionForm.controls.document_value.setValue(null),null===(f=this.subscriptionForm.get("document_value"))||void 0===f||f.clearValidators(),null===(C=this.subscriptionForm.get("document_value"))||void 0===C||C.updateValueAndValidity()):(null===(j=this.subscriptionForm.get("document_value"))||void 0===j||j.setValidators([Mn.kI.required,ut]),null===(le=this.subscriptionForm.get("document_value"))||void 0===le||le.updateValueAndValidity())}onSubmit(){if(this.subscriptionForm.valid){this.loading=!0;let r=this.subscriptionForm.value;r.document_value=this.noRut?null:r.document_value.replace(/[.-]/g,""),r.phone=this.selectedCountry+r.phone,this.userService.updateUser(this.subscriptionForm.value).subscribe({next:f=>{let C=this.route.snapshot.queryParamMap.get("subscriptionPlan")||"";this.userService.createSubscription(C,C).subscribe({next:j=>{const le=j.data.url_webpay,Ae=j.data.token;if(le&&Ae){const Ke=document.createElement("form");Ke.method="POST",Ke.action=le;const it=document.createElement("input");it.type="hidden",it.name="TBK_TOKEN",it.value=Ae,Ke.appendChild(it),document.body.appendChild(Ke),Ke.submit()}},error:j=>{this.loading=!1,this.ms.add(400===j.status&&j.error&&8===j.error.code?{severity:"error",summary:"Acci\xf3n no permitida",detail:"Ya te suscribiste a este plan"}:{severity:"error",summary:"Error",detail:"Ha ocurrido un error al crear la suscripci\xf3n"}),this.logger.error("Error creating subscription",j)}})},error:f=>{this.loading=!1,this.ms.add({severity:"error",summary:"Error",detail:"Ha ocurrido un error al actualizar el usuario"}),this.logger.error("Error updating user",f)}})}}onblur(){var r;const f=null===(r=this.subscriptionForm.get("document_value"))||void 0===r?void 0:r.value;this.subscriptionForm.controls.document_value.setValue((0,Wi.t2)(f))}getCodeNumber(){var r;return"+("+(null===(r=this.subscriptionForm.get("country"))||void 0===r?void 0:r.value)+")"}onCountryChange(r){this.selectedCountry=r.target.value}validarFormatoNombre(r){return/^[A-Za-z\xc0-\xff]+([ '-][A-Za-z\xc0-\xff]+)*$/.test(r.value)?null:{formatoInvalido:"Ingresa un nombre y apellido v\xe1lido"}}getInputClass(r){return{"invalid-input":this.subscriptionForm.controls[r].invalid&&this.subscriptionForm.controls[r].touched}}getErrorMessage(r){let f=this.subscriptionForm.get(r);if(f?.errors)return f.hasError("required")?"Campo requerido":f.hasError("rutInvalido")?f.errors.rutInvalido:f.hasError("telefonoInvalido")?f.errors.telefonoInvalido:""}isFormValid(){if(!this.subscriptionForm.valid)return!1;for(const r in this.subscriptionForm.controls)if(this.subscriptionForm.controls.hasOwnProperty(r)){const f=this.subscriptionForm.controls[r];if("document_value"===r&&this.noRut)continue;if(null===f.value||""===f.value)return!1}return!0}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(Mn.qu),e.Y36(Mi.K),e.Y36(nn.gz),e.Y36(nn.F0),e.Y36(ei.ez),e.Y36(Is.m))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-subscriptions"]],inputs:{user:"user"},decls:89,vars:29,consts:[[1,"container-app"],[1,"summary",2,"background","var(--Contrast-h1, #3a3c5d)"],[1,"detail"],[1,"button",2,"display","flex","justify-content","space-between"],["role","button",1,"btn-return",3,"click"],[1,"pi","pi-arrow-left",2,"font-size","14px"],["xmlns","http://www.w3.org/2000/svg","width","42","height","40","viewBox","0 0 42 40","fill","none",1,"globot"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.758789 18.7107C0.758789 8.48647 10.2723 0.668915 21.3795 0.668915C32.4866 0.668915 42.0001 8.48647 42.0001 18.7107C42.0001 28.9349 32.4866 36.7524 21.3795 36.7524C20.0819 36.7524 18.7844 36.6501 17.503 36.4348C14.5633 38.5507 10.9722 39.5575 7.35955 39.2883C7.02574 39.2668 6.7081 39.1537 6.42813 38.9706C6.14816 38.7876 5.92741 38.5345 5.77666 38.2384C5.6259 37.9423 5.55054 37.6139 5.56669 37.2801C5.58284 36.9463 5.67975 36.6232 5.85204 36.3432C6.69733 34.9811 7.16035 33.4197 7.19804 31.8153C3.27849 28.5688 0.758789 23.9278 0.758789 18.7107Z","fill","white"],["d","M21.3794 30.8678C29.7052 30.8678 36.4545 25.6419 36.4545 19.1954C36.4545 12.7488 29.7052 7.52286 21.3794 7.52286C13.0536 7.52286 6.3042 12.7488 6.3042 19.1954C6.3042 25.6419 13.0536 30.8678 21.3794 30.8678Z","fill","#27283B"],["d","M16.523 15.599C17.7667 15.599 18.7735 16.6058 18.7735 17.8495V20.8322C18.7735 22.0759 17.7667 23.0827 16.523 23.0827C15.2793 23.0827 14.2725 22.0759 14.2725 20.8322V17.8495C14.2725 16.6058 15.2793 15.599 16.523 15.599Z","fill","#DA94FB"],["d","M26.6558 15.599C27.8995 15.599 28.9063 16.6058 28.9063 17.8495V20.8322C28.9063 22.0759 27.8995 23.0827 26.6558 23.0827C25.4121 23.0827 24.4053 22.0759 24.4053 20.8322V17.8495C24.4053 16.6058 25.4121 15.599 26.6558 15.599Z","fill","#DA94FB"],[1,"plan"],[2,"font-size","19px","font-weight","600"],[1,"price",2,"font-size","24px","font-weight","700"],[1,"numerator"],[1,"denominator",2,"color","#8f8f97"],[1,"iva",2,"font-size","16px","color","#f8fafc","font-weight","400"],[1,"total",2,"color","var(--color-primary-light)"],[1,"total-detail"],[2,"min-width","210px"],[2,"font-weight","700","font-size","16px"],[2,"width","100%","height","1px","border-top","1px solid #8f8f97"],[1,"total-payment"],[1,"footer"],["src","assets/img/webpay.svg","alt","Webpay","height","39"],[1,"form"],[1,"logo"],["src","assets/icons/globot.svg","alt","globot","height","33"],[1,"subscriptionForm"],[1,"bodyForm",3,"formGroup"],[1,"flex-auto"],["for","email"],["pInputText","","type","text","formControlName","email","id","email",2,"background","#e5e9ee","color","var(--color-text)",3,"readonly"],["for","name_on_invoice"],["pInputText","","formControlName","name_on_invoice","id","name_on_invoice","formControlName","name_on_invoice","placeholder","Tu nombre completo",3,"ngClass"],["class","error-message",4,"ngIf"],["for","document_value"],["pInputText","","formControlName","document_value","id","document_value","formControlName","document_value","placeholder","Ej: 1234456789",3,"ngClass","readonly","ngStyle","blur"],["name","noRut","label","No tengo RUT",1,"mt-3",3,"binary","ngModel","ngModelOptions","onChange"],[1,"flex-auto","phone-input-container"],["for","phone"],[1,"ph
1one-input"],["formControlName","country",1,"country-selector",2,"height","40px","border","1px solid var(--color-border-light)","font-size","25px",3,"change"],[3,"value",4,"ngFor","ngForOf"],["type","tel","formControlName","phone","pKeyFilter","int","id","phone","placeholder","Ej: 9 1234 5678",1,"phone-input-field",2,"height","40px","border-radius","6px",3,"ngClass"],["aria-label","Pagar con Webpay",1,"btn-subscribe",3,"disabled","click"],["src","assets/img/webpay.svg","alt","Webpay","class","btn-webpay-img",4,"ngIf"],["ariaLabel","loading","animationDuration",".5s",3,"style",4,"ngIf"],[1,"flex-auto","accept-terms-block","mt-3"],[1,"accept-terms-row"],["formControlName","acceptTerms","inputId","acceptTerms",3,"binary"],["for","acceptTerms",1,"checkbox-label"],["target","_blank","rel","noopener noreferrer",3,"href"],[1,"footer-2"],[1,"pay"],[2,"font-size","14px"],[1,"medios"],["src","assets/img/webpayColor.svg","alt","Webpay","height","38.6"],[1,"error-message"],[3,"value"],["src","assets/img/webpay.svg","alt","Webpay",1,"btn-webpay-img"],["ariaLabel","loading","animationDuration",".5s"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return f.goBack()}),e._UZ(5,"i",5),e._uU(6,"Volver"),e.qZA(),e.O4$(),e.TgZ(7,"svg",6),e._UZ(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10),e.qZA()(),e.kcU(),e.TgZ(12,"div",11)(13,"span",12),e._uU(14),e.qZA(),e.TgZ(15,"div",13)(16,"span",14),e._uU(17),e.qZA(),e.TgZ(18,"span",15),e._uU(19,"/Mes"),e.qZA()(),e.TgZ(20,"div",16),e._uU(21," IVA incluido "),e.qZA()(),e.TgZ(22,"div",17)(23,"div",18)(24,"span",19),e._uU(25),e.qZA(),e.TgZ(26,"span",20),e._uU(27),e.qZA()(),e._UZ(28,"div",21),e.TgZ(29,"div",22)(30,"span"),e._uU(31,"Total"),e.qZA(),e.TgZ(32,"span",20),e._uU(33),e.qZA()()()(),e.TgZ(34,"div",23)(35,"span"),e._uU(36,"Medio de pago"),e.qZA(),e.TgZ(37,"span"),e._UZ(38,"img",24),e.qZA()()(),e.TgZ(39,"div",25)(40,"div",26),e._UZ(41,"img",27),e.qZA(),e.TgZ(42,"div",28)(43,"h1"),e._uU(44,"Ingresa tus datos de suscripci\xf3n"),e.qZA(),e.TgZ(45,"form",29)(46,"div",30)(47,"label",31),e._uU(48," Email "),e.qZA(),e._UZ(49,"input",32),e.qZA(),e.TgZ(50,"div",30)(51,"label",33),e._uU(52," Nombre y Apellido "),e.qZA(),e._UZ(53,"input",34),e.YNc(54,da,2,1,"div",35),e.qZA(),e.TgZ(55,"div",30)(56,"label",36),e._uU(57," RUT "),e.qZA(),e.TgZ(58,"input",37),e.NdJ("blur",function(){return f.onblur()}),e.qZA(),e.TgZ(59,"p-checkbox",38),e.NdJ("onChange",function(j){return f.checkboxRut(j)}),e.qZA(),e.YNc(60,Qa,2,1,"div",35),e.qZA(),e.TgZ(61,"div",39)(62,"label",40),e._uU(63,"Tel\xe9fono"),e.qZA(),e.TgZ(64,"div",41)(65,"select",42),e.NdJ("change",function(j){return f.onCountryChange(j)}),e.YNc(66,Da,2,2,"option",43),e.qZA(),e.TgZ(67,"span"),e._uU(68),e.qZA(),e._UZ(69,"input",44),e.qZA(),e.YNc(70,ha,2,1,"div",35),e.qZA(),e.TgZ(71,"button",45),e.NdJ("click",function(){return f.onSubmit()}),e.YNc(72,ho,1,0,"img",46),e.YNc(73,Oo,1,3,"p-progressSpinner",47),e.qZA(),e.TgZ(74,"div",48)(75,"div",49),e._UZ(76,"p-checkbox",50),e.TgZ(77,"label",51),e._uU(78," Acepto que Globot cobrar\xe1 en mi tarjeta el importe indicado arriba ahora y de forma recurrente cada mes hasta que cancele, de acuerdo con nuestros "),e.TgZ(79,"a",52),e._uU(80,"t\xe9rminos y condiciones"),e.qZA(),e._uU(81,". Puedo cancelar en cualquier momento. "),e.qZA()(),e.YNc(82,se,2,0,"div",35),e.qZA()(),e.TgZ(83,"div",53)(84,"div",54)(85,"span",55),e._uU(86,"Medio de pago"),e.qZA(),e.TgZ(87,"div",56),e._UZ(88,"img",57),e.qZA()()()()()()),2&r&&(e.xp6(14),e.hij("Plan ",f.planType,""),e.xp6(3),e.hij("$",f.planPrice,""),e.xp6(8),e.hij("Plan ",f.planType," (IVA incluido)"),e.xp6(2),e.hij("$",f.planPrice,""),e.xp6(6),e.hij("$",f.planPrice,""),e.xp6(12),e.Q6J("formGroup",f.subscriptionForm),e.xp6(4),e.Q6J("readonly",!0),e.xp6(4),e.Q6J("ngClass",f.getInputClass("name_on_invoice")),e.xp6(1),e.Q6J("ngIf",f.subscriptionForm.controls.name_on_invoice.invalid&&f.subscriptionForm.controls.name_on_invoice.touched),e.xp6(4),e.Q6J("ngClass",f.getInputClass("document_value"))("readonly",f.noRut)("ngStyle",f.noRut?e.DdM(26,De):e.DdM(27,de)),e.xp6(1),e.Q6J("binary",!0)("ngModel",f.noRut)("ngModelOptions",e.DdM(28,Le)),e.xp6(1),e.Q6J("ngIf",f.subscriptionForm.controls.document_value.invali
1d&&f.subscriptionForm.controls.document_value.touched),e.xp6(6),e.Q6J("ngForOf",f.countries),e.xp6(2),e.Oqu(f.getCodeNumber()),e.xp6(1),e.Q6J("ngClass",f.getInputClass("phone")),e.xp6(1),e.Q6J("ngIf",f.subscriptionForm.controls.phone.invalid&&f.subscriptionForm.controls.phone.touched),e.xp6(1),e.Q6J("disabled",!f.isFormValid()||f.loading),e.xp6(1),e.Q6J("ngIf",!f.loading),e.xp6(1),e.Q6J("ngIf",f.loading),e.xp6(3),e.Q6J("binary",!0),e.xp6(3),e.Q6J("href",f.termsUrl,e.LSH),e.xp6(3),e.Q6J("ngIf",f.subscriptionForm.controls.acceptTerms.invalid&&f.subscriptionForm.controls.acceptTerms.touched))},dependencies:[co.o,s.sg,Mn._Y,Mn.YN,Mn.Kr,Mn.Fj,Mn.EJ,Mn.JJ,Mn.JL,Mn.On,Mn.sg,Mn.u,s.O5,Yn.G,s.mk,Ko.Fr,ua.XZ,s.PC],styles:[".container-app[_ngcontent-%COMP%]{display:flex;height:100vh;margin:0;width:100vw}.globot[_ngcontent-%COMP%]{display:none}.phone-input-container[_ngcontent-%COMP%]{display:flex;align-items:center}.phone-input[_ngcontent-%COMP%]{position:relative;display:flex;width:100%}.phone-input[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;left:52px;margin-top:13px;font-size:14px}.country-selector[_ngcontent-%COMP%]{position:absolute;z-index:2;border-right:none}.phone-input-field[_ngcontent-%COMP%]{padding-left:95px}.summary[_ngcontent-%COMP%], .form[_ngcontent-%COMP%]{flex-basis:50%;display:flex;align-items:flex-start;flex-direction:column}.summary[_ngcontent-%COMP%]{display:flex;padding:74px 88px 44px 55px;align-items:center;justify-content:space-between}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:56px}.footer[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;position:relative;font-size:14px;color:#fff}span[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-border);text-decoration-line:underline}span[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration-line:underline}.logo[_ngcontent-%COMP%]{position:absolute;top:20px;right:30px}.btn-return[_ngcontent-%COMP%]{display:flex;width:150px;padding:12px;justify-content:center;align-items:center;gap:8px;border-radius:4px;background:var(--Light-Surfaces-Content, #fff);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;color:var(--color-primary);cursor:pointer;text-decoration:none}.subscriptionForm[_ngcontent-%COMP%]{display:inline-flex;flex-direction:column;align-items:flex-start;gap:30px;margin:130px}input[_ngcontent-%COMP%]{width:452px;border:1px solid var(--color-border-light)}form[_ngcontent-%COMP%]{width:100%}.bodyForm[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px}.flex-auto[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.plan[_ngcontent-%COMP%]{color:var(--color-primary-light);display:flex;flex-direction:column;align-items:flex-start;gap:16px}.total[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:22px}.total-detail[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:215px}.total-payment[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:392px}.invalid-input[_ngcontent-%COMP%]{border-color:red}.pay[_ngcontent-%COMP%]{display:none}.links[_ngcontent-%COMP%]{display:flex;align-items:center;gap:36px;font-size:14px}.error-message[_ngcontent-%COMP%]{position:absolute;margin-top:70px;color:var(--color-error);font-size:14px}.accept-terms-block[_ngcontent-%COMP%]{position:relative}.accept-terms-block[_ngcontent-%COMP%] .accept-terms-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.accept-terms-block[_ngcontent-%COMP%] .checkbox-label[_ngcontent-%COMP%]{margin:0;font-size:14px;line-height:1.4;cursor:pointer;flex:1;max-width:100%}.accept-terms-block[_ngcontent-%COMP%] .checkbox-label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-primary);text-decoration:none}.accept-terms-block[_ngcontent-%COMP%] .checkbox-label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.accept-terms-block[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{position:relative;margin-top:4px}.btn-subscribe[_ngcontent-%COMP%] .btn-webpay-img[_ngcontent-%COMP%]{height:28px;width:auto;display:block}.btn-subscribe[_ngcontent-%COMP%]{display:flex;width:100%;height:48px;padding:12px 24px;justify-content:center;align-items:center;gap:8px;border-radius:60px;background:#6D2077;border:none;color:#fff;font-size:16px;font-weight:700;cursor:pointer;transition:background-color .2s}.btn-subscribe[_ngcontent-%COMP%]:hover:not(:disabled){background:#4A1650}.btn-subscribe[_ngcontent-%COMP%]:focus:not(:disabled){background:#4A1650}.btn-subscribe[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.btn-webpay[_ngcontent-%COMP%]{display:flex;width:100%;height:48px;justify-content:center;align-items:center;border-radius:60px;background:#6D2077;border:none;cursor:pointer;transition:background-color .2s}.btn-webpay[_ngcontent-%COMP%]:hover{background:#4A1650}.btn-webpay[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.btn-webpay[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;object-fit:contain}@media screen and (max-width: 768px){.container-app[_ngcontent-%COMP%]{flex-direction:column}.logo[_ngcontent-%COMP%]{display:none}.summary[_ngcontent-%COMP%]{flex-direction:column;gap:40px;align-self:stretch;padding:44px 32px 32px}input[_ngcontent-%COMP%]{width:100%}.footer[_ngcontent-%COMP%]{display:none}.globot[_ngcontent-%COMP%]{display:flex}.subscriptionForm[_ngcontent-%COMP%]{display:flex;margin:0;flex-direction:column;gap:36px;width:100%;padding:44px 32px 32px}.subscriptionForm[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.total[_ngcontent-%COMP%]{gap:16px;align-self:stretch}.total-detail[_ngcontent-%COMP%]{gap:15px}.total-payment[_ngcontent-%COMP%]{gap:200px}.plan[_ngcontent-%COMP%]{justify-content:center;align-items:center}.bodyForm[_ngcontent-%COMP%]{align-items:normal;gap:26px}
1.footer-2[_ngcontent-%COMP%]{display:flex;padding:20px 0 32px 20px;flex-direction:column;justify-content:center;align-items:center;gap:20px}.pay[_ngcontent-%COMP%]{display:none}.medios[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;align-self:stretch}.form[_ngcontent-%COMP%]{align-items:center}}"]}),y})(),an=(()=>{class y{constructor(r){this.domSanitizer=r}transform(r){return this.domSanitizer.bypassSecurityTrustResourceUrl(r)}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(t.H7,16))},y.\u0275pipe=e.Yjl({name:"safe",type:y,pure:!0}),y})();const Bn=["iframe"];function zi(y,g){1&y&&(e.TgZ(0,"div",31)(1,"div",32),e._UZ(2,"div",33)(3,"div",33)(4,"div",33)(5,"div",33),e.qZA()())}function Ri(y,g){if(1&y&&(e._UZ(0,"iframe",34,35),e.ALo(2,"safe")),2&y){const r=e.oxw();e.Q6J("src",e.lcZ(2,1,r.widgetUrl),e.uOi)}}function bi(y,g){1&y&&(e.TgZ(0,"span"),e._uU(1,"El nombre es requerido"),e.qZA())}function fi(y,g){1&y&&(e.TgZ(0,"span"),e._uU(1,"El nombre tiene un l\xedmite de 20 caracteres"),e.qZA())}function Bi(y,g){if(1&y&&(e.TgZ(0,"small",36),e.YNc(1,bi,2,0,"span",37),e.YNc(2,fi,2,0,"span",37),e.qZA()),2&y){const r=e.oxw();let f,C;e.xp6(1),e.Q6J("ngIf",null==(f=r.chatbotForm.get("name"))||null==f.errors?null:f.errors.required),e.xp6(1),e.Q6J("ngIf",null==(C=r.chatbotForm.get("name"))||null==C.errors?null:C.errors.maxlength)}}function Ei(y,g){1&y&&(e.TgZ(0,"small",38),e._uU(1,"M\xe1ximo 20 caracteres"),e.qZA())}function us(y,g){1&y&&(e.TgZ(0,"span"),e._uU(1,"El identificador tiene un l\xedmite de 20 caracteres"),e.qZA())}function _r(y,g){if(1&y&&(e.TgZ(0,"small",36),e.YNc(1,us,2,0,"span",37),e.qZA()),2&y){const r=e.oxw();let f;e.xp6(1),e.Q6J("ngIf",null==(f=r.chatbotForm.get("identifier"))||null==f.errors?null:f.errors.maxlength)}}function vs(y,g){1&y&&(e.TgZ(0,"small",38),e._uU(1,"M\xe1ximo 20 caracteres \xb7 se muestra en el widget"),e.qZA())}function vr(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",41),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(2);return e.KtG(le.selectColor(j.value))}),e._UZ(1,"span",42),e.TgZ(2,"span",43),e._uU(3),e.qZA()()}if(2&y){const r=g.$implicit,f=e.oxw(2);e.ekj("selected",r.value===f.selectedColor),e.xp6(1),e.Udp("background-color",r.value),e.xp6(2),e.Oqu(r.name)}}function zs(y,g){if(1&y&&(e.TgZ(0,"div",39),e.YNc(1,vr,4,5,"div",40),e.qZA()),2&y){const r=g.$implicit,f=e.oxw();e.xp6(1),e.Q6J("ngForOf",r)("ngForTrackBy",f.trackByColorValue)}}function or(y,g){1&y&&(e.TgZ(0,"small",36),e._uU(1,"El campo mensaje no puede estar vac\xedo."),e.qZA())}const Fr=function(y){return{"error-input":y}};function wr(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",14)(1,"input",44),e.NdJ("input",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.welcomeMessage=C.target.value)}),e.qZA(),e.YNc(2,or,2,0,"small",17),e.TgZ(3,"ul",45)(4,"li"),e._uU(5,"Se muestra al inicio de cada conversaci\xf3n."),e.qZA(),e.TgZ(6,"li"),e._uU(7," Para ver el nuevo mensaje reinicia la conversaci\xf3n con el \xedcono "),e.O4$(),e.TgZ(8,"svg",46),e._UZ(9,"path",47),e.qZA(),e._uU(10," del chat. "),e.qZA()()()}if(2&y){const r=e.oxw();e.xp6(1),e.Q6J("value",r.welcomeMessage)("ngClass",e.VKq(3,Fr,r.welcomeMessageError)),e.xp6(1),e.Q6J("ngIf",r.welcomeMessageError)}}function Ia(y,g){1&y&&(e.TgZ(0,"div",48),e._UZ(1,"i",49),e.TgZ(2,"span"),e._uU(3,"Tienes cambios sin guardar"),e.qZA()())}function Yo(y,g){1&y&&(e.TgZ(0,"div",50),e._UZ(1,"i",51),e.TgZ(2,"span"),e._uU(3,"Todo guardado"),e.qZA()())}const Kl=function(){return{standalone:!0}};let Jo=(()=>{class y{constructor(r,f,C,j,le,Ae){var Ke;this.botService=r,this.aRoute=f,this.router=C,this.fb=j,this.messageService=le,this.globalService=Ae,this.widgetUrl=ni.N.widgetUrl,this.demoTargetOrigin=ni.N.demoTargetOrigin,this.destroy$=new D.x,this.colorList=[{value:"#7B5CF5",name:"Violeta"},{value:"#27283B",name:"Carb\xf3n"},{value:"#CE4037",name:"Rojo"},{value:"#477D46",name:"Verde"},{value:"#2173DC",name:"Azul"},{value:"#B869DE",name:"Magenta"}],this.showiframe=!0,this.isLoading=!1,this.selectedColor="#7B5CF5",this.isIframeLoading=!0,this.configExpanded=!1,this.welcomeEnabled=!1,this.welcomeMessage="",this.welcomeMessageError=!1,this.justSaved=!1,this.savedState={name:"",identifier:"",color:"#7B5CF5",wel
1comeEnabled:!1,welcomeMessage:""},this.styles={topBarColor:"#4A90E2",userBubbleColor:"#E3F2FD",botBubbleColor:"#F5F5F5",buttonColor:"#4A90E2"},this.tempStyles=Object.assign({},this.styles),this.styleKeys=Object.keys(this.styles),this.botName="",this.botIdentifier="";let it=window.location.origin;if(this.botId=null!==(Ke=this.aRoute.snapshot.paramMap.get("token"))&&void 0!==Ke?Ke:"",this.widgetUrl=this.widgetUrl+this.botId,0===this.botId.length){const Rt=this.router.routerState.snapshot.url.split("/");this.botId=Rt[3]}this.widgetUrl=this.widgetUrl+this.botId+`?o=${it}`}get colorRows(){const r=[];for(let f=0;f<this.colorList.length;f+=2)r.push(this.colorList.slice(f,f+2));return r}get isDirty(){var r,f,C,j,le,Ae,Ke,it;const Rt=null!==(j=null===(C=null===(f=null===(r=this.chatbotForm)||void 0===r?void 0:r.get("name"))||void 0===f?void 0:f.value)||void 0===C?void 0:C.trim())&&void 0!==j?j:"",Zt=null!==(it=null===(Ke=null===(Ae=null===(le=this.chatbotForm)||void 0===le?void 0:le.get("identifier"))||void 0===Ae?void 0:Ae.value)||void 0===Ke?void 0:Ke.trim())&&void 0!==it?it:"";return Rt!==this.savedState.name||Zt!==this.savedState.identifier||this.selectedColor!==this.savedState.color||this.welcomeEnabled!==this.savedState.welcomeEnabled||this.welcomeMessage!==this.savedState.welcomeMessage}selectColor(r){var f;this.selectedColor=r,null===(f=this.iframe)||void 0===f||f.nativeElement.contentWindow.postMessage({color:r},this.demoTargetOrigin)}ngOnInit(){this.chatbotForm=this.fb.group({name:["",[Mn.kI.required,Mn.kI.maxLength(20)]],identifier:["",[Mn.kI.maxLength(20)]]}),this.getBotInfo(),this.getWidgetConfig()}ngOnDestroy(){this.botSubscription&&this.botSubscription.unsubscribe(),clearTimeout(this.justSavedTimeout),this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){var r;null!==(r=this.iframe)&&void 0!==r&&r.nativeElement&&(this.iframe.nativeElement.onload=()=>{this.isIframeLoading=!1})}getLabelText(r){return r.replace(/([A-Z])/g," $1").replace(/^./,f=>f.toUpperCase())}trackByColorRowIndex(r){return r}trackByColorValue(r,f){return f.value}acceptStyle(r,f){this.styles.botBubbleColor=this.tempStyles.botBubbleColor}updateBotForm(r,f){return this.botService.updateBot(r,f).pipe((0,ne.R)(this.destroy$)).subscribe({next:C=>{this.messageService.add({key:"tst",severity:"success",summary:"Acci\xf3n exitosa",detail:"\xa1Los cambios se aplicaron!"})},error:C=>{this.messageService.add({key:"tst",severity:"error",summary:"Cambio Fallido",detail:"Cambio Fallido"})}})}saveConfig(){var r,f,C,j;const le=null===(r=this.chatbotForm.get("name"))||void 0===r?void 0:r.value,Ae=null===(f=this.chatbotForm.get("identifier"))||void 0===f?void 0:f.value,Ke=null!==(C=le?.trim())&&void 0!==C?C:"",it=null!==(j=Ae?.trim())&&void 0!==j?j:"";if(Ke.length>20||it.length>20)return void this.chatbotForm.markAllAsTouched();if(this.chatbotForm.invalid||!Ke)return this.chatbotForm.markAllAsTouched(),void this.messageService.add({key:"tst",severity:"error",summary:"Campo requerido",detail:"El nombre no puede estar vac\xedo"});if(this.welcomeEnabled&&!this.welcomeMessage.trim())return void(this.welcomeMessageError=!0);this.welcomeMessageError=!1,this.isLoading=!0,this.showiframe=!1;const Rt={name:Ke.replace(/[^a-zA-Z0-9\xc0-\xff\s.,-]/g,""),identifier:it,color:this.selectedColor};this.botService.updateBot(Rt,this.botId).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{this.botService.saveWidgetConfig(this.botId,Rt).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{this.botService.updateWelcomeMessage(this.botId,{enabled:this.welcomeEnabled,message:this.welcomeMessage}).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{this.savedState={name:Rt.name,identifier:Rt.identifier,color:this.selectedColor,welcomeEnabled:this.welcomeEnabled,welcomeMessage:this.welcomeMessage},this.justSaved=!0,clearTimeout(this.justSavedTimeout),this.justSavedTimeout=setTimeout(()=>this.justSaved=!1,3e3),this.globalService.publish("botName",{name:Ke}),this.globalService.publish("botIdentifier",{identifier:it}),setTimeout(()=>{this.isLoading=!1,this.showiframe=!0},500),this.messageService.add({key:"tst",severity:"success",summary:"Acci\xf3n exitosa",detail
1:"\xa1Los cambios se aplicaron!"})},error:this.handleError.bind(this)})},error:this.handleError.bind(this)})},error:this.handleError.bind(this)})}onWelcomeToggle(){this.welcomeEnabled||(this.welcomeMessageError=!1)}handleError(r){this.isLoading=!1,this.showiframe=!0,this.messageService.add({key:"tst",severity:"error",summary:"Cambio Fallido",detail:"Ocurri\xf3 un error al guardar los cambios"})}getBotInfo(){this.botSubscription=this.botService.getBot$(this.botId).pipe((0,ne.R)(this.destroy$)).subscribe({next:r=>{var f,C,j,le,Ae,Ke;r&&(this.botName=r.name,this.botIdentifier=r.identifier,this.bot=r,this.chatbotForm.patchValue({name:r.name,identifier:r.identifier}),this.welcomeEnabled=null!==(f=r.enabled_welcome_message)&&void 0!==f&&f,this.welcomeMessage=null!==(C=r.welcome_message)&&void 0!==C?C:"",this.savedState.name=null!==(j=r.name)&&void 0!==j?j:"",this.savedState.identifier=null!==(le=r.identifier)&&void 0!==le?le:"",this.savedState.welcomeEnabled=null!==(Ae=r.enabled_welcome_message)&&void 0!==Ae&&Ae,this.savedState.welcomeMessage=null!==(Ke=r.welcome_message)&&void 0!==Ke?Ke:"",localStorage.setItem("bot",JSON.stringify(r)))}})}getWidgetConfig(){this.botService.getWidget(this.botId).pipe((0,ne.R)(this.destroy$)).subscribe({next:r=>{this.selectedColor=r.configuration.color,this.savedState.color=r.configuration.color},error:r=>{console.error("Failed to fetch widget config",r)}})}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ki.G),e.Y36(nn.gz),e.Y36(nn.F0),e.Y36(Mn.qu),e.Y36(ei.ez),e.Y36(Ss.W))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-widget-config"]],viewQuery:function(r,f){if(1&r&&e.Gf(Bn,5),2&r){let C;e.iGM(C=e.CRH())&&(f.iframe=C.first)}},decls:44,vars:26,consts:[[1,"page-title",2,"margin-bottom","1rem"],[1,"grid"],["id","iframe-container"],["class","spinner",4,"ngIf"],["id","iframe","title","Globot","height","630","width","392",3,"src",4,"ngIf"],[1,"panel"],[1,"panel-toggle",3,"click"],[1,"panel-toggle-summary"],["aria-hidden","true",1,"panel-toggle-color"],[1,"panel-toggle-name"],["aria-hidden","true",1,"material-symbols-outlined","panel-toggle-icon"],[1,"inputs-form"],[3,"formGroup"],[1,"panel-section"],[1,"field"],["for","name"],["pInputText","","id","name","formControlName","name","placeholder","Ejemplo: Sof\xeda",3,"ngClass"],["class","error-message",4,"ngIf"],["class","field-hint",4,"ngIf"],["for","identifier"],["pInputText","","id","identifier","formControlName","identifier","placeholder","Ej: Asistente Ecoverde"],[1,"section-label"],[1,"color-rows"],["class","color-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"panel-section","welcome-section"],["label","Activar mensaje de bienvenida",3,"ngModel","ngModelOptions","binary","onChange"],["class","field",4,"ngIf"],["class","change-banner change-banner--warning",4,"ngIf"],["class","change-banner change-banner--success",4,"ngIf"],["type","button",1,"save",3,"click"],["aria-hidden","true",1,"pi","pi-save"],[1,"spinner"],[1,"loading-dots"],[1,"dot"],["id","iframe","title","Globot","height","630","width","392",3,"src"],["iframe",""],[1,"error-message"],[4,"ngIf"],[1,"field-hint"],[1,"color-row"],["class","color-card",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"color-card",3,"click"],["aria-hidden","true",1,"color-dot"],[1,"color-name"],["pInputText","","placeholder","Ejemplo: \xa1Hola! \xbfEn qu\xe9 puedo ayudarte hoy?",3,"value","ngClass","input"],[1,"welcome-hints"],["xmlns","http://www.w3.org/2000/svg","width","11","height","11","viewBox","0 0 24 24","fill","none","aria-hidden","true",1,"hint-icon"],["d","M3 12C3 9.61305 3.94821 7.32387 5.63604 5.63604C7.32387 3.94821 9.61305 3 12 3C14.516 3.00947 16.931 3.99122 18.74 5.74L21 8M21 8V3M21 8H16M21 12C21 14.3869 20.0518 16.6761 18.364 18.364C16.6761 20.0518 14.3869 21 12 21C9.48395 20.9905 7.06897 20.0088 5.26 18.26L3 16M3 16H8M3 16V21","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"change-banner","change-banner--warning"],["aria-hidden","true",1,"pi","pi-exclamation-circle"],[1,"change-banner","change-banner--success"],["aria-hidden","true",1,"pi","pi-check-circle"]],template:function(r,f){if(1&r&&(e.TgZ(0,"h1",0),e._uU(1,"Probar asistente"),e.qZA(),e.TgZ(2,"div",1)(3,"div",2),e.YNc(4,zi,6,0,"div",3),e.YNc(5,Ri,3,3,"iframe",4),e.qZA(),e.TgZ(6,"div",5)(7,"div",6),e.NdJ("click",function(){return f.configExpanded=!f.configExpanded}),e.TgZ(8,"div",7),e._UZ(9,"span",8),e.TgZ(10,"span",9),e._uU(11),e.qZA()(),e.TgZ(12,"span",10),e._uU(13,"expand_more"),e.qZA()(),e.TgZ(14,"div",11)(15,"form",12)(16,"div",13)(17,"div",14)(18,"label",15),e._uU(19,"Nombre visible"),e.qZA(),e._UZ(20,"input",16),e.YNc(21,Bi,3,2,"small",17),e.YNc(22,Ei,2,0,"small",18),e.qZA(),e.TgZ(23,"div",14)(24,"label",19),e._uU(25,"Nombre del operador"),e.qZA(),e._UZ(26,"input",20),e.YNc(27,_r,2,1,"small",17),e.YNc(28,vs,2,0,"small",18),e.qZA()(),e.TgZ(29,"div",13)(30,"span",21),e._uU(31,"Color principal"),e.qZA(),e.TgZ(32,"div",22),e.YNc(33,zs,2,2,"div",23),e.qZA()(),e.TgZ(34,"div",24)(35,"label"),e._uU(36,"Mensaje de bienvenida"),e.qZA(),e.TgZ(37,"p-checkbox",25),e.NdJ("onChange",function(j){return f.welcomeEnabled=j.checked,f.onWelcomeToggle()}),e.qZA(),e.YNc(38,wr,11,5,"div",26),e.qZA(),e.YNc(39,Ia,4,0,"div",27),e.YNc(40,Yo,4,0,"div",28),e.TgZ(41,"button",29),e.NdJ("click",function(){return f.saveConfig()}),e._UZ(42,"i",30),e._uU(43," Guardar cambios "),e.qZA()()()()()),2&r){let C,j,le,Ae,Ke,it;e.xp6(4),e.Q6J("ngIf",f.isLoading||f.isIframeLoading&&f.showiframe),e.xp6(1),e.Q6J("ngIf",f.showiframe),e.xp6(4),e.Udp("background-color",f.selectedColor),e.xp6(2),e.Oqu((null==(C=f.chatbotForm.get("name"))?null:C.value)||"Configuraci\xf3n"),e.xp6(1),e.ekj("expanded",f.configExpanded),e.xp6(2),e.ekj("mobile-collapsed",!f.configExpanded),e.xp6(1),e.Q6J("formGroup",f.chatbotForm),e.xp6(5),e.Q6J("ngClass",e.VKq(23,Fr,(null==(j=f.chatbotForm.get("name"))?null:j.invalid)&&
1((null==(j=f.chatbotForm.get("name"))?null:j.dirty)||(null==(j=f.chatbotForm.get("name"))?null:j.touched)))),e.xp6(1),e.Q6J("ngIf",(null==(le=f.chatbotForm.get("name"))?null:le.invalid)&&((null==(le=f.chatbotForm.get("name"))?null:le.dirty)||(null==(le=f.chatbotForm.get("name"))?null:le.touched))),e.xp6(1),e.Q6J("ngIf",!(null!=(Ae=f.chatbotForm.get("name"))&&Ae.invalid&&(null!=(Ae=f.chatbotForm.get("name"))&&Ae.dirty||null!=(Ae=f.chatbotForm.get("name"))&&Ae.touched))),e.xp6(5),e.Q6J("ngIf",(null==(Ke=f.chatbotForm.get("identifier"))?null:Ke.invalid)&&((null==(Ke=f.chatbotForm.get("identifier"))?null:Ke.dirty)||(null==(Ke=f.chatbotForm.get("identifier"))?null:Ke.touched))),e.xp6(1),e.Q6J("ngIf",!(null!=(it=f.chatbotForm.get("identifier"))&&it.invalid&&(null!=(it=f.chatbotForm.get("identifier"))&&it.dirty||null!=(it=f.chatbotForm.get("identifier"))&&it.touched))),e.xp6(5),e.Q6J("ngForOf",f.colorRows)("ngForTrackBy",f.trackByColorRowIndex),e.xp6(4),e.Q6J("ngModel",f.welcomeEnabled)("ngModelOptions",e.DdM(25,Kl))("binary",!0),e.xp6(1),e.Q6J("ngIf",f.welcomeEnabled),e.xp6(1),e.Q6J("ngIf",f.isDirty&&!f.justSaved),e.xp6(1),e.Q6J("ngIf",f.justSaved)}},dependencies:[co.o,s.sg,Mn._Y,Mn.Fj,Mn.JJ,Mn.JL,Mn.On,Mn.sg,Mn.u,s.O5,s.mk,ua.XZ,an],styles:['@charset "UTF-8";.grid[_ngcontent-%COMP%]{padding-top:14px;display:flex;flex-direction:row;gap:24px}@media screen and (max-width: 1230px){.grid[_ngcontent-%COMP%]{flex-wrap:wrap}}@media screen and (max-width: 768px){.grid[_ngcontent-%COMP%]{flex-direction:column}}h1[_ngcontent-%COMP%]{color:var(--color-text);font-size:20px;font-weight:600}.panel-toggle[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 768px){.panel-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:4px 0;margin-bottom:16px}.panel-toggle-summary[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.panel-toggle-color[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;border:1px solid #ccc;flex-shrink:0}.panel-toggle-name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:var(--color-text)}.panel-toggle-icon[_ngcontent-%COMP%]{transition:transform .2s ease;color:var(--color-text)}.panel-toggle-icon.expanded[_ngcontent-%COMP%]{transform:rotate(180deg)}.inputs-form.mobile-collapsed[_ngcontent-%COMP%]{display:none}}.inputs-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.panel-section[_ngcontent-%COMP%]{margin-bottom:24px}.section-label[_ngcontent-%COMP%]{display:block;color:#8b8fa8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;margin-bottom:14px}label[_ngcontent-%COMP%]{display:block;color:#4b4f6b;font-family:Inter,sans-serif;font-size:13px;font-weight:500;line-height:20px;text-align:left} .welcome-section .p-checkbox-label{font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#4b4f6b}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.field-hint[_ngcontent-%COMP%]{color:#b0b4cc;font-size:11px}.error-input[_ngcontent-%COMP%]{border-color:red!important}.error-message[_ngcontent-%COMP%]{color:red;font-size:12px}.color-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.color-row[_ngcontent-%COMP%]{display:flex;gap:10px}.color-card[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;cursor:pointer;border:1px solid #e8ecff;background:#ffffff;transition:border-color .15s,background-color .15s}.color-card.selected[_ngcontent-%COMP%]{border:2px solid #7b5cf5;background:#f3f0ff}.color-dot[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%;flex-shrink:0}.color-name[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#4b4f6b}.welcome-section[_ngcontent-%COMP%]{border-top:1px solid #e8ecff;padding-top:24px;display:flex;flex-direction:column;gap:14px}.welcome-hints[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.welcome-hints[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#8b8fa8;font-family:Inter,sans-serif;font-size:11px;line-height:1.5;padding-left:12px;position:relative}.welcome-hints[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\b7";position:absolute;
1left:0;color:#b0b4cc}.welcome-hints[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .hint-icon[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;color:#7b5cf5;margin:0 1px}.change-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:8px;font-family:Inter,sans-serif;font-size:12px;font-weight:500}.change-banner--warning[_ngcontent-%COMP%]{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.change-banner--success[_ngcontent-%COMP%]{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.save--sm[_ngcontent-%COMP%]{align-self:flex-start;width:auto;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500}.save[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px 20px;border-radius:10px;border:none;background:var(--color-primary);color:#fff;font-family:Inter,sans-serif;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.save[_ngcontent-%COMP%]:hover{opacity:.9}#iframe-container[_ngcontent-%COMP%] > iframe[_ngcontent-%COMP%]{border:unset}#iframe-container[_ngcontent-%COMP%]{order:2;width:100%;height:100%;min-height:730px;background:#3a3c5d;text-align:center;border:none;border-radius:8px;max-width:570px;position:relative;overflow:auto}@media screen and (max-width: 1024px){#iframe-container[_ngcontent-%COMP%]{margin:auto}}@media screen and (max-width: 768px){#iframe-container[_ngcontent-%COMP%]{max-width:100%;order:1;min-height:auto;height:630px;overflow:hidden;background:transparent;border-radius:0}#iframe-container[_ngcontent-%COMP%] > iframe[_ngcontent-%COMP%]{display:block;width:100%;height:630px}}.panel[_ngcontent-%COMP%]{order:1;width:100%;max-width:380px;height:auto;padding:24px;border:1px solid var(--color-border);border-radius:16px;background:#fff;box-shadow:0 1px 3px #1f25330f}@media screen and (max-width: 1024px){.panel[_ngcontent-%COMP%]{margin:auto}}@media screen and (max-width: 768px){.panel[_ngcontent-%COMP%]{max-width:100%;padding:16px;order:2}}input[_ngcontent-%COMP%]{font-size:14px}.spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10}small[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.loading-dots[_ngcontent-%COMP%]{display:flex;gap:8px}.dot[_ngcontent-%COMP%]{width:12px;height:12px;background:#d9d9d9;border-radius:50%;animation:_ngcontent-%COMP%_bounce 1.4s infinite ease-in-out}.dot[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.32s}.dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.16s}@keyframes _ngcontent-%COMP%_bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@media screen and (max-width: 1025px){iframe[_ngcontent-%COMP%], .save[_ngcontent-%COMP%]{width:100%}.color-card[_ngcontent-%COMP%]{padding:10px 12px}}']}),y})();var pa=a(6484),_l=a(5722),is=a(585),Aa=a(1235);const po=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];var qa=a(5332),Us=a(9541);const ka=["calendar"];function Oa(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",58)(1,"button",59),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onClean())}),e.TgZ(2,"span",60),e._uU(3,"Cancelar"),e.qZA()(),e.TgZ(4,"button",59),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.onDateSelect())}),e.TgZ(5,"span",60),e._uU(6,"Buscar"),e.qZA()()()}}function Pa(y,g){if(1&y&&(e.TgZ(0,"div",65),e._UZ(1,"span",66),e.TgZ(2,"span",67),e._uU(3),e.qZA(),e.TgZ(4,"span",68),e._uU(5),e.qZA()()),2&y){const r=g.$implicit;e.Udp("--peak-color",r.color),e.xp6(3),e.Oqu(r.label),e.xp6(2),e.Oqu(r.percent)}}function Ro(y,g){if(1&y&&(e.ynx(0),e.TgZ(1,"div",61),e._UZ(2,"canvas",62),e.qZA(),e.TgZ(3,"div",63),e.YNc(4,Pa,6,4,"div",64),e.qZA(),e.BQk()),2&y){const r=e.oxw();e.xp6(2),e.Q6J("data",r.activityBarData)("options",r.activityBarOptions),e.xp6(2),e.Q6J("ngForOf",r.activityTopSlots)("ngForTrackBy",r.trackByPeakLabel)}}function Ra(y,g){if(1&y&&(e.TgZ(0,"div",71)(1,"span",72),e._uU(2),e.qZA(),e.TgZ(3,"span",73),e._uU(4),e.qZA(),e.TgZ(5,"span",74),e._uU(6),e.qZA()()),2&y){const r=g.$implicit,f=g.index;e.xp6(2),e.hij("#",f+1,""),e.xp6(2),e.Oqu(r.keyword),e.xp6(2),e.Oqu(r.count)}}function vl(y,g){if(1&y&&(e.TgZ(0,"div",69),e.YNc(1,Ra,7,3,"div",70),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.Q6J("ngForOf",r.keywords)("ngForTrackBy",r.trackByKeyword)}}function yl(y,g){if(1&y&&(e.TgZ(0,"div",47),e._UZ(1,"div",83),e.TgZ(2,"span",49),e._uU(3),e.qZA(),e.TgZ(4,"span",84),e._uU(5),e.ALo(6,"number"),e.qZA()()),2&y){const r=g.$implicit;e.xp6(1),e.Udp("background-color",r.color),e.xp6(2),e.Oqu(r.name),e.xp6(2),e.hij("",e.xi3(6,4,r.percent,"1.0-0"),"%")}}function Qo(y,g){if(1&y&&(e.ynx(0),e.TgZ(1,"div",75)(2,"div",76),e._UZ(3,"canvas",77),e.TgZ(4,"div",78)(5,"span",79),e._uU(6),e.qZA(),e.TgZ(7,"span",80),e._uU(8,"conversaciones"),e.qZA()()()(),e.TgZ(9,"div",81),e.YNc(10,yl,7,7,"div",82),e.qZA(),e.BQk()),2&y){const r=e.oxw();e.xp6(3),e.Q6J("type","doughnut")("data",r.channelDoughnutData)("options",r.channelDoughnutOptions),e.xp6(3),e.Oqu(r.channelTotal),e.xp6(4),e.Q6J("ngForOf",r.channelSegments)("ngForTrackBy",r.trackByChannelName)}}function jr(y,g){if(1&y&&(e.ynx(0),e.TgZ(1,"div",85)(2,"div",86),e._UZ(3,"canvas",87),e.TgZ(4,"div",88)(5,"span",89),e._uU(6),e.qZA(),e.TgZ(7,"span",90),e._uU(8,"positivas"),e.qZA()()(),e.TgZ(9,"div",91)(10,"span",92),e._uU(11,"0%"),e.qZA(),e.TgZ(12,"span",92),e._uU(13,"100%"),e.qZA()(),e.TgZ(14,"div",93)(15,"span",94),e._UZ(16,"span",95),e._uU(17,"Positivas "),e.qZA(),e.TgZ(18,"span",94),e._UZ(19,"span",96
1),e._uU(20,"Negativas "),e.qZA(),e.TgZ(21,"span",94),e._UZ(22,"span",97),e._uU(23,"Sin valorar "),e.qZA()()(),e.TgZ(24,"div",98)(25,"div",99),e._UZ(26,"i",100),e.TgZ(27,"span",101),e._uU(28),e.qZA(),e.TgZ(29,"span",102),e._uU(30,"Positivas"),e.qZA()(),e.TgZ(31,"div",99),e._UZ(32,"i",103),e.TgZ(33,"span",101),e._uU(34),e.qZA(),e.TgZ(35,"span",102),e._uU(36,"Negativas"),e.qZA()(),e.TgZ(37,"div",99),e._UZ(38,"i",104),e.TgZ(39,"span",101),e._uU(40),e.qZA(),e.TgZ(41,"span",102),e._uU(42,"Total"),e.qZA()()(),e.BQk()),2&y){const r=e.oxw();e.xp6(3),e.Q6J("type","doughnut")("data",r.gaugeData)("options",r.gaugeOptions),e.xp6(2),e.Udp("color",r.gaugeColor),e.xp6(1),e.hij("",r.satisfactionPositivePercent,"%"),e.xp6(22),e.hij("",r.satisfactionPositivePercent,"%"),e.xp6(6),e.hij("",r.satisfactionNegativePercent,"%"),e.xp6(6),e.Oqu(r.satisfactionTotal)}}function Gr(y,g){if(1&y&&e._UZ(0,"canvas",105),2&y){const r=e.oxw();e.Q6J("type","line")("data",r.monthlyBarData)("options",r.monthlyBarOptions)}}function ys(y,g){1&y&&(e.TgZ(0,"div",106),e._UZ(1,"i",29),e.TgZ(2,"span"),e._uU(3,"A\xfan no tienes datos para mostrar"),e.qZA()())}function Fa(y,g){1&y&&(e.TgZ(0,"div",107),e._UZ(1,"i",108),e.TgZ(2,"span"),e._uU(3,"A\xfan no tienes datos para mostrar"),e.qZA()())}function Ts(y,g){1&y&&(e.TgZ(0,"div",109),e._UZ(1,"i",110),e.TgZ(2,"span"),e._uU(3,"A\xfan no tienes datos para mostrar"),e.qZA()())}function bl(y,g){1&y&&(e.TgZ(0,"div",111),e._UZ(1,"i",110),e.TgZ(2,"span"),e._uU(3,"Necesitas m\xe1s conversaciones valoradas para ver resultados"),e.qZA()())}function La(y,g){1&y&&(e.TgZ(0,"div",112),e._UZ(1,"i",29),e.TgZ(2,"span"),e._uU(3,"A\xfan no tienes datos para mostrar"),e.qZA()())}const Je=function(y,g){return{"calendar-selector":y,"calendar-selector-empty":g}},St=function(y){return{"kpi-value--empty":y}};let Ot=(()=>{class y{constructor(r,f,C,j,le,Ae,Ke){var it;this.dashboardService=r,this.aRoute=f,this.router=C,this.breakpointObserver=j,this.http=le,this.cdr=Ae,this.zone=Ke,this.destroy$=new D.x,this.isHandset=!1,this.data={},this.hasActivityData=!1,this.activityTopSlots=[],this.activityBarData={datasets:[]},this.activityBarOptions={responsive:!0,maintainAspectRatio:!1,scales:{x:{grid:{display:!1},ticks:{font:{size:9,family:"Inter, sans-serif"},color:"#9ca3af",maxRotation:0,minRotation:0}},y:{beginAtZero:!0,grid:{color:"#f5f3ff",lineWidth:1},ticks:{display:!1}}},plugins:{legend:{display:!1},tooltip:{displayColors:!1,callbacks:{label:ln=>` ${ln.raw.toFixed(1)}% del tr\xe1fico`,title:ln=>{var On,zn;return null!==(zn=null===(On=ln[0])||void 0===On?void 0:On.label)&&void 0!==zn?zn:""}}}},animation:{duration:700,easing:"easeInOutQuart"}},this.keywords=[],this.channelTotal=0,this.channelSegments=[],this.hasPieChartData=!1,this.channelDoughnutData={datasets:[]},this.channelDoughnutOptions={responsive:!0,maintainAspectRatio:!1,cutout:"65%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:ln=>{const On=this.channelTotal>0?Math.round(ln.raw/this.channelTotal*100):0;return` ${ln.label}: ${ln.raw} (${On}%)`}}}}},this.satisfactionTotal=0,this.satisfactionPositivePercent=0,this.satisfactionNegativePercent=0,this.satisfactionAvg="0.0",this.gaugeColor="#7B5CF5",this.hasGaugeData=!1,this.gaugeData={datasets:[]},this.gaugeOptions={responsive:!0,maintainAspectRatio:!1,circumference:180,rotation:-90,cutout:"60%",plugins:{legend:{display:!1},tooltip:{enabled:!1}},animation:{animateRotate:!0,duration:1e3,easing:"easeInOutQuart"}},this.monthlyBarData={labels:[],datasets:[]},this.monthlyBarOptions={responsive:!0,maintainAspectRatio:!1,scales:{x:{grid:{display:!1},ticks:{autoSkip:!0,maxRotation:0,minRotation:0}},y:{beginAtZero:!0,ticks:{stepSize:1},grid:{color:"#f5f3ff",lineWidth:1}}},plugins:{legend:{display:!1},tooltip:{displayColors:!1,callbacks:{label:ln=>{const On=po.findIndex(Si=>ln.label.includes(Si));return`${On>=0?po[On]:ln.label}: ${ln.formattedValue} conversaciones`},title:()=>""}}},animation:{duration:700,easing:"easeInOutQuart"}},this.hasMonthlyBarData=!1,this.CHANNEL_COLORS={Messenger:"#7B5CF5",Instagram:"#A78BFA",WhatsApp:"#C4B5FD","Sitio web":"#6366F1",Discord:"#818CF8",Otros:"#DDD6FE"},this.TIME_SLOTS=[{label:"0h-2h",key:"00:00-01:59"},{label:"2h-4h",key:"02:00-03:59"},{label:"4h-6h",key:"04:00-05:59"},{label:"6h-8h",key:"06:00-07:59"},{label:"8h-10h",key:"08:00-09:59"},{label:"10h-12h",key:"10:00-11:59"},{label:"12h-14h",key:"12:00-13:59"},{label:"14h-16h",key:"14:00-15:59"},{label:"16h-18h",key:"16:00-17:59"},{label:"18h-20h",key:"18:00-19:59"},{label:"20h-22h",key:"20:00-21:59"},{label:"22h-24h",key:"22:00-23:59"}],this.botId=null!==(it=this.aRoute.snapshot.paramMap.get("id"))&&void 0!==it?it:"";
1const Rt=this.router.routerState.snapshot.url.split("/");this.botId=Rt[3];const Zt=new Date;Zt.setHours(0,0,0,0);const fn=new Date(Zt.getTime()-6048e5);this.rangeDates=[fn,Zt],this.breakpointObserver.observe([Aa.u3.Handset]).pipe((0,ne.R)(this.destroy$)).subscribe(ln=>{this.isHandset=ln.matches})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnInit(){this.dashboardService.getMonthlyConversationsStats(this.botId).pipe((0,ne.R)(this.destroy$)).subscribe(r=>{r?this.updateMonthlyChart(r):(this.monthlyBarData={labels:[],datasets:[]},this.hasMonthlyBarData=!1)}),this.updateCharts()}updateCharts(){const r=this.formatDate(this.rangeDates[0]),f=this.formatDate(this.rangeDates[1]);if(!r)return void console.error("Las fechas no son v\xe1lidas.");const C=f??r;this.dashboardService.getConversationStats(this.botId,r,C).pipe((0,ne.R)(this.destroy$)).subscribe(j=>{j?(this.data=j,this.buildChannelData()):(this.data={},this.channelSegments=[],this.channelTotal=0,this.hasPieChartData=!1)}),this.dashboardService.getConversationDistributionStats(this.botId,r,C).pipe((0,ne.R)(this.destroy$)).subscribe(j=>{j?this.buildActivityRows(j):(this.hasActivityData=!1,this.activityTopSlots=[],this.activityBarData={datasets:[]})}),this.dashboardService.getFeedbackStats(this.botId,r,C).pipe((0,ne.R)(this.destroy$)).subscribe(j=>{j?this.buildSatisfactionData(j):(this.hasGaugeData=!1,this.gaugeData={datasets:[]})}),this.dashboardService.getKeywords(this.botId,r,C).pipe((0,ne.R)(this.destroy$)).subscribe(j=>{var le;this.keywords=null!==(le=j?.keywords)&&void 0!==le?le:[]})}buildChannelData(){const f=[{name:"Messenger",key:"fb_count"},{name:"Instagram",key:"ig_count"},{name:"WhatsApp",key:"wsp_count"},{name:"Sitio web",key:"web_count"},{name:"Discord",key:"discord_count"},{name:"Otros",key:"others_count"}].map(C=>({name:C.name,count:this.data[C.key]||0,color:this.CHANNEL_COLORS[C.name]})).filter(C=>C.count>0);this.channelTotal=f.reduce((C,j)=>C+j.count,0),this.channelSegments=f.map(C=>({name:C.name,count:C.count,percent:this.channelTotal>
10?C.count/this.channelTotal*100:0,color:C.color})),this.hasPieChartData=this.channelSegments.length>0,this.channelDoughnutData={labels:f.map(C=>C.name),datasets:[{data:f.map(C=>C.count),backgroundColor:f.map(C=>C.color),borderWidth:0,hoverOffset:4}]}}buildActivityRows(r){const f=r.day_hour_distribution,C=this.TIME_SLOTS.map(it=>({label:it.label.split("-")[0],fullLabel:it.label,value:parseFloat((f[it.key]||"0%").replace("%",""))})),j=Math.max(...C.map(it=>it.value),1),le=C.map(it=>{const Rt=it.value/j;return`rgb(${Math.round(237+-114*Rt)}, ${Math.round(233+-141*Rt)}, ${Math.round(254+-9*Rt)})`});this.activityBarData={labels:C.map(it=>it.label),datasets:[{data:C.map(it=>it.value),backgroundColor:le,hoverBackgroundColor:le.map(()=>"#5B4BE8"),borderRadius:{topLeft:5,topRight:5,bottomLeft:0,bottomRight:0},borderSkipped:!1,maxBarThickness:32}]},this.hasActivityData=C.some(it=>it.value>0);const Ae=[...C].sort((it,Rt)=>Rt.value-it.value).filter(it=>it.value>0),Ke=["#7B5CF5","#A78BFA","#C4B5FD"];this.activityTopSlots=Ae.slice(0,3).map((it,Rt)=>({label:it.fullLabel,percent:`${it.value.toFixed(0)}%`,color:Ke[Rt]}))}buildSatisfactionData(r){const f=r.total_like||0,C=r.total_dislike||0,le=f+C,Ae=le+(r.total_null||0);if(this.satisfactionTotal=Ae,0===le)return this.hasGaugeData=!1,void(this.gaugeData={datasets:[]});this.satisfactionPositivePercent=Math.round(f/Ae*100),this.satisfactionNegativePercent=Math.round(C/Ae*100),this.satisfactionAvg=(5*f/le).toFixed(1),this.gaugeColor="#7B5CF5";const it=0===this.satisfactionPositivePercent?.8:this.satisfactionPositivePercent,Rt=this.satisfactionNegativePercent,Zt=Math.max(0,100-it-Rt);this.gaugeData={datasets:[{data:[it,Rt,Zt],backgroundColor:["#7B5CF5","#F87171","#E5E7EB"],borderWidth:0,hoverOffset:0}]},this.hasGaugeData=!0}updateMonthlyChart(r){const f=(y=>{let g;return g=Array.isArray(y)?y:y&&Array.isArray(y.interaction_metrics)?y.interaction_metrics:[],g.filter(r=>!!r&&"number"==typeof r.count&&Number.isFinite(r.count)&&"string"==typeof r.month&&r.month.trim().length>0).map(r=>({month:r.month.trim(),count:r.count}))})(r);if(!f.length)return this.monthlyBarData={labels:[],datasets:[]},void(this.hasMonthlyBarData=!1);const C=[...f].sort((it,Rt)=>it.month.localeCompare(Rt.month)),j=C.map(it=>it.month.split("-")[0]),le=new Set(j).size>1,Ae=C.map(it=>{const[Rt,Zt]=it.month.split("-"),fn=parseInt(Zt,10)-1;return le?`${po[fn]} ${Rt}`:po[fn]}),Ke=C.map(it=>it.count);this.monthlyBarData={labels:Ae,datasets:[{label:"Conversaciones",data:Ke,borderColor:"#7B5CF5",backgroundColor:"rgba(123, 92, 245, 0.08)",fill:!0,tension:.4,pointBackgroun
1dColor:"#ffffff",pointBorderColor:"#7B5CF5",pointBorderWidth:2,pointRadius:4,pointHoverRadius:6,borderWidth:2}]},this.hasMonthlyBarData=Ke.some(it=>it>0)}formatDate(r){if(null===r)return null;const f=new Date(r),C=f.getFullYear(),j=f.getMonth()+1,le=f.getDate();return`${C}-${j<10?"0":""}${j}-${le<10?"0":""}${le}`}onClean(){this.rangeDates="",this.calendar.overlayVisible=!1}onDateSelect(){this.rangeDates&&2===this.rangeDates.length&&this.rangeDates[0]&&(this.calendar.overlayVisible=!1,this.updateCharts())}get dateRangeLabel(){var r;if(null===(r=this.rangeDates)||void 0===r||!r[0])return"Selecciona un rango de fecha";const f=le=>le?`${le.getDate().toString().padStart(2,"0")}/${(le.getMonth()+1).toString().padStart(2,"0")}/${le.getFullYear()}`:"";return`${f(this.rangeDates[0])}${this.rangeDates[1]?` - ${f(this.rangeDates[1])}`:""}`}trackByPeakLabel(r,f){return f.label}trackByKeyword(r,f){return f.keyword}trackByChannelName(r,f){return f.name}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(qa.s),e.Y36(nn.gz),e.Y36(nn.F0),e.Y36(Aa.Yg),e.Y36(Re.eN),e.Y36(e.sBO),e.Y36(e.R0b))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-statistics"]],viewQuery:function(r,f){if(1&r&&e.Gf(ka,5),2&r){let C;e.iGM(C=e.CRH())&&(f.calendar=C.first)}},decls:98,vars:34,consts:[[1,"stats-wrapper"],[1,"stats-topbar"],[1,"stats-title-block"],[1,"stats-title"],[3,"ngClass"],["appendTo","body","inputId","icon","selectionMode","range","placeholder","Selecciona un rango de fecha","data-testid","date-range-selector",3,"touchUI","showIcon","ngModel","readonlyInput","ngModelChange"],["calendar",""],["pTemplate","footer"],[1,"kpi-row"],["data-testid","metric-unique-interactions","data-metric","unique-interactions",1,"kpi-card"],[1,"kpi-header"],[1,"kpi-icon-wrap","kpi-icon-wrap--purple"],[1,"pi","pi-users"],[1,"kpi-label"],["pTooltip","N\xfamero de personas que interactuaron con el chatbot","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","kpi-info"],[1,"kpi-body"],["data-testid","metric-unique-interactions-value",1,"kpi-value",3,"ngClass"],["data-testid","metric-messages-answered","data-metric","messages-answered",1,"kpi-card"],[1,"kpi-icon-wrap","kpi-icon-wrap--indigo"],[1,"pi","pi-comments"],["pTooltip","Cantidad de mensajes respondidos por el chatbot","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","kpi-info"],["data-testid","metric-messages-answered-value",1,"kpi-value",3,"ngClass"],["data-testid","metric-leads-count","data-metric","leads-count",1,"kpi-card"],[1,"kpi-icon-wrap","kpi-icon-wrap--emerald"],[1,"pi","pi-star"],["pTooltip","Cantidad de leads (clientes potenciales) detectados en el per\xedodo","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","kpi-info"],["data-testid","metric-leads-count-value",1,"kpi-value",3,"ngClass"],["data-testid","metric-conversion-rate","data-metric","conversion-rate",1,"kpi-card"],[1,"kpi-icon-wrap","kpi-icon-wrap--amber"],[1,"pi","pi-chart-bar"],["pTooltip","Porcentaje de leads (clientes potenciales) convertidos sobre cerrados","tooltipPosition","left","appendTo","body",1,"pi","pi-info-circle","kpi-info"],["data-testid","metric-conversion-rate-value",1,"kpi-value",3,"ngClass"],[1,"charts-row"],["data-testid","chart-hours-activity",1,"stat-card"],[1,"card-header"],[1,"card-title"],["pTooltip","Distribuci\xf3n de mensajes por hora del d\xeda en el per\xedodo seleccionado","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","card-info"],[4,"ngIf","ngIfElse"],["data-testid","chart-keywords",1,"stat-card"],["pTooltip","Palabras clave m\xe1s mencionadas por los usuarios en el per\xedodo","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","card-info"],["class","keywords-ranked",4,"ngIf","ngIfElse"],["data-testid","chart-channels",1,"stat-card"],["pTooltip","Distribuci\xf3n de conversaciones seg\xfan el canal de origen (Web, WhatsApp, Messenger, etc.)","tooltipPosition","left","appendTo","body",1,"pi","pi-info-circle","card-info"],["data-testid","chart-feedback",1,"stat-card"],["pTooltip","Valoraciones que los usuarios han dado al chatbot en el per\xedodo","tooltipPosition","left","appendTo","body",1,"pi","pi-info-circle","card-info"],["data-testid","chart-monthly-conversations",1,"stat-card","stat-card--full"],[1,"card-header-right"],[1,"legend-item"],[1,"legend-dot","legend-dot--primary"],[1,"legend-name"],["pTooltip","Evoluci\xf3n mensual del n\xfamero de conversaciones con el chatbot","tooltipPosition","top","appendTo","body",1,"pi","pi-info-circle","card-info"],[1,"monthly-chart-container"],["baseChart","","data-testid","chart-monthly-conversations-canvas","data-chart-type","monthly-conversations",3,"type","data","options",4,"ngIf","ngIfElse"],["noDataTemplateActivity",""],["noDataTemplateKeywords",""],["noDataTemplatePie",""],["noDataTemplateFeedback",""],["noDataTemplateLine",""],[1,"p-datepicker-buttonbar"],["type","button","pbutton","","pripple","",1,"p-element","p-ripple","p-button-text","p-button","p-component",3,"click"],[1,"p-button-label"],[1,"activity-bar-container"],["baseChart","","type","bar","data-testid","chart-hours-canvas","data-chart-type","hours",3,"data","options"],[1,"activity-peaks"],["class","peak-badge",3,"--peak-color",4,"ngFor","ngForOf","ngForTrackBy"],[1,"peak-badge"],[1,"peak-dot"],[1,"peak-label"],[1,"peak-pct"],[1,"keywords-ranked"],["class","keyword-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"keyword-row"],[1,"kw-rank"],[1,"kw-text"],[1,"kw-badge"],[1,"donut-wrapper"],[1,"donut-chart-area"],["baseChart","","data-testid","chart-channels-canvas","data-chart-type","channels",3,"type","data","options"],[1,"donut-center"],[1,"donut-total"],[1,"donut-sublabel"],[1,"channel-legend"],["class","legend-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-dot"],[1,"legend-pct"],[1,"gauge-wrapper"],[1,"gauge-chart-area"],["baseChart","","data-testid","chart-feedback-canvas","data-chart-type","feedback",3,"type","data","options"],[1,"gauge-center-label"],[1,"gauge-pct-value"],[1,"gauge-pct-sub"],[1,"gauge-scale-row"],[1,"gauge-scale-label"],[1,"gauge-legend-row"],[1,"gauge-legend-item"],[1,"gauge-legend-dot",2,"background","#7b5cf5"],[1,"gauge-legend-dot",2,"background","#f87171"],[1,"gauge-legend-dot",2,"background","#e5e7eb"],[1,"sat-stats-row"],[1,"sat-stat"],[1,"pi","pi-thumbs-up","sat-icon"],[1,"sat-value"],[1,"sat-label"],[1,"pi","pi-thumbs-down","sat-icon","sat-icon--neg"],[1,"pi","pi-comments","sat-icon"],["baseChart","","data-testid","chart-monthly-conversations-canvas","data-chart-type","monthly-conversations",3,"type","data","options"],["data-testid","chart-hours-no-data",1,"no-data"],["data-testid","chart-keywords-no-data",1,"no-data"],[1,"pi","pi-tags"],["data-testid","chart-channels-no-data",1,"no-data"],[1,"pi","pi-chart-pie"],["data-testid","chart-feedback-no-data",1,"no-data"],["data-testid","chart-monthly-conversations-no-data",1,"no-data"]],template:function(r,f){if(1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),e._uU(4,"Estad\xedsticas"),e.qZA()(),e.TgZ(5,"div",4)(6,"p-calendar",5,6),e.NdJ("ngModelChange",function(j){return f.rangeDates=j}),e.YNc(8,Oa,7,0,"ng-template",7),e.qZA()()(),e.TgZ(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11),e._UZ(13,"i",12),e.qZA(),e.TgZ(14,"span",13),e._uU(15,"Interacciones \xfanicas"),e.qZA(),e._UZ(16,"i",14),e.qZA(),e.TgZ(17,"div",15)(18,"span",16),e._uU(19),e.qZA()()(),e.TgZ(20,"div",17)(21,"div",10)(22,"div",18),e._UZ(23,"i",19),e.qZA(),e.TgZ(24,"span",13),e._uU(25,"Mensajes atendidos"),e.qZA(),e._UZ(26,"i",20),e.qZA(),e.TgZ(27,"div",15)(28,"span",21),e._uU(29),e.qZA()()(),e.TgZ(30,"div",22)(31,"div",10)(32,"div",23),e._UZ(33,"i",24),e.qZA(),e.TgZ(34,"span",13),e._uU(35,"Clientes Potenciales"),e.qZA(),e._UZ(36,"i",25),e.qZA(),e.TgZ(37,"div",15)(38,"span",26),e._uU(39),e.qZA()()(),e.TgZ(40,"div",27)(41,"div",10)(42,"div",28),e._UZ(43,"i",29),e.qZA(),e.TgZ(44,"span",13),e._uU(45,"Tasa de conversi\xf3n"),e.qZA(),e._UZ(46,"i",30),e.qZA(),e.TgZ(47,"div",15)(48,"span",31),e._uU(49),e.qZA()()()(),e.TgZ(50,"div",32)(51,"div",33)(52,"div",34)(53,"span",35),e._uU(54,"Momentos de m\xe1s actividad"),e.qZA(),e._UZ(55,"i",36),e.qZA(),e.YNc(56,Ro,5,4,"ng-container",37),e.qZA(),e.TgZ(57,"div",38)(58,"div",34)(59,"span",35),e._uU(60,"Keywords m\xe1s repetidas"),e.qZA(),e._UZ(61,"i",39),e.qZA(),e.YNc(62,vl,2,2,"div",40),e.qZA()(),e.TgZ(63,"div",32)(64,"div",41)(65,"div",34)(66,"span",35),e._uU(67,"Conversaciones por canal"),e.qZA(),e._UZ(68,"i",42),e.qZA(),e.YNc(69,Qo,11,6,"ng-container",37),e.qZA(),e.TgZ(70,"div",43)(71,"div",34)(72,"span",35),e._uU(73,"Nivel de satisfacci\xf3n del usuario"),e.qZA(),e._UZ(74,"i",44),e.qZA(),e.YNc(75,jr,43,9,"ng-container",37),e.qZA()(),e.TgZ(76,"div",45)(77,"div",34)(78,"span",35),e._uU(79,"Cantidad de conversaciones al mes"),e.qZA(),e.TgZ(80,"div",46)(81,"div",47),e._UZ(82,"div",48),e.TgZ(83,"span",49),e._uU(84,"Conversaciones"),e.qZA()(),e._UZ(85,"i",50),e.qZA()(),e.TgZ(86,"div",51),e.YNc(87,Gr,1,3,"canvas",52),e.qZA()(),e.YNc(88,ys,4,0,"ng-template",null,53,e.W1O),e.YNc(90,Fa,4,0,"ng-template",null,54,e.W1O),e.YNc(92,Ts,4,0,"ng-template",null,55,e.W1O),e.YNc(94,bl,4,0,"ng-template",null,56,e.W1O),e.YNc(96,La,4,0,"ng-template",null,57,e.W1O),e.qZA()),2&r){const C=e.MAs(89),j=e.MAs(91),le=e.MAs(93),Ae=e.MAs(95),Ke=e.MAs(97);let it,Rt,Zt,fn;e.xp6(5),e.Q6J("ngClass",e.WLB(23,Je,f.rangeDates&&f.rangeDates.length>0,!f.rangeDates||f.rangeDates.length<1)),e.xp6(1),e.Q6J("touchUI",f.isHandset)("showIcon",!0)("ngModel",f.rangeDates)("readonlyInput",!0),e.xp6(12),e.Q6J("ngClass",e.VKq(26,St,!f.data.conversation_count)),e.xp6(1),e.Oqu(null!==(it=f.data.conversation_count)&&void 0!==it?it:0),e.xp6(9),e.Q6J("ngClass",e.VKq(28,St,!f.data.messages_count)),e.xp6(1),e.Oqu(null!==(Rt=f.data.messages_count)&&void 0!==Rt?Rt:0),e.xp6(9),e.Q6J("ngClass",e.VKq(30,St,!f.data.leads_count)),e.xp6(1),e.Oqu(null!==(Zt=f.data.leads_count)&&void 0!==Zt?Zt:0),e.xp6(9),e.Q6J("ngClass",e.VKq(32,St,!f.data.conversion_rate)),e.xp6(1),e.Oqu((null!==(fn=f.data.conversion_rate)&&void 0!==fn?fn:0)+"%"),e.xp6(7),e.Q6J("ngIf",f.hasActivityData)("ngIfElse",C),e.xp6(6),e.Q6J("ngIf",f.keywords.length>0)("ngIfElse",j),e.xp6(7),e.Q6J("ngIf",f.hasPieChartData)("ngIfElse",le),e.xp6(6),e.Q6J("ngIf",f.hasGaugeData)("ngIfElse",Ae),e.xp6(12),e.Q6J("ngIf",f.hasMonthlyBarData)("ngIfElse",Ke)}},dependencies:[s.mk,s.sg,s.O5,ei.jx,Mn.JJ,Mn.On,qi.u,is.f,Us.jh,s.JJ],styles:["[_nghost-%COMP%]{display:block}.stats-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.stats-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.stats-title-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.stats-title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:20px;font-weight:700;
1color:#1a1b2e}.calendar-selector[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;width:100%;padding-top:16px;min-width:280px;justify-content:flex-end}.calendar-selector[_ngcontent-%COMP%] p-calendar[_ngcontent-%COMP%]{min-width:280px}.calendar-selector-empty[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:10px;width:100%;min-width:280px;justify-content:flex-end}.calendar-selector-empty[_ngcontent-%COMP%] p-calendar[_ngcontent-%COMP%]{min-width:280px}.calendar-selector[_ngcontent-%COMP%], .calendar-selector-empty[_ngcontent-%COMP%]{width:auto;padding-top:0;min-width:280px}.kpi-row[_ngcontent-%COMP%]{display:flex;gap:12px;width:100%}@media screen and (max-width: 900px){.kpi-row[_ngcontent-%COMP%]{flex-wrap:wrap}}.kpi-card[_ngcontent-%COMP%]{flex:1;min-width:0;min-height:160px;background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:20px;display:flex;flex-direction:column;gap:8px}@media screen and (max-width: 900px){.kpi-card[_ngcontent-%COMP%]{flex:1 1 calc(50% - 6px)}}@media screen and (max-width: 500px){.kpi-card[_ngcontent-%COMP%]{flex:1 1 100%}}.kpi-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:36px 1fr 20px;align-items:center;gap:6px;width:100%}.kpi-icon-wrap[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}.kpi-icon-wrap--purple[_ngcontent-%COMP%]{background:#ede9fe;color:#7b5cf5}.kpi-icon-wrap--indigo[_ngcontent-%COMP%]{background:#e0e7ff;color:#6366f1}.kpi-icon-wrap--emerald[_ngcontent-%COMP%]{background:#d1fae5;color:#059669}.kpi-icon-wrap--amber[_ngcontent-%COMP%]{background:#fef3c7;color:#d97706}.kpi-label[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:16px;font-weight:600;color:#1a1b2e;line-height:1.3;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kpi-info[_ngcontent-%COMP%]{color:#9ca3af;font-size:14px;flex-shrink:0;cursor:pointer}.kpi-body[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;justify-content:center}.kpi-value[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:42px;font-weight:700;color:#7b5cf5;line-height:1;text-align:center}.kpi-value--dark[_ngcontent-%COMP%]{color:#1a1b2e}.kpi-value--empty[_ngcontent-%COMP%]{color:#c2c5ca}.charts-row[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}@media screen and (max-width: 900px){.charts-row[_ngcontent-%COMP%]{flex-direction:column}}.stat-card[_ngcontent-%COMP%]{flex:1;min-width:0;background:#fff;border-radius:16px;border:1px solid #e2e8f0;padding:24px;display:flex;flex-direction:column;gap:14px}.stat-card--full[_ngcontent-%COMP%]{flex:none;width:100%}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.card-title[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:15px;font-weight:700;color:#1a1b2e}.card-header-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.card-info[_ngcontent-%COMP%]{color:#9ca3af;font-size:16px;cursor:pointer;flex-shrink:0}.activity-bar-container[_ngcontent-%COMP%]{width:100%;height:220px}.activity-peaks[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.peak-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;background:#f5f3ff;border-radius:20px;padding:4px 12px;border:1px solid var(--peak-color, #7b5cf5)}.peak-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background-color:var(--peak-color, #7b5cf5);flex-shrink:0}.peak-label[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;font-weight:500;color:#374151}.peak-pct[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;font-weight:700;color:var(--peak-color, #7b5cf5)}.keywords-ranked[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}.keyword-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;background:#f3f0ff;border-radius:10px;padding:0 14px;height:40px;width:100%;box-sizing:border-box}.kw-rank[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;font-weight:700;color:#7b5cf5;flex-shrink:0}.kw-text[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:13px;font-weight:500;
1color:#1a1b2e;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kw-badge[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;font-weight:600;color:#7b5cf5;background:#ede9fe;border-radius:12px;padding:3px 10px;flex-shrink:0}.donut-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.donut-chart-area[_ngcontent-%COMP%]{position:relative;width:200px;height:200px;flex-shrink:0}.donut-chart-area[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.donut-center[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.donut-total[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:28px;font-weight:700;color:#1a1b2e;line-height:1}.donut-sublabel[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:11px;color:#6b7186;margin-top:2px}.channel-legend[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px 20px}.legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.legend-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;flex-shrink:0}.legend-dot--primary[_ngcontent-%COMP%]{background-color:#7b5cf5;border-radius:2px;width:10px;height:10px}.legend-name[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;color:#374151}.legend-pct[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:12px;font-weight:700;color:#1a1b2e}.gauge-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:2px}.gauge-chart-area[_ngcontent-%COMP%]{position:relative;width:260px;height:140px;overflow:hidden}.gauge-center-label[_ngcontent-%COMP%]{position:absolute;bottom:4px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;white-space:nowrap;pointer-events:none}.gauge-pct-value[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:32px;font-weight:700;line-height:1}.gauge-pct-sub[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:11px;color:#6b7186}.gauge-scale-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:260px;padding:0 6px;box-sizing:border-box}.gauge-scale-label[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:10px;color:#9ca3af}.gauge-legend-row[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:12px;margin-top:6px}.gauge-legend-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;font-family:Inter,sans-serif;font-size:11px;color:#6b7186}.gauge-legend-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;flex-shrink:0}.sat-stats-row[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:12px;width:100%}.sat-stat[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px;background:#f8f6ff;border-radius:8px;padding:8px 16px}.sat-icon[_ngcontent-%COMP%]{font-size:14px;color:#7b5cf5}.sat-icon--neg[_ngcontent-%COMP%]{color:#a78bfa}.sat-value[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:16px;font-weight:700;color:#1a1b2e}.sat-label[_ngcontent-%COMP%]{font-family:Inter,sans-serif;font-size:10px;color:#6b7186}.monthly-chart-container[_ngcontent-%COMP%]{width:100%;height:200px}.monthly-chart-container[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{width:100%!important;height:100%!important}.no-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;flex:1;min-height:140px;padding:16px;text-align:center;color:#6b7186;font-size:14px}.no-data[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#c2c5ca}@media screen and (max-width: 1024px){.calendar-selector[_ngcontent-%COMP%], .calendar-selector-empty[_ngcontent-%COMP%]{width:100%;min-width:0}.calendar-selector[_ngcontent-%COMP%] p-calendar[_ngcontent-%COMP%], .calendar-selector-empty[_ngcontent-%COMP%] p-calendar[_ngcontent-%COMP%]{width:100%;min-width:0}.stats-topbar[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}}@media screen and (max-width: 600px){.sat-stats-row[_ngcontent-%COMP%]{gap:8px}.sat-stat[_ngcontent-%COMP%]{padding:6px 10px}
1.gauge-chart-area[_ngcontent-%COMP%]{width:200px;height:110px}.gauge-scale-row[_ngcontent-%COMP%]{width:200px}}.loading-dots[_ngcontent-%COMP%]{display:flex;gap:8px}.dot[_ngcontent-%COMP%]{width:12px;height:12px;background:#d9d9d9;border-radius:50%;animation:_ngcontent-%COMP%_bounce 1.4s infinite ease-in-out}.dot[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.32s}.dot[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.16s}@keyframes _ngcontent-%COMP%_bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),y})(),An=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["app-globot-dashboard"]],standalone:!0,features:[e.jDz],decls:2,vars:0,consts:[[1,"dashboard-container"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0),e._UZ(1,"globot-statistics"),e.qZA())},dependencies:[s.ez,ei.m8,Mn.u5,_l.q4,Xs.kW,Mn.UX,pa.L,Ot,qi.z,is._8],styles:[".dashboard-container[_ngcontent-%COMP%]{position:relative}.dashboard-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}"]}),y})();var li=a(3631),ri=a(2137),Pi=a(1493),qn=a(736),Yi=a(2741),Fs=a(5602),Es=a(7536),qo=a(7090);function Ui(y,g){1&y&&e._UZ(0,"span",12)}function Cl(y,g){if(1&y&&(e.TgZ(0,"span",15),e._UZ(1,"span",16),e._uU(2),e.qZA()),2&y){const r=e.oxw(2).$implicit;e.xp6(2),e.hij("",r.user_in_control.name.split(" ")[0]," ")}}function fa(y,g){1&y&&(e.TgZ(0,"span",17),e._UZ(1,"img",18),e._uU(2,"IA "),e.qZA())}function wd(y,g){if(1&y&&(e.ynx(0),e.YNc(1,Cl,3,1,"span",13),e.YNc(2,fa,3,0,"span",14),e.BQk()),2&y){const r=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",r.user_in_control),e.xp6(1),e.Q6J("ngIf",!r.user_in_control)}}function ma(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw();return e.KtG(le.getChatHistory(j))}),e.TgZ(1,"div",2),e._UZ(2,"i"),e.qZA(),e.TgZ(3,"div",3)(4,"div",4)(5,"span",5),e._uU(6),e.qZA(),e.TgZ(7,"span",6),e._uU(8),e.qZA()(),e.TgZ(9,"div",7)(10,"span",8)(11,"span",9),e._uU(12),e.qZA(),e._uU(13),e.ALo(14,"maxText"),e.qZA(),e.YNc(15,Ui,1,0,"span",10),e.YNc(16,wd,3,2,"ng-container",11),e.qZA()()()}if(2&y){const r=g.$implicit,f=e.oxw();e.ekj("is-selected",r.correlation_id===f.selectedCard),e.xp6(1),e.Udp("background",f.getChannelColor(r.channel)),e.xp6(1),e.Tol(f.getChannelIcon(r.channel)+" conv-av-icon"),e.xp6(4),e.Oqu(f.getDisplayName(r.name)),e.xp6(2),e.Oqu(f.getRecordDate(r)),e.xp6(4),e.hij("",r.user_in_control?r.user_in_control.name:"Globot IA",":"),e.xp6(1),e.hij(" ",e.lcZ(14,12,r.last_message)," "),e.xp6(2),e.Q6J("ngIf",r.new_message),e.xp6(1),e.Q6J("ngIf",!r.new_message)}}let Sd=(()=>{class y{constructor(r,f,C,j,le,Ae,Ke){var it;this.botService=r,this.aRoute=f,this.router=C,this.ss=j,this.userService=le,this.cd=Ae,this.dateFormatService=Ke,this.records=[],this.chatHistorySelected=new e.vpe,this.subscription=new ps.w0,this.botId="",this.user=void 0,this.urlProfile="",this.getChatHistory=Zt=>{this.selectedCard=Zt.correlation_id,this.botService.getChatHistory(this.botId,Zt.correlation_id).subscribe({next:fn=>{this.chatHistorySelected.emit({record:Zt,chatHistory:fn??[]}),this.updateNewMessageStatus(Zt.correlation_id)},error:()=>{this.chatHistorySelected.emit({record:Zt,chatHistory:[]})}})},this.botId=null!==(it=this.aRoute.snapshot.paramMap.get("id"))&&void 0!==it?it:"";const Rt=this.router.routerState.snapshot.url.split("/");this.botId=Rt[3]}ngOnInit(){this.subscription.add(this.userService.url$.subscribe(r=>{this.urlProfile=r,this.updateUserPicture(r)}))}getDateUtc(r){return this.dateFormatService.formatRelativeDateUtc(r)}getRecordDate(r){return this.getDateUtc(r.last_message_at||r.updated_at||r.created_at)}getFirstPart(r){return r.split(";")[0]}getDisplayName(r){return null===r||"N/A"===r?"An\xf3nimo":r}getChannelIcon(r){var f;return null!==(f={WEB:"pi pi-globe",WHATSAPP:"pi pi-whatsapp",INSTAGRAM:"pi pi-instagram",MESSENGER:"pi pi-facebook",FACEBOOK:"pi pi-facebook",DISCORD:"pi pi-discord",SLACK:"pi pi-slack"}[(r||"").toUpperCase()])&&void 0!==f?f:"pi pi-comments"}getChannelColor(r){var f;return null!==(f={WEB:"#3B82F6",WHATSAPP:"#22C55E",INSTAGRAM:"#EC4899",MESSENGER:"#0084FF",FACEBOOK:"#1877F2",DISCORD:"#5865F2",SLACK:"#E01E5A"}[(r||"").toUpperCase()])&&void 0!==f?f:"#6D5BE6"}isChannelIconVisible(r){return["WHATSAPP","MESSENGER","INSTAGRAM","WEB"].includes(r)}
1updateUserPicture(r){this.user&&(this.user.picture=r),this.cd.detectChanges()}trackByCorrelationId(r,f){return f.correlation_id}updateNewMessageStatus(r){const f=this.records.find(C=>C.correlation_id===r);f&&(f.new_message=!1)}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ki.G),e.Y36(nn.gz),e.Y36(nn.F0),e.Y36(rs.V),e.Y36(Mi.K),e.Y36(e.sBO),e.Y36(Es.f))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-conversation-cards"]],inputs:{records:"records"},outputs:{chatHistorySelected:"chatHistorySelected"},decls:1,vars:2,consts:[["class","conv-item",3,"is-selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"conv-item",3,"click"],[1,"conv-av"],[1,"conv-body"],[1,"conv-top"],[1,"conv-name"],[1,"conv-time"],[1,"conv-bottom"],[1,"conv-preview"],[1,"conv-author"],["class","conv-unread",4,"ngIf"],[4,"ngIf"],[1,"conv-unread"],["class","conv-tag conv-tag--live",4,"ngIf"],["class","conv-tag conv-tag--ia",4,"ngIf"],[1,"conv-tag","conv-tag--live"],[1,"conv-dot-live"],[1,"conv-tag","conv-tag--ia"],["src","assets/icons/globot-icon.svg","width","12","height","11","alt",""]],template:function(r,f){1&r&&e.YNc(0,ma,17,14,"button",0),2&r&&e.Q6J("ngForOf",f.records)("ngForTrackBy",f.trackByCorrelationId)},dependencies:[s.sg,s.O5,qo.m],styles:[".conv-item[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:11px 10px;border-radius:13px;border:none;background:transparent;cursor:pointer;transition:.14s;font-family:inherit}.conv-item[_ngcontent-%COMP%]:hover{background:var(--main-bg)}.conv-item.is-selected[_ngcontent-%COMP%]{background:var(--color-primary-light)}.conv-av[_ngcontent-%COMP%]{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.conv-av-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px}.conv-body[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.conv-top[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.conv-name[_ngcontent-%COMP%]{font-weight:700;font-size:14px;color:var(--color-text-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-time[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);white-space:nowrap;flex-shrink:0}.conv-bottom[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.conv-preview[_ngcontent-%COMP%]{font-size:13px;color:var(--color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.conv-author[_ngcontent-%COMP%]{font-weight:500;color:var(--color-text)}.conv-unread[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:50%;background:var(--color-error);flex-shrink:0}.conv-tag[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;flex-shrink:0;white-space:nowrap}.conv-tag--ia[_ngcontent-%COMP%]{background:var(--color-primary-light);color:var(--color-primary-dark)}.conv-tag--live[_ngcontent-%COMP%]{background:color-mix(in srgb,#1f9d6b 14%,white);color:#1f9d6b}.conv-dot-live[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#1f9d6b;flex-shrink:0}.conv-ia-glyph[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:3px;background:conic-gradient(from 140deg,var(--color-primary),var(--color-secondary),var(--color-primary));flex-shrink:0}@media (max-width: 768px){.conv-item[_ngcontent-%COMP%]{width:100%}.conv-name[_ngcontent-%COMP%]{font-size:16px}.conv-preview[_ngcontent-%COMP%]{font-size:14px}}"]}),y})(),Oc=(()=>{class y{constructor(){this.title="",this.message="No hay informaci\xf3n"}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-information-section"]],inputs:{title:"title",message:"message"},decls:6,vars:2,consts:[[1,"container-center"],["src","/assets/img/customer_support.svg","alt","customer globot"],[1,"mt-5"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0),e._UZ(1,"img",1),e.TgZ(2,"h1",2),e._uU(3),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.qZA()()),2&r&&(e.xp6(3),e.Oqu(f.title),e.xp6(2),e.Oqu(f.message))},styles:[".container-center[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:0 84px;align-items:center;height:60vh}h1[_ngcontent-%COMP%]{color:var(--color-text);text-align:center;font-size:18px;font-style:normal;font-weight:600;line-height:24px}p[_ngcontent-%COMP%]{color:var(--color-text);text-align:center;font-size:14px;font-style:normal;font-weight:500;line-height:24px}@media screen and (max-width: 900px){.container-center[_ngcontent-%COMP%]{width:80vw;display:none}h1[_ngcontent-%COMP%]{color:var(--color-text);font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:normal}p[_ngcontent-%COMP%]{text-align:center;color:var(--color-text);font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}}"]}),y})();function ga(y,g){if(1&y&&(e.TgZ(0,"div",23),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.errorMessages.sender_name," ")}}function Tu(y,g){if(1&y&&(e.TgZ(0,"div",23),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.errorMessages.sender_phone," ")}}function Rc(y,g){if(1&y&&(e.TgZ(0,"div",23),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.errorMessages.sender_email," ")}}function ds(y,g){if(1&y&&(e.TgZ(0,"div",23),e._uU(1),e.qZA()),2&y){const r=e.oxw();e.xp6(1),e.hij(" ",r.errorMessages.sender_requirement," ")}}function Xa(y,g){1&y&&(e.TgZ(0,"span"),e._uU(1,"Guardar"),e.qZA())}function fo(y,g){1&y&&e._UZ(0,"span",24)}function Fc(y,g){1&y&&(e.TgZ(0,"span",25),e._uU(1,"\u2713"),e.qZA())}a(3634),ai().locale("es");let Sr=(()=>{class y{constructor(r,f){this.chatbotliveService=r,this.route=f,this.saved=new e.vpe,this.cancelled=new e.vpe,this.destroy$=new D.x,this.errorMessages={},this.originalValues={},this.loading=!1,this.success=!1,this.created_at="",this.channel="",this.name=null,this.phone=null,this.email=null,this.sender_requirement=null,this.correlation_id="",this.formChanged=!1}ngOnInit(){localStorage.getItem("bot")&&(this.bot=JSON.parse(localStorage.getItem("bot"))),this.chatbotliveService.customerData$.pipe((0,ne.R)(this.destroy$)).subscribe(r=>{var f,C,j,le;r&&(this.resetForm(),this.created_at=r.created_at,this.channel=r.channel,this.name=r.name,this.phone=r.phone,this.email=r.email,this.sender_requirement=r.sender_requirement,this.correlation_id=r.correlation_id,this.originalValues={sender_name:null!==(f=this.name)&&void 0!==f?f:"",sender_email:null!==(C=this.email)&&void 0!==C?C:"",sender_phone:null!==(j=this.phone)&&void 0!==j?j:"",sender_requirement:null!==(le=this.sender_requirement)&&void 0!==le?le:""})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}resetForm(){this.loading=!1,this.success=!1,this.formChanged=!1,this.errorMessages={}}handleInput(r,f){const C=f.target.value;if(this[this.getOriginalFieldName(r)]=C,this.validateField(r,C),"sender_email"===r||"sender_phone"===r){const le=this.email&&""!==this.email.trim(),Ae=this.phone&&""!==this.phone.trim();(le||Ae)&&(this.errorMessages.sender_email="",this.errorMessages.sender_phone="")}this.checkFormChanged()}checkFormChanged(){this.formChanged=this.name!==this.originalValues.sender_name||this.email!==this.originalValues.sender_email||this.phone!==this.originalValues.sender_phone||this.sender_requirement!==this.originalValues.sender_requirement}cancelChanges(){this.name=this.originalValues.sender_name,this.email=this.originalValues.sender_email,this.phone=this.originalValues.sender_phone,this.sender_requirement=this.originalValues.sender_requirement,this.formChanged=!1,this.errorMessages={},this.cancelled.emit()}saveChanges(){var r;if(!this.validateNameAndContacts())return;this.loading=!0;const f=this.getChangedFields();this.chatbotliveService.updateCustomerField(null===(r=this.bot)||void 0===r?void 0:r.id,this.correlation_id,f).subscribe({next:C=>this.handleUpdateSuccess(C),error:C=>this.handleUpdateError(C)})}validateNameAndContacts(){var r;return!!this.validateField("sender_name",null!==(r=this.name)&&void 0!==r?r:"")&&this.validateContactPresence()&&this.validateEmailAndPhone()}validateContactPresence(){var r,f;return!!(null!==(r=this.email)&&void 0!==r&&r.trim()||null!==(f=this.phone)&&void 0!==f&&f.trim())||(this.setContactErrors(),!1)}setContactErrors(){this.errorMessages.sender_email="Es necesario al menos un email",this.errorMessages.sender_phone="Es necesario al menos un tel\xe9fono"}validateEmailAndPhone(){var r,f,C,j;let le=!0;return!(null===(r=this.email)||void 0===r)&&r.trim()&&(le=this.validateField("sender_email",null!==(f=this.email)&&void 0!==f?f:"")&&le),!(null===(C=this.phone)||void 0===C)&&C.trim()&&(le=this.validateField("sender_phone",null!==(j=this.phone)&&void 0!==j?j:"")&&le),le}getChangedFields(){const r={};return this.updateChangedField(r,"sender_name","name"),this.updateChangedField(r,"sender_email","email",!0),this.updateChangedField(r,"sender_phone","phone",!0),this.updateChangedField(r,"sender_requirement","sender_requirement",!0),r}updateChangedField(r,f,C,j=!1){const le=this[C];le!==this.originalValues[f]&&(r[f]=j?this.determineNullifiedValue(le):le)}determineNullifiedValue(r){return r?.trim()?r:null}handleUpdateSuccess(r){this.loading=!1,this.success=!0,this.updateOriginalValues(),this.formChanged=!1,this.chatbotliveService.updateCustomerData({created_at:this.created_at,channel:this.channel,name:this.name,phone:this.phone,email:this.email,sender_requirement:this.sender_requirement,correlation_id:this.correlation_id}),setTimeout(()=>{this.success=!1,this.saved.emit()},1500)}updateOriginalValues(){var r,f,C,j;this.originalValues={sender_name:null!==(r=this.name)&&void 0!==r?r:"",sender_email:null!==(f=this.email)&&void 0!==f&&f.trim()?this.email:"",sender_phone:null!==(C=this.phone)&&void 0!==C&&C.trim()?this.phone:"",sender_requirement:null!==(j=this.sender_requirement)&&void 0!==j&&j.trim()?this.sender_requirement:""}}handleUpdateError(r){console.error("Error al actualizar los campos:",r),this.loading=!1,this.cancelChanges()}getOriginalFieldName(r){return{sender_name:"name",sender_email:"email",sender_phone:"phone",sender_requirement:"sender_requirement"}[r]||r}getFormattedDate(r){return r?ai()(r).format("DD [de] MMM YYYY / hh:mm a"):""}validateField(r,f){if("sender_requirement"===r)return this.errorMessages[r]="",!0;
1if("sender_requirement"!==r&&""===f.trim())return this.errorMessages[r]="Campo vac\xedo",!1;if(f.trim().length<2&&"sender_name"===r)return this.errorMessages[r]="Debe tener al menos 2 caracteres",!1;switch(r){case"sender_email":if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(f))return this.errorMessages[r]="Email inv\xe1lido",!1;break;case"sender_phone":if(!/^\+?[\d\s-]{8,}$/.test(f))return this.errorMessages[r]="N\xfamero de tel\xe9fono inv\xe1lido",!1}return this.errorMessages[r]="",!0}validateNumberInput(r){!/^\d$/.test(r.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(r.key)&&r.preventDefault()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(qn.T),e.Y36(nn.gz))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-customer-form"]],outputs:{saved:"saved",cancelled:"cancelled"},decls:44,vars:16,consts:[[1,"container-customer-data"],[1,"bodyForm"],[1,"container-input"],["for","createdAt"],[1,"data"],["for","channel"],["for","sender_name"],[1,"input-container"],["type","text","placeholder","Agregar","maxlength","18",1,"input","data",3,"ngModel","ngModelChange","input"],["class","error",4,"ngIf"],["for","sender_phone"],["type","tel","placeholder","Agregar","maxlength","15","pattern","[0-9]*","inputmode","numeric",1,"input","data",3,"ngModel","readonly","ngModelChange","input","keypress"],["for","sender_email"],["type","email","placeholder","Agregar","maxlength","50",1,"input","data",3,"ngModel","ngModelChange","input"],[1,"container-input","requirement"],["for","sender_requirement"],["rows","3","placeholder","Agregar","maxlength","50",1,"input","data","requirementInput",3,"ngModel","ngModelChange","input"],[1,"form-actions"],[1,"btn","btn-cancel",3,"click"],[1,"btn","btn-save",3,"disabled","click"],[4,"ngIf"],["class","spinner",4,"ngIf"],["class","success-icon",4,"ngIf"],[1,"error"],[1,"spinner"],[1,"success-icon"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),e._uU(4,"Inicio de conversaci\xf3n "),e.qZA(),e.TgZ(5,"div",4),e._uU(6),e.qZA()(),e.TgZ(7,"div",2)(8,"label",5),e._uU(9,"Canal"),e.qZA(),e.TgZ(10,"div",4),e._uU(11),e.qZA()(),e.TgZ(12,"div",2)(13,"label",6),e._uU(14,"Nombre"),e.qZA(),e.TgZ(15,"div",7)(16,"input",8),e.NdJ("ngModelChange",function(j){return f.name=j})("input",function(j){return f.handleInput("sender_name",j)}),e.qZA()(),e.YNc(17,ga,2,1,"div",9),e.qZA(),e.TgZ(18,"div",2)(19,"label",10),e._uU(20,"Tel\xe9fono"),e.qZA(),e.TgZ(21,"div",7)(22,"input",11),e.NdJ("ngModelChange",function(j){return f.phone=j})("input",function(j){return f.handleInput("sender_phone",j)})("keypress",function(j){return f.validateNumberInput(j)}),e.qZA()(),e.YNc(23,Tu,2,1,"div",9),e.qZA(),e.TgZ(24,"div",2)(25,"label",12),e._uU(26,"Email"),e.qZA(),e.TgZ(27,"div",7)(28,"input",13),e.NdJ("ngModelChange",function(j){return f.email=j})("input",function(j){return f.handleInput("sender_email",j)}),e.qZA()(),e.YNc(29,Rc,2,1,"div",9),e.qZA(),e.TgZ(30,"div",14)(31,"label",15),e._uU(32,"Notas"),e.qZA(),e.TgZ(33,"div",7)(34,"textarea",16),e.NdJ("ngModelChange",function(j){return f.sender_requirement=j})("input",function(j){return f.handleInput("sender_requirement",j)}),e._uU(35," "),e.qZA()(),e.YNc(36,ds,2,1,"div",9),e.qZA(),e.TgZ(37,"div",17)(38,"button",18),e.NdJ("click",function(){return f.cancelChanges()}),e._uU(39," Cancelar "),e.qZA(),e.TgZ(40,"button",19),e.NdJ("click",function(){return f.saveChanges()}),e.YNc(41,Xa,2,0,"span",20),e.YNc(42,fo,1,0,"span",21),e.YNc(43,Fc,2,0,"span",22),e.qZA()()()()),2&r&&(e.xp6(6),e.Oqu(f.getFormattedDate(f.created_at)),e.xp6(5),e.Oqu(f.channel),e.xp6(5),e.Q6J("ngModel",f.name),e.xp6(1),e.Q6J("ngIf",f.errorMessages.sender_name),e.xp6(5),e.Q6J("ngModel",f.phone)("readonly","WHATSAPP"===f.channel),e.uIk("disabled","WHATSAPP"===f.channel||null),e.xp6(1),e.Q6J("ngIf",f.errorMessages.sender_phone),e.xp6(5),e.Q6J("ngModel",f.email),e.xp6(1),e.Q6J("ngIf",f.errorMessages.sender_email),e.xp6(5),e.Q6J("ngModel",f.sender_requirement),e.xp6(2),e.Q6J("ngIf",f.errorMessages.sender_requirement),e.xp6(4),e.Q6J("disabled",f.loading||!f.formChanged),e.xp6(1),e.Q6J("ngIf",!f.loading&&!f.success),e.xp6(1),e.Q6J("ngIf",f.loading),e.xp6(1),e.Q6J("ngIf",!f.loading&&f.success))},dependencies:[s.O5,Mn.Fj,Mn.JJ,Mn.nD,Mn.c5,Mn.On],styles:['@charset "UTF-8";.container-customer-data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.container-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:15px;align-self:stretch}
1.container-input[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:6px;align-self:stretch}.container-input[_ngcontent-%COMP%], .input-container[_ngcontent-%COMP%]{width:100%}.input[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;cursor:text;padding:12px;width:100%;border-radius:7px;border:1px solid var(--color-primary)}.input[_ngcontent-%COMP%]::placeholder{color:var(--color-text)}textarea[_ngcontent-%COMP%]{color:var(--color-text);font-family:Inter,sans-serif}.editCampo[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.icons-edit[_ngcontent-%COMP%]{display:flex;gap:10px;justify-content:space-between;align-items:center}.bodyForm[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:15px;align-self:stretch}label[_ngcontent-%COMP%]{color:var(--color-text);font-size:16px;font-style:normal;font-weight:600;line-height:24px}.data[_ngcontent-%COMP%]{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.error[_ngcontent-%COMP%]{color:red;font-size:.9em}.requirement[_ngcontent-%COMP%]{width:100%}.requirementInput[_ngcontent-%COMP%]{height:auto;word-wrap:break-word!important;white-space:pre-wrap;overflow-wrap:break-word;resize:none}.input[_ngcontent-%COMP%]:disabled{background-color:#e5e9ee!important;border-color:var(--color-border-light)!important;cursor:not-allowed}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;align-self:stretch}.btn-cancel[_ngcontent-%COMP%]{width:105px;color:var(--color-primary-dark);background:#fff}.btn-cancel[_ngcontent-%COMP%]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.btn-save[_ngcontent-%COMP%]{width:103px;background:var(--color-primary);color:#fff}.btn-save[_ngcontent-%COMP%]:hover{background:#3f1dbf}.btn[_ngcontent-%COMP%]{border:none;height:48px;font-size:16px!important;cursor:pointer;border-radius:4px;padding:12px;display:flex;justify-content:center;align-items:center;gap:8px}@media (max-width: 768px){h2[_ngcontent-%COMP%], .line[_ngcontent-%COMP%]{display:none}.bodyForm[_ngcontent-%COMP%]{margin-top:20px;gap:20px}.data[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{font-size:18px!important}}']}),y})();var mo=a(613);function Lc(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",6)(1,"p-radioButton",7),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw();return e.KtG(j.selectedTime=C)}),e.qZA(),e.TgZ(2,"label",8),e._uU(3),e.qZA()()}if(2&y){const r=g.$implicit,f=e.oxw();e.xp6(1),e.Q6J("value",r)("ngModel",f.selectedTime)("inputId","time_"+r),e.xp6(1),e.Q6J("for","time_"+r),e.xp6(1),e.hij(" ",f.formatTimeOption(r)," ")}}let $=(()=>{class y{constructor(r,f,C){this.chatbotliveService=r,this.messageService=f,this.botService=C,this.botId="",this.preferencesSaved=new e.vpe,this.preferenceCancelled=new e.vpe,this.selectedTime=0,this.timeOptions=[5,15,120]}ngOnInit(){this.botId&&(this.subscription=this.botService.getBot$(this.botId).subscribe({next:r=>{this.selectedTime=r?.ai_response_delay||0},error:r=>{console.error("Error al cargar datos del bot",r)}}))}formatTimeOption(r){switch(r){case 5:return"5 minutos";case 15:return"15 minutos";case 120:return"2 horas";default:return`${r} minutos`}}savePreferences(){this.selectedTime&&this.botId&&this.chatbotliveService.setAiResponseDelay(this.botId,this.selectedTime).subscribe({next:r=>{this.messageService.add({severity:"success",summary:"Preferencias Guardadas",detail:`Tiempo de respuesta establecido a ${this.formatTimeOption(this.selectedTime)}`}),this.preferencesSaved.emit(this.selectedTime)},error:r=>{this.messageService.add({severity:"error",summary:"Error al guardar preferencias",detail:"Por favor, int\xe9ntalo m\xe1s tarde"}),console.error("Error al guardar preferencias",r)}})}cancelPreferences(){this.preferenceCancelled.emit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(qn.T),e.Y36(ei.ez),e.Y36(ki.G))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-preferences-box"]],inputs:{botId:"botId"},outputs:{preferencesSaved:"preferencesSaved",preferenceCancelled:"preferenceCancelled"},decls:10,vars:1,consts:[[1,"box-container"],[1,"radio-group"],["class","p-field-radiobutton",4,"ngFor","ngForOf"],[1,"buttons"],[1,"p-button","cancel",3,"click"],[1,"p-button","p-button-primary",3,"click"],[1,"p-field-radiobutton"],[3,"value","ngModel","inputId","ngModelChange"],[1,"ml-2",3,"for"]],template:function(r,f){1&r&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2," Determina el tiempo que Globot volver\xe1 a responder si no identifica actividad de parte de ti: "),e.qZA(),e.TgZ(3,"div",1),e.YNc(4,Lc,4,5,"div",2),e.qZA()(),e.TgZ(5,"div",3)(6,"button",4),e.NdJ("click",function(){return f.cancelPreferences()}),e._uU(7,"Cancelar"),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return f.savePreferences()}),e._uU(9,"Guardar"),e.qZA()()),2&r&&(e.xp6(4),e.Q6J("ngForOf",f.timeOptions))},dependencies:[s.sg,Mn.JJ,Mn.On,mo.EU],styles:[".box-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px;align-self:stretch}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.p-field-radiobutton[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:row}.radio-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding-bottom:44px;gap:70px}.cancel[_ngcontent-%COMP%]{background:#fff;color:var(--color-primary-dark);border:none;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}@media (max-width: 1024px){.p-field-radiobutton[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:18px}.p-field-radiobutton[_ngcontent-%COMP%] .p-radiobutton .p-radiobutton-box{
1width:24px;height:24px}.radio-group[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;width:100%}.buttons[_ngcontent-%COMP%]{flex-direction:column-reverse;justify-content:space-between;height:116px}.p-button[_ngcontent-%COMP%]{width:100%;justify-content:center;height:48px;font-size:16px}.box-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;padding:20px 0}}"]}),y})(),J=(()=>{class y{transform(r,f){return r?f?(f=f.toLowerCase(),r.filter(C=>{var j,le,Ae,Ke,it,Rt;return(null===(j=C.channel)||void 0===j?void 0:j.toLowerCase().includes(f))||(null===(le=C.last_message)||void 0===le?void 0:le.toLowerCase().includes(f))||(null===(Ae=C.email)||void 0===Ae?void 0:Ae.toLowerCase().includes(f))||(null===(Ke=C.phone)||void 0===Ke?void 0:Ke.toLowerCase().includes(f))||(null===(it=C.name)||void 0===it?void 0:it.toLowerCase().includes(f))||(null===(Rt=C.sender_requirement)||void 0===Rt?void 0:Rt.toLowerCase().includes(f))})):r:[]}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275pipe=e.Yjl({name:"searchFilter",type:y,pure:!0}),y})();function R(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",8)(1,"h1",9),e._uU(2,"Chat en vivo"),e.qZA(),e.TgZ(3,"button",10),e.NdJ("click",function(){e.CHM(r);const C=e.oxw();return e.KtG(C.showPlansDialogPreferences=!0)}),e._UZ(4,"i",11),e._uU(5," Preferencias "),e.qZA()()}}function oe(y,g){1&y&&(e.ynx(0),e._UZ(1,"globot-no-info",12),e.BQk())}function Se(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const j=e.CHM(r).$implicit,le=e.oxw(4);return e.KtG(le.channelFilter=j)}),e._uU(1),e.qZA()}if(2&y){const r=g.$implicit,f=e.oxw(4);e.ekj("is-on",f.channelFilter===r),e.xp6(1),e.hij(" ",r," ")}}function Pe(y,g){if(1&y&&(e.TgZ(0,"div",32),e.YNc(1,Se,2,3,"button",33),e.qZA()),2&y){const r=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",r.channelFilters)}}const Ge=function(){return{width:"100%"}};function kt(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",35)(1,"p-dropdown",36),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw(3);return e.KtG(j.channelFilter=C)}),e.qZA()()}if(2&y){const r=e.oxw(3);e.xp6(1),e.Akn(e.DdM(4,Ge)),e.Q6J("options",r.channelOptions)("ngModel",r.channelFilter)}}function qt(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"aside",18)(1,"div",19),e.O4$(),e.TgZ(2,"svg",20),e._UZ(3,"circle",21)(4,"path",22),e.qZA(),e.kcU(),e.TgZ(5,"input",23),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw(2);return e.KtG(j.searchTerm=C)}),e.qZA()(),e.YNc(6,Pe,2,1,"div",24),e.YNc(7,kt,2,5,"div",25),e.TgZ(8,"div",26)(9,"span"),e._uU(10),e.qZA(),e.TgZ(11,"span",27),e._uU(12,"M\xe1s reciente "),e.O4$(),e.TgZ(13,"svg",28),e._UZ(14,"path",29),e.qZA()()(),e.kcU(),e.TgZ(15,"div",30)(16,"globot-conversation-cards",31),e.NdJ("chatHistorySelected",function(C){e.CHM(r);const j=e.oxw(2);return e.KtG(j.onChatHistorySelected(C))}),e.ALo(17,"searchFilter"),e.qZA()()()}if(2&y){const r=e.oxw(2);e.xp6(5),e.Q6J("ngModel",r.searchTerm),e.xp6(1),e.Q6J("ngIf",!r.isMobile),e.xp6(1),e.Q6J("ngIf",r.isMobile),e.xp6(3),e.AsE("",r.filteredByChannel.length," ",1===r.filteredByChannel.length?"conversaci\xf3n":"conversaciones",""),e.xp6(6),e.Q6J("records",e.xi3(17,6,r.filteredByChannel,r.searchTerm))}}function Pn(y,g){1&y&&(e.TgZ(0,"section",37),e._UZ(1,"globot-information-section",38),e.qZA())}function Fn(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",54),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return C.selectedChatView=!1,C.selectedChat=void 0,C.selectedChatHistory=[],e.KtG(C.userInControl=!1)}),e._UZ(1,"i",55),e.qZA()}}function Ci(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",56),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.showCustomerPanel=!0)}),e._UZ(1,"i",57),e.qZA()}}function $s(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"button",58),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(3);return e.KtG(C.showPlansDialog=!0)}),e._UZ(1,"i",57),e.qZA()}}function go(y,g){1&y&&(e.TgZ(0,"div",59),e._UZ(1,"i",60),e.TgZ(2,"p"),e._uU(3,"Esta conversaci\xf3n no tiene mensajes disponibles"),e.qZA()())}function _o(y,g){if(1&y&&(e.TgZ(0,"div",64)(1,"div",65),e._uU(2),e.qZA(),e.TgZ(3,"div",66),e._uU(4),e.ALo(5,"date"),e.qZA()()),2&y){const r=e.oxw().$implicit;e.xp6(2),e.Oqu(r.user_prompt),e.xp6(2),e.AsE(" ",r.name||"An\xf3nimo"," | ",e.xi3(5,3,r.created_at,"HH:mm")," ")}}function Fo(y,g){if(1&y&&(e.TgZ(0,"span",73),e._UZ(1,"span",74),e._uU(2),e.qZA()),2&y){const r=e.oxw(2).$implicit;e.xp6(2),e.hij("",(null==r.user_in_control?null:r.user_in_control.name)||"Agente"," ")}}function Wr(y,g){1&y&&(e.O4$(),e.TgZ(0,"svg",77),e._UZ(1,"path",78)(2,"path",79),e.qZA())}function Yl(y,g){1&y&&(e.O4$(),e.TgZ(0,"svg",77),e._UZ(1,"path",80)(2,"path",81),e.qZA())}function _a(y,g){if(1&y&&(e.TgZ(0,"div",75),e.YNc(1,Wr,3,0,"svg",76),e.YNc(2,Yl,3,0,"svg",76),e.qZA()),2&y){const r=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngIf",!0===r.response_feedback),e.xp6(1),e.Q6J("ngIf",!1===r.response_feedback)}}function va(y,g){if(1&y&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&y){const r=e.oxw(2).$implicit;e.xp6(1),e.Oqu((null==r.user_in_control?null:r.user_in_control.name)||"Agente")}}function xl(y,g){1&y&&(e.TgZ(0,"span"),e._uU(1,"Asistente"),e.qZA())}function Eu(y,g){if(1&y&&(e.TgZ(0,"div",67)(1,"div",68),e.YNc(2,Fo,3,1,"span",69),e._UZ(3,"div",70),e.YNc(4,_a,3,2,"div",71),e.qZA(),e.TgZ(5,"div",72),e.YNc(6,va,2,1,"span",2),e.YNc(7,xl,2,0,"span",2),e._uU(8),e.ALo(9,"date"),e.qZA()()),2&y){const r=e.oxw().$implicit,f=e.oxw(4);e.xp6(1),e.ekj("live-bubble--bot","USER"!==r.answered_by)("live-bubble--agent","USER"===r.answered_by),e.xp6(1),e.Q6J("ngIf","USER"===r.answered_by),e.xp6(1),e.Q6J("innerHTML",f.formatMessage(r.response),e.oJD),e.xp6(1),e.Q6J("ngIf",null!=r.response_feedback),e.xp6(2),e.Q6J("ngIf","USER"===r.answered_by),e.xp6(1),e.Q6J("ngIf","USER"!==r.answered_by),e.xp6(1),e.hij(" | ",e.xi3(9,10,r.created_at,"HH:mm")," ")}}function Xo(y,g){if(1&y&&(e.TgZ(0,"div"),e.YNc(1,_o,6,6,"div",62),e.YNc(2,Eu,10,13,"div",63),e.qZA()),2&y){const r=g.$implicit;e.xp6(1),e.Q6J("ngIf",r.user_prompt),e.xp6(1),e.Q6J("ngIf",r.response)}}
1function Du(y,g){if(1&y&&(e.TgZ(0,"div")(1,"div",61)(2,"span"),e._uU(3),e.qZA()(),e.YNc(4,Xo,3,2,"div",51),e.qZA()),2&y){const r=g.$implicit,f=e.oxw(3);e.xp6(3),e.Oqu(r.date),e.xp6(1),e.Q6J("ngForOf",r.messages.slice())("ngForTrackBy",f.trackByIndex)}}function Nc(y,g){1&y&&(e.TgZ(0,"div",82),e._UZ(1,"i",83),e.TgZ(2,"div")(3,"b"),e._uU(4,"Tiempo de respuesta superado"),e.qZA(),e.TgZ(5,"p"),e._uU(6," Tienes hasta 24 horas para responderle a tus clientes a trav\xe9s de los canales de mensajer\xeda de Meta. Puedes esperar a que el cliente vuelva a escribir o contactarlo por otro canal. "),e.qZA()()())}function wl(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",88)(1,"div",89)(2,"span",90),e._UZ(3,"img",91),e.qZA(),e.TgZ(4,"div")(5,"b"),e._uU(6,"Globot est\xe1 atendiendo esta conversaci\xf3n"),e.qZA(),e.TgZ(7,"span",92),e._uU(8,'Haz clic en "Intervenir" si quieres responder t\xfa.'),e.qZA()()(),e.TgZ(9,"button",93),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(4);return e.KtG(C.takeControl(!0))}),e.O4$(),e.TgZ(10,"svg",94),e._UZ(11,"path",95)(12,"path",96),e.qZA(),e._uU(13),e.qZA()()}if(2&y){const r=e.oxw(4);e.xp6(9),e.Q6J("disabled",r.loadingButton),e.xp6(4),e.hij(" ",r.loadingButton?"Tomando el control\u2026":"Intervenir"," ")}}function Jl(y,g){if(1&y&&(e.TgZ(0,"span",108),e._UZ(1,"span",74),e._uU(2," Est\xe1s respondiendo t\xfa "),e.TgZ(3,"span",109),e._uU(4),e.qZA()()),2&y){const r=e.oxw(5);e.xp6(4),e.hij("\xb7 ",(null==r.user?null:r.user.name)||"Agente","")}}function Iu(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"div",97)(1,"div",98),e.YNc(2,Jl,5,1,"span",99),e.TgZ(3,"button",100),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(4);return e.KtG(C.takeControl(!1))}),e._UZ(4,"img",101),e._uU(5," Devolver a la IA "),e.qZA()(),e.TgZ(6,"div",102)(7,"input",103),e.NdJ("ngModelChange",function(C){e.CHM(r);const j=e.oxw(4);return e.KtG(j.currentQuestion=C)})("keyup.enter",function(){e.CHM(r);const C=e.oxw(4);return e.KtG(C.sendAnswer())}),e.qZA(),e.TgZ(8,"button",104),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(4);return e.KtG(C.sendAnswer())}),e.O4$(),e.TgZ(9,"svg",105),e._UZ(10,"path",106)(11,"path",107),e.qZA()()()()}if(2&y){const r=e.oxw(4);e.xp6(2),e.Q6J("ngIf",!r.isMobile),e.xp6(1),e.ekj("live-link--mobile",r.isMobile),e.xp6(1),e.Q6J("width",r.isMobile?22:14)("height",r.isMobile?21:13),e.xp6(3),e.Q6J("ngModel",r.currentQuestion),e.xp6(1),e.Q6J("disabled",!r.currentQuestion.trim())}}function Bc(y,g){1&y&&(e.TgZ(0,"div",110),e._UZ(1,"i",111),e.TgZ(2,"span"),e._uU(3,"No puedes responder: pasaron m\xe1s de 24 h desde el \xfaltimo mensaje del cliente."),e.qZA()())}function Md(y,g){if(1&y&&(e.TgZ(0,"div",84),e.YNc(1,wl,14,2,"div",85),e.YNc(2,Iu,12,7,"div",86),e.YNc(3,Bc,4,0,"div",87),e.qZA()),2&y){const r=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!r.userInControl&&!r.isMetaLimitExceeded()),e.xp6(1),e.Q6J("ngIf",r.userInControl&&!r.isMetaLimitExceeded()),e.xp6(1),e.Q6J("ngIf",r.isMetaLimitExceeded()&&r.userInControl)}}function el(y,g){if(1&y&&(e.TgZ(0,"section",39)(1,"div",40)(2,"div",41),e.YNc(3,Fn,2,0,"button",42),e.TgZ(4,"div",43),e._UZ(5,"i",44),e.qZA(),e.TgZ(6,"div")(7,"div",45),e._uU(8),e.qZA(),e.TgZ(9,"div",46),e._uU(10),e.qZA()()(),e.YNc(11,Ci,2,0,"button",47),e.YNc(12,$s,2,0,"button",48),e.qZA(),e.TgZ(13,"div",49),e.YNc(14,go,4,0,"div",50),e.YNc(15,Du,5,3,"div",51),e.YNc(16,Nc,7,0,"div",52),e.qZA(),e.YNc(17,Md,4,3,"div",53),e.qZA()),2&y){const r=e.oxw(2);e.xp6(3),e.Q6J("ngIf",r.isMobile),e.xp6(1),e.Udp("background",r.getChannelColor((null==r.selectedChat?null:r.selectedChat.channel)||"")),e.xp6(1),e.Tol(r.getChannelIcon((null==r.selectedChat?null:r.selectedChat.channel)||"")+" live-chan-icon"),e.xp6(3),e.Oqu((null==r.selectedChat?null:r.selectedChat.name)||"An\xf3nimo"),e.xp6(2),e.Oqu(r.getChannelLabel((null==r.selectedChat?null:r.selectedChat.channel)||"")),e.xp6(1),e.Q6J("ngIf",!r.isMobile&&!r.showCustomerPanel),e.xp6(1),e.Q6J("ngIf",r.isMobile),e.xp6(2),e.Q6J("ngIf",0===r.selectedChatHistory.length),e.xp6(1),e.Q6J("ngForOf",r.selectedChatHistory)("ngForTrackBy",r.trackByGroupDate),e.xp6(1),e.Q6J("ngIf",r.isLiveMessagingReady&&r.selectedChatHistory.length>0&&r.isMetaLimitExceeded()),e.xp6(1),e.Q6J("ngIf",r.isLiveMessagingReady&&r.selectedChatHistory.length>0)}}function Sl(y,g){if(1&y&&(e.TgZ(0,"div")(1,"dt"),e._uU(2,"Email"),e.qZA(),e.TgZ(3,"dd"),e._uU(4),e.qZA()()),2&y){const r=e.oxw(3);e.xp6(4),e.Oqu(null==r.selectedChat?null:r.selectedChat.email)}}function Td(y,g){if(1&y&&(e.TgZ(0,"div")(1,"dt"),e._uU(2,"Tel\xe9fono"),e.qZA(),e.TgZ(3,"dd"),e._uU(4),e.qZA()()),2&y){const r=e.oxw(3);e.xp6(4),e.Oqu(null==r.selectedChat?null:r.selectedChat.phone)}}function Mh(y,g){if(1&y&&(e.TgZ(0,"div")(1,"dt"),e._uU(2,"Notas"),e.qZA(),e.TgZ(3,"dd",126),e._uU(4),e.qZA()()),2&y){const r=e.oxw(3);e.xp6(4),e.Oqu(null==r.selectedChat?null:r.selectedChat.sender_requirement)}}function Au(y,g){if(1&y&&(e.TgZ(0,"span",127),e._uU(1),e.qZA()),2&y){const r=e.oxw(3);e.xp6(1),e.Oqu(r.getChannelLabel((null==r.selectedChat?null:r.selectedChat.channel)||""))}}function Ed(y,g){1&y&&(e.TgZ(0,"span",127),e._uU(1,"Agente activo"),e.qZA())}function Th(y,g){if(1&y){const r=e.EpF();e.TgZ(0,"aside",112)(1,"div",113)(2,"span"),e._uU(3,"Datos del cliente"),e.qZA(),e.TgZ(4,"button",114),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(2);return e.KtG(C.showCustomerPanel=!1)}),e.O4$(),e.TgZ(5,"svg",115),e._UZ(6,"path",116),e.qZA()()(),e.kcU(),e.TgZ(7,"div",117)(8,"div",118),e._UZ(9,"
1i",44),e.qZA(),e.TgZ(10,"div")(11,"div",119),e._uU(12),e.qZA(),e.TgZ(13,"div",120),e._uU(14),e.qZA()()(),e._UZ(15,"hr",121),e.TgZ(16,"dl",122)(17,"div")(18,"dt"),e._uU(19,"Primera visita"),e.qZA(),e.TgZ(20,"dd"),e._uU(21),e.ALo(22,"date"),e.qZA()(),e.YNc(23,Sl,5,1,"div",2),e.YNc(24,Td,5,1,"div",2),e.YNc(25,Mh,5,1,"div",2),e.qZA(),e.TgZ(26,"div",123),e.YNc(27,Au,2,1,"span",124),e.YNc(28,Ed,2,0,"span",124),e.qZA(),e.TgZ(29,"button",125),e.NdJ("click",function(){e.CHM(r);const C=e.oxw(2);return e.KtG(C.showPlansDialog=!0)}),e._uU(30," Editar datos del cliente "),e.qZA()()}if(2&y){const r=e.oxw(2);e.xp6(8),e.Udp("background",r.getChannelColor((null==r.selectedChat?null:r.selectedChat.channel)||"")),e.xp6(1),e.Tol(r.getChannelIcon((null==r.selectedChat?null:r.selectedChat.channel)||"")+" live-chan-icon live-chan-icon--lg"),e.xp6(3),e.Oqu((null==r.selectedChat?null:r.selectedChat.name)||"An\xf3nimo"),e.xp6(2),e.Oqu(r.getChannelLabel((null==r.selectedChat?null:r.selectedChat.channel)||"")),e.xp6(7),e.Oqu(e.xi3(22,12,null==r.selectedChat?null:r.selectedChat.created_at,"dd MMM yyyy")),e.xp6(2),e.Q6J("ngIf",null==r.selectedChat?null:r.selectedChat.email),e.xp6(1),e.Q6J("ngIf",null==r.selectedChat?null:r.selectedChat.phone),e.xp6(1),e.Q6J("ngIf",null==r.selectedChat?null:r.selectedChat.sender_requirement),e.xp6(2),e.Q6J("ngIf",null==r.selectedChat?null:r.selectedChat.channel),e.xp6(1),e.Q6J("ngIf",null==r.selectedChat?null:r.selectedChat.user_in_control)}}function Vc(y,g){if(1&y&&(e.TgZ(0,"div",13),e.YNc(1,qt,18,9,"aside",14),e.YNc(2,Pn,2,0,"section",15),e.YNc(3,el,18,14,"section",16),e.YNc(4,Th,31,15,"aside",17),e.qZA()),2&y){const r=e.oxw();e.ekj("is-3col",r.selectedChatView&&r.showCustomerPanel&&!r.isMobile),e.xp6(1),e.Q6J("ngIf",!r.selectedChatView||!r.isMobile),e.xp6(1),e.Q6J("ngIf",!r.selectedChatView&&!r.isMobile),e.xp6(1),e.Q6J("ngIf",r.selectedChatView),e.xp6(1),e.Q6J("ngIf",r.selectedChatView&&r.showCustomerPanel&&!r.isMobile)}}const Dd=function(){return{maxWidth:"34rem"}},Id=function(){return{maxWidth:"40rem"}};let Ql=(()=>{class y{constructor(r,f,C,j,le,Ae,Ke,it,Rt,Zt,fn){var ln;this.botService=r,this.aRoute=f,this.ss=C,this.router=j,this.chatbotliveService=le,this.changeDetectorRef=Ae,this.socket=Ke,this.userService=it,this.sanitizer=Rt,this.messageService=Zt,this.logger=fn,this.destroy$=new D.x,this.searchTerm="",this.isMobile=window.innerWidth<800,this.selectedChatView=!1,this.records=[],this.botId="",this.originalRecords=[],this.userInControl=!1,this.selectedChatHistory=[],this.isLiveMessagingReady=!1,this.currentQuestion="",this.loadingButton=!1,this.showPlansDialog=!1,this.showPlansDialogPreferences=!1,this.channelFilter="Todos",this.channelFilters=["Todos","WhatsApp","Instagram","Messenger","Web"],this.channelOptions=this.channelFilters.map(zn=>({label:zn,value:zn})),this.showCustomerPanel=!0,this.isLiveMessagingReady=ni.N.isLiveMessagingReady,this.botId=null!==(ln=this.aRoute.snapshot.paramMap.get("id"))&&void 0!==ln?ln:"";const On=this.router.routerState.snapshot.url.split("/");this.botId=On[3]}get filteredByChannel(){return"Todos"===this.channelFilter?this.records:this.records.filter(r=>r.channel===this.channelFilter.toUpperCase())}ngOnInit(){this.userService.getUser().pipe((0,ne.R)(this.destroy$)).subscribe(r=>{this.user=r,this.loadRecordsWithDateRange(),this.socket.connectToRoom(this.botId,()=>this.loadRecordsWithDateRange())}),this.chatbotliveService.customerData$.pipe((0,ne.R)(this.destroy$)).subscribe(r=>{var f;if(!r||!this.selectedChat||r.correlation_id!==this.selectedChat.correlation_id)return;this.selectedChat=Object.assign(Object.assign({},this.selectedChat),{name:null!==(f=r.name)&&void 0!==f?f:this.selectedChat.name});const C=this.records.find(j=>j.correlation_id===r.correlation_id);C&&(C.name=r.name,C.email=r.email,C.phone=r.phone,C.sender_requirement=r.sender_requirement)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.socket.disconnectRoom(this.botId)}loadRecordsWithDateRange(){this.botService.getRecords(this.botId,void 0,{lastHours:24}).pipe((0,ne.R)(this.destroy$)).subscribe({next:r=>{var f;this.records=r,this.originalRecords=[...this.records];const C=null===(f=this.selectedChat)||void 0===f?void 0:f.correlation_id;if(C){const j=this.records.find(le=>le.correlation_id===C);
1j?(this.userInControl=null!=j.user_in_control,this.botService.getChatHistory(this.botId,C).pipe((0,ne.R)(this.destroy$)).subscribe({next:le=>{this.selectedChatHistory=this.groupChatsByDate(le??[])},error:le=>{this.logger.error("Error al cargar historial",le),this.selectedChatHistory=[]}})):(this.selectedChat=void 0,this.selectedChatHistory=[],this.selectedChatView=!1,this.userInControl=!1)}},error:r=>{this.logger.error("Error al cargar registros",r)}})}groupChatsByDate(r){const f=[...r??[]];return f.forEach(C=>{try{C.messages=C.messages.slice().reverse()}catch{this.logger.error("Fecha inv\xe1lida omitida",C.date)}}),f}onChatHistorySelected(r){this.selectedChat=r.record,this.userInControl=null!=r.record.user_in_control,this.selectedChatHistory=this.groupChatsByDate(r.chatHistory),this.selectedChatView=!0,this.showCustomerPanel=!0,this.updateChat(),this.currentQuestion="",this.chatbotliveService.updateCustomerData(r.record)}takeControl(r=!0){var f;this.loadingButton=!0,null!==(f=this.selectedChat)&&void 0!==f&&f.correlation_id&&this.user?this.chatbotliveService.takeControl(this.botId,{correlation_id:this.selectedChat.correlation_id,take_manual_control:r}).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{this.userInControl=r,this.loadingButton=!1,this.selectedChat&&this.updateUserControlStatus(this.selectedChat.correlation_id,r,this.user)},error:()=>{this.loadingButton=!1}}):this.loadingButton=!1}updateChat(){var r,f;const C=null===(r=this.selectedChat)||void 0===r?void 0:r.correlation_id;0!=(null===(f=this.selectedChat)||void 0===f?void 0:f.new_message)&&this.chatbotliveService.updateChatHeader(this.botId,C).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{}})}sendAnswer(){var r,f;if(0===this.currentQuestion.length)return;const C=this.currentQuestion,j=null===(r=this.selectedChat)||void 0===r?void 0:r.correlation_id,le=null===(f=this.selectedChat)||void 0===f?void 0:f.channel;this.chatbotliveService.sendAnswer(this.botId,j,C).pipe((0,ne.R)(this.destroy$)).subscribe({next:()=>{const Ae={response:C,channel:le,created_at:(new Date).toISOString(),correlation_id:j,answered_by:"USER",user_in_control:this.user?{email:this.user.email,name:this.user.name,picture:this.user.picture}:void 0},it=(new Date).toLocaleDateString("es-ES",{day:"numeric",month:"long",year:"numeric"});let Rt=this.selectedChatHistory.find(Zt=>Zt.date===it);Rt||(Rt={date:it,messages:[]},this.selectedChatHistory.unshift(Rt)),Rt.messages.unshift(Ae),this.currentQuestion="",this.changeDetectorRef.detectChanges()},error:Ae=>{[400,404,429,500].includes(Ae.status)&&this.messageService.add({severity:"error",summary:"Ocurri\xf3 un error inesperado",detail:"Por favor, int\xe9ntalo m\xe1s tarde"})}})}updateUserControlStatus(r,f,C){const j=this.records.find(le=>le.correlation_id===r);j&&(j.user_in_control=f?j.user_in_control||{name:C.name,picture:C.picture}:null)}getChannelIcon(r){var f;return null!==(f={WEB:"pi pi-globe",WHATSAPP:"pi pi-whatsapp",INSTAGRAM:"pi pi-instagram",MESSENGER:"pi pi-facebook",FACEBOOK:"pi pi-facebook",DISCORD:"pi pi-discord",SLACK:"pi pi-slack"}[(r||"").toUpperCase()])&&void 0!==f?f:"pi pi-comments"}getChannelColor(r){var f;return null!==(f={WEB:"#3B82F6",WHATSAPP:"#22C55E",INSTAGRAM:"#EC4899",MESSENGER:"#0084FF",FACEBOOK:"#1877F2",DISCORD:"#5865F2",SLACK:"#E01E5A"}[(r||"").toUpperCase()])&&void 0!==f?f:"#6D5BE6"}getChannelLabel(r){return{WHATSAPP:"WhatsApp",MESSENGER:"Messenger",INSTAGRAM:"Instagram",WEB:"Web"}[r]||r}isChannelIconVisible(r){return["WHATSAPP","MESSENGER","INSTAGRAM","WEB"].includes(r)}formatMessage(r){let f=r.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/ - /g,"<br>- ").replace(/(\d{4}-\d{2}-\d{2})/g,'<span class="highlight-date">$1</span>').replace(/(\d{1,3}(?:\.\d{3})*(?:,\d+)?)/g,'<span class="highlight-number">$1</span>');return this.sanitizer.sanitize(e.q3G.HTML,f)}onPreferencesSaved(r){this.showPlansDialogPreferences=!1}trackByGroupDate(r,f){return f.date}trackByIndex(r){return r}onPreferencesCancelled(){this.showPlansDialogPreferences=!1}isMetaLimitExceeded(){var r;if(null===(r=this.selectedChatHistory)||void 0===r||!r.length)return!1;const f=["WHATSAPP","MESSENGER","INSTAGRAM"];let C=null;for(const le of this.selectedChatHistory){const Ae=le.messages.filter(it=>null!==it.user_prompt&&f.includes(it.channel));if(!Ae.length)continue;const Ke=Ae.reduce((it,Rt)=>new Date(Rt.created_at)>new Date(it.created_at)?Rt:it);(!C||Ke.created_at>C.created_at)&&(C=Ke)}if(!C)return!1;const j=Date.parse(C.created_at.replace(/(\.\d+)?([+-]\d{2}:?\d{2})$/,".000$2").replace(" ","T"));return!isNaN(j)&&Date.now()-j>=864e5}}return y.\u0275fac=function(r){return new(r||y)(e.Y36(ki.G),e.Y36(nn.gz),e.Y36(rs.V),e.Y36(nn.F0),e.Y36(qn.T),e.Y36(e.sBO),e.Y36(Yi.m),e.Y36(Mi.K),e.Y36(t.H7),e.Y36(ei.ez),e.Y36(Is.m))},y.\u0275cmp=e.Xpm({type:y,selectors:[["globot-globot-live"]],standalone:!0,features:[e.jDz],decls:9,vars:18,consts:[[1,"live-page"],["class","live-pagehead",4,"ngIf"],[4,"ngIf"],["class","live-card",3,"is-3col",4,"ngIf"],["header","Datos de cliente",1,"modal-user",3,"modal","visible","resizable","draggable","visibleChange"],[3,"saved","cancelled"],["header","Preferencias",1,"modal-preferencias",3,"modal","visible","resizable","draggable","visibleChange"],[3,"botId","preferencesSaved","preferenceCancelled"],[1,"live-pagehead"],[1,"page-title"],[1,"live-btn","live-btn--outline",3,"click"],["aria-hidden","true",1,"pi","pi-cog"],["message","No tienes conversaciones en vivo para tomar"],[1,"live-card"],["class","live-sidebar","aria-label","Lista de conversaciones",4,"ngIf"],["class","live-thread live-thread--empty",4,"ngIf"],["class","live-thread",4,"ngIf"],["class","live-cust","aria-label","Datos del cliente",4,"ngIf"],["aria-label","Lista de conversaciones",1,"live-sidebar"],[1,"live-search"],["viewBox","0 0 24 24","width","18","height","18","fill","none","stroke","currentColor","stroke-width","2","aria-hidden","true"],["cx","11","cy","11","r","7"],["d","m21 21-4.3-4.3","stroke-linecap","round"],["placeholder","Buscar conversaci\xf3n\u2026","aria-label","Buscar conversaci\xf3n",3,"ngModel","ngModelChange"],["class","live-filters",4,"ngIf"],["class","live-filters-mobile",4,"ngIf"],[1,"live-listmeta"],[1,"live-sort"],["viewBox","0 0 24 24","width","13","height","13","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true"],["d","M12 5v14M19 12l-7 7-7-7"],[1,"live-list"],[3,"re
1cords","chatHistorySelected"],[1,"live-filters"],["class","live-chip",3,"is-on","click",4,"ngFor","ngForOf"],[1,"live-chip",3,"click"],[1,"live-filters-mobile"],["optionLabel","label","optionValue","value","appendTo","body",3,"options","ngModel","ngModelChange"],[1,"live-thread","live-thread--empty"],["title","Responde en tiempo real con Chat en vivo","message","Gestiona las consultas de tus clientes desde todos tus canales en un solo lugar. Selecciona una conversaci\xf3n de la lista para interactuar."],[1,"live-thread"],[1,"live-thread-head"],[1,"live-thread-id"],["class","live-icon-btn","aria-label","Volver a la lista de conversaciones",3,"click",4,"ngIf"],[1,"live-chan-av"],["aria-hidden","true"],[1,"live-thread-name"],[1,"live-thread-sub"],["class","live-icon-btn","aria-label","Ver datos del cliente","pTooltip","Ver datos del cliente","tooltipPosition","top",3,"click",4,"ngIf"],["class","live-icon-btn","aria-label","Editar datos del cliente",3,"click",4,"ngIf"],[1,"live-scroll","message","scrollable"],["class","live-thread-nomsg",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","live-meta-limit",4,"ngIf"],["class","live-footer",4,"ngIf"],["aria-label","Volver a la lista de conversaciones",1,"live-icon-btn",3,"click"],["aria-hidden","true",1,"pi","pi-arrow-left"],["aria-label","Ver datos del cliente","pTooltip","Ver datos del cliente","tooltipPosition","top",1,"live-icon-btn",3,"click"],["aria-hidden","true",1,"pi","pi-user"],["aria-label","Editar datos del cliente",1,"live-icon-btn",3,"click"],[1,"live-thread-nomsg"],["aria-hidden","true",1,"pi","pi-inbox"],[1,"live-datesep"],["class","live-row live-row--in",4,"ngIf"],["class","live-row live-row--out",4,"ngIf"],[1,"live-row","live-row--in"],[1,"live-bubble","live-bubble--in"],[1,"live-meta"],[1,"live-row","live-row--out"],[1,"live-bubble"],["class","live-bubble-tag",4,"ngIf"],[3,"innerHTML"],["class","live-feedback",4,"ngIf"],[1,"live-meta","live-meta--out"],[1,"live-bubble-tag"],[1,"live-dot-live"],[1,"live-feedback"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 24 24","fill","currentColor","stroke","none","aria-hidden","true",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 24 24","fill","currentColor","stroke","none","aria-hidden","true"],["d","M7 10v12"],["d","M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"],["d","M17 14V2"],["d","M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"],[1,"live-meta-limit"],["aria-hidden","true",1,"pi","pi-info-circle",2,"color","#c18c30","font-size","18px","flex-shrink","0","margin-top","2px"],[1,"live-footer"],["class","live-dock",4,"ngIf"],["class","live-footer-agent",4,"ngIf"],["class","live-footer-note",4,"ngIf"],[1,"live-dock"],[1,"live-dock-state"],[1,"live-dock-ic"],["src","assets/icons/globot-icon.svg","width","26","height","26","alt","Globot"],[1,"live-dock-sub"],[1,"live-btn","live-btn--primary",3,"disabled","click"],["viewBox","0 0 24 24","width","16","height","16","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true"],["d","M9 11V6a3 3 0 0 1 6 0v5"],["d","M5 11h14a2 2 0 0 1 2 2v1a7 7 0 0 1-7 7h-4a7 7 0 0 1-7-7v-1a2 2 0 0 1 2-2Z"],[1,"live-footer-agent"],[1,"live-livebar"],["class","live-livebar-l",4,"ngIf"],[1,"live-link",3,"click"],["src","assets/icons/globot-icon.svg","alt","Globot",3,"width","height"],[1,"live-composer"],["type","text","placeholder","Escribe un mensaje\u2026",3,"ngModel","ngModelChange","keyup.enter"],["aria-label","Enviar mensaje",1,"live-send",3,"disabled","click"],["viewBox","0 0 24 24","width","18","height","18","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true"],["d","m22 2-7 20-4-9-9-4Z"],["d","M22 2 11 13"],[1,"live-livebar-l"],[1,"live-livebar-name"],[1,"live-footer-note"],["aria-hidden","true",1,"pi","pi-exclamation-circle"],["aria-label","Datos del cliente",1,"live-cust"],[1,"live-cust-head"],["aria-label","Cerrar",1,"live-icon-btn",3,"click"],["viewBox","0 0 24 24","width","16","height","16","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","aria-hidden","true"],["d","M18 6 6 18M6 6l12 12"],[1,"live-cust-id"],[1,"live-chan-av","live-chan-av--lg"],[1,"live-cust-name"],[1,"live-cust-channel"],[1,"live-divider"],[1,"live-cust-fields"],[1,"live-cust-tags"],["class","live-pill",4,"ngIf"],[1,"live-btn","live-btn--outline","live-btn--block",3,"click"],[1,"live-cust-notes"],[1,"live-pill"]],template:function(r,f){1&r&&(e.ynx(0),e.TgZ(1,"div",0),e.YNc(2,R,6,0,"div",1),e.YNc(3,oe,2,0,"ng-container",2),e.YNc(4,Vc,5,6,"div",3),e.qZA(),e.TgZ(5,"p-dialog",4),e.NdJ("visibleChange",function(j){return f.showPlansDialog=j}),e.TgZ(6,"globot-customer-form",5),e.NdJ("saved",function(){return f.showPlansDialog=!1})("cancelled",function(){return f.showPlansDialog=!1}),e.qZA()(),e.TgZ(7,"p-dialog",6),e.NdJ("visibleChange",function(j){return f.showPlansDialogPreferences=j}),e.TgZ(8,"globot-preferences-box",7),e.NdJ("preferencesSaved",function(j){return f.onPreferencesSaved(j)})("preferenceCancelled",function(){return f.onPreferencesCancelled()}),e.qZA()(),e.BQk()),2&r&&(e.xp6(2),e.Q6J("ngIf",!f.selectedChatView||!f.isMobile),e.xp6(1),e.Q6J("ngIf",!f.records||0===f.records.length),e.xp6(1),e.Q6J("ngIf",f.records&&f.records.length>0),e.xp6(1),e.Akn(e.DdM(16,Dd)),e.Q6J("modal",!0)("visible",f.showPlansDialog)("resizable",!1)("draggable",!1),e.xp6(2),e.Akn(e.DdM(17,Id)),e.Q6J("modal",!0)("visible",f.showPlansDialogPreferences)("resizable",!1)("draggable",!1),e.xp6(1),e.Q6J("botId",f.botId))},dependencies:[s.ez,s.sg,s.O5,s.uU,pa.L,Fs.O,Sd,Oc,Sr,$,J,Mn.u5,Mn.Fj,Mn.JJ,Mn.On,li.WN,co.j,Rr.hJ,ri.D,Pi.S,Pi.V,qi.z,qi.u,Xs.kW,Xs.Lt],styles:[".live-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-top:12px;gap:20px}.live-pagehead[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:4px 0 8px}.live-dot-green[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background:#1f9d6b;flex-shrink:0}.live-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;border-radius:9px;font-size:14px;font-weight:600;padding:9px 16px;border:1px solid transparent;transition:.15s;line-height:1;cursor:pointer;font-family:inherit}.live-btn--primary[_ngcontent-%COMP%]{background:var(--color-primary);color:#fff;box-shadow:0 1px 2px #7b5cf54d}.live-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-dark)}.live-btn--primary[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}.live-btn--outline[_ngcontent-%COMP%]{background:#fff;color:var(--color-primary);border-color:var(--color-primary)}.live-btn--outline[_ngcontent-%COMP%]:hover{background:var(--color-primary-light);border-color:var(--color-primary-dark)}.live-btn--block[_ngcontent-%COMP%]{width:100%;justify-content:center;margin-top:auto}.live-icon-btn[_ngcontent-%COMP%]{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;transition:.15s;font-family:inherit}.live-icon-btn[_ngcontent-%COMP%]:hover, .live-icon-btn.is-on[_ngcontent-%COMP%]{background:var(--color-primary-light);color:var(--color-primary)}.live-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:320px 1fr;background:#fff;border:1px solid var(--color-border);border-radius:20px;box-shadow:0 4px 14px #10182812;overflow:hidden;height:calc(100vh - 240px);min-height:520px}.live-card.is-3col[_ngcontent-%COMP%]{grid-template-columns:320px 1fr 280px}.live-sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-right:1px solid var(--color-border);background:#fff;min-width:0;overflow:hidden}.live-search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;margin:16px 16px 6px}.live-search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;
1left:12px;color:var(--color-text-muted);pointer-events:none}.live-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:11px 14px 11px 40px;border:1px solid var(--color-border);border-radius:11px;font-size:14px;color:var(--color-text);background:var(--main-bg);font-family:inherit;transition:.15s}.live-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--color-text-muted)}.live-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--color-primary);background:#fff;box-shadow:0 0 0 3px #7b5cf51f}.live-filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;padding:4px 16px 2px}.live-chip[_ngcontent-%COMP%]{font-size:13px;font-weight:600;padding:5px 13px;border-radius:999px;border:none;background:transparent;color:var(--color-text-muted);cursor:pointer;transition:.14s;font-family:inherit}.live-chip[_ngcontent-%COMP%]:hover{background:var(--main-bg)}.live-chip.is-on[_ngcontent-%COMP%]{background:var(--color-primary-light);color:var(--color-primary-dark)}.live-listmeta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 4px;font-size:13px;color:var(--color-text-muted)}.live-sort[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:3px;color:var(--color-primary);font-weight:600;font-size:13px}.live-list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:4px 10px 12px;display:flex;flex-direction:column}.live-chan-av[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.live-chan-av--lg[_ngcontent-%COMP%]{width:48px;height:48px}.live-chan-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px}.live-chan-icon--lg[_ngcontent-%COMP%]{font-size:22px}.live-thread[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;background:#eef0f5;overflow:hidden}.live-thread--empty[_ngcontent-%COMP%]{align-items:center;justify-content:center;background:var(--main-bg)}.live-thread-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--color-border);background:#fff;flex-shrink:0}.live-thread-id[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.live-thread-name[_ngcontent-%COMP%]{font-weight:700;font-size:16px;color:var(--color-text-dark);white-space:nowrap}.live-thread-sub[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);margin-top:2px}.live-thread-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.live-scroll[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:8px 20px 16px;display:flex;flex-direction:column-reverse;min-height:0}.live-thread-nomsg[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:1;padding:32px 20px;color:var(--color-text-muted);text-align:center}.live-thread-nomsg[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:28px;opacity:.6}.live-thread-nomsg[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.live-datesep[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:14px 0 10px}.live-datesep[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background:#fff;color:var(--color-text-muted);font-size:12px;font-weight:600;padding:4px 14px;border-radius:999px;white-space:nowrap;box-shadow:0 1px 2px #1018280f}.live-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-bottom:14px;max-width:78%}.live-row--in[_ngcontent-%COMP%]{align-items:flex-start;align-self:flex-start}.live-row--out[_ngcontent-%COMP%]{align-items:flex-end;align-self:flex-end;margin-left:auto}.live-bubble[_ngcontent-%COMP%]{padding:12px 16px;font-size:14px;line-height:1.55;border-radius:16px;white-space:pre-wrap;box-shadow:0 1px 1.5px #1018280f}.live-bubble--in[_ngcontent-%COMP%]{background:#fff;color:var(--color-text-dark);border:1px solid var(--color-border);border-top-left-radius:5px}.live-bubble--bot[_ngcontent-%COMP%]{background:var(--color-primary);color:#fff;border:none;border-top-right-radius:5px}.live-bubble--agent[_ngcontent-%COMP%]{background:#dcf3e8;color:#155c41;border:1px solid color-mix(in srgb,#1f9d6b 32%,white);border-top-right-radius:5px}.live-bubble-tag[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;margin-bottom:6px;color:var(--color-primary-dark);white-space:nowrap}.live-bubble--agent[_ngcontent-%COMP%] .live-bubble-tag[_ngcontent-%COMP%]{color:#1f9d6b}.live-meta[_ngcontent-%COMP%]{font-size:12px;line-height:1.4;color:var(--color-text-muted);padding:0 4px}.live-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px}.live-meta--out[_ngcontent-%COMP%]{text-align:right}.live-feedback[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:4px;opacity:.65}.live-meta-limit[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start;margin:8px 0 4px;padding:14px 16px;border-radius:13px;border:1px solid #fcf098;background:#fefceb}.live-meta-limit[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:block;color:#c18c30;font-size:14px;margin-bottom:4px}.live-meta-limit[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#a9802f;font-size:13px;line-height:1.55}.live-footer[_ngcontent-%COMP%]{border-top:1px solid var(--color-border);background:#fff;flex-shrink:0}.live-dock[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px}.live-dock-state[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.live-dock-state[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:block;font-size:14px;color:var(--color-text-dark);font-weight:700;line-height:1.25}.live-dock-ic[_ngcontent-%COMP%]{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--color-primary-light);flex-shrink:0}.live-dock-sub[_ngcontent-%COMP%]{display:block;font-size:12px;color:var(--color-text-muted);margin-top:2px}.live-livebar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;background:color-mix(in srgb,#1f9d6b 9%,white);border-bottom:1px solid color-mix(in srgb,#1f9d6b 18%,white)}.live-livebar-l[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#1f9d6b}
1.live-livebar-name[_ngcontent-%COMP%]{font-weight:600;color:color-mix(in srgb,#1f9d6b 78%,#1e293b)}.live-dot-live[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background:#1f9d6b;flex-shrink:0;box-shadow:0 0 0 3px #1f9d6b33}.live-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:none;background:transparent;color:var(--color-primary);font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}.live-link[_ngcontent-%COMP%]:hover{color:var(--color-primary-dark)}.live-composer[_ngcontent-%COMP%]{display:flex;gap:10px;padding:12px 20px;background:#fff}.live-composer[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;padding:11px 16px;border:1px solid var(--color-border);border-radius:11px;font-size:14px;color:var(--color-text);background:var(--main-bg);font-family:inherit;transition:.15s}.live-composer[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--color-primary);background:#fff;box-shadow:0 0 0 3px #7b5cf51f}.live-send[_ngcontent-%COMP%]{display:grid;place-items:center;width:44px;border-radius:11px;border:none;background:var(--color-primary);color:#fff;cursor:pointer;transition:.15s}.live-send[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--color-primary-dark)}.live-send[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.live-footer-note[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin:0 16px 12px;padding:12px 16px;border-radius:12px;border:1px solid #fcf098;background:#fefceb;font-size:13px;color:#a9802f;line-height:1.45}.live-footer-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px;color:#c18c30;flex-shrink:0}.live-ia-glyph[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;border-radius:3px;background:conic-gradient(from 140deg,var(--color-primary),var(--color-secondary),var(--color-primary));flex-shrink:0}.live-ia-glyph--md[_ngcontent-%COMP%]{width:22px;height:22px;border-radius:6px}.live-cust[_ngcontent-%COMP%]{border-left:1px solid var(--color-border);background:#fff;display:flex;flex-direction:column;padding:18px;gap:16px;overflow-y:auto}.live-cust-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:16px;color:var(--color-text-dark)}.live-cust-id[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.live-cust-name[_ngcontent-%COMP%]{font-weight:700;font-size:15px;color:var(--color-text-dark)}.live-cust-channel[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);margin-top:2px}.live-divider[_ngcontent-%COMP%]{border:none;border-top:1px solid var(--color-border);margin:0}.live-cust-fields[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:14px}.live-cust-fields[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px}.live-cust-fields[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{font-size:12px;color:var(--color-text-muted);font-weight:500}.live-cust-fields[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;font-size:14px;color:var(--color-text-dark);font-weight:500}.live-cust-fields[_ngcontent-%COMP%] .live-cust-notes[_ngcontent-%COMP%]{white-space:pre-wrap;line-height:1.5;font-weight:400}.live-cust-tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:7px}.live-pill[_ngcontent-%COMP%]{font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;background:var(--color-primary-light);color:var(--color-primary-dark)} .modal-user .p-dialog .p-dialog-content{padding:0 32px 36px} .modal-user .p-dialog{width:36rem;max-width:95vw}@media (max-width: 820px){ .modal-user .p-dialog{width:100vw!important;max-width:100vw!important;margin:0!important;border-radius:16px 16px 0 0!important;position:fixed!important;bottom:0!important;left:0!important} .modal-user .p-dialog .p-dialog-content{padding:0 20px 32px}} .p-dialog .p-dialog-header .p-dialog-title{font-weight:600;font-size:1.6rem}@media (max-width: 1024px){.live-card[_ngcontent-%COMP%]{height:calc(100vh - 180px)}}.live-filters-mobile[_ngcontent-%COMP%]{padding:4px 16px 8px}@media (max-width: 820px){.live-card[_ngcontent-%COMP%]{grid-template-columns:1fr;height:calc(100vh - 160px)}.live-card.is-3col[_ngcontent-%COMP%]{grid-template-columns:1fr}
1.live-cust[_ngcontent-%COMP%]{display:none}.live-pagehead[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:12px}.live-pagehead[_ngcontent-%COMP%] .live-btn[_ngcontent-%COMP%]{width:100%;justify-content:center;font-size:16px}.live-livebar[_ngcontent-%COMP%]{justify-content:center;padding:10px 20px}.live-link--mobile[_ngcontent-%COMP%]{font-size:16px;font-weight:700;gap:8px}.live-bubble-tag[_ngcontent-%COMP%]{display:none}.live-bubble[_ngcontent-%COMP%], .live-thread-name[_ngcontent-%COMP%], .live-dock-state[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:16px}.live-dock-sub[_ngcontent-%COMP%]{display:none}.live-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .live-composer[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:16px}}"]}),y})(),ql=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[nn.Bz.forRoot([{path:"",redirectTo:"dashboard/login",pathMatch:"full"},{path:"dashboard/login",loadComponent:()=>Promise.all([a.e(89),a.e(680)]).then(a.bind(a,9680)).then(g=>g.AuthComponent)},{path:"dashboard/register",loadComponent:()=>Promise.all([a.e(592),a.e(747)]).then(a.bind(a,5747)).then(g=>g.RegisterComponent)},{path:"dashboard/recover-password",loadComponent:()=>Promise.all([a.e(592),a.e(197)]).then(a.bind(a,2197)).then(g=>g.RecoverPasswordComponent)},{path:"dashboard/user-password",loadComponent:()=>Promise.all([a.e(89),a.e(143)]).then(a.bind(a,8143)).then(g=>g.UserPasswordComponent)},{path:"dashboard/workspace/invite",loadComponent:()=>a.e(752).then(a.bind(a,752)).then(g=>g.WorkspaceInviteComponent)},{path:"dashboard",component:lo,children:[{path:"action/:action",loadComponent:()=>Promise.all([a.e(127),a.e(831)]).then(a.bind(a,831)).then(g=>g.BotComponent),canActivate:[cs]},{path:"",loadComponent:()=>Promise.all([a.e(127),a.e(831)]).then(a.bind(a,831)).then(g=>g.BotComponent),canActivate:[cs]},{path:"new-bot",loadComponent:()=>Promise.all([a.e(592),a.e(21)]).then(a.bind(a,2021)).then(g=>g.NewBotComponent)},{path:"edit-user",loadComponent:()=>Promise.all([a.e(127),a.e(592),a.e(34)]).then(a.bind(a,6034)).then(g=>g.EditUserComponent),canActivate:[cs]},{path:"workspace-settings",loadComponent:()=>Promise.all([a.e(452),a.e(885)]).then(a.bind(a,5885)).then(g=>g.WorkspaceSettingsComponent),canActivate:[cs]},{path:"team",loadComponent:()=>Promise.all([a.e(592),a.e(62)]).then(a.bind(a,8062)).then(g=>g.TeamComponent),canActivate:[cs]},{path:"notifications",loadComponent:()=>a.e(114).then(a.bind(a,9114)).then(g=>g.NotificationsComponent),canActivate:[cs]},{path:"crm/clientes",loadComponent:()=>Promise.all([a.e(163),a.e(209),a.e(795),a.e(551)]).then(a.bind(a,551)).then(g=>g.CrmClientesComponent),canActivate:[cs]},{path:"crm/clientes/:clientId",loadComponent:()=>a.e(795).then(a.bind(a,795)).then(g=>g.ClientDetailComponent),canActivate:[cs]},{path:"crm/pipeline",loadComponent:()=>Promise.all([a.e(163),a.e(209),a.e(795),a.e(551)]).then(a.bind(a,551)).then(g=>g.CrmClientesComponent),canActivate:[cs],data:{view:"tablero"}},{path:"crm/dashboard",loadComponent:()=>Promise.all([a.e(163),a.e(209),a.e(795),a.e(551)]).then(a.bind(a,551)).then(g=>g.CrmClientesComponent),canActivate:[cs],data:{view:"resumen"}},{path:"edit-bot/:id",loadComponent:()=>Promise.all([a.e(163),a.e(267)]).then(a.bind(a,1267)).then(g=>g.EditBotComponent),canActivate:[cs],children:[{path:"",redirectTo:"widget-config",pathMatch:"full"},{path:"chat",component:ca},{path:"widget-config",component:Jo},{path:"dashboard",component:An},{path:"leads",redirectTo:"/dashboard/crm/clientes",pathMatch:"full"},{path:"clients",redirectTo:"/dashboard/crm/clientes",pathMatch:"full"},{path:"live",component:Ql},{path:"datasource",loadComponent:()=>Promise.all([a.e(592),a.e(413)]).then(a.bind(a,4413)).then(g=>g.DatasourceComponent)},{path:"embed",loadComponent:()=>Promise.all([a.e(163),a.e(87)]).then(a.bind(a,8087)).then(g=>g.EmbedComponent)},{path:"config",loadComponent:()=>Promise.all([a.e(163),a.e(209),a.e(452),a.e(671)]).then(a.bind(a,2671)).then(g=>g.ConfigComponent)},{path:"whatsapp",loadComponent:()=>a.e(411).then(a.bind(a,4411)).then(g=>g.WhatsappChannelComponent)},{path:"messenger",loadComponent:()=>Promise.all([a.e(592),a.e(797)]).then(a.bind(a,5797)).then(g=>g.MessengerChannelComponent)},{path:"instagram",loadComponent:()=>
1Promise.all([a.e(163),a.e(592),a.e(482)]).then(a.bind(a,8482)).then(g=>g.InstagramChannelComponent)},{path:"records",loadComponent:()=>a.e(333).then(a.bind(a,333)).then(g=>g.RecordsComponent)}]}]},{path:"chat/:token",component:ca},{path:"subscription",component:Wt,canActivate:[cs]},{path:"subscription/login",loadComponent:()=>Promise.all([a.e(89),a.e(680)]).then(a.bind(a,9680)).then(g=>g.AuthComponent)},{path:"**",redirectTo:"/dashboard"}],{scrollPositionRestoration:"enabled",anchorScrolling:"enabled",onSameUrlNavigation:"reload"}),nn.Bz]}),y})();function Xl(y){return new e.vHH(3e3,!1)}function lr(){return typeof window<"u"&&typeof window.document<"u"}function Ba(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ea(y){switch(y.length){case 0:return new sn.ZN;case 1:return y[0];default:return new sn.ZE(y)}}function Tl(y,g,r,f,C=new Map,j=new Map){const le=[],Ae=[];let Ke=-1,it=null;if(f.forEach(Rt=>{const Zt=Rt.get("offset"),fn=Zt==Ke,ln=fn&&it||new Map;Rt.forEach((On,zn)=>{let Si=zn,ii=On;if("offset"!==zn)switch(Si=g.normalizePropertyName(Si,le),ii){case sn.k1:ii=C.get(zn);break;case sn.l3:ii=j.get(zn);break;default:ii=g.normalizeStyleValue(zn,Si,ii,le)}ln.set(Si,ii)}),fn||Ae.push(ln),it=ln,Ke=Zt}),le.length)throw function ya(y){return new e.vHH(3502,!1)}();return Ae}function Kc(y,g,r,f){switch(g){case"start":y.onStart(()=>f(r&&nc(r,"start",y)));break;case"done":y.onDone(()=>f(r&&nc(r,"done",y)));break;case"destroy":y.onDestroy(()=>f(r&&nc(r,"destroy",y)))}}function nc(y,g,r){const j=Yc(y.element,y.triggerName,y.fromState,y.toState,g||y.phaseName,r.totalTime??y.totalTime,!!r.disabled),le=y._data;return null!=le&&(j._data=le),j}function Yc(y,g,r,f,C="",j=0,le){return{element:y,triggerName:g,fromState:r,toState:f,phaseName:C,totalTime:j,disabled:!!le}}function Lr(y,g,r){let f=y.get(g);return f||y.set(g,f=r),f}function Vu(y){const g=y.indexOf(":");return[y.substring(1,g),y.slice(g+1)]}let Va=(y,g)=>!1,Jc=(y,g,r)=>[],Hu=null;function nl(y){const g=y.parentNode||y.host;return g===Hu?null:g}(Ba()||typeof Element<"u")&&(lr()?(Hu=(()=>document.documentElement)(),Va=(y,g)=>{for(;g;){if(g===y)return!0;g=nl(g)}return!1}):Va=(y,g)=>y.contains(g),Jc=(y,g,r)=>{if(r)return Array.from(y.querySelectorAll(g));const f=y.querySelector(g);return f?[f]:[]});let vo=null,zu=!1;const El=Va,No=Jc;let Xc=(()=>{class y{validateStyleProperty(r){return function Qc(y){vo||(vo=function qc(){return typeof document<"u"?document.body:null}()||{},zu=!!vo.style&&"WebkitAppearance"in vo.style);let g=!0;return vo.style&&!function Bd(y){return"ebkit"==y.substring(1,6)}(y)&&(g=y in vo.style,!g&&zu&&(g="Webkit"+y.charAt(0).toUpperCase()+y.slice(1)in vo.style)),g}(r)}matchesElement(r,f){return!1}containsElement(r,f){return El(r,f)}getParentElement(r){return nl(r)}query(r,f,C){return No(r,f,C)}computeStyle(r,f,C){return C||""}animate(r,f,C,j,le,Ae=[],Ke){return new sn.ZN(C,j)}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})(),eu=(()=>{class y{}return y.NOOP=new Xc,y})();const ic=1e3,nu="ng-enter",sc="ng-leave",il="ng-trigger",rc=".ng-trigger",Dl="ng-animating",sl=".ng-animating";function yo(y){if("number"==typeof y)return y;const g=y.match(/^(-?[\.\d]+)(m?s)/);return!g||g.length<2?0:rl(parseFloat(g[1]),g[2])}function rl(y,g){return"s"===g?y*ic:y}function oc(y,g,r){return y.hasOwnProperty("duration")?y:function Hd(y,g,r){let C,j=0,le="";if("string"==typeof y){const Ae=y.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ae)return g.push(Xl()),{duration:0,delay:0,easing:""};C=rl(parseFloat(Ae[1]),Ae[2]);const Ke=Ae[3];null!=Ke&&(j=rl(parseFloat(Ke),Ae[4]));const it=Ae[5];it&&(le=it)}else C=y;if(!r){let Ae=!1,Ke=g.length;C<0&&(g.push(function Ad(){return new e.vHH(3100,!1)}()),Ae=!0),j<0&&(g.push(function ku(){return new e.vHH(3101,!1)}()),Ae=!0),Ae&&g.splice(Ke,0,Xl())}return{duration:C,delay:j,easing:le}}(y,g,r)}function ol(y,g={}){return Object.keys(y).forEach(r=>{g[r]=y[r]}),g}function iu(y){const g=new Map;
vendor: 53,824 bytes, line 1
1return Object.keys(y).forEach(r=>{g.set(r,y[r])}),g}function na(y,g=new Map,r){if(r)for(let[f,C]of r)g.set(f,C);for(let[f,C]of y)g.set(f,C);return g}function Zu(y,g,r){return r?g+":"+r+";":""}function zd(y){let g="";for(let r=0;r<y.style.length;r++){const f=y.style.item(r);g+=Zu(0,f,y.style.getPropertyValue(f))}for(const r in y.style)y.style.hasOwnProperty(r)&&!r.startsWith("_")&&(g+=Zu(0,uc(r),y.style[r]));y.setAttribute("style",g)}function Kr(y,g,r){y.style&&(g.forEach((f,C)=>{const j=Il(C);r&&!r.has(C)&&r.set(C,y.style[j]),y.style[j]=f}),Ba()&&zd(y))}function ba(y,g){y.style&&(g.forEach((r,f)=>{const C=Il(f);y.style[C]=""}),Ba()&&zd(y))}function al(y){return Array.isArray(y)?1==y.length?y[0]:(0,sn.vP)(y):y}const ac=new RegExp("{{\\s*(.+?)\\s*}}","g");function lc(y){let g=[];if("string"==typeof y){let r;for(;r=ac.exec(y);)g.push(r[1]);ac.lastIndex=0}return g}function ll(y,g,r){const f=y.toString(),C=f.replace(ac,(j,le)=>{let Ae=g[le];return null==Ae&&(r.push(function Ou(y){return new e.vHH(3003,!1)}()),Ae=""),Ae.toString()});return C==f?y:C}function ia(y){const g=[];let r=y.next();for(;!r.done;)g.push(r.value),r=y.next();return g}const cc=/-+([a-z0-9])/g;function Il(y){return y.replace(cc,(...g)=>g[1].toUpperCase())}function uc(y){return y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cr(y,g,r){switch(g.type){case 7:return y.visitTrigger(g,r);case 0:return y.visitState(g,r);case 1:return y.visitTransition(g,r);case 2:return y.visitSequence(g,r);case 3:return y.visitGroup(g,r);case 4:return y.visitAnimate(g,r);case 5:return y.visitKeyframes(g,r);case 6:return y.visitStyle(g,r);case 8:return y.visitReference(g,r);case 9:return y.visitAnimateChild(g,r);case 10:return y.visitAnimateRef(g,r);case 11:return y.visitQuery(g,r);case 12:return y.visitStagger(g,r);default:throw function ec(y){return new e.vHH(3004,!1)}()}}function ou(y,g){return window.getComputedStyle(y)[g]}const sa="*";function cl(y,g){const r=[];return"string"==typeof y?y.split(/\s*,\s*/).forEach(f=>function Ol(y,g,r){if(":"==y[0]){const Ke=function Bo(y,g){switch(y){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,f)=>parseFloat(f)>parseFloat(r);case":decrement":return(r,f)=>parseFloat(f)<parseFloat(r);default:return g.push(function Fu(y){return new e.vHH(3016,!1)}()),"* => *"}}(y,r);if("function"==typeof Ke)return void g.push(Ke);y=Ke}const f=y.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==f||f.length<4)return r.push(function zc(y){return new e.vHH(3015,!1)}()),g;const C=f[1],j=f[2],le=f[3];g.push(Pl(C,le));"<"==j[0]&&!(C==sa&&le==sa)&&g.push(Pl(le,C))}(f,r,g)):r.push(y),r}const bo=new Set(["true","1"]),pc=new Set(["false","0"]);function Pl(y,g){const r=bo.has(y)||pc.has(y),f=bo.has(g)||pc.has(g);return(C,j)=>{let le=y==sa||y==C,Ae=g==sa||g==j;return!le&&r&&"boolean"==typeof C&&(le=C?bo.has(y):pc.has(y)),!Ae&&f&&"boolean"==typeof j&&(Ae=j?bo.has(g):pc.has(g)),le&&Ae}}const Wu=new RegExp("s*:selfs*,?","g");function ul(y,g,r,f){return new Ku(y).build(g,r,f)}class Ku{constructor(g){this._driver=g}build(g,r,f){const C=new Vo(r);return this._resetContextStyleTimingState(C),cr(this,al(g),C)}_resetContextStyleTimingState(g){g.currentQuerySelector="",g.collectedStyles=new Map,g.collectedStyles.set("",new Map),g.currentTime=0}visitTrigger(g,r){let f=r.queryCount=0,C=r.depCount=0;const j=[],le=[];return"@"==g.name.charAt(0)&&r.errors.push(function Dh(){return new e.vHH(3006,!1)}()),g.definitions.forEach(Ae=>{if(this._resetContextStyleTimingState(r),0==Ae.type){const Ke=Ae,it=Ke.name;it.toString().split(/\s*,\s*/).forEach(Rt=>{Ke.name=Rt,j.push(this.visitState(Ke,r))}),Ke.name=it}else if(1==Ae.type){const Ke=this.visitTransition(Ae,r);f+=Ke.queryCount,C+=Ke.depCount,le.push(Ke)}else r.errors.push(function Od(){return new e.vHH(3007,!1)}())}),{type:7,name:g.name,states:j,transitions:le,queryCount:f,depCount:C,options:null}}visitState(g,r){const f=this.visitStyle(g.styles,r),C=g.options&&g.options.params||null;if(f.containsDynamicStyles){const j=new Set,le=C||{};f.styles.forEach(Ae=>{Ae instanceof Map&&Ae.forEach(Ke=>{lc(Ke).forEach(it=>{le.hasOwnProperty(it)||j.add(it)})})}),j.size&&(ia(j.values()),r.errors.push(function Hc(y,g){return new e.vHH(3008,!1)}()))}return{type:0,name:g.name,style:f,options:C?{params:C}:null}}visitTransition(g,r){r.queryCount=0,r.depCount=0;const f=cr(this,al(g.animation),r);return{type:1,matchers:cl(g.expr,r.errors),animation:f,queryCount:r.queryCount,depCount:r.depCount,options:Ca(g.options)}}visitSequence(g,r){return{type:2,steps:g.steps.map(f=>cr(this,f,r)),options:Ca(g.options)}}visitGroup(g,r){const f=r.currentTime;let C=0;const j=g.steps.map(le=>{r.currentTime=f;const Ae=cr(this,le,r);return C=Math.max(C,r.currentTime),Ae});return r.currentTime=C,{type:3,steps:j,options:Ca(g.options)}}visitAnimate(g,r){const f=function jd(y,g){if(y.hasOwnProperty("duration"))return y;if("number"==typeof y)return fc(oc(y,g).duration,0,"");const r=y;if(r.split(/\s+/).some(j=>"{"==j.charAt(0)&&"{"==j.charAt(1))){const j=fc(0,0,"");return j.dynamic=!0,j.strValue=r,j}const C=oc(r,g);return fc(C.duration,C.delay,C.easing)}(g.timings,r.errors);r.currentAnimateTimings=f;let C,j=g.styles?g.styles:(0,sn.oB)({});if(5==j.type)C=this.visitKeyframes(j,r);else{let le=g.styles,Ae=!1;if(!le){Ae=!0;const it={};f.easing&&(it.easing=f.easing),le=(0,sn.oB)(it)}r.currentTime+=f.duration+f.delay;const Ke=this.visitStyle(le,r);Ke.isEmptyStep=Ae,C=Ke}return r.currentAnimateTimings=null,{type:4,timings:f,style:C,options:null}}visitStyle(g,r){const f=this._makeStyleAst(g,r);return this._validateStyleAst(f,r),f}_makeStyleAst(g,r){const f=[],C=Array.isArray(g.styles)?g.styles:[g.styles];for(let Ae of C)"string"==typeof Ae?Ae===sn.l3?f.push(Ae):r.errors.push(new e.vHH(3002,!1)):f.push(iu(Ae));let j=!1,le=null;return f.forEach(Ae=>{if(Ae instanceof Map&&(Ae.has("easing")&&(le=Ae.get("easing"),Ae.delete("easing")),!j))for(let Ke of Ae.values())if(Ke.toString().indexOf("{{")>=0){j=!0;break}}),{type:6,styles:f,easing:le,offset:g.offset,containsDynamicStyles:j,options:null}}_validateStyleAst(g,r){const f=r.currentAnimateTimings;let C=r.currentTime,j=r.currentTime;f&&j>0&&(j-=f.duration+f.delay),g.styles.forEach(le=>{"string"!=typeof le&&le.forEach((Ae,Ke)=>{const it=r.collectedStyles.get(r.currentQuerySelector),Rt=it.get(Ke);let Zt=!0;Rt&&(j!=C&&j>=Rt.startTime&&C<=Rt.endTime&&(r.errors.push(function Ah(y,g,r,f,C){return new e.vHH(3010,!1)}()),Zt=!1),j=Rt.startTime),Zt&&it.set(Ke,{startTime:j,endTime:C}),r.options&&function ju(y,g,r){const f=g.params||{},C=lc(y);C.length&&C.forEach(j=>{f.hasOwnProperty(j)||r.push(function kd(y){return new e.vHH(3001,!1)}())})}(Ae,r.options,r.errors)})})}visitKeyframes(g,r){const f={type:5,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(function Pd(){return new e.vHH(3011,!1)}()),f;let j=0;const le=[];let Ae=!1,Ke=!1,it=0;const Rt=g.steps.map(ii=>{const Fi=this._makeStyleAst(ii,r);let Zs=null!=Fi.offset?Fi.offset:function Ju(y){if("string"==typeof y)return null;let g=null;if(Array.isArray(y))y.forEach(r=>{if(r instanceof Map&&r.has("offset")){const f=r;g=parseFloat(f.get("offset")),f.delete("offset")}});else if(y instanceof Map&&y.has("offset")){const r=y;g=parseFloat(r.get("offset")),r.delete("offset")}return g}(Fi.styles),ss=0;return null!=Zs&&(j++,ss=Fi.offset=Zs),Ke=Ke||ss<0||ss>1,Ae=Ae||ss<it,it=ss,le.push(ss),Fi});Ke&&r.errors.push(function Rd(){return new e.vHH(3012,!1)}()),Ae&&r.errors.push(function Pu(){return new e.vHH(3200,!1)}());const Zt=g.steps.length;let fn=0;j>0&&j<Zt?r.errors.push(function Ru(){return new e.vHH(3202,!1)}()):0==j&&(fn=1/(Zt-1));const ln=Zt-1,On=r.currentTime,zn=r.currentAnimateTimings,Si=zn.duration;return Rt.forEach((ii,Fi)=>{const Zs=fn>0?Fi==ln?1:fn*Fi:le[Fi],ss=Zs*Si;r.currentTime=On+zn.delay+ss,zn.duration=ss,this._validateStyleAst(ii,r),ii.offset=Zs,f.styles.push(ii)}),f}visitReference(g,r){return{type:8,animation:cr(this,al(g.animation),r),options:Ca(g.options)}}visitAnimateChild(g,r){return r.depCount++,{type:9,options:Ca(g.options)}}visitAnimateRef(g,r){return{type:10,animation:this.visitReference(g.animation,r),options:Ca(g.options)}}visitQuery(g,r){const f=r.currentQuerySelector,C=g.options||{};r.queryCount++,r.currentQuery=g;const[j,le]=function Yu(y){const g=!!y.split(/\s*,\s*/).find(r=>":self"==r);return g&&(y=y.replace(Wu,"")),y=y.replace(/@\*/g,rc).replace(/@\w+/g,r=>rc+"-"+r.slice(1)).replace(/:animating/g,sl),[y,g]}(g.selector);r.currentQuerySelector=f.length?f+" "+j:j,Lr(r.collectedStyles,r.currentQuerySelector,new Map);const Ae=cr(this,al(g.animation),r);return r.currentQuery=null,r.currentQuerySelector=f,{type:11,selector:j,limit:C.limit||0,optional:!!C.optional,includeSelf:le,animation:Ae,originalSelector:g.selector,options:Ca(g.options)}}visitStagger(g,r){r.currentQuery||r.errors.push(function tc(){return new e.vHH(3013,!1)}());const f="full"===g.timings?{duration:0,delay:0,easing:"full"}:oc(g.timings,r.errors,!0);return{type:12,animation:cr(this,al(g.animation),r),timings:f,options:null}}}class Vo{constructor(g){this.errors=g,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ca(y){return y?(y=ol(y)).params&&(y.params=function lu(y){return y?ol(y):null}(y.params)):y={},y}function fc(y,g,r){return{duration:y,delay:g,easing:r}}function cu(y,g,r,f,C,j,le=null,Ae=!1){return{type:1,element:y,keyframes:g,preStyleProps:r,postStyleProps:f,duration:C,delay:j,totalTime:C+j,easing:le,subTimeline:Ae}}class so{constructor(){this._map=new Map}get(g){return this._map.get(g)||[]}append(g,r){let f=this._map.get(g);f||this._map.set(g,f=[]),f.push(...r)}has(g){return this._map.has(g)}clear(){this._map.clear()}}const Wd=new RegExp(":enter","g"),Kd=new RegExp(":leave","g");function gc(y,g,r,f,C,j=new Map,le=new Map,Ae,Ke,it=[]){return(new _c).buildKeyframes(y,g,r,f,C,j,le,Ae,Ke,it)}class _c{buildKeyframes(g,r,f,C,j,le,Ae,Ke,it,Rt=[]){it=it||new so;const Zt=new vc(g,r,it,C,j,Rt,[]);Zt.options=Ke;const fn=Ke.delay?yo(Ke.delay):0;Zt.currentTimeline.delayNextStep(fn),Zt.currentTimeline.setStyles([le],null,Zt.errors,Ke),cr(this,f,Zt);const ln=Zt.timelines.filter(On=>On.containsAnimation());if(ln.length&&Ae.size){let On;for(let zn=ln.length-1;zn>=0;zn--){const Si=ln[zn];if(Si.element===r){On=Si;break}}On&&!On.allowOnlyTimelineStyles()&&On.setStyles([Ae],null,Zt.errors,Ke)}return ln.length?ln.map(On=>On.buildKeyframes()):[cu(r,[],[],[],0,fn,"",!1)]}visitTrigger(g,r){}visitState(g,r){}visitTransition(g,r){}visitAnimateChild(g,r){const f=r.subInstructions.get(r.element);if(f){const C=r.createSubContext(g.options),j=r.currentTimeline.currentTime,le=this._visitSubInstructions(f,C,C.options);j!=le&&r.transformIntoNewTimeline(le)}r.previousNode=g}visitAnimateRef(g,r){const f=r.createSubContext(g.options);f.transformIntoNewTimeline(),this._applyAnimationRefDelays([g.options,g.animation.options],r,f),this.visitReference(g.animation,f),r.transformIntoNewTimeline(f.currentTimeline.currentTime),r.previousNode=g}_applyAnimationRefDelays(g,r,f){for(const C of g){const j=C?.delay;if(j){const le="number"==typeof j?j:yo(ll(j,C?.params??{},r.errors));f.delayNextStep(le)}}}_visitSubInstructions(g,r,f){let j=r.currentTimeline.currentTime;const le=null!=f.duration?yo(f.duration):null,Ae=null!=f.delay?yo(f.delay):null;return 0!==le&&g.forEach(Ke=>{const it=r.appendInstructionToTimeline(Ke,le,Ae);j=Math.max(j,it.duration+it.delay)}),j}visitReference(g,r){r.updateOptions(g.options,!0),cr(this,g.animation,r),r.previousNode=g}visitSequence(g,r){const f=r.subContextCount;let C=r;const j=g.options;if(j&&(j.params||j.delay)&&(C=r.createSubContext(j),C.transformIntoNewTimeline(),null!=j.delay)){6==C.previousNode.type&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=za);const le=yo(j.delay);C.delayNextStep(le)}g.steps.length&&(g.steps.forEach(le=>cr(this,le,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>f&&C.transformIntoNewTimeline()),r.previousNode=g}visitGroup(g,r){const f=[];let C=r.currentTimeline.currentTime;const j=g.options&&g.options.delay?yo(g.options.delay):0;g.steps.forEach(le=>{const Ae=r.createSubContext(g.options);j&&Ae.delayNextStep(j),cr(this,le,Ae),C=Math.max(C,Ae.currentTimeline.currentTime),f.push(Ae.currentTimeline)}),f.forEach(le=>r.currentTimeline.mergeTimelineCollectedStyles(le)),r.transformIntoNewTimeline(C),r.previousNode=g}_visitTiming(g,r){if(g.dynamic){const f=g.strValue;return oc(r.params?ll(f,r.params,r.errors):f,r.errors)}return{duration:g.duration,delay:g.delay,easing:g.easing}}visitAnimate(g,r){const f=r.currentAnimateTimings=this._visitTiming(g.timings,r),C=r.currentTimeline;f.delay&&(r.incrementTime(f.delay),C.snapshotCurrentStyles());const j=g.style;5==j.type?this.visitKeyframes(j,r):(r.incrementTime(f.duration),this.visitStyle(j,r),C.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=g}visitStyle(g,r){const f=r.currentTimeline,C=r.currentAnimateTimings;!C&&f.hasCurrentStyleProperties()&&f.forwardFrame();const j=C&&C.easing||g.easing;g.isEmptyStep?f.applyEmptyStep(j):f.setStyles(g.styles,j,r.errors,r.options),r.previousNode=g}visitKeyframes(g,r){const f=r.currentAnimateTimings,C=r.currentTimeline.duration,j=f.duration,Ae=r.createSubContext().currentTimeline;Ae.easing=f.easing,g.styles.forEach(Ke=>{Ae.forwardTime((Ke.offset||0)*j),Ae.setStyles(Ke.styles,Ke.easing,r.errors,r.options),Ae.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(Ae),r.transformIntoNewTimeline(C+j),r.previousNode=g}visitQuery(g,r){const f=r.currentTimeline.currentTime,C=g.options||{},j=C.delay?yo(C.delay):0;j&&(6===r.previousNode.type||0==f&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=za);let le=f;const Ae=r.invokeQuery(g.selector,g.originalSelector,g.limit,g.includeSelf,!!C.optional,r.errors);r.currentQueryTotal=Ae.length;let Ke=null;Ae.forEach((it,Rt)=>{r.currentQueryIndex=Rt;const Zt=r.createSubContext(g.options,it);j&&Zt.delayNextStep(j),it===r.element&&(Ke=Zt.currentTimeline),cr(this,g.animation,Zt),Zt.currentTimeline.applyStylesToKeyframe(),le=Math.max(le,Zt.currentTimeline.currentTime)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(le),Ke&&(r.currentTimeline.mergeTimelineCollectedStyles(Ke),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=g}visitStagger(g,r){const f=r.parentContext,C=r.currentTimeline,j=g.timings,le=Math.abs(j.duration),Ae=le*(r.currentQueryTotal-1);let Ke=le*r.currentQueryIndex;switch(j.duration<0?"reverse":j.easing){case"reverse":Ke=Ae-Ke;break;case"full":Ke=f.currentStaggerTime}const Rt=r.currentTimeline;Ke&&Rt.delayNextStep(Ke);const Zt=Rt.currentTime;cr(this,g.animation,r),r.previousNode=g,f.currentStaggerTime=C.currentTime-Zt+(C.startTime-f.currentTimeline.startTime)}}const za={};class vc{constructor(g,r,f,C,j,le,Ae,Ke){this._driver=g,this.element=r,this.subInstructions=f,this._enterClassName=C,this._leaveClassName=j,this.errors=le,this.timelines=Ae,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=za,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new yc(this._driver,r,0),Ae.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(g,r){if(!g)return;const f=g;let C=this.options;null!=f.duration&&(C.duration=yo(f.duration)),null!=f.delay&&(C.delay=yo(f.delay));const j=f.params;if(j){let le=C.params;le||(le=this.options.params={}),Object.keys(j).forEach(Ae=>{(!r||!le.hasOwnProperty(Ae))&&(le[Ae]=ll(j[Ae],le,this.errors))})}}_copyOptions(){const g={};if(this.options){const r=this.options.params;if(r){const f=g.params={};Object.keys(r).forEach(C=>{f[C]=r[C]})}}return g}createSubContext(g=null,r,f){const C=r||this.element,j=new vc(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,f||0));return j.previousNode=this.previousNode,j.currentAnimateTimings=this.currentAnimateTimings,j.options=this._copyOptions(),j.updateOptions(g),j.currentQueryIndex=this.currentQueryIndex,j.currentQueryTotal=this.currentQueryTotal,j.parentContext=this,this.subContextCount++,j}transformIntoNewTimeline(g){return this.previousNode=za,this.currentTimeline=this.currentTimeline.fork(this.element,g),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(g,r,f){const C={duration:r??g.duration,delay:this.currentTimeline.currentTime+(f??0)+g.delay,easing:""},j=new uu(this._driver,g.element,g.keyframes,g.preStyleProps,g.postStyleProps,C,g.stretchStartingKeyframe);return this.timelines.push(j),C}incrementTime(g){this.currentTimeline.forwardTime(this.currentTimeline.duration+g)}delayNextStep(g){g>0&&this.currentTimeline.delayNextStep(g)}invokeQuery(g,r,f,C,j,le){let Ae=[];if(C&&Ae.push(this.element),g.length>0){g=(g=g.replace(Wd,"."+this._enterClassName)).replace(Kd,"."+this._leaveClassName);let it=this._driver.query(this.element,g,1!=f);0!==f&&(it=f<0?it.slice(it.length+f,it.length):it.slice(0,f)),Ae.push(...it)}return!j&&0==Ae.length&&le.push(function Ml(y){return new e.vHH(3014,!1)}()),Ae}}class yc{constructor(g,r,f,C){this._driver=g,this.element=r,this.startTime=f,this._elementTimelineStylesLookup=C,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,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(g){const r=1===this._keyframes.size&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+g),r&&this.snapshotCurrentStyles()):this.startTime+=g}fork(g,r){return this.applyStylesToKeyframe(),new yc(this._driver,g,r||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(g){this.applyStylesToKeyframe(),this.duration=g,this._loadKeyframe()}_updateStyle(g,r){this._localTimelineStyles.set(g,r),this._globalTimelineStyles.set(g,r),this._styleSummary.set(g,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(g){g&&this._previousKeyframe.set("easing",g);for(let[r,f]of this._globalTimelineStyles)this._backFill.set(r,f||sn.l3),this._currentKeyframe.set(r,sn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(g,r,f,C){r&&this._previousKeyframe.set("easing",r);const j=C&&C.params||{},le=function Cc(y,g){const r=new Map;let f;return y.forEach(C=>{if("*"===C){f=f||g.keys();for(let j of f)r.set(j,sn.l3)}else na(C,r)}),r}(g,this._globalTimelineStyles);for(let[Ae,Ke]of le){const it=ll(Ke,j,f);this._pendingStyles.set(Ae,it),this._localTimelineStyles.has(Ae)||this._backFill.set(Ae,this._globalTimelineStyles.get(Ae)??sn.l3),this._updateStyle(Ae,it)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((g,r)=>{this._currentKeyframe.set(r,g)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((g,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,g)}))}snapshotCurrentStyles(){for(let[g,r]of this._localTimelineStyles)this._pendingStyles.set(g,r),this._updateStyle(g,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const g=[];for(let r in this._currentKeyframe)g.push(r);return g}mergeTimelineCollectedStyles(g){g._styleSummary.forEach((r,f)=>{const C=this._styleSummary.get(f);(!C||r.time>C.time)&&this._updateStyle(f,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const g=new Set,r=new Set,f=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((Ae,Ke)=>{const it=na(Ae,new Map,this._backFill);it.forEach((Rt,Zt)=>{Rt===sn.k1?g.add(Zt):Rt===sn.l3&&r.add(Zt)}),f||it.set("offset",Ke/this.duration),C.push(it)});const j=g.size?ia(g.values()):[],le=r.size?ia(r.values()):[];if(f){const Ae=C[0],Ke=new Map(Ae);Ae.set("offset",0),Ke.set("offset",1),C=[Ae,Ke]}return cu(this.element,C,j,le,this.duration,this.startTime,this.easing,!1)}}class uu extends yc{constructor(g,r,f,C,j,le,Ae=!1){super(g,r,le.delay),this.keyframes=f,this.preStyleProps=C,this.postStyleProps=j,this._stretchStartingKeyframe=Ae,this.timings={duration:le.duration,delay:le.delay,easing:le.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let g=this.keyframes,{delay:r,duration:f,easing:C}=this.timings;if(this._stretchStartingKeyframe&&r){const j=[],le=f+r,Ae=r/le,Ke=na(g[0]);Ke.set("offset",0),j.push(Ke);const it=na(g[0]);it.set("offset",bc(Ae)),j.push(it);const Rt=g.length-1;for(let Zt=1;Zt<=Rt;Zt++){let fn=na(g[Zt]);const ln=fn.get("offset");fn.set("offset",bc((r+ln*f)/le)),j.push(fn)}f=le,r=0,C="",g=j}return cu(this.element,g,this.preStyleProps,this.postStyleProps,f,r,C,!0)}}function bc(y,g=3){const r=Math.pow(10,g-1);return Math.round(y*r)/r}class Ua{}const Qu=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 qu extends Ua{normalizePropertyName(g,r){return Il(g)}normalizeStyleValue(g,r,f,C){let j="";const le=f.toString().trim();if(Qu.has(r)&&0!==f&&"0"!==f)if("number"==typeof f)j="px";else{const Ae=f.match(/^[+-]?[\d\.]+([a-z]*)$/);Ae&&0==Ae[1].length&&C.push(function Na(y,g){return new e.vHH(3005,!1)}())}return le+j}}function Jd(y,g,r,f,C,j,le,Ae,Ke,it,Rt,Zt,fn){return{type:0,element:y,triggerName:g,isRemovalTransition:C,fromState:r,fromStyles:j,toState:f,toStyles:le,timelines:Ae,queriedElements:Ke,preStyleProps:it,postStyleProps:Rt,totalTime:Zt,errors:fn}}const Xu={};class Qd{constructor(g,r,f){this._triggerName=g,this.ast=r,this._stateStyles=f}match(g,r,f,C){return function hu(y,g,r,f,C){return y.some(j=>j(g,r,f,C))}(this.ast.matchers,g,r,f,C)}buildStyles(g,r,f){let C=this._stateStyles.get("*");return void 0!==g&&(C=this._stateStyles.get(g?.toString())||C),C?C.buildStyles(r,f):new Map}build(g,r,f,C,j,le,Ae,Ke,it,Rt){const Zt=[],fn=this.ast.options&&this.ast.options.params||Xu,On=this.buildStyles(f,Ae&&Ae.params||Xu,Zt),zn=Ke&&Ke.params||Xu,Si=this.buildStyles(C,zn,Zt),ii=new Set,Fi=new Map,Zs=new Map,ss="void"===C,Mr={params:kh(zn,fn),delay:this.ast.options?.delay},Ks=Rt?[]:gc(g,r,this.ast.animation,j,le,On,Si,Mr,it,Zt);let Ys=0;if(Ks.forEach(ja=>{Ys=Math.max(ja.duration+ja.delay,Ys)}),Zt.length)return Jd(r,this._triggerName,f,C,ss,On,Si,[],[],Fi,Zs,Ys,Zt);Ks.forEach(ja=>{const yr=ja.element,od=Lr(Fi,yr,new Set);ja.preStyleProps.forEach(jl=>od.add(jl));const yu=Lr(Zs,yr,new Set);ja.postStyleProps.forEach(jl=>yu.add(jl)),yr!==r&&ii.add(yr)});const Ho=ia(ii.values());return Jd(r,this._triggerName,f,C,ss,On,Si,Ks,Ho,Fi,Zs,Ys)}}function kh(y,g){const r=ol(g);for(const f in y)y.hasOwnProperty(f)&&null!=y[f]&&(r[f]=y[f]);return r}class xc{constructor(g,r,f){this.styles=g,this.defaultParams=r,this.normalizer=f}buildStyles(g,r){const f=new Map,C=ol(this.defaultParams);return Object.keys(g).forEach(j=>{const le=g[j];null!==le&&(C[j]=le)}),this.styles.styles.forEach(j=>{"string"!=typeof j&&j.forEach((le,Ae)=>{le&&(le=ll(le,C,r));const Ke=this.normalizer.normalizePropertyName(Ae,r);le=this.normalizer.normalizeStyleValue(Ae,Ke,le,r),f.set(Ae,le)})}),f}}class Nr{constructor(g,r,f){this.name=g,this.ast=r,this._normalizer=f,this.transitionFactories=[],this.states=new Map,r.states.forEach(C=>{this.states.set(C.name,new xc(C.style,C.options&&C.options.params||{},f))}),pu(this.states,"true","1"),pu(this.states,"false","0"),r.transitions.forEach(C=>{this.transitionFactories.push(new Qd(g,C,this.states))}),this.fallbackTransition=function qd(y,g,r){return new Qd(y,{type:1,animation:{type:2,steps:[],options:null},matchers:[(le,Ae)=>!0],options:null,queryCount:0,depCount:0},g)}(g,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(g,r,f,C){return this.transitionFactories.find(le=>le.match(g,r,f,C))||null}matchStyles(g,r,f){return this.fallbackTransition.buildStyles(g,r,f)}}function pu(y,g,r){y.has(g)?y.has(r)||y.set(r,y.get(g)):y.has(r)&&y.set(g,y.get(r))}const ed=new so;class td{constructor(g,r,f){this.bodyNode=g,this._driver=r,this._normalizer=f,this._animations=new Map,this._playersById=new Map,this.players=[]}register(g,r){const f=[],C=[],j=ul(this._driver,r,f,C);if(f.length)throw function $c(y){return new e.vHH(3503,!1)}();this._animations.set(g,j)}_buildPlayer(g,r,f){const C=g.element,j=Tl(0,this._normalizer,0,g.keyframes,r,f);return this._driver.animate(C,j,g.duration,g.delay,g.easing,[],!0)}create(g,r,f={}){const C=[],j=this._animations.get(g);let le;const Ae=new Map;if(j?(le=gc(this._driver,r,j,nu,sc,new Map,new Map,f,ed,C),le.forEach(Rt=>{const Zt=Lr(Ae,Rt.element,new Map);Rt.postStyleProps.forEach(fn=>Zt.set(fn,null))})):(C.push(function Zc(){return new e.vHH(3300,!1)}()),le=[]),C.length)throw function Fd(y){return new e.vHH(3504,!1)}();Ae.forEach((Rt,Zt)=>{Rt.forEach((fn,ln)=>{Rt.set(ln,this._driver.computeStyle(Zt,ln,sn.l3))})});const it=ea(le.map(Rt=>{const Zt=Ae.get(Rt.element);return this._buildPlayer(Rt,new Map,Zt)}));return this._playersById.set(g,it),it.onDestroy(()=>this.destroy(g)),this.players.push(it),it}destroy(g){const r=this._getPlayer(g);r.destroy(),this._playersById.delete(g);const f=this.players.indexOf(r);f>=0&&this.players.splice(f,1)}_getPlayer(g){const r=this._playersById.get(g);if(!r)throw function tl(y){return new e.vHH(3301,!1)}();return r}listen(g,r,f,C){const j=Yc(r,"","","");return Kc(this._getPlayer(g),f,j,C),()=>{}}command(g,r,f,C){if("register"==f)return void this.register(g,C[0]);if("create"==f)return void this.create(g,r,C[0]||{});const j=this._getPlayer(g);switch(f){case"play":j.play();break;case"pause":j.pause();break;case"reset":j.reset();break;case"restart":j.restart();break;case"finish":j.finish();break;case"init":j.init();break;case"setPosition":j.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(g)}}}const Ll="ng-animate-queued",Nl="ng-animate-disabled",mu=[],wc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},h="__ng_removed";class d{get params(){return this.options.params}constructor(g,r=""){this.namespaceId=r;const f=g&&g.hasOwnProperty("value");if(this.value=function U(y){return y??null}(f?g.value:g),f){const j=ol(g);delete j.value,this.options=j}else this.options={};this.options.params||(this.options.params={})}absorbOptions(g){const r=g.params;if(r){const f=this.options.params;Object.keys(r).forEach(C=>{null==f[C]&&(f[C]=r[C])})}}}const c="void",p=new d(c);class _{constructor(g,r,f){this.id=g,this.hostElement=r,this._engine=f,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+g,ot(r,this._hostClassName)}listen(g,r,f,C){if(!this._triggers.has(r))throw function jc(y,g){return new e.vHH(3302,!1)}();if(null==f||0==f.length)throw function Nu(y){return new e.vHH(3303,!1)}();if(!function Me(y){return"start"==y||"done"==y}(f))throw function Ld(y,g){return new e.vHH(3400,!1)}();const j=Lr(this._elementListeners,g,[]),le={name:r,phase:f,callback:C};j.push(le);const Ae=Lr(this._engine.statesByElement,g,new Map);return Ae.has(r)||(ot(g,il),ot(g,il+"-"+r),Ae.set(r,p)),()=>{this._engine.afterFlush(()=>{const Ke=j.indexOf(le);Ke>=0&&j.splice(Ke,1),this._triggers.has(r)||Ae.delete(r)})}}register(g,r){return!this._triggers.has(g)&&(this._triggers.set(g,r),!0)}_getTrigger(g){const r=this._triggers.get(g);if(!r)throw function Nd(y){return new e.vHH(3401,!1)}();return r}trigger(g,r,f,C=!0){const j=this._getTrigger(r),le=new T(this.id,r,g);let Ae=this._engine.statesByElement.get(g);Ae||(ot(g,il),ot(g,il+"-"+r),this._engine.statesByElement.set(g,Ae=new Map));let Ke=Ae.get(r);const it=new d(f,this.id);if(!(f&&f.hasOwnProperty("value"))&&Ke&&it.absorbOptions(Ke.options),Ae.set(r,it),Ke||(Ke=p),it.value!==c&&Ke.value===it.value){if(!function Cn(y,g){const r=Object.keys(y),f=Object.keys(g);if(r.length!=f.length)return!1;for(let C=0;C<r.length;C++){const j=r[C];if(!g.hasOwnProperty(j)||y[j]!==g[j])return!1}return!0}(Ke.params,it.params)){const zn=[],Si=j.matchStyles(Ke.value,Ke.params,zn),ii=j.matchStyles(it.value,it.params,zn);zn.length?this._engine.reportError(zn):this._engine.afterFlush(()=>{ba(g,Si),Kr(g,ii)})}return}const fn=Lr(this._engine.playersByElement,g,[]);fn.forEach(zn=>{zn.namespaceId==this.id&&zn.triggerName==r&&zn.queued&&zn.destroy()});let ln=j.matchTransition(Ke.value,it.value,g,it.params),On=!1;if(!ln){if(!C)return;ln=j.fallbackTransition,On=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:g,triggerName:r,transition:ln,fromState:Ke,toState:it,player:le,isFallbackTransition:On}),On||(ot(g,Ll),le.onStart(()=>{Et(g,Ll)})),le.onDone(()=>{let zn=this.players.indexOf(le);zn>=0&&this.players.splice(zn,1);const Si=this._engine.playersByElement.get(g);if(Si){let ii=Si.indexOf(le);ii>=0&&Si.splice(ii,1)}}),this.players.push(le),fn.push(le),le}deregister(g){this._triggers.delete(g),this._engine.statesByElement.forEach(r=>r.delete(g)),this._elementListeners.forEach((r,f)=>{this._elementListeners.set(f,r.filter(C=>C.name!=g))})}clearElementCache(g){this._engine.statesByElement.delete(g),this._elementListeners.delete(g);const r=this._engine.playersByElement.get(g);r&&(r.forEach(f=>f.destroy()),this._engine.playersByElement.delete(g))}_signalRemovalForInnerTriggers(g,r){const f=this._engine.driver.query(g,rc,!0);f.forEach(C=>{if(C[h])return;const j=this._engine.fetchNamespacesByElement(C);j.size?j.forEach(le=>le.triggerLeaveAnimation(C,r,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>f.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(g,r,f,C){const j=this._engine.statesByElement.get(g),le=new Map;if(j){const Ae=[];if(j.forEach((Ke,it)=>{if(le.set(it,Ke.value),this._triggers.has(it)){const Rt=this.trigger(g,it,c,C);Rt&&Ae.push(Rt)}}),Ae.length)return this._engine.markElementAsRemoved(this.id,g,!0,r,le),f&&ea(Ae).onDone(()=>this._engine.processLeaveNode(g)),!0}return!1}prepareLeaveAnimationListeners(g){const r=this._elementListeners.get(g),f=this._engine.statesByElement.get(g);if(r&&f){const C=new Set;r.forEach(j=>{const le=j.name;if(C.has(le))return;C.add(le);const Ke=this._triggers.get(le).fallbackTransition,it=f.get(le)||p,Rt=new d(c),Zt=new T(this.id,le,g);this._engine.totalQueuedPlayers++,this._queue.push({element:g,triggerName:le,transition:Ke,fromState:it,toState:Rt,player:Zt,isFallbackTransition:!0})})}}removeNode(g,r){const f=this._engine;if(g.childElementCount&&this._signalRemovalForInnerTriggers(g,r),this.triggerLeaveAnimation(g,r,!0))return;let C=!1;if(f.totalAnimations){const j=f.players.length?f.playersByQueriedElement.get(g):[];if(j&&j.length)C=!0;else{let le=g;for(;le=le.parentNode;)if(f.statesByElement.get(le)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(g),C)f.markElementAsRemoved(this.id,g,!1,r);else{const j=g[h];(!j||j===wc)&&(f.afterFlush(()=>this.clearElementCache(g)),f.destroyInnerAnimations(g),f._onRemovalComplete(g,r))}}insertNode(g,r){ot(g,this._hostClassName)}drainQueuedTransitions(g){const r=[];return this._queue.forEach(f=>{const C=f.player;if(C.destroyed)return;const j=f.element,le=this._elementListeners.get(j);le&&le.forEach(Ae=>{if(Ae.name==f.triggerName){const Ke=Yc(j,f.triggerName,f.fromState.value,f.toState.value);Ke._data=g,Kc(f.player,Ae.phase,Ke,Ae.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):r.push(f)}),this._queue=[],r.sort((f,C)=>{const j=f.transition.ast.depCount,le=C.transition.ast.depCount;return 0==j||0==le?j-le:this._engine.driver.containsElement(f.element,C.element)?1:-1})}destroy(g){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,g)}elementContainsData(g){let r=!1;return this._elementListeners.has(g)&&(r=!0),r=!!this._queue.find(f=>f.element===g)||r,r}}class b{_onRemovalComplete(g,r){this.onRemovalComplete(g,r)}constructor(g,r,f){this.bodyNode=g,this.driver=r,this._normalizer=f,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(C,j)=>{}}get queuedPlayers(){const g=[];return this._namespaceList.forEach(r=>{r.players.forEach(f=>{f.queued&&g.push(f)})}),g}createNamespace(g,r){const f=new _(g,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(f,r):(this.newHostElements.set(r,f),this.collectEnterElement(r)),this._namespaceLookup[g]=f}_balanceNamespaceList(g,r){const f=this._namespaceList,C=this.namespacesByHostElement;if(f.length-1>=0){let le=!1,Ae=this.driver.getParentElement(r);for(;Ae;){const Ke=C.get(Ae);if(Ke){const it=f.indexOf(Ke);f.splice(it+1,0,g),le=!0;break}Ae=this.driver.getParentElement(Ae)}le||f.unshift(g)}else f.push(g);return C.set(r,g),g}register(g,r){let f=this._namespaceLookup[g];return f||(f=this.createNamespace(g,r)),f}registerTrigger(g,r,f){let C=this._namespaceLookup[g];C&&C.register(r,f)&&this.totalAnimations++}destroy(g,r){if(!g)return;const f=this._fetchNamespace(g);this.afterFlush(()=>{this.namespacesByHostElement.delete(f.hostElement),delete this._namespaceLookup[g];const C=this._namespaceList.indexOf(f);C>=0&&this._namespaceList.splice(C,1)}),this.afterFlushAnimationsDone(()=>f.destroy(r))}_fetchNamespace(g){return this._namespaceLookup[g]}fetchNamespacesByElement(g){const r=new Set,f=this.statesByElement.get(g);if(f)for(let C of f.values())if(C.namespaceId){const j=this._fetchNamespace(C.namespaceId);j&&r.add(j)}return r}trigger(g,r,f,C){if(ie(r)){const j=this._fetchNamespace(g);if(j)return j.trigger(r,f,C),!0}return!1}insertNode(g,r,f,C){if(!ie(r))return;const j=r[h];if(j&&j.setForRemoval){j.setForRemoval=!1,j.setForMove=!0;const le=this.collectedLeaveElements.indexOf(r);le>=0&&this.collectedLeaveElements.splice(le,1)}if(g){const le=this._fetchNamespace(g);le&&le.insertNode(r,f)}C&&this.collectEnterElement(r)}collectEnterElement(g){this.collectedEnterElements.push(g)}markElementAsDisabled(g,r){r?this.disabledNodes.has(g)||(this.disabledNodes.add(g),ot(g,Nl)):this.disabledNodes.has(g)&&(this.disabledNodes.delete(g),Et(g,Nl))}removeNode(g,r,f,C){if(ie(r)){const j=g?this._fetchNamespace(g):null;if(j?j.removeNode(r,C):this.markElementAsRemoved(g,r,!1,C),f){const le=this.namespacesByHostElement.get(r);le&&le.id!==g&&le.removeNode(r,C)}}else this._onRemovalComplete(r,C)}markElementAsRemoved(g,r,f,C,j){this.collectedLeaveElements.push(r),r[h]={namespaceId:g,setForRemoval:C,hasAnimation:f,removedBeforeQueried:!1,previousTriggersValues:j}}listen(g,r,f,C,j){return ie(r)?this._fetchNamespace(g).listen(r,f,C,j):()=>{}}_buildInstruction(g,r,f,C,j){return g.transition.build(this.driver,g.element,g.fromState.value,g.toState.value,f,C,g.fromState.options,g.toState.options,r,j)}destroyInnerAnimations(g){let r=this.driver.query(g,rc,!0);r.forEach(f=>this.destroyActiveAnimationsForElement(f)),0!=this.playersByQueriedElement.size&&(r=this.driver.query(g,sl,!0),r.forEach(f=>this.finishActiveQueriedAnimationOnElement(f)))}destroyActiveAnimationsForElement(g){const r=this.playersByElement.get(g);r&&r.forEach(f=>{f.queued?f.markedForDestroy=!0:f.destroy()})}finishActiveQueriedAnimationOnElement(g){const r=this.playersByQueriedElement.get(g);r&&r.forEach(f=>f.finish())}whenRenderingDone(){return new Promise(g=>{if(this.players.length)return ea(this.players).onDone(()=>g());g()})}processLeaveNode(g){const r=g[h];if(r&&r.setForRemoval){if(g[h]=wc,r.namespaceId){this.destroyInnerAnimations(g);const f=this._fetchNamespace(r.namespaceId);f&&f.clearElementCache(g)}this._onRemovalComplete(g,r.setForRemoval)}g.classList?.contains(Nl)&&this.markElementAsDisabled(g,!1),this.driver.query(g,".ng-animate-disabled",!0).forEach(f=>{this.markElementAsDisabled(f,!1)})}flush(g=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((f,C)=>this._balanceNamespaceList(f,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let f=0;f<this.collectedEnterElements.length;f++)ot(this.collectedEnterElements[f],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const f=[];try{r=this._flushAnimations(f,g)}finally{for(let C=0;C<f.length;C++)f[C]()}}else for(let f=0;f<this.collectedLeaveElements.length;f++)this.processLeaveNode(this.collectedLeaveElements[f]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(f=>f()),this._flushFns=[],this._whenQuietFns.length){const f=this._whenQuietFns;this._whenQuietFns=[],r.length?ea(r).onDone(()=>{f.forEach(C=>C())}):f.forEach(C=>C())}}reportError(g){throw function ar(y){return new e.vHH(3402,!1)}()}_flushAnimations(g,r){const f=new so,C=[],j=new Map,le=[],Ae=new Map,Ke=new Map,it=new Map,Rt=new Set;this.disabledNodes.forEach(jn=>{Rt.add(jn);const ti=this.driver.query(jn,".ng-animate-queued",!0);for(let si=0;si<ti.length;si++)Rt.add(ti[si])});const Zt=this.bodyNode,fn=Array.from(this.statesByElement.keys()),ln=st(fn,this.collectedEnterElements),On=new Map;let zn=0;ln.forEach((jn,ti)=>{const si=nu+zn++;On.set(ti,si),jn.forEach(Zi=>ot(Zi,si))});const Si=[],ii=new Set,Fi=new Set;for(let jn=0;jn<this.collectedLeaveElements.length;jn++){const ti=this.collectedLeaveElements[jn],si=ti[h];si&&si.setForRemoval&&(Si.push(ti),ii.add(ti),si.hasAnimation?this.driver.query(ti,".ng-star-inserted",!0).forEach(Zi=>ii.add(Zi)):Fi.add(ti))}const Zs=new Map,ss=st(fn,Array.from(ii));ss.forEach((jn,ti)=>{const si=sc+zn++;Zs.set(ti,si),jn.forEach(Zi=>ot(Zi,si))}),g.push(()=>{ln.forEach((jn,ti)=>{const si=On.get(ti);jn.forEach(Zi=>Et(Zi,si))}),ss.forEach((jn,ti)=>{const si=Zs.get(ti);jn.forEach(Zi=>Et(Zi,si))}),Si.forEach(jn=>{this.processLeaveNode(jn)})});const Mr=[],Ks=[];for(let jn=this._namespaceList.length-1;jn>=0;jn--)this._namespaceList[jn].drainQueuedTransitions(r).forEach(si=>{const Zi=si.player,br=si.element;if(Mr.push(Zi),this.collectedEnterElements.length){const Tr=br[h];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(si.triggerName)){const pl=Tr.previousTriggersValues.get(si.triggerName),wo=this.statesByElement.get(si.element);if(wo&&wo.has(si.triggerName)){const bu=wo.get(si.triggerName);bu.value=pl,wo.set(si.triggerName,bu)}}return void Zi.destroy()}}const xo=!Zt||!this.driver.containsElement(Zt,br),Br=Zs.get(br),aa=On.get(br),js=this._buildInstruction(si,f,aa,Br,xo);if(js.errors&&js.errors.length)return void Ks.push(js);if(xo)return Zi.onStart(()=>ba(br,js.fromStyles)),Zi.onDestroy(()=>Kr(br,js.toStyles)),void C.push(Zi);if(si.isFallbackTransition)return Zi.onStart(()=>ba(br,js.fromStyles)),Zi.onDestroy(()=>Kr(br,js.toStyles)),void C.push(Zi);const ad=[];js.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||ad.push(Tr)}),js.timelines=ad,f.append(br,js.timelines),le.push({instruction:js,player:Zi,element:br}),js.queriedElements.forEach(Tr=>Lr(Ae,Tr,[]).push(Zi)),js.preStyleProps.forEach((Tr,pl)=>{if(Tr.size){let wo=Ke.get(pl);wo||Ke.set(pl,wo=new Set),Tr.forEach((bu,Cu)=>wo.add(Cu))}}),js.postStyleProps.forEach((Tr,pl)=>{let wo=it.get(pl);wo||it.set(pl,wo=new Set),Tr.forEach((bu,Cu)=>wo.add(Cu))})});if(Ks.length){const jn=[];Ks.forEach(ti=>{jn.push(function Bu(y,g){return new e.vHH(3505,!1)}())}),Mr.forEach(ti=>ti.destroy()),this.reportError(jn)}const Ys=new Map,Ho=new Map;le.forEach(jn=>{const ti=jn.element;f.has(ti)&&(Ho.set(ti,ti),this._beforeAnimationBuild(jn.player.namespaceId,jn.instruction,Ys))}),C.forEach(jn=>{const ti=jn.element;this._getPreviousPlayers(ti,!1,jn.namespaceId,jn.triggerName,null).forEach(Zi=>{Lr(Ys,ti,[]).push(Zi),Zi.destroy()})});const ja=Si.filter(jn=>gn(jn,Ke,it)),yr=new Map;tt(yr,this.driver,Fi,it,sn.l3).forEach(jn=>{gn(jn,Ke,it)&&ja.push(jn)});const yu=new Map;ln.forEach((jn,ti)=>{tt(yu,this.driver,new Set(jn),Ke,sn.k1)}),ja.forEach(jn=>{const ti=yr.get(jn),si=yu.get(jn);yr.set(jn,new Map([...Array.from(ti?.entries()??[]),...Array.from(si?.entries()??[])]))});const jl=[],dh=[],rp={};le.forEach(jn=>{const{element:ti,player:si,instruction:Zi}=jn;if(f.has(ti)){if(Rt.has(ti))return si.onDestroy(()=>Kr(ti,Zi.toStyles)),si.disabled=!0,si.overrideTotalTime(Zi.totalTime),void C.push(si);let br=rp;if(Ho.size>1){let Br=ti;const aa=[];for(;Br=Br.parentNode;){const js=Ho.get(Br);if(js){br=js;break}aa.push(Br)}aa.forEach(js=>Ho.set(js,br))}const xo=this._buildAnimation(si.namespaceId,Zi,Ys,j,yu,yr);if(si.setRealPlayer(xo),br===rp)jl.push(si);else{const Br=this.playersByElement.get(br);Br&&Br.length&&(si.parentPlayer=ea(Br)),C.push(si)}}else ba(ti,Zi.fromStyles),si.onDestroy(()=>Kr(ti,Zi.toStyles)),dh.push(si),Rt.has(ti)&&C.push(si)}),dh.forEach(jn=>{const ti=j.get(jn.element);if(ti&&ti.length){const si=ea(ti);jn.setRealPlayer(si)}}),C.forEach(jn=>{jn.parentPlayer?jn.syncPlayerEvents(jn.parentPlayer):jn.destroy()});for(let jn=0;jn<Si.length;jn++){const ti=Si[jn],si=ti[h];if(Et(ti,sc),si&&si.hasAnimation)continue;let Zi=[];if(Ae.size){let xo=Ae.get(ti);xo&&xo.length&&Zi.push(...xo);let Br=this.driver.query(ti,sl,!0);for(let aa=0;aa<Br.length;aa++){let js=Ae.get(Br[aa]);js&&js.length&&Zi.push(...js)}}const br=Zi.filter(xo=>!xo.destroyed);br.length?Lt(this,ti,br):this.processLeaveNode(ti)}return Si.length=0,jl.forEach(jn=>{this.players.push(jn),jn.onDone(()=>{jn.destroy();const ti=this.players.indexOf(jn);this.players.splice(ti,1)}),jn.play()}),jl}elementContainsData(g,r){let f=!1;const C=r[h];return C&&C.setForRemoval&&(f=!0),this.playersByElement.has(r)&&(f=!0),this.playersByQueriedElement.has(r)&&(f=!0),this.statesByElement.has(r)&&(f=!0),this._fetchNamespace(g).elementContainsData(r)||f}afterFlush(g){this._flushFns.push(g)}afterFlushAnimationsDone(g){this._whenQuietFns.push(g)}_getPreviousPlayers(g,r,f,C,j){let le=[];if(r){const Ae=this.playersByQueriedElement.get(g);Ae&&(le=Ae)}else{const Ae=this.playersByElement.get(g);if(Ae){const Ke=!j||j==c;Ae.forEach(it=>{it.queued||!Ke&&it.triggerName!=C||le.push(it)})}}return(f||C)&&(le=le.filter(Ae=>!(f&&f!=Ae.namespaceId||C&&C!=Ae.triggerName))),le}_beforeAnimationBuild(g,r,f){const j=r.element,le=r.isRemovalTransition?void 0:g,Ae=r.isRemovalTransition?void 0:r.triggerName;for(const Ke of r.timelines){const it=Ke.element,Rt=it!==j,Zt=Lr(f,it,[]);this._getPreviousPlayers(it,Rt,le,Ae,r.toState).forEach(ln=>{const On=ln.getRealPlayer();On.beforeDestroy&&On.beforeDestroy(),ln.destroy(),Zt.push(ln)})}ba(j,r.fromStyles)}_buildAnimation(g,r,f,C,j,le){const Ae=r.triggerName,Ke=r.element,it=[],Rt=new Set,Zt=new Set,fn=r.timelines.map(On=>{const zn=On.element;Rt.add(zn);const Si=zn[h];if(Si&&Si.removedBeforeQueried)return new sn.ZN(On.duration,On.delay);const ii=zn!==Ke,Fi=function Kt(y){const g=[];return on(y,g),g}((f.get(zn)||mu).map(Ys=>Ys.getRealPlayer())).filter(Ys=>!!Ys.element&&Ys.element===zn),Zs=j.get(zn),ss=le.get(zn),Mr=Tl(0,this._normalizer,0,On.keyframes,Zs,ss),Ks=this._buildPlayer(On,Mr,Fi);if(On.subTimeline&&C&&Zt.add(zn),ii){const Ys=new T(g,Ae,zn);Ys.setRealPlayer(Ks),it.push(Ys)}return Ks});it.forEach(On=>{Lr(this.playersByQueriedElement,On.element,[]).push(On),On.onDone(()=>function A(y,g,r){let f=y.get(g);if(f){if(f.length){const C=f.indexOf(r);f.splice(C,1)}0==f.length&&y.delete(g)}return f}(this.playersByQueriedElement,On.element,On))}),Rt.forEach(On=>ot(On,Dl));const ln=ea(fn);return ln.onDestroy(()=>{Rt.forEach(On=>Et(On,Dl)),Kr(Ke,r.toStyles)}),Zt.forEach(On=>{Lr(C,On,[]).push(ln)}),ln}_buildPlayer(g,r,f){return r.length>0?this.driver.animate(g.element,r,g.duration,g.delay,g.easing,f):new sn.ZN(g.duration,g.delay)}}class T{constructor(g,r,f){this.namespaceId=g,this.triggerName=r,this.element=f,this._player=new sn.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(g){this._containsRealPlayer||(this._player=g,this._queuedCallbacks.forEach((r,f)=>{r.forEach(C=>Kc(g,f,void 0,C))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(g.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(g){this.totalTime=g}syncPlayerEvents(g){const r=this._player;r.triggerCallback&&g.onStart(()=>r.triggerCallback("start")),g.onDone(()=>this.finish()),g.onDestroy(()=>this.destroy())}_queueEvent(g,r){Lr(this._queuedCallbacks,g,[]).push(r)}onDone(g){this.queued&&this._queueEvent("done",g),this._player.onDone(g)}onStart(g){this.queued&&this._queueEvent("start",g),this._player.onStart(g)}onDestroy(g){this.queued&&this._queueEvent("destroy",g),this._player.onDestroy(g)}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(g){this.queued||this._player.setPosition(g)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(g){const r=this._player;r.triggerCallback&&r.triggerCallback(g)}}function ie(y){return y&&1===y.nodeType}function ke(y,g){const r=y.style.display;return y.style.display=g??"none",r}function tt(y,g,r,f,C){const j=[];r.forEach(Ke=>j.push(ke(Ke)));const le=[];f.forEach((Ke,it)=>{const Rt=new Map;Ke.forEach(Zt=>{const fn=g.computeStyle(it,Zt,C);Rt.set(Zt,fn),(!fn||0==fn.length)&&(it[h]=gu,le.push(it))}),y.set(it,Rt)});let Ae=0;return r.forEach(Ke=>ke(Ke,j[Ae++])),le}function st(y,g){const r=new Map;if(y.forEach(Ae=>r.set(Ae,[])),0==g.length)return r;const f=1,C=new Set(g),j=new Map;function le(Ae){if(!Ae)return f;let Ke=j.get(Ae);if(Ke)return Ke;const it=Ae.parentNode;return Ke=r.has(it)?it:C.has(it)?f:le(it),j.set(Ae,Ke),Ke}return g.forEach(Ae=>{const Ke=le(Ae);Ke!==f&&r.get(Ke).push(Ae)}),r}function ot(y,g){y.classList?.add(g)}function Et(y,g){y.classList?.remove(g)}function Lt(y,g,r){ea(r).onDone(()=>y.processLeaveNode(g))}function on(y,g){for(let r=0;r<y.length;r++){const f=y[r];f instanceof sn.ZE?on(f.players,g):g.push(f)}}function gn(y,g,r){const f=r.get(y);if(!f)return!1;let C=g.get(y);return C?f.forEach(j=>C.add(j)):g.set(y,f),r.delete(y),!0}class un{constructor(g,r,f){this.bodyNode=g,this._driver=r,this._normalizer=f,this._triggerCache={},this.onRemovalComplete=(C,j)=>{},this._transitionEngine=new b(g,r,f),this._timelineEngine=new td(g,r,f),this._transitionEngine.onRemovalComplete=(C,j)=>this.onRemovalComplete(C,j)}registerTrigger(g,r,f,C,j){const le=g+"-"+C;let Ae=this._triggerCache[le];if(!Ae){const Ke=[],it=[],Rt=ul(this._driver,j,Ke,it);if(Ke.length)throw function Lu(y,g){return new e.vHH(3404,!1)}();Ae=function Fl(y,g,r){return new Nr(y,g,r)}(C,Rt,this._normalizer),this._triggerCache[le]=Ae}this._transitionEngine.registerTrigger(r,C,Ae)}register(g,r){this._transitionEngine.register(g,r)}destroy(g,r){this._transitionEngine.destroy(g,r)}onInsert(g,r,f,C){this._transitionEngine.insertNode(g,r,f,C)}onRemove(g,r,f,C){this._transitionEngine.removeNode(g,r,C||!1,f)}disableAnimations(g,r){this._transitionEngine.markElementAsDisabled(g,r)}process(g,r,f,C){if("@"==f.charAt(0)){const[j,le]=Vu(f);this._timelineEngine.command(j,r,le,C)}else this._transitionEngine.trigger(g,r,f,C)}listen(g,r,f,C,j){if("@"==f.charAt(0)){const[le,Ae]=Vu(f);return this._timelineEngine.listen(le,r,Ae,j)}return this._transitionEngine.listen(g,r,f,C,j)}flush(g=-1){this._transitionEngine.flush(g)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Tn=(()=>{class y{constructor(r,f,C){this._element=r,this._startStyles=f,this._endStyles=C,this._state=0;let j=y.initialStylesByElement.get(r);j||y.initialStylesByElement.set(r,j=new Map),this._initialStyles=j}start(){this._state<1&&(this._startStyles&&Kr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kr(this._element,this._initialStyles),this._endStyles&&(Kr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(y.initialStylesByElement.delete(this._element),this._startStyles&&(ba(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ba(this._element,this._endStyles),this._endStyles=null),Kr(this._element,this._initialStyles),this._state=3)}}return y.initialStylesByElement=new WeakMap,y})();function Vn(y){let g=null;return y.forEach((r,f)=>{(function Hn(y){return"display"===y||"position"===y})(f)&&(g=g||new Map,g.set(f,r))}),g}class wi{constructor(g,r,f,C){this.element=g,this.keyframes=r,this.options=f,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=f.duration,this._delay=f.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(g=>g()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const g=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,g,this.options),this._finalKeyframe=g.length?g[g.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(g){const r=[];return g.forEach(f=>{r.push(Object.fromEntries(f))}),r}_triggerWebAnimation(g,r,f){return g.animate(this._convertKeyframesToObject(r),f)}onStart(g){this._originalOnStartFns.push(g),this._onStartFns.push(g)}onDone(g){this._originalOnDoneFns.push(g),this._onDoneFns.push(g)}onDestroy(g){this._onDestroyFns.push(g)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(g=>g()),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(g=>g()),this._onDestroyFns=[])}setPosition(g){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=g*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const g=new Map;this.hasStarted()&&this._finalKeyframe.forEach((f,C)=>{"offset"!==C&&g.set(C,this._finished?f:ou(this.element,C))}),this.currentSnapshot=g}triggerCallback(g){const r="start"===g?this._onStartFns:this._onDoneFns;r.forEach(f=>f()),r.length=0}}class Vi{validateStyleProperty(g){return!0}validateAnimatableStyleProperty(g){return!0}matchesElement(g,r){return!1}containsElement(g,r){return El(g,r)}getParentElement(g){return nl(g)}query(g,r,f){return No(g,r,f)}computeStyle(g,r,f){return window.getComputedStyle(g)[r]}animate(g,r,f,C,j,le=[]){const Ke={duration:f,delay:C,fill:0==C?"both":"forwards"};j&&(Ke.easing=j);const it=new Map,Rt=le.filter(ln=>ln instanceof wi);(function ru(y,g){return 0===y||0===g})(f,C)&&Rt.forEach(ln=>{ln.currentSnapshot.forEach((On,zn)=>it.set(zn,On))});let Zt=function Ha(y){return y.length?y[0]instanceof Map?y:y.map(g=>iu(g)):[]}(r).map(ln=>na(ln));Zt=function dc(y,g,r){if(r.size&&g.length){let f=g[0],C=[];if(r.forEach((j,le)=>{f.has(le)||C.push(le),f.set(le,j)}),C.length)for(let j=1;j<g.length;j++){let le=g[j];
1C.forEach(Ae=>le.set(Ae,ou(y,Ae)))}}return g}(g,Zt,it);const fn=function In(y,g){let r=null,f=null;return Array.isArray(g)&&g.length?(r=Vn(g[0]),g.length>1&&(f=Vn(g[g.length-1]))):g instanceof Map&&(r=Vn(g)),r||f?new Tn(y,r,f):null}(g,Zt);return new wi(g,Zt,Ke,fn)}}let Di=(()=>{class y extends sn._j{constructor(r,f){super(),this._nextAnimationId=0,this._renderer=r.createRenderer(f.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(r){const f=this._nextAnimationId.toString();this._nextAnimationId++;const C=Array.isArray(r)?(0,sn.vP)(r):r;return gi(this._renderer,null,f,"register",[C]),new ws(f,this._renderer)}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(e.FYo),e.LFG(s.K0))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})();class ws extends sn.LC{constructor(g,r){super(),this._id=g,this._renderer=r}create(g,r){return new Ls(this._id,g,r||{},this._renderer)}}class Ls{constructor(g,r,f,C){this.id=g,this.element=r,this._renderer=C,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",f)}_listen(g,r){return this._renderer.listen(this.element,`@@${this.id}:${g}`,r)}_command(g,...r){return gi(this._renderer,this.element,this.id,g,r)}onDone(g){this._listen("done",g)}onStart(g){this._listen("start",g)}onDestroy(g){this._listen("destroy",g)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(g){this._command("setPosition",g)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function gi(y,g,r,f,C){return y.setProperty(g,`@@${r}:${f}`,C)}const Ds="@.disabled";let $a=(()=>{class y{constructor(r,f,C){this.delegate=r,this.engine=f,this._zone=C,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),f.onRemovalComplete=(j,le)=>{const Ae=le?.parentNode(j);Ae&&le.removeChild(Ae,j)}}createRenderer(r,f){const j=this.delegate.createRenderer(r,f);if(!(r&&f&&f.data&&f.data.animation)){let Rt=this._rendererCache.get(j);return Rt||(Rt=new Vl("",j,this.engine,()=>this._rendererCache.delete(j)),this._rendererCache.set(j,Rt)),Rt}const le=f.id,Ae=f.id+"-"+this._currentId;this._currentId++,this.engine.register(Ae,r);const Ke=Rt=>{Array.isArray(Rt)?Rt.forEach(Ke):this.engine.registerTrigger(le,Ae,r,Rt.name,Rt)};return f.data.animation.forEach(Ke),new Co(this,Ae,j,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(r,f,C){r>=0&&r<this._microtaskId?this._zone.run(()=>f(C)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(j=>{const[le,Ae]=j;le(Ae)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([f,C]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(e.FYo),e.LFG(un),e.LFG(e.R0b))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})();class Vl{constructor(g,r,f,C){this.namespaceId=g,this.delegate=r,this.engine=f,this._onDestroy=C,this.destroyNode=this.delegate.destroyNode?j=>r.destroyNode(j):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(g,r){return this.delegate.createElement(g,r)}createComment(g){return this.delegate.createComment(g)}createText(g){return this.delegate.createText(g)}appendChild(g,r){this.delegate.appendChild(g,r),this.engine.onInsert(this.namespaceId,r,g,!1)}insertBefore(g,r,f,C=!0){this.delegate.insertBefore(g,r,f),this.engine.onInsert(this.namespaceId,r,g,C)}removeChild(g,r,f){this.engine.onRemove(this.namespaceId,r,this.delegate,f)}selectRootElement(g,r){return this.delegate.selectRootElement(g,r)}parentNode(g){return this.delegate.parentNode(g)}nextSibling(g){return this.delegate.nextSibling(g)}setAttribute(g,r,f,C){this.delegate.setAttribute(g,r,f,C)}removeAttribute(g,r,f){this.delegate.removeAttribute(g,r,f)}addClass(g,r){this.delegate.addClass(g,r)}removeClass(g,r){this.delegate.removeClass(g,r)}setStyle(g,r,f,C){this.delegate.setStyle(g,r,f,C)}removeStyle(g,r,f){this.delegate.removeStyle(g,r,f)}setProperty(g,r,f){"@"==r.charAt(0)&&r==Ds?this.disableAnimations(g,!!f):this.delegate.setProperty(g,r,f)}setValue(g,r){this.delegate.setValue(g,r)}listen(g,r,f){return this.delegate.listen(g,r,f)}disableAnimations(g,r){this.engine.disableAnimations(g,r)}}class Co extends Vl{constructor(g,r,f,C,j){super(r,f,C,j),this.factory=g,this.namespaceId=r}setProperty(g,r,f){"@"==r.charAt(0)?"."==r.charAt(1)&&r==Ds?this.disableAnimations(g,f=void 0===f||!!f):this.engine.process(this.namespaceId,g,r.slice(1),f):this.delegate.setProperty(g,r,f)}listen(g,r,f){if("@"==r.charAt(0)){const C=function Sc(y){switch(y){case"body":return document.body;case"document":return document;case"window":return window;default:return y}}(g);let j=r.slice(1),le="";return"@"!=j.charAt(0)&&([j,le]=function hl(y){const g=y.indexOf(".");return[y.substring(0,g),y.slice(g+1)]}(j)),this.engine.listen(this.namespaceId,C,j,le,Ae=>{this.factory.scheduleListenerCallback(Ae._data||-1,f,Ae)})}return this.delegate.listen(g,r,f)}}const Ul=[{provide:sn._j,useClass:Di},{provide:Ua,useFactory:function zl(){return new qu}},{provide:un,useClass:(()=>{class y extends un{constructor(r,f,C,j){super(r.body,f,C)}ngOnDestroy(){this.flush()}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(s.K0),e.LFG(eu),e.LFG(Ua),e.LFG(e.z2F))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})()},{provide:e.FYo,useFactory:function _u(y,g,r){return new $a(y,g,r)},deps:[t.se,un,e.R0b]}],Xd=[{provide:eu,useFactory:()=>new Vi},{provide:e.QbO,useValue:"BrowserAnimations"},...Ul],eh=[{provide:eu,useClass:Xc},{provide:e.QbO,useValue:"NoopAnimations"},...Ul];let xm=(()=>{class y{static withConfig(r){return{ngModule:y,providers:r.disableAnimations?eh:Xd}}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({providers:Xd,imports:[t.b2]}),y})();var $l=a(3214),vu=a(8639),Oh=a(7913);let Ph=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,Mn.u5,$l.l,mo.cc,Rr.hJ,Oh.Iu]}),y})(),Nh=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({providers:[ei.Lk],imports:[s.ez,nn.Bz,hi.T,qi.z,nn.Bz,qi.z]}),y})(),Om=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,nn.Bz,hi.T,qi.z,ei.m8,nn.Bz,qi.z,ei.m8]}),y})();var Pm=a(1327);let lf=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[t.b2,Mn.u5,Re.JF,xm,co.j,$l.l,vu.T
1X,mo.cc,Oh.Iu,hi.T,nn.Bz,Ph,Nh,Om,eo,Pm.$9,pa.L,ri.D,Xs.kW,ks,qi.z]}),y})(),Wh=(()=>{class y{intercept(r,f){return null!==sessionStorage.getItem("correlation-id")&&(r=r.clone({setHeaders:{"correlation-id":sessionStorage.getItem("correlation-id")}})),r.url.includes("prompt")||(r=r.clone({withCredentials:!0})),f.handle(r).pipe((0,F.U)(C=>(C instanceof Re.Zn&&null!==C.headers.get("correlation-id")&&sessionStorage.setItem("correlation-id",C.headers.get("correlation-id")),C)))}}return y.\u0275fac=function(r){return new(r||y)},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})();var Rm=a(2843),cf=a(4482),Zl=a(5403),uf=a(4671),Kh=a(8421);let df=(()=>{class y{constructor(r,f){this.router=r,this.logger=f}intercept(r,f){return f.handle(r).pipe(function sd(y=1/0){let g;g=y&&"object"==typeof y?y:{count:y};const{count:r=1/0,delay:f,resetOnSuccess:C=!1}=g;return r<=0?uf.y:(0,cf.e)((j,le)=>{let Ke,Ae=0;const it=()=>{let Rt=!1;Ke=j.subscribe((0,Zl.x)(le,Zt=>{C&&(Ae=0),le.next(Zt)},void 0,Zt=>{if(Ae++<r){const fn=()=>{Ke?(Ke.unsubscribe(),Ke=null,it()):Rt=!0};if(null!=f){const ln="number"==typeof f?(0,w.H)(f):(0,Kh.Xf)(f(Zt,Ae)),On=(0,Zl.x)(le,()=>{On.unsubscribe(),fn()},()=>{le.complete()});ln.subscribe(On)}else fn()}else le.error(Zt)})),Rt&&(Ke.unsubscribe(),Ke=null,it())};it()})}({count:2,delay:(C,j)=>{if(("GET"===r.method||"HEAD"===r.method)&&(0===C.status||C.status>=500&&C.status<600))return(0,w.H)(1e3*Math.pow(2,j-1));throw C}}),(0,_s.K)(C=>{if(C.error instanceof ErrorEvent)this.logger.error("Error del cliente:",C.error);else switch(C.status){case 0:this.logger.error("Error de red:","No se pudo conectar con el servidor. Verifique su conexi\xf3n a internet.");break;case 400:this.logger.error("Error 400:",C.error);break;case 401:this.logger.warn("Error 401: Usuario no autorizado");break;case 403:this.logger.error("Error 403:",C.error);break;case 404:this.logger.error("Error 404:",C.url);break;case 500:this.logger.error("Error 500:",C.error);break;case 503:this.logger.error("Error 503:",C.error);break;default:this.logger.error(`Error HTTP ${C.status}:`,C.error)}return(0,Rm._)(()=>C)}))}}return y.\u0275fac=function(r){return new(r||y)(e.LFG(nn.F0),e.LFG(Is.m))},y.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac}),y})();var rh=a(3718);let gf=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,ei.m8,rh.v,ei.m8,rh.v]}),y})();var Bm=a(1329),Dc=a(7804),Xh=a(4487),_f=a.n(Xh);let ch=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[s.ez,ei.m8]}),y})();var sp=a(5922);let uh=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=e.oAB({type:y,bootstrap:[Qi]}),y.\u0275inj=e.cJS({providers:[{provide:Re.TP,useClass:Wh,multi:!0},{provide:Re.TP,useClass:df,multi:!0},ei.ez,(0,Dc.Yo)({player:()=>_f()})],imports:[ql,lf,co.j,Rr.hJ,hi.T,Mn.u5,Mn.UX,Yn.L,gf,Ji.EV,_l.q4,Ko.kK,Bm.z,ch,ua.nD,s.ez,sp.S,Tt.forRoot({sanitize:e.q3G.HTML})]}),y})();if(ni.N.production&&(0,e.G48)(),ni.N.clarityId&&function(y,g,r,f,C){var j;const le=y;le[r]=le[r]||function(){(le[r].q=le[r].q||[]).push(arguments)};const Ae=g.createElement(f);Ae.async=!0,Ae.src="https://www.clarity.ms/tag/"+C;const Ke=g.getElementsByTagName(f)[0];null===(j=Ke?.parentNode)||void 0===j||j.insertBefore(Ae,Ke)}(window,document,"clarity","script",ni.N.clarityId),ni.N.gaId){const y=window,g=document.createElement("script");g.async=!0,g.src="https://www.googletagmanager.com/gtag/js?id="+ni.N.gaId,document.head.appendChild(g),y.dataLayer=y.dataLayer||[],y.gtag=(...r)=>{(y.dataLayer=y.dataLayer||[]).push(r)},y.gtag("js",new Date),y.gtag("config",ni.N.gaId)}t.q6().bootstrapModule(uh).catch(y=>console.error(y))},1764:function(o){o.exports=function(){"use strict";var a=6e4,t=36e5,e="millisecond",s="second",D="minute",x="hour",M="day",w="week",I="month",P="quarter",S="year",k="date",z="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ne=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 5,742 bytes, line 1
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Qe){var ze=["th","st","nd","rd"],Oe=Qe%100;return"["+Qe+(ze[(Oe-20)%10]||ze[Oe]||ze[0])+"]"}},G=function(Qe,ze,Oe){var K=String(Qe);return!K||K.length>=ze?Qe:""+Array(ze+1-K.length).join(Oe)+Qe},W={s:G,z:function(Qe){var ze=-Qe.utcOffset(),Oe=Math.abs(ze),K=Math.floor(Oe/60),X=Oe%60;return(ze<=0?"+":"-")+G(K,2,"0")+":"+G(X,2,"0")},m:function Qe(ze,Oe){if(ze.date()<Oe.date())return-Qe(Oe,ze);var K=12*(Oe.year()-ze.year())+(Oe.month()-ze.month()),X=ze.clone().add(K,I),V=Oe-X<0,q=ze.clone().add(K+(V?-1:1),I);return+(-(K+(Oe-X)/(V?X-q:q-X))||0)},a:function(Qe){return Qe<0?Math.ceil(Qe)||0:Math.floor(Qe)},p:function(Qe){return{M:I,y:S,w,d:M,D:k,h:x,m:D,s,ms:e,Q:P}[Qe]||String(Qe||"").toLowerCase().replace(/s$/,"")},u:function(Qe){return void 0===Qe}},Y="en",fe={};fe[Y]=B;var N="$isDayjsObject",Q=function(Qe){return Qe instanceof _e||!(!Qe||!Qe[N])},O=function Qe(ze,Oe,K){var X;if(!ze)return Y;if("string"==typeof ze){var V=ze.toLowerCase();fe[V]&&(X=V),Oe&&(fe[V]=Oe,X=V);var q=ze.split("-");if(!X&&q.length>1)return Qe(q[0])}else{var Ee=ze.name;fe[Ee]=ze,X=Ee}return!K&&X&&(Y=X),X||!K&&Y},ee=function(Qe,ze){if(Q(Qe))return Qe.clone();var Oe="object"==typeof ze?ze:{};return Oe.date=Qe,Oe.args=arguments,new _e(Oe)},ue=W;ue.l=O,ue.i=Q,ue.w=function(Qe,ze){return ee(Qe,{locale:ze.$L,utc:ze.$u,x:ze.$x,$offset:ze.$offset})};var _e=function(){function Qe(Oe){this.$L=O(Oe.locale,null,!0),this.parse(Oe),this.$x=this.$x||Oe.x||{},this[N]=!0}var ze=Qe.prototype;return ze.parse=function(Oe){this.$d=function(K){var X=K.date,V=K.utc;if(null===X)return new Date(NaN);if(ue.u(X))return new Date;if(X instanceof Date)return new Date(X);if("string"==typeof X&&!/Z$/i.test(X)){var q=X.match(F);if(q){var Ee=q[2]-1||0,ye=(q[7]||"0").substring(0,3);return V?new Date(Date.UTC(q[1],Ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ye)):new Date(q[1],Ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ye)}}return new Date(X)}(Oe),this.init()},ze.init=function(){var Oe=this.$d;this.$y=Oe.getFullYear(),this.$M=Oe.getMonth(),this.$D=Oe.getDate(),this.$W=Oe.getDay(),this.$H=Oe.getHours(),this.$m=Oe.getMinutes(),this.$s=Oe.getSeconds(),this.$ms=Oe.getMilliseconds()},ze.$utils=function(){return ue},ze.isValid=function(){return this.$d.toString()!==z},ze.isSame=function(Oe,K){var X=ee(Oe);return this.startOf(K)<=X&&X<=this.endOf(K)},ze.isAfter=function(Oe,K){return ee(Oe)<this.startOf(K)},ze.isBefore=function(Oe,K){return this.endOf(K)<ee(Oe)},ze.$g=function(Oe,K,X){return ue.u(Oe)?this[K]:this.set(X,Oe)},ze.unix=function(){return Math.floor(this.valueOf()/1e3)},ze.valueOf=function(){return this.$d.getTime()},ze.startOf=function(Oe,K){var X=this,V=!!ue.u(K)||K,q=ue.p(Oe),Ee=function(rt,mt){var $t=ue.w(X.$u?Date.UTC(X.$y,mt,rt):new Date(X.$y,mt,rt),X);return V?$t:$t.endOf(M)},ye=function(rt,mt){return ue.w(X.toDate()[rt].apply(X.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(mt)),X)},nt=this.$W,at=this.$M,me=this.$D,ve="set"+(this.$u?"UTC":"");switch(q){case S:return V?Ee(1,0):Ee(31,11);case I:return V?Ee(1,at):Ee(0,at+1);case w:var je=this.$locale().weekStart||0,Xe=(nt<je?nt+7:nt)-je;return Ee(V?me-Xe:me+(6-Xe),at);case M:case k:return ye(ve+"Hours",0);case x:return ye(ve+"Minutes",1);case D:return ye(ve+"Seconds",2);case s:return ye(ve+"Milliseconds",3);default:return this.clone()}},ze.endOf=function(Oe){return this.startOf(Oe,!1)},ze.$set=function(Oe,K){var X,V=ue.p(Oe),q="set"+(this.$u?"UTC":""),Ee=(X={},X[M]=q+"Date",X[k]=q+"Date",X[I]=q+"Month",X[S]=q+"FullYear",X[x]=q+"Hours",X[D]=q+"Minutes",X[s]=q+"Seconds",X[e]=q+"Milliseconds",X)[V],ye=V===M?this.$D+(K-this.$W):K;if(V===I||V===S){var nt=this.clone().set(k,1);nt.$d[Ee](ye),nt.init(),this.$d=nt.set(k,Math.min(this.$D,nt.daysInMonth())).$d}else Ee&&this.$d[Ee](ye);return this.init(),this},ze.set=function(Oe,K){return this.clone().$set(Oe,K)},ze.get=function(Oe){return this[ue.p(Oe)]()},ze.add=function(Oe,K){var X,V=this;Oe=Number(Oe);var q=ue.p(K),Ee=function(at){var me=ee(V);return ue.w(me.date(me.date()+Math.round(at*Oe)),V)};if(q===I)return this.set(I,this.$M+Oe);if(q===S)return this.set(S,this.$y+Oe);if(q===M)return Ee(1);if(q===w)return Ee(7);var ye=(X={},X[D]=a,X[x]=t,X[s]=1e3,X)[q]||1,nt=this.$d.getTime()+Oe*ye;return ue.w(nt,this)},ze.subtract=function(Oe,K){return this.add(-1*Oe,K)},ze.format=function(Oe){var K=this,X=this.$locale();if(!this.isValid())return X.invalidDate||z;var V=Oe||"YYYY-MM-DDTHH:mm:ssZ",q=ue.z(this),Ee=this.$H,ye=this.$m,nt=this.$M,at=X.weekdays,me=X.months,je=function(mt,$t,tn,yt){return mt&&(mt[$t]||mt(K,V))||tn[$t].slice(0,yt)},Xe=function(mt){return ue.s(Ee%12||12,mt,"0")},rt=X.meridiem||function(mt,$t,tn){var yt=mt<12?"AM":"PM";return tn?yt.toLowerCase():yt};return V.replace(ne,function(mt,$t){return $t||function(tn){switch(tn){case"YY":return String(K.$y).slice(-2);case"YYYY":return ue.s(K.$y,4,"0");case"M":return nt+1;case"MM":return ue.s(nt+1,2,"0");case"MMM":return je(X.monthsShort,nt,me,3);case"MMMM":return je(me,nt);case"D":return K.$D;case"DD":return ue.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return je(X.weekdaysMin,K.$W,at,2);case"ddd":return je(X.weekdaysShort,K.$W,at,3);case"dddd":return at[K.$W];case"H":return String(Ee);case"HH":return ue.s(Ee,2,"0");case"h":return Xe(1);case"hh":return Xe(2);case"a":return rt(Ee,ye,!0);case"A":return rt(Ee,ye,!1);case"m":return String(ye);case"mm":return ue.s(ye,2,"0");case"s":return String(K.$s);case"ss":return ue.s(K.$s,2,"0");case"SSS":return ue.s(K.$ms,3,"0");case"Z":return q}return null}(mt)||q.replace(":","")})}
1,ze.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ze.diff=function(Oe,K,X){var V,q=this,Ee=ue.p(K),ye=ee(Oe),nt=(ye.utcOffset()-this.utcOffset())*a,at=this-ye,me=function(){return ue.m(q,ye)};switch(Ee){case S:V=me()/12;break;case I:V=me();break;case P:V=me()/3;break;case w:V=(at-nt)/6048e5;break;case M:V=(at-nt)/864e5;break;case x:V=at/t;break;case D:V=at/a;break;case s:V=at/1e3;break;default:V=at}return X?V:ue.a(V)},ze.daysInMonth=function(){return this.endOf(I).$D},ze.$locale=function(){return fe[this.$L]},ze.locale=function(Oe,K){if(!Oe)return this.$L;var X=this.clone(),V=O(Oe,K,!0);return V&&(X.$L=V),X},ze.clone=function(){return ue.w(this.$d,this)},ze.toDate=function(){return new Date(this.valueOf())},ze.toJSON=function(){return this.isValid()?this.toISOString():null},ze.toISOString=function(){return this.$d.toISOString()},ze.toString=function(){return this.$d.toUTCString()},Qe}(),be=_e.prototype;return ee.prototype=be,[["$ms",e],["$s",s],["$m",D],["$H",x],["$W",M],["$M",I],["$y",S],["$D",k]].forEach(function(Qe){be[Qe[1]]=function(ze){return this.$g(ze,Qe[0],Qe[1])}}),ee.extend=function(Qe,ze){return Qe.$i||(Qe(ze,_e,ee),Qe.$i=!0),ee},ee.locale=O,ee.isDayjs=Q,ee.unix=function(Qe){return ee(1e3*Qe)},ee.en=fe[Y],ee.Ls=fe,ee.p={},ee}()},3634:function(o,u,a){o.exports=function(t){"use strict";var s=function e(x){return x&&"object"==typeof x&&"default"in x?x:{default:x}}(t),D={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(x){return x+"\xba"}};return s.default.locale(D,null,!0),D}(a(1764))},1545:function(o){o.exports=function(){"use strict";var u={year:0,month:1,day:2,hour:3,minute:4,second:5},a={};return function(t,e,s){var D,x=function(P,S,k){void 0===k&&(k={});var z=new Date(P);return function(ne,B){void 0===B&&(B={});var G=B.timeZoneName||"short",W=ne+"|"+G,Y=a[W];return Y||(Y=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:ne,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:G}),a[W]=Y),Y}(S,k).formatToParts(z)},M=function(P,S){for(var k=x(P,S),z=[],F=0;F<k.length;F+=1){var ne=k[F],W=u[ne.type];W>=0&&(z[W]=parseInt(ne.value,10))}var Y=z[3],Q=+P;return(s.utc(z[0]+"-"+z[1]+"-"+z[2]+" "+(24===Y?0:Y)+":"+z[4]+":"+z[5]+":000").valueOf()-(Q-=Q%1e3))/6e4},w=e.prototype;w.tz=function(P,S){if(void 0===P&&(P=D),!this.isValid())return this;var k,z=this.utcOffset(),F=this.toDate(),ne=F.toLocaleString("en-US",{timeZone:P}),B=M(+F,P);if(Number(B)){if(k=s(ne,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(B,!0),S){var G=k.utcOffset();k=k.add(z-G,"minute")}}else k=this.utcOffset(0,S);return k.$x.$timezone=P,k},w.offsetName=function(P){var S=this.$x.$timezone||s.tz.guess(),k=x(this.valueOf(),S,{timeZoneName:P}).find(function(z){return"timezonename"===z.type.toLowerCase()});return k&&k.value};var I=w.startOf;w.startOf=function(P,S){if(!this.$x||!this.$x.$timezone)return I.call(this,P,S);var k=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return I.call(k,P,S).tz(this.$x.$timezone,!0)},s.tz=function(P,S,k){var z=k&&S,F=k||S||D,ne=M(+s(),F);if("string"!=typeof P)return s(P).tz(F);var B=s.utc(P,z).valueOf();if(Number.isNaN(B)){var G=s(NaN);return G.$x.$timezone=F,G}var W=function(Q,O,ee){var ue=Q-60*O*1e3,_e=M(ue,ee);if(O===_e)return[ue,O];var be=M(ue-=60*(_e-O)*1e3,ee);return _e===be?[ue,_e]:[Q-60*Math.min(_e,be)*1e3,Math.max(_e,be)]}(B,ne,F),fe=W[1],N=s(W[0]).utcOffset(fe);return N.$x.$timezone=F,N},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(P){D=P}}}()},5268:function(o){o.exports=function(){"use strict";var u="minute",a=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(e,s,D){var x=s.prototype;D.utc=function(z){return new s({date:z,utc:!0,args:arguments})},x.utc=function(z){var F=D(this.toDate(),{locale:this.$L,utc:!0});return z?F.add(this.utcOffset(),u):F},x.local=function(){return D(this.toDate(),{locale:this.$L,utc:!1})};var M=x.parse;x.parse=function(z){z.utc&&(this.$u=!0),this.$utils().u(z.$offset)||(this.$offset=z.$offset),M.call(this,z)};var w=x.init;x.init=function(){if(this.$u){var z=this.$d;this.$y=z.getUTCFullYear(),this.$M=z.getUTCMonth(),this.$D=z.getUTCDate(),this.$W=z.getUTCDay(),this.$H=z.getUTCHours(),this.$m=z.getUTCMinutes(),this.$s=z.getUTCSeconds(),this.$ms=z.getUTCMilliseconds()}else w.call(this)};var I=x.utcOffset;x.utcOffset=function(z,F){var ne=this.$utils().u;if(ne(z))return this.$u?0:ne(this.$offset)?I.call(this):this.$offset;if("string"==typeof z&&null===(z=function(Y){void 0===Y&&(Y="");var fe=Y.match(a);if(!fe)return null;var N=(""+fe[0]).match(t)||["-",0,0],O=60*+N[1]+ +N[2];return 0===O?0:"+"===N[0]?O:-O}(z)))return this;var B=Math.abs(z)<=16?60*z:z;if(0===B)return this.utc(F);var G=this.clone();if(F)return G.$offset=B,G.$u=!1,G;var W=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(G=this.local().add(B+W,u)).$offset=B,G.$x.$localOffset=W,G};var P=x.format;x.format=function(z){return P.call(this,z||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},x.valueOf=function(){var z=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*z},x.isUTC=function(){return!!this.$u},x.toISOString=function(){return this.toDate().toISOString()},x.toString=function(){return this.toDate().toUTCString()};var S=x.toDate;x.toDate=function(z){return"s"===z&&this.$offset?D(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():S.call(this)};var k=x.diff;x.diff=function(z,F,ne){if(z&&this.$u===z.$u)return k.call(this,z,F,ne);var B=this.local(),G=D(z).local();return k.call(B,G,F,ne)}}}()},4487:function(module,exports,__webpack_require__){var u;typeof document<"u"&&typeof navigator<"u"&&(u=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,u){var a,e,t=o.length;for(a=0;a<t;a+=1)for(var s in e=o[a].prototype)Object.prototype.hasOwnProperty.call(e,s)&&(u.prototype[s]=e[s])}function getDescriptor(o,u){return Object.getOwnPropertyDescriptor(o,u)}function createProxyFunction(o){function u(){}return u.prototype=o,u}var audioControllerFactory=function(){function o(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function(a){this.audios.push(a)},pause:function(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].pause()},resume:function(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].resume()},setRate:function(a){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].setRate(a)},createAudio:function(a){return this.audioFactory?this.audioFactory(a):window.Howl?new window.Howl({src:[a]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(a){this.audioFactory=a},setVolume:function(a){this._volume=a,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,t){var D,e=0,s=[];switch(a){case"int16":case"uint8c":D=1;break;default:D=1.1}for(e=0;e<t;e+=1)s.push(D);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function u(a,t){return"float32"===a?new Float32Array(t):"int16"===a?new Int16Array(t):"uint8c"===a?new Uint8ClampedArray(t):o(a,t)}:o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var u,o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],a=o.length;for(u=0;
vendor: 5,708 bytes, line 1
1u<a;u+=1)BMMath[o[u]]=Math[o[u]]}(),BMMath.random=Math.random,BMMath.abs=function(o){if("object"===_typeof$6(o)&&o.length){var t,a=createSizedArray(o.length),e=o.length;for(t=0;t<e;t+=1)a[t]=Math.abs(o[t]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(o){_shouldRoundValues=!!o}function bmRnd(o){return _shouldRoundValues?Math.round(o):o}function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,u,a,t){this.type=o,this.currentTime=u,this.totalTime=a,this.direction=t<0?-1:1}function BMCompleteEvent(o,u){this.type=o,this.direction=u<0?-1:1}function BMCompleteLoopEvent(o,u,a,t){this.type=o,this.currentLoop=a,this.totalLoops=u,this.direction=t<0?-1:1}function BMSegmentStartEvent(o,u,a){this.type=o,this.firstFrame=u,this.totalFrames=a}function BMDestroyEvent(o,u){this.type=o,this.target=u}function BMRenderFrameErrorEvent(o,u){this.type="renderFrameError",this.nativeError=o,this.currentTime=u}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}function BMAnimationConfigErrorEvent(o,u){this.type=o,this.nativeError=u}var createElementID=(o=0,function(){return idPrefix$1+"__lottie_element_"+(o+=1)}),o;function HSVtoRGB(o,u,a){var t,e,s,D,x,M,w,I;switch(M=a*(1-u),w=a*(1-(x=6*o-(D=Math.floor(6*o)))*u),I=a*(1-(1-x)*u),D%6){case 0:t=a,e=I,s=M;break;case 1:t=w,e=a,s=M;break;case 2:t=M,e=a,s=I;break;case 3:t=M,e=w,s=a;break;case 4:t=I,e=M,s=a;break;case 5:t=a,e=M,s=w}return[t,e,s]}function RGBtoHSV(o,u,a){var D,t=Math.max(o,u,a),e=Math.min(o,u,a),s=t-e,x=0===t?0:s/t,M=t/255;switch(t){case e:D=0;break;case o:D=u-a+s*(u<a?6:0),D/=6*s;break;case u:D=a-o+2*s,D/=6*s;break;case a:D=o-u+4*s,D/=6*s}return[D,x,M]}function addSaturationToRGB(o,u){var a=RGBtoHSV(255*o[0],255*o[1],255*o[2]);return a[1]+=u,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,u){var a=RGBtoHSV(255*o[0],255*o[1],255*o[2]);return a[2]+=u,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,u){var a=RGBtoHSV(255*o[0],255*o[1],255*o[2]);return a[0]+=u/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var u,a,o=[];for(u=0;u<256;u+=1)a=u.toString(16),o[u]=1===a.length?"0"+a:a;return function(t,e,s){return t<0&&(t=0),e<0&&(e=0),s<0&&(s=0),"#"+o[t]+o[e]+o[s]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u},getIdPrefix=function(){return idPrefix$1};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var dataManager=function(){var a,t,o=1,u=[],e={onmessage:function(){},postMessage:function(k){a({data:k})}},s={postMessage:function(k){e.onmessage({data:k})}};function x(){t||((t=function D(S){if(window.Worker&&window.Blob&&getWebWorker()){var k=new Blob(["var _workerSelf = self; self.onmessage = ",S.toString()],{type:"text/javascript"}),z=URL.createObjectURL(k);return new Worker(z)}return a=S,e}(function(k){if(s.dataManager||(s.dataManager=function z(){function ne(Oe,K){var X,V,Ee,ye,nt,at,q=Oe.length;for(V=0;V<q;V+=1)if("ks"in(X=Oe[V])&&!X.completed){if(X.completed=!0,X.hasMask){var me=X.masksProperties;for(ye=me.length,Ee=0;Ee<ye;Ee+=1)if(me[Ee].pt.k.i)fe(me[Ee].pt.k);else for(at=me[Ee].pt.k.length,nt=0;nt<at;nt+=1)me[Ee].pt.k[nt].s&&fe(me[Ee].pt.k[nt].s[0]),me[Ee].pt.k[nt].e&&fe(me[Ee].pt.k[nt].e[0])}0===X.ty?(X.layers=W(X.refId,K),ne(X.layers,K)):4===X.ty&&Y(X.shapes)}}function W(Oe,K){var X=function G(Oe,K){for(var X=0,V=K.length;X<V;){if(K[X].id===Oe)return K[X];X+=1}return null}(Oe,K);return X?X.layers.__used?JSON.parse(JSON.stringify(X.layers)):(X.layers.__used=!0,X.layers):null}function Y(Oe){var K,V,q;for(K=Oe.length-1;K>=0;K-=1)if("sh"===Oe[K].ty)if(Oe[K].ks.k.i)fe(Oe[K].ks.k);else for(q=Oe[K].ks.k.length,V=0;V<q;V+=1)Oe[K].ks.k[V].s&&fe(Oe[K].ks.k[V].s[0]),Oe[K].ks.k[V].e&&fe(Oe[K].ks.k[V].e[0]);else"gr"===Oe[K].ty&&Y(Oe[K].it)}function fe(Oe){var K,X=Oe.i.length;for(K=0;K<X;K+=1)Oe.i[K][0]+=Oe.v[K][0],Oe.i[K][1]+=Oe.v[K][1],Oe.o[K][0]+=Oe.v[K][0],Oe.o[K][1]+=Oe.v[K][1]}function N(Oe,K){var X=K?K.split("."):[100,100,100];return Oe[0]>X[0]||!(X[0]>Oe[0])&&(Oe[1]>X[1]||!(X[1]>Oe[1])&&(Oe[2]>X[2]||!(X[2]>Oe[2])&&null))}var Oe,Q=function(){var Oe=[4,4,14];function K(V){V.t.d={k:[{s:V.t.d,t:0}]}}function X(V){var q,Ee=V.length;for(q=0;q<Ee;q+=1)5===V[q].ty&&K(V[q])}return function(V){if(N(Oe,V.v)&&(X(V.layers),V.assets)){var q,Ee=V.assets.length;for(q=0;q<Ee;q+=1)V.assets[q].layers&&X(V.assets[q].layers)}}}(),O=(Oe=[4,7,99],function(K){if(K.chars&&!N(Oe,K.v)){var X,V=K.chars.length;for(X=0;X<V;X+=1){var q=K.chars[X];q.data&&q.data.shapes&&(Y(q.data.shapes),q.data.ip=0,q.data.op=99999,q.data.st=0,q.data.sr=1,q.data.ks={p:{k:[0,0],a:0}
vendor: 10,198 bytes, line 1
1,s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},K.chars[X].t||(q.data.shapes.push({ty:"no"}),q.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),ee=function(){var Oe=[5,7,15];function K(V){var q=V.t.p;"number"==typeof q.a&&(q.a={a:0,k:q.a}),"number"==typeof q.p&&(q.p={a:0,k:q.p}),"number"==typeof q.r&&(q.r={a:0,k:q.r})}function X(V){var q,Ee=V.length;for(q=0;q<Ee;q+=1)5===V[q].ty&&K(V[q])}return function(V){if(N(Oe,V.v)&&(X(V.layers),V.assets)){var q,Ee=V.assets.length;for(q=0;q<Ee;q+=1)V.assets[q].layers&&X(V.assets[q].layers)}}}(),ue=function(){var Oe=[4,1,9];function K(V){var q,ye,nt,Ee=V.length;for(q=0;q<Ee;q+=1)if("gr"===V[q].ty)K(V[q].it);else if("fl"===V[q].ty||"st"===V[q].ty)if(V[q].c.k&&V[q].c.k[0].i)for(nt=V[q].c.k.length,ye=0;ye<nt;ye+=1)V[q].c.k[ye].s&&(V[q].c.k[ye].s[0]/=255,V[q].c.k[ye].s[1]/=255,V[q].c.k[ye].s[2]/=255,V[q].c.k[ye].s[3]/=255),V[q].c.k[ye].e&&(V[q].c.k[ye].e[0]/=255,V[q].c.k[ye].e[1]/=255,V[q].c.k[ye].e[2]/=255,V[q].c.k[ye].e[3]/=255);else V[q].c.k[0]/=255,V[q].c.k[1]/=255,V[q].c.k[2]/=255,V[q].c.k[3]/=255}function X(V){var q,Ee=V.length;for(q=0;q<Ee;q+=1)4===V[q].ty&&K(V[q].shapes)}return function(V){if(N(Oe,V.v)&&(X(V.layers),V.assets)){var q,Ee=V.assets.length;for(q=0;q<Ee;q+=1)V.assets[q].layers&&X(V.assets[q].layers)}}}(),_e=function(){var Oe=[4,4,18];function K(V){var q,ye,nt;for(q=V.length-1;q>=0;q-=1)if("sh"===V[q].ty)if(V[q].ks.k.i)V[q].ks.k.c=V[q].closed;else for(nt=V[q].ks.k.length,ye=0;ye<nt;ye+=1)V[q].ks.k[ye].s&&(V[q].ks.k[ye].s[0].c=V[q].closed),V[q].ks.k[ye].e&&(V[q].ks.k[ye].e[0].c=V[q].closed);else"gr"===V[q].ty&&K(V[q].it)}function X(V){var q,Ee,nt,at,me,ve,ye=V.length;for(Ee=0;Ee<ye;Ee+=1){if((q=V[Ee]).hasMask){var je=q.masksProperties;for(at=je.length,nt=0;nt<at;nt+=1)if(je[nt].pt.k.i)je[nt].pt.k.c=je[nt].cl;else for(ve=je[nt].pt.k.length,me=0;me<ve;me+=1)je[nt].pt.k[me].s&&(je[nt].pt.k[me].s[0].c=je[nt].cl),je[nt].pt.k[me].e&&(je[nt].pt.k[me].e[0].c=je[nt].cl)}4===q.ty&&K(q.shapes)}}return function(V){if(N(Oe,V.v)&&(X(V.layers),V.assets)){var q,Ee=V.assets.length;for(q=0;q<Ee;q+=1)V.assets[q].layers&&X(V.assets[q].layers)}}}(),ze={completeData:function be(Oe){Oe.__complete||(ue(Oe),Q(Oe),O(Oe),ee(Oe),_e(Oe),ne(Oe.layers,Oe.assets),function B(Oe,K){if(Oe){var X=0,V=Oe.length;for(X=0;X<V;X+=1)1===Oe[X].t&&(Oe[X].data.layers=W(Oe[X].data.refId,K),ne(Oe[X].data.layers,K))}}(Oe.chars,Oe.assets),Oe.__complete=!0)}};return ze.checkColors=ue,ze.checkChars=O,ze.checkPathProperties=ee,ze.checkShapes=_e,ze.completeLayers=ne,ze}()),s.assetLoader||(s.assetLoader=function(){function ne(G){var W=G.getResponseHeader("content-type");return W&&"json"===G.responseType&&-1!==W.indexOf("json")||G.response&&"object"===_typeof$5(G.response)?G.response:G.response&&"string"==typeof G.response?JSON.parse(G.response):G.responseText?JSON.parse(G.responseText):null}return{load:function B(G,W,Y,fe){var N,Q=new XMLHttpRequest;try{Q.responseType="json"}catch{}Q.onreadystatechange=function(){if(4===Q.readyState)if(200===Q.status)N=ne(Q),Y(N);else try{N=ne(Q),Y(N)}catch(O){fe&&fe(O)}};try{Q.open(["G","E","T"].join(""),G,!0)}catch{Q.open(["G","E","T"].join(""),W+"/"+G,!0)}Q.send()}}}()),"loadAnimation"===k.data.type)s.assetLoader.load(k.data.path,k.data.fullPath,function(ne){s.dataManager.completeData(ne),s.postMessage({id:k.data.id,payload:ne,status:"success"})},function(){s.postMessage({id:k.data.id,status:"error"})});else if("complete"===k.data.type){var F=k.data.animation;s.dataManager.completeData(F),s.postMessage({id:k.data.id,payload:F,status:"success"})}else"loadData"===k.data.type&&s.assetLoader.load(k.data.path,k.data.fullPath,function(ne){s.postMessage({id:k.data.id,payload:ne,status:"success"})},function(){s.postMessage({id:k.data.id,status:"error"})})})).onmessage=function(S){var k=S.data,z=k.id,F=u[z];u[z]=null,"success"===k.status?F.onComplete(k.payload):F.onError&&F.onError()})}function M(S,k){var z="processId_"+(o+=1);return u[z]={onComplete:S,onError:k},z}return{loadAnimation:function w(S,k,z){x();var F=M(k,z);t.postMessage({type:"loadAnimation",path:S,fullPath:window.location.origin+window.location.pathname,id:F})},loadData:function I(S,k,z){x();var F=M(k,z);t.postMessage({type:"loadData",path:S,fullPath:window.location.origin+window.location.pathname,id:F})},completeAnimation:function P(S,k,z){x();var F=M(k,z);t.postMessage({type:"complete",animation:S,id:F})}}}(),ImagePreloader=function(){var o=function(){var B=createTag("canvas");B.width=1,B.height=1;var G=B.getContext("2d");return G.fillStyle="rgba(0,0,0,0)",G.fillRect(0,0,1,1),B}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function t(B,G,W){var Y="";if(B.e)Y=B.p;else if(G){var fe=B.p;-1!==fe.indexOf("images/")&&(fe=fe.split("/")[1]),Y=G+fe}else Y=W,Y+=B.u?B.u:"",Y+=B.p;return Y}function e(B){var G=0,W=setInterval(function(){(B.getBBox().width||G>500)&&(this._imageLoaded(),clearInterval(W)),G+=1}.bind(this),50)}function x(B){var G={assetData:B},W=t(B,this.assetsPath,this.path);return dataManager.loadData(W,function(Y){G.img=Y,this._footageLoaded()}.bind(this),function(){G.img={},this._footageLoaded()}.bind(this)),G}function ne(){this._imageLoaded=u.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=e.bind(this),this.createFootageData=x.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ne.prototype={loadAssets:function M(B,G){this.imagesLoadedCb=G;var W,Y=B.length;for(W=0;W<Y;W+=1)B[W].layers||(B[W].t&&"seq"!==B[W].t?3===B[W].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(B[W]))):(this.totalImages+=1,this.images.push(this._createImageData(B[W]))))},setAssetsPath:function I(B){this.assetsPath=B||""},setPath:function w(B){this.path=B||""},loadedImages:function k(){return this.totalImages===this.loadedAssets},loadedFootages:function z(){return this.totalFootages===this.loadedFootagesCount},destroy:function S(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function P(B){for(var G=0,W=this.images.length;G<W;){if(this.images[G].assetData===B)return this.images[G].img;G+=1}return null},createImgData:function D(B){var G=t(B,this.assetsPath,this.path),W=createTag("img");W.crossOrigin="anonymous",W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){Y.img=o,this._imageLoaded()}.bind(this),!1),W.src=G;var Y={img:W,assetData:B};return Y},createImageData:function s(B){var G=t(B,this.assetsPath,this.path),W=createNS("image");isSafari?this.testImageLoaded(W):W.addEventListener("load",this._imageLoaded,!1),W.addEventListener("error",function(){Y.img=o,this._imageLoaded()}.bind(this),!1),W.setAttributeNS("http://www.w3.org/1999/xlink","href",G),this._elementHelper.append?this._elementHelper.append(W):this._elementHelper.appendChild(W);var Y={img:W,assetData:B};return Y},imageLoaded:u,footageLoaded:a,setCacheType:function F(B,G){"svg"===B?(this._elementHelper=G,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},ne}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,a){if(this._cbs[u])for(var t=this._cbs[u],e=0;e<t.length;e+=1)t[e](a)},addEventListener:function(u,a){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(a),function(){this.removeEventListener(u,a)}.bind(this)},removeEventListener:function(u,a){if(a){if(this._cbs[u]){for(var t=0,e=this._cbs[u].length;t<e;)this._cbs[u][t]===a&&(this._cbs[u].splice(t,1),t-=1,e-=1),t+=1;this._cbs[u].length||(this._cbs[u]=null)}}else this._cbs[u]=null}};var markerParser=function(){function o(u){for(var e,a=u.split("\r\n"),t={},s=0,D=0;D<a.length;D+=1)2===(e=a[D].split(":")).length&&(t[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return t}return function(u){for(var a=[],t=0;t<u.length;t+=1){var e=u[t],s={time:e.tm,duration:e.dr};try{s.payload=JSON.parse(u[t].cm)}catch{try{s.payload=o(u[t].cm)}catch{s.payload={name:u[t].cm}}}a.push(s)}return a}}(),ProjectInterface=function(){function o(u){this.compositions.push(u)}return function(){function u(a){for(var t=0,e=this.compositions.length;t<e;){if(this.compositions[t].data&&this.compositions[t].data.nm===a)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return u.compositions=[],u.currentFrame=0,u.registerComposition=o,u}}(),renderers={},registerRenderer=function(u,a){renderers[u]=a};function getRenderer(o){return renderers[o]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var o in renderers)if(renderers[o])return o;return""}function _typeof$4(o){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=ne
vendor: 2,500 bytes, line 1
1w BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(o){(o.wrapper||o.container)&&(this.wrapper=o.wrapper||o.container);var u="svg";o.animType?u=o.animType:o.renderer&&(u=o.renderer);var a=getRenderer(u);this.renderer=new a(this,o.rendererSettings),this.imagePreloader.setCacheType(u,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=u,this.loop=""===o.loop||null==o.loop||!0===o.loop||!1!==o.loop&&parseInt(o.loop,10),this.autoplay=!("autoplay"in o)||o.autoplay,this.name=o.name?o.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(o,"autoloadSegments")||o.autoloadSegments,this.assetsPath=o.assetsPath,this.initialSegment=o.initialSegment,o.audioFactory&&this.audioController.setAudioFactory(o.audioFactory),o.animationData?this.setupAnimation(o.animationData):o.path&&(this.path=-1!==o.path.lastIndexOf("\\")?o.path.substr(0,o.path.lastIndexOf("\\")+1):o.path.substr(0,o.path.lastIndexOf("/")+1),this.fileName=o.path.substr(o.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(o.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(o){dataManager.completeAnimation(o,this.configAnimation)},AnimationItem.prototype.setData=function(o,u){u&&"object"!==_typeof$4(u)&&(u=JSON.parse(u));var a={wrapper:o,animationData:u},t=o.attributes;a.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",a.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var e=t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:"";"false"===e?a.loop=!1:"true"===e?a.loop=!0:""!==e&&(a.loop=parseInt(e,10));
vendor: 4,625 bytes, line 1
1var s=t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value;a.autoplay="false"!==s,a.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(o){o.op>this.animationData.op&&(this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip));var a,s,u=this.animationData.layers,t=u.length,e=o.layers,D=e.length;for(s=0;s<D;s+=1)for(a=0;a<t;){if(u[a].id===e[s].id){u[a]=e[s];break}a+=1}if((o.chars||o.fonts)&&(this.renderer.globalData.fontManager.addChars(o.chars),this.renderer.globalData.fontManager.addFonts(o.fonts,this.renderer.globalData.defs)),o.assets)for(t=o.assets.length,a=0;a<t;a+=1)this.animationData.assets.push(o.assets[a]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(o){this.animationData=o;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var o=this.animationData.segments;if(!o||0===o.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var u=o.shift();this.timeCompleted=u.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(o){if(this.renderer)try{this.animationData=o,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(o),o.assets||(o.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(o.assets),this.markers=markerParser(o.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(u){this.triggerConfigError(u)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var o=getExpressionsPlugin();o&&o.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(o,u){this.renderer.updateContainerSize("number"==typeof o?o:void 0,"number"==typeof u?u:void 0)},AnimationItem.prototype.setSubframe=function(o){this.isSubframeEnabled=!!o},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame
vendor: 4,127 bytes, line 1
1(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(o){this.triggerRenderFrameError(o)}},AnimationItem.prototype.play=function(o){o&&this.name!==o||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(o){o&&this.name!==o||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(o){o&&this.name!==o||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(o){o&&this.name!==o||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(o){for(var u,a=0;a<this.markers.length;a+=1)if((u=this.markers[a]).payload&&u.payload.name===o)return u;return null},AnimationItem.prototype.goToAndStop=function(o,u,a){if(!a||this.name===a){var t=Number(o);if(isNaN(t)){var e=this.getMarkerData(o);e&&this.goToAndStop(e.time,!0)}else this.setCurrentRawFrameValue(u?o:o*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(o,u,a){if(!a||this.name===a){var t=Number(o);if(isNaN(t)){var e=this.getMarkerData(o);e&&(e.duration?this.playSegments([e.time,e.time+e.duration],!0):this.goToAndStop(e.time,!0))}else this.goToAndStop(t,u,a);this.play()}},AnimationItem.prototype.advanceTime=function(o){if(!0!==this.isPaused&&!1!==this.isLoaded){var u=this.currentRawFrame+o*this.frameModifier,a=!1;u>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?u>=this.totalFrames?(this.playCount+=1,this.checkSegments(u%this.totalFrames)||(this.setCurrentRawFrameValue(u%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(u):this.checkSegments(u>this.totalFrames?u%this.totalFrames:0)||(a=!0,u=this.totalFrames-1):u<0?this.checkSegments(u%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(a=!0,u=0):(this.setCurrentRawFrameValue(this.totalFrames+u%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(u),a&&(this.setCurrentRawFrameValue(u),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(o,u){this.playCount=0,o[1]<o[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=o[0]-o[1],this.timeCompleted=this.totalFrames,this.firstFrame=o[1],this.setCurrentRawFrameValue(this.totalFrames-.001-u)):o[1]>o[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=o[1]-o[0],this.timeCompleted=this.totalFrames,this.firstFrame=o[0],this.setCurrentRawFrameValue(.001+u)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(o,u){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<o?a=o:this.currentRawFrame+this.firstFrame>u&&(a=u-o)),this.firstFrame=o,this.totalFrames=u-o,this.timeCompleted=this.totalFrames,-1!==a&&this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(o,u){if(u&&(this.segments.length=0),"object"===_typeof$4(o[0])){var a,t=o.length;for(a=0;a<t;a+=1)this.segments.push(o[a])}else this.segments.push(o);this.segments.length&&u&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(o){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),o&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(o){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),o),!0)},AnimationItem.prototype.destroy=function(o){o&&this.name!==o||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)}
vendor: 5,399 bytes, line 1
1,AnimationItem.prototype.setCurrentRawFrameValue=function(o){this.currentRawFrame=o,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(o){this.playSpeed=o,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(o){this.playDirection=o<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(o){this.loop=o},AnimationItem.prototype.setVolume=function(o,u){u&&this.name!==u||this.audioController.setVolume(o)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(o){o&&this.name!==o||this.audioController.mute()},AnimationItem.prototype.unmute=function(o){o&&this.name!==o||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(o){var u="";if(o.e)u=o.p;else if(this.assetsPath){var a=o.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),u=this.assetsPath+a}else u=this.path,u+=o.u?o.u:"",u+=o.p;return u},AnimationItem.prototype.getAssetData=function(o){for(var u=0,a=this.assets.length;u<a;){if(o===this.assets[u].id)return this.assets[u];u+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(o){return o?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(o,u,a){try{this.renderer.getElementByPath(o).updateDocumentData(u,a)}catch{}},AnimationItem.prototype.trigger=function(o){if(this._cbs&&this._cbs[o])switch(o){case"enterFrame":this.triggerEvent(o,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(o,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(o,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(o,new BMCompleteEvent(o,this.frameMult));break;case"segmentStart":this.triggerEvent(o,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(o,new BMDestroyEvent(o,this));break;default:this.triggerEvent(o)}"enterFrame"===o&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===o&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult)),"complete"===o&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(o,this.frameMult)),"segmentStart"===o&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames)),"destroy"===o&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(o,this))},AnimationItem.prototype.triggerRenderFrameError=function(o){var u=new BMRenderFrameErrorEvent(o,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)},AnimationItem.prototype.triggerConfigError=function(o){var u=new BMConfigErrorEvent(o,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)};var animationManager=function(){var o={},u=[],a=0,t=0,e=0,s=!0,D=!1;function x(K){for(var X=0,V=K.target;X<t;)u[X].animation===V&&(u.splice(X,1),X-=1,t-=1,V.isPaused||P()),X+=1}function M(K,X){if(!K)return null;for(var V=0;V<t;){if(u[V].elem===K&&null!==u[V].elem)return u[V].animation;V+=1}var q=new AnimationItem;return S(q,K),q.setData(K,X),q}function I(){e+=1,ue()}function P(){e-=1}function S(K,X){K.addEventListener("destroy",x),K.addEventListener("_active",I),K.addEventListener("_idle",P),u.push({elem:X,animation:K}),t+=1}function B(K){var V,X=K-a;for(V=0;V<t;V+=1)u[V].animation.advanceTime(X);a=K,e&&!D?window.requestAnimationFrame(B):s=!0}function G(K){a=K,window.requestAnimationFrame(B)}function ue(){!D&&e&&s&&(window.requestAnimationFrame(G),s=!1)}return o.registerAnimation=M,o.loadAnimation=function k(K){var X=new AnimationItem;return S(X,null),X.setParams(K),X},o.setSpeed=function z(K,X){var V;for(V=0;V<t;V+=1)u[V].animation.setSpeed(K,X)},o.setDirection=function F(K,X){var V;for(V=0;V<t;V+=1)u[V].animation.setDirection(K,X)},o.play=function ne(K){var X;for(X=0;X<t;X+=1)u[X].animation.play(K)},o.pause=function W(K){var X;for(X=0;X<t;X+=1)u[X].animation.pause(K)},o.stop=function fe(K){var X;for(X=0;X<t;X+=1)u[X].animation.stop(K)},o.togglePause=function N(K){var X;for(X=0;X<t;X+=1)u[X].animation.togglePause(K)},o.searchAnimations=function O(K,X,V){var Ee,q=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ye=q.length;for(Ee=0;Ee<ye;Ee+=1)V&&q[Ee].setAttribute("data-bm-type",V),M(q[Ee],K);if(X&&0===ye){V||(V="svg");var nt=document.getElementsByTagName("body")[0];nt.innerText="";var at=createTag("div");at.style.width="100%",at.style.height="100%",at.setAttribute("data-bm-type",V),nt.appendChild(at),M(at,K)}},o.resize=function ee(){var K;for(K=0;K<t;K+=1)u[K].animation.resize()},o.goToAndStop=function Y(K,X,V){var q;
vendor: 4,169 bytes, line 1
1for(q=0;q<t;q+=1)u[q].animation.goToAndStop(K,X,V)},o.destroy=function Q(K){var X;for(X=t-1;X>=0;X-=1)u[X].animation.destroy(K)},o.freeze=function _e(){D=!0},o.unfreeze=function be(){D=!1,ue()},o.setVolume=function Qe(K,X){var V;for(V=0;V<t;V+=1)u[V].animation.setVolume(K,X)},o.mute=function ze(K){var X;for(X=0;X<t;X+=1)u[X].animation.mute(K)},o.unmute=function Oe(K){var X;for(X=0;X<t;X+=1)u[X].animation.unmute(K)},o.getRegisteredAnimations=function w(){var K,X=u.length,V=[];for(K=0;K<X;K+=1)V.push(u[K].animation);return V},o}(),BezierFactory=function(){var o={getBezierEasing:function a(G,W,Y,fe,N){var Q=N||("bez_"+G+"_"+W+"_"+Y+"_"+fe).replace(/\./g,"p");if(u[Q])return u[Q];var O=new B([G,W,Y,fe]);return u[Q]=O,O}},u={},x=11,M=1/(x-1),w="function"==typeof Float32Array;function I(G,W){return 1-3*W+3*G}function P(G,W){return 3*W-6*G}function S(G){return 3*G}function k(G,W,Y){return((I(W,Y)*G+P(W,Y))*G+S(W))*G}function z(G,W,Y){return 3*I(W,Y)*G*G+2*P(W,Y)*G+S(W)}function B(G){this._p=G,this._mSampleValues=w?new Float32Array(x):new Array(x),this._precomputed=!1,this.get=this.get.bind(this)}return B.prototype={get:function(W){var Y=this._p[0],fe=this._p[1],N=this._p[2],Q=this._p[3];return this._precomputed||this._precompute(),Y===fe&&N===Q?W:0===W?0:1===W?1:k(this._getTForX(W),fe,Q)},_precompute:function(){var W=this._p[0],Y=this._p[1],fe=this._p[2],N=this._p[3];this._precomputed=!0,(W!==Y||fe!==N)&&this._calcSampleValues()},_calcSampleValues:function(){for(var W=this._p[0],Y=this._p[2],fe=0;fe<x;++fe)this._mSampleValues[fe]=k(fe*M,W,Y)},_getTForX:function(W){for(var Y=this._p[0],fe=this._p[2],N=this._mSampleValues,Q=0,O=1,ee=x-1;O!==ee&&N[O]<=W;++O)Q+=M;var _e=Q+(W-N[--O])/(N[O+1]-N[O])*M,be=z(_e,Y,fe);return be>=.001?function ne(G,W,Y,fe){for(var N=0;N<4;++N){var Q=z(W,Y,fe);if(0===Q)return W;W-=(k(W,Y,fe)-G)/Q}return W}(W,_e,Y,fe):0===be?_e:function F(G,W,Y,fe,N){var Q,O,ee=0;do{(Q=k(O=W+(Y-W)/2,fe,N)-G)>0?Y=O:W=O}while(Math.abs(Q)>1e-7&&++ee<10);return O}(W,Q,Q+M,Y,fe)}},o}(),pooling={double:function o(u){return u.concat(createSizedArray(u.length))}},poolFactory=function(o,u,a){var t=0,e=o,s=createSizedArray(e);return{newElement:function x(){return t?s[t-=1]:u()},release:function M(w){t===e&&(s=pooling.double(s),e*=2),a&&a(w),s[t]=w,t+=1}}},bezierLengthPool=poolFactory(8,function o(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function o(){return{lengths:[],totalLength:0}},function u(a){var t,e=a.lengths.length;for(t=0;t<e;t+=1)bezierLengthPool.release(a.lengths[t]);a.lengths.length=0});function bezFunction(){var o=Math;function u(S,k,z,F,ne,B){var G=S*F+k*ne+z*B-ne*F-B*S-z*k;return G>-.001&&G<.001}var t=function(S,k,z,F){var B,G,W,Y,fe,Q,ne=getDefaultCurveSegments(),N=0,O=[],ee=[],ue=bezierLengthPool.newElement();for(W=z.length,B=0;B<ne;B+=1){for(fe=B/(ne-1),Q=0,G=0;G<W;G+=1)Y=bmPow(1-fe,3)*S[G]+3*bmPow(1-fe,2)*fe*z[G]+3*(1-fe)*bmPow(fe,2)*F[G]+bmPow(fe,3)*k[G],O[G]=Y,null!==ee[G]&&(Q+=bmPow(O[G]-ee[G],2)),ee[G]=O[G];Q&&(N+=Q=bmSqrt(Q)),ue.percents[B]=fe,ue.lengths[B]=N}return ue.addedLength=N,ue};function s(S){this.segmentLength=0,this.points=new Array(S)}function D(S,k){this.partialLength=S,this.point=k}var S,x=(S={},function(k,z,F,ne){var B=(k[0]+"_"+k[1]+"_"+z[0]+"_"+z[1]+"_"+F[0]+"_"+F[1]+"_"+ne[0]+"_"+ne[1]).replace(/\./g,"p");if(!S[B]){var W,Y,fe,N,Q,ee,ue,G=getDefaultCurveSegments(),O=0,_e=null;2===k.length&&(k[0]!==z[0]||k[1]!==z[1])&&u(k[0],k[1],z[0],z[1],k[0]+F[0],k[1]+F[1])&&u(k[0],k[1],z[0],z[1],z[0]+ne[0],z[1]+ne[1])&&(G=2);var be=new s(G);for(fe=F.length,W=0;W<G;W+=1){for(ue=createSizedArray(fe),Q=W/(G-1),ee=0,Y=0;Y<fe;Y+=1)N=bmPow(1-Q,3)*k[Y]+3*bmPow(1-Q,2)*Q*(k[Y]+F[Y])+3*(1-Q)*bmPow(Q,2)*(z[Y]+ne[Y])+bmPow(Q,3)*z[Y],ue[Y]=N,null!==_e&&(ee+=bmPow(ue[Y]-_e[Y],2));O+=ee=bmSqrt(ee),be.points[W]=new D(ee,ue),_e=ue}be.segmentLength=O,S[B]=be}return S[B]});function M(S,k){var z=k.percents,F=k.lengths,ne=z.length,B=bmFloor((ne-1)*S),G=S*k.addedLength,W=0;if(B===ne-1||0===B||G===F[B])return z[B];for(var Y=F[B]>G?-1:1,fe=!0;fe;)if(F[B]<=G&&F[B+1]>
vendor: 4,424 bytes, line 1
1G?(W=(G-F[B])/(F[B+1]-F[B]),fe=!1):B+=Y,B<0||B>=ne-1){if(B===ne-1)return z[B];fe=!1}return z[B]+(z[B+1]-z[B])*W}var I=createTypedArray("float32",8);return{getSegmentsLength:function e(S){var G,k=segmentsLengthPool.newElement(),z=S.c,F=S.v,ne=S.o,B=S.i,W=S._length,Y=k.lengths,fe=0;for(G=0;G<W-1;G+=1)Y[G]=t(F[G],F[G+1],ne[G],B[G+1]),fe+=Y[G].addedLength;return z&&W&&(Y[G]=t(F[G],F[0],ne[G],B[0]),fe+=Y[G].addedLength),k.totalLength=fe,k},getNewSegment:function P(S,k,z,F,ne,B,G){ne<0?ne=0:ne>1&&(ne=1);var fe,W=M(ne,G),Y=M(B=B>1?1:B,G),N=S.length,Q=1-W,O=1-Y,ee=Q*Q*Q,ue=W*Q*Q*3,_e=W*W*Q*3,be=W*W*W,Qe=Q*Q*O,ze=W*Q*O+Q*W*O+Q*Q*Y,Oe=W*W*O+Q*W*Y+W*Q*Y,K=W*W*Y,X=Q*O*O,V=W*O*O+Q*Y*O+Q*O*Y,q=W*Y*O+Q*Y*Y+W*O*Y,Ee=W*Y*Y,ye=O*O*O,nt=Y*O*O+O*Y*O+O*O*Y,at=Y*Y*O+O*Y*Y+Y*O*Y,me=Y*Y*Y;for(fe=0;fe<N;fe+=1)I[4*fe]=o.round(1e3*(ee*S[fe]+ue*z[fe]+_e*F[fe]+be*k[fe]))/1e3,I[4*fe+1]=o.round(1e3*(Qe*S[fe]+ze*z[fe]+Oe*F[fe]+K*k[fe]))/1e3,I[4*fe+2]=o.round(1e3*(X*S[fe]+V*z[fe]+q*F[fe]+Ee*k[fe]))/1e3,I[4*fe+3]=o.round(1e3*(ye*S[fe]+nt*z[fe]+at*F[fe]+me*k[fe]))/1e3;return I},getPointInSegment:function w(S,k,z,F,ne,B){var G=M(ne,B),W=1-G;return[o.round(1e3*(W*W*W*S[0]+(G*W*W+W*G*W+W*W*G)*z[0]+(G*G*W+W*G*G+G*W*G)*F[0]+G*G*G*k[0]))/1e3,o.round(1e3*(W*W*W*S[1]+(G*W*W+W*G*W+W*W*G)*z[1]+(G*G*W+W*G*G+G*W*G)*F[1]+G*G*G*k[1]))/1e3]},buildBezierData:x,pointOnLine2D:u,pointOnLine3D:function a(S,k,z,F,ne,B,G,W,Y){if(0===z&&0===B&&0===Y)return u(S,k,F,ne,G,W);var O,fe=o.sqrt(o.pow(F-S,2)+o.pow(ne-k,2)+o.pow(B-z,2)),N=o.sqrt(o.pow(G-S,2)+o.pow(W-k,2)+o.pow(Y-z,2)),Q=o.sqrt(o.pow(G-F,2)+o.pow(W-ne,2)+o.pow(Y-B,2));return(O=fe>N?fe>Q?fe-N-Q:Q-N-fe:Q>N?Q-N-fe:N-fe-Q)>-1e-4&&O<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(o,u){var t,a=this.offsetTime;"multidimensional"===this.propType&&(t=createTypedArray("float32",this.pv.length));for(var M,w,I,e=u.lastIndex,s=e,D=this.keyframes.length-1,x=!0;x;){if(M=this.keyframes[s],w=this.keyframes[s+1],s===D-1&&o>=w.t-a){M.h&&(M=w),e=0;break}if(w.t-a>o){e=s;break}s<D-1?s+=1:(e=0,x=!1)}I=this.keyframesMetadata[s]||{};var P,S,k,z,F,ne,W,B=w.t-a,G=M.t-a;if(M.to){I.bezierData||(I.bezierData=bez.buildBezierData(M.s,w.s||M.e,M.to,M.ti));var Y=I.bezierData;if(o>=B||o<G){var fe=o>=B?Y.points.length-1:0;for(S=Y.points[fe].point.length,P=0;P<S;P+=1)t[P]=Y.points[fe].point[P]}else{I.__fnct?ne=I.__fnct:(ne=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y,M.n).get,I.__fnct=ne),k=ne((o-G)/(B-G));var Q,N=Y.segmentLength*k,O=u.lastFrame<o&&u._lastKeyframeIndex===s?u._lastAddedLength:0;for(F=u.lastFrame<o&&u._lastKeyframeIndex===s?u._lastPoint:0,x=!0,z=Y.points.length;x;){if(O+=Y.points[F].partialLength,0===N||0===k||F===Y.points.length-1){for(S=Y.points[F].point.length,P=0;P<S;P+=1)t[P]=Y.points[F].point[P];break}if(N>=O&&N<O+Y.points[F+1].partialLength){for(Q=(N-O)/Y.points[F+1].partialLength,S=Y.points[F].point.length,P=0;P<S;P+=1)t[P]=Y.points[F].point[P]+(Y.points[F+1].point[P]-Y.points[F].point[P])*Q;break}F<z-1?F+=1:x=!1}u._lastPoint=F,u._lastAddedLength=O-Y.points[F].partialLength,u._lastKeyframeIndex=s}}else{var Qe;if(D=M.s.length,W=w.s||M.e,this.sh&&1!==M.h)o>=B?(t[0]=W[0],t[1]=W[1],t[2]=W[2]):o<=G?(t[0]=M.s[0],t[1]=M.s[1],t[2]=M.s[2]):quaternionToEuler(t,slerp(createQuaternion(M.s),createQuaternion(W),(o-G)/(B-G)));else for(s=0;s<D;s+=1)1!==M.h&&(o>=B?k=1:o<G?k=0:(M.o.x.constructor===Array?(I.__fnct||(I.__fnct=[]),I.__fnct[s]?ne=I.__fnct[s]:(ne=BezierFactory.getBezierEasing(void 0===M.o.x[s]?M.o.x[0]:M.o.x[s],void 0===M.o.y[s]?M.o.y[0]:M.o.y[s],void 0===M.i.x[s]?M.i.x[0]:M.i.x[s],void 0===M.i.y[s]?M.i.y[0]:M.i.y[s]).get,I.__fnct[s]=ne)):I.__fnct?ne=I.__fnct:(ne=BezierFactory.getBezierEasing(M.o.x,M.o.y,M.i.x,M.i.y).get,M.keyframeMetadata=ne),k=ne((o-G)/(B-G)))),W=w.s||M.e,Qe=1===M.h?M.s[s]:M.s[s]+(W[s]-M.s[s])*k,"multidimensional"===this.propType?t[s]=Qe:t=Qe}return u.lastIndex=e,t}function slerp(o,u,a){var S,k,z,F,ne,t=[],e=o[0],s=o[1],D=o[2],x=o[3],M=u[0],w=u[1],I=u[2],P=u[3];return(k=e*M+s*w+D*I+x*P)<0&&(k=-k,M=-M,w=-w,I=-I,P=-P),1-k>1e-6?(S=Math.acos(k),z=Math.sin(S),F=Math.sin((1-a)*S)/z,ne=Math.sin(a*S)/z):(F=1-a,ne=a),t[0]=F*e+ne*M,t[1]=F*s+ne*w,t[2]=F*D+ne*I,t[3]=F*x+ne*P,t}function quaternionToEuler(o,u){var a=u[0],t=u[1],e=u[2],s=u[3],D=Math.atan2(2*t*s-2*a*e,1-2*t*t-2*e*e),x=Math.asin(2*a*t+2*e*s),M=Math.atan2(2*a*s-2*t*e,1-2*a*a-2*e*e);o[0]=D/degToRads,o[1]=x/degToRads,o[2]=M/degToRads}
vendor: 5,067 bytes, line 1
1function createQuaternion(o){var u=o[0]*degToRads,a=o[1]*degToRads,t=o[2]*degToRads,e=Math.cos(u/2),s=Math.cos(a/2),D=Math.cos(t/2),x=Math.sin(u/2),M=Math.sin(a/2),w=Math.sin(t/2);return[x*M*D+e*s*w,x*s*D+e*M*w,e*M*D-x*s*w,e*s*D-x*M*w]}function getValueAtCurrentTime(){var o=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(o===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&o>=a||this._caching.lastFrame<u&&o<u))){this._caching.lastFrame>=o&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var t=this.interpolateValue(o,this._caching);this.pv=t}return this._caching.lastFrame=o,this.pv}function setVValue(o){var u;if("unidimensional"===this.propType)mathAbs(this.v-(u=o*this.mult))>1e-5&&(this.v=u,this._mdf=!0);else for(var a=0,t=this.v.length;a<t;)mathAbs(this.v[a]-(u=o[a]*this.mult))>1e-5&&(this.v[a]=u,this._mdf=!0),a+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var o,u=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(o=0;o<u;o+=1)a=this.effectsSequence[o](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(o){this.effectsSequence.push(o),this.container.addDynamicProperty(this)}function ValueProperty(o,u,a,t){this.propType="unidimensional",this.mult=a||1,this.data=u,this.v=a?u.k*a:u.k,this.pv=u.k,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(o,u,a,t){this.propType="multidimensional",this.mult=a||1,this.data=u,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.frameId=-1;var e,s=u.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),e=0;e<s;e+=1)this.v[e]=u.k[e]*this.mult,this.pv[e]=u.k[e];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(o,u,a,t){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(o,u,a,t){this.propType="multidimensional";var e,D,x,M,w,s=u.k.length;for(e=0;e<s-1;e+=1)u.k[e].to&&u.k[e].s&&u.k[e+1]&&u.k[e+1].s&&(x=u.k[e+1].s,M=u.k[e].to,w=u.k[e].ti,(2===(D=u.k[e].s).length&&!(D[0]===x[0]&&D[1]===x[1])&&bez.pointOnLine2D(D[0],D[1],x[0],x[1],D[0]+M[0],D[1]+M[1])&&bez.pointOnLine2D(D[0],D[1],x[0],x[1],x[0]+w[0],x[1]+w[1])||3===D.length&&!(D[0]===x[0]&&D[1]===x[1]&&D[2]===x[2])&&bez.pointOnLine3D(D[0],D[1],D[2],x[0],x[1],x[2],D[0]+M[0],D[1]+M[1],D[2]+M[2])&&bez.pointOnLine3D(D[0],D[1],D[2],x[0],x[1],x[2],x[0]+w[0],x[1]+w[1],x[2]+w[2]))&&(u.k[e].to=null,u.k[e].ti=null),D[0]===x[0]&&D[1]===x[1]&&0===M[0]&&0===M[1]&&0===w[0]&&0===w[1]&&(2===D.length||D[2]===x[2]&&0===M[2]&&0===w[2])&&(u.k[e].to=null,u.k[e].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var I=u.k[0].s.length;for(this.v=createTypedArray("float32",I),this.pv=createTypedArray("float32",I),e=0;e<I;e+=1)this.v[e]=initFrame,this.pv[e]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",I)},this.addEffect=addEffect}var PropertyFactory={getProp:function o(a,t,e,s,D){var x;if(t.sid&&(t=a.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])x=new MultiDimensionalProperty(a,t,s,D);else switch(e){case 0:x=new KeyframedValueProperty(a,t,s,D);break;case 1:x=new KeyframedMultidimensionalProperty(a,t,s,D)}else x=new ValueProperty(a,t,s,D);return x.effectsSequence.length&&D.addDynamicProperty(x),x}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(u){-1===this.dynamicProperties.indexOf(u)&&(this.dynamicProperties.push(u),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var u,a=this.dynamicProperties.length;for(u=0;
vendor: 1,133 bytes, line 1
1u<a;u+=1)this.dynamicProperties[u].getValue(),this.dynamicProperties[u]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(u){this.container=u,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function o(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(o,u){this.c=o,this.setLength(u);for(var a=0;a<u;)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(o){for(;this._maxLength<o;)this.doubleArrayLength();this._length=o},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(o,u,a,t,e){var s;switch(this._length=Math.max(this._length,t+1),this._length>
vendor: 7,232 bytes, line 1
1=this._maxLength&&this.doubleArrayLength(),a){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[t]||s[t]&&!e)&&(s[t]=pointPool.newElement()),s[t][0]=o,s[t][1]=u},ShapePath.prototype.setTripleAt=function(o,u,a,t,e,s,D,x){this.setXYAt(o,u,"v",D,x),this.setXYAt(a,t,"o",D,x),this.setXYAt(e,s,"i",D,x)},ShapePath.prototype.reverse=function(){var o=new ShapePath;o.setPathData(this.c,this._length);var u=this.v,a=this.o,t=this.i,e=0;this.c&&(o.setTripleAt(u[0][0],u[0][1],t[0][0],t[0][1],a[0][0],a[0][1],0,!1),e=1);var x,s=this._length-1,D=this._length;for(x=e;x<D;x+=1)o.setTripleAt(u[s][0],u[s][1],t[s][0],t[s][1],a[s][0],a[s][1],x,!1),s-=1;return o},ShapePath.prototype.length=function(){return this._length};var shapePool=(t=poolFactory(4,function o(){return new ShapePath},function u(e){var D,s=e._length;for(D=0;D<s;D+=1)pointPool.release(e.v[D]),pointPool.release(e.i[D]),pointPool.release(e.o[D]),e.v[D]=null,e.i[D]=null,e.o[D]=null;e._length=0,e.c=!1}),t.clone=function a(e){var D,s=t.newElement(),x=void 0===e._length?e.v.length:e._length;for(s.setLength(x),s.c=e.c,D=0;D<x;D+=1)s.setTripleAt(e.v[D][0],e.v[D][1],e.o[D][0],e.o[D][1],e.i[D][0],e.i[D][1],D);return s},t),t;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(o){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=o,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var o;for(o=0;o<this._length;o+=1)shapePool.release(this.shapes[o]);this._length=0};var shapeCollectionPool=function(){var o={newShapeCollection:function e(){return u?t[u-=1]:new ShapeCollection},release:function s(D){var x,M=D._length;for(x=0;x<M;x+=1)shapePool.release(D.shapes[x]);D._length=0,u===a&&(t=pooling.double(t),a*=2),t[u]=D,u+=1}},u=0,a=4,t=createSizedArray(a);return o}(),ShapePropertyFactory=function(){var o=-999999;function u(B,G,W){var fe,N,Q,O,ee,ue,_e,be,Y=W.lastIndex,ze=this.keyframes;if(B<ze[0].t-this.offsetTime)fe=ze[0].s[0],Q=!0,Y=0;else if(B>=ze[ze.length-1].t-this.offsetTime)fe=ze[ze.length-1].s?ze[ze.length-1].s[0]:ze[ze.length-2].e[0],Q=!0;else{for(var V,q,Ee,Oe=Y,K=ze.length-1,X=!0;X&&(V=ze[Oe],!((q=ze[Oe+1]).t-this.offsetTime>B));)Oe<K-1?Oe+=1:X=!1;if(Ee=this.keyframesMetadata[Oe]||{},Y=Oe,!(Q=1===V.h)){if(B>=q.t-this.offsetTime)be=1;else if(B<V.t-this.offsetTime)be=0;else{var ye;Ee.__fnct?ye=Ee.__fnct:(ye=BezierFactory.getBezierEasing(V.o.x,V.o.y,V.i.x,V.i.y).get,Ee.__fnct=ye),be=ye((B-(V.t-this.offsetTime))/(q.t-this.offsetTime-(V.t-this.offsetTime)))}N=q.s?q.s[0]:V.e[0]}fe=V.s[0]}for(ue=G._length,_e=fe.i[0].length,W.lastIndex=Y,O=0;O<ue;O+=1)for(ee=0;ee<_e;ee+=1)G.i[O][ee]=Q?fe.i[O][ee]:fe.i[O][ee]+(N.i[O][ee]-fe.i[O][ee])*be,G.o[O][ee]=Q?fe.o[O][ee]:fe.o[O][ee]+(N.o[O][ee]-fe.o[O][ee])*be,G.v[O][ee]=Q?fe.v[O][ee]:fe.v[O][ee]+(N.v[O][ee]-fe.v[O][ee])*be}function a(){var B=this.comp.renderedFrame-this.offsetTime,G=this.keyframes[0].t-this.offsetTime,W=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Y=this._caching.lastFrame;return Y!==o&&(Y<G&&B<G||Y>W&&B>W)||(this._caching.lastIndex=Y<B?this._caching.lastIndex:0,this.interpolateShape(B,this.pv,this._caching)),this._caching.lastFrame=B,this.pv}function t(){this.paths=this.localShapeCollection}function s(B){(function e(B,G){if(B._length!==G._length||B.c!==G.c)return!1;var W,Y=B._length;for(W=0;W<Y;W+=1)if(B.v[W][0]!==G.v[W][0]||B.v[W][1]!==G.v[W][1]||B.o[W][0]!==G.o[W][0]||B.o[W][1]!==G.o[W][1]||B.i[W][0]!==G.i[W][0]||B.i[W][1]!==G.i[W][1])return!1;return!0})(this.v,B)||(this.v=shapePool.clone(B),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function D(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var B;this.lock=!0,this._mdf=!1,B=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var G,W=this.effectsSequence.length;for(G=0;G<W;G+=1)B=this.effectsSequence[G](B);this.setVValue(B),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function x(B,G,W){this.propType="shape",this.comp=B.comp,this.container=B,this.elem=B,this.data=G,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===W?G.pt.k:G.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=t,this.effectsSequence=[]}function M(B){this.effectsSequence.push(B),this.container.addDynamicProperty(this)}function w(B,G,W){this.propType="shape",this.comp=B.comp,this.elem=B,this.container=B,this.offsetTime=B.data.st,this.keyframes=3===W?G.pt.k:G.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=t,this._caching={lastFrame:o,lastIndex:0},this.effectsSequence=[a.bind(this)]}x.prototype.interpolateShape=u,x.prototype.getValue=D,x.prototype.setVValue=s,x.prototype.addEffect=M,w.prototype.getValue=D,w.prototype.interpolateShape=u,w.prototype.setVValue=s,w.prototype.addEffect=M;var I=function(){var B=roundCorner;function G(W,Y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Y.d,this.elem=W,this.comp=W.comp,this.frameId=-1,this.initDynamicPropertyContainer(W),this.p=PropertyFactory.getProp(W,Y.p,1,0,this),this.s=PropertyFactory.getProp(W,Y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return G.prototype={reset:t,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Y=this.p.v[0],fe=this.p.v[1],N=this.s.v[0]/2,Q=this.s.v[1]/2,O=3!==this.d,ee=this.v;ee.v[0][0]=Y,ee.v[0][1]=fe-Q,ee.v[1][0]=O?Y+N:Y-N,ee.v[1][1]=fe,ee.v[2][0]=Y,ee.v[2][1]=fe+Q,ee.v[3][0]=O?Y-N:Y+N,ee.v[3][1]=fe,ee.i[0][0]=O?Y-N*B:Y+N*B,ee.i[0][1]=fe-Q,ee.i[1][0]=O?Y+N:Y-N,ee.i[1][1]=fe-Q*B,ee.i[2][0]=O?Y+N*B:Y-N*B,ee.i[2][1]=fe+Q,ee.i[3][0]=O?Y-N:Y+N,ee.i[3][1]=fe+Q*B,ee.o[0][0]=O?Y+N*B:Y-N*B,ee.o[0][1]=fe-Q,ee.o[1][0]=O?Y+N:Y-N,ee.o[1][1]=fe+Q*B,ee.o[2][0]=O?Y-N*B:Y+N*B,ee.o[2][1]=fe+Q,ee.o[3][0]=O?Y-N:Y+N,ee.o[3][1]=fe-Q*B}},extendPrototype([DynamicPropertyContainer],G),G}(),P=function(){function B(G,W){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=G,this.comp=G.comp,this.data=W,this.frameId=-1,this.d=W.d,this.initDynamicPropertyContainer(G),1===W.sy?(this.ir=PropertyFactory.getProp(G,W.ir,0,0,this),this.is=PropertyFactory.getProp(G,W.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 4,096 bytes, line 1
1pertyFactory.getProp(G,W.pt,0,0,this),this.p=PropertyFactory.getProp(G,W.p,1,0,this),this.r=PropertyFactory.getProp(G,W.r,0,degToRads,this),this.or=PropertyFactory.getProp(G,W.or,0,0,this),this.os=PropertyFactory.getProp(G,W.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return B.prototype={reset:t,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var be,Qe,ze,Oe,W=2*Math.floor(this.pt.v),Y=2*Math.PI/W,fe=!0,N=this.or.v,Q=this.ir.v,O=this.os.v,ee=this.is.v,ue=2*Math.PI*N/(2*W),_e=2*Math.PI*Q/(2*W),K=-Math.PI/2;K+=this.r.v;var X=3===this.data.d?-1:1;for(this.v._length=0,be=0;be<W;be+=1){ze=fe?O:ee,Oe=fe?ue:_e;var V=(Qe=fe?N:Q)*Math.cos(K),q=Qe*Math.sin(K),Ee=0===V&&0===q?0:q/Math.sqrt(V*V+q*q),ye=0===V&&0===q?0:-V/Math.sqrt(V*V+q*q);this.v.setTripleAt(V+=+this.p.v[0],q+=+this.p.v[1],V-Ee*Oe*ze*X,q-ye*Oe*ze*X,V+Ee*Oe*ze*X,q+ye*Oe*ze*X,be,!0),fe=!fe,K+=Y*X}},convertPolygonToPath:function(){var O,W=Math.floor(this.pt.v),Y=2*Math.PI/W,fe=this.or.v,N=this.os.v,Q=2*Math.PI*fe/(4*W),ee=.5*-Math.PI,ue=3===this.data.d?-1:1;for(ee+=this.r.v,this.v._length=0,O=0;O<W;O+=1){var _e=fe*Math.cos(ee),be=fe*Math.sin(ee),Qe=0===_e&&0===be?0:be/Math.sqrt(_e*_e+be*be),ze=0===_e&&0===be?0:-_e/Math.sqrt(_e*_e+be*be);this.v.setTripleAt(_e+=+this.p.v[0],be+=+this.p.v[1],_e-Qe*Q*N*ue,be-ze*Q*N*ue,_e+Qe*Q*N*ue,be+ze*Q*N*ue,O,!0),ee+=Y*ue}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],B),B}(),S=function(){function B(G,W){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=G,this.comp=G.comp,this.frameId=-1,this.d=W.d,this.initDynamicPropertyContainer(G),this.p=PropertyFactory.getProp(G,W.p,1,0,this),this.s=PropertyFactory.getProp(G,W.s,1,0,this),this.r=PropertyFactory.getProp(G,W.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return B.prototype={convertRectToPath:function(){var W=this.p.v[0],Y=this.p.v[1],fe=this.s.v[0]/2,N=this.s.v[1]/2,Q=bmMin(fe,N,this.r.v),O=Q*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(W+fe,Y-N+Q,W+fe,Y-N+Q,W+fe,Y-N+O,0,!0),this.v.setTripleAt(W+fe,Y+N-Q,W+fe,Y+N-O,W+fe,Y+N-Q,1,!0),0!==Q?(this.v.setTripleAt(W+fe-Q,Y+N,W+fe-Q,Y+N,W+fe-O,Y+N,2,!0),this.v.setTripleAt(W-fe+Q,Y+N,W-fe+O,Y+N,W-fe+Q,Y+N,3,!0),this.v.setTripleAt(W-fe,Y+N-Q,W-fe,Y+N-Q,W-fe,Y+N-O,4,!0),this.v.setTripleAt(W-fe,Y-N+Q,W-fe,Y-N+O,W-fe,Y-N+Q,5,!0),this.v.setTripleAt(W-fe+Q,Y-N,W-fe+Q,Y-N,W-fe+O,Y-N,6,!0),this.v.setTripleAt(W+fe-Q,Y-N,W+fe-O,Y-N,W+fe-Q,Y-N,7,!0)):(this.v.setTripleAt(W-fe,Y+N,W-fe+O,Y+N,W-fe,Y+N,2),this.v.setTripleAt(W-fe,Y-N,W-fe,Y-N+O,W-fe,Y-N,3))):(this.v.setTripleAt(W+fe,Y-N+Q,W+fe,Y-N+O,W+fe,Y-N+Q,0,!0),0!==Q?(this.v.setTripleAt(W+fe-Q,Y-N,W+fe-Q,Y-N,W+fe-O,Y-N,1,!0),this.v.setTripleAt(W-fe+Q,Y-N,W-fe+O,Y-N,W-fe+Q,Y-N,2,!0),this.v.setTripleAt(W-fe,Y-N+Q,W-fe,Y-N+Q,W-fe,Y-N+O,3,!0),this.v.setTripleAt(W-fe,Y+N-Q,W-fe,Y+N-O,W-fe,Y+N-Q,4,!0),this.v.setTripleAt(W-fe+Q,Y+N,W-fe+Q,Y+N,W-fe+O,Y+N,5,!0),this.v.setTripleAt(W+fe-Q,Y+N,W+fe-O,Y+N,W+fe-Q,Y+N,6,!0),this.v.setTripleAt(W+fe,Y+N-Q,W+fe,Y+N-Q,W+fe,Y+N-O,7,!0)):(this.v.setTripleAt(W-fe,Y-N,W-fe+O,Y-N,W-fe,Y-N,1,!0),this.v.setTripleAt(W-fe,Y+N,W-fe,Y+N-O,W-fe,Y+N,2,!0),this.v.setTripleAt(W+fe,Y+N,W+fe-O,Y+N,W+fe,Y+N,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:t},extendPrototype([DynamicPropertyContainer],B),B}();return{getShapeProp:function k(B,G,W){var Y;return 3===W||4===W?Y=(3===W?G.pt:G.ks).k.length?new w(B,G,W):new x(B,G,W):5===W?Y=new S(B,G):6===W?Y=ne
vendor: 9,789 bytes, line 1
1w I(B,G):7===W&&(Y=new P(B,G)),Y.k&&B.addDynamicProperty(Y),Y},getConstructorFunction:function z(){return x},getKeyframedConstructorFunction:function F(){return w}}}(),Matrix=function(){var o=Math.cos,u=Math.sin,a=Math.tan,t=Math.round;function e(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(V){if(0===V)return this;var q=o(V),Ee=u(V);return this._t(q,-Ee,0,0,Ee,q,0,0,0,0,1,0,0,0,0,1)}function D(V){if(0===V)return this;var q=o(V),Ee=u(V);return this._t(1,0,0,0,0,q,-Ee,0,0,Ee,q,0,0,0,0,1)}function x(V){if(0===V)return this;var q=o(V),Ee=u(V);return this._t(q,0,Ee,0,0,1,0,0,-Ee,0,q,0,0,0,0,1)}function M(V){if(0===V)return this;var q=o(V),Ee=u(V);return this._t(q,-Ee,0,0,Ee,q,0,0,0,0,1,0,0,0,0,1)}function w(V,q){return this._t(1,q,V,1,0,0)}function I(V,q){return this.shear(a(V),a(q))}function P(V,q){var Ee=o(q),ye=u(q);return this._t(Ee,ye,0,0,-ye,Ee,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(V),1,0,0,0,0,1,0,0,0,0,1)._t(Ee,-ye,0,0,ye,Ee,0,0,0,0,1,0,0,0,0,1)}function S(V,q,Ee){return!Ee&&0!==Ee&&(Ee=1),1===V&&1===q&&1===Ee?this:this._t(V,0,0,0,0,q,0,0,0,0,Ee,0,0,0,0,1)}function k(V,q,Ee,ye,nt,at,me,ve,je,Xe,rt,mt,$t,tn,yt,bt){return this.props[0]=V,this.props[1]=q,this.props[2]=Ee,this.props[3]=ye,this.props[4]=nt,this.props[5]=at,this.props[6]=me,this.props[7]=ve,this.props[8]=je,this.props[9]=Xe,this.props[10]=rt,this.props[11]=mt,this.props[12]=$t,this.props[13]=tn,this.props[14]=yt,this.props[15]=bt,this}function z(V,q,Ee){return Ee=Ee||0,0!==V||0!==q||0!==Ee?this._t(1,0,0,0,0,1,0,0,0,0,1,0,V,q,Ee,1):this}function F(V,q,Ee,ye,nt,at,me,ve,je,Xe,rt,mt,$t,tn,yt,bt){var Ye=this.props;if(1===V&&0===q&&0===Ee&&0===ye&&0===nt&&1===at&&0===me&&0===ve&&0===je&&0===Xe&&1===rt&&0===mt)return Ye[12]=Ye[12]*V+Ye[15]*$t,Ye[13]=Ye[13]*at+Ye[15]*tn,Ye[14]=Ye[14]*rt+Ye[15]*yt,Ye[15]*=bt,this._identityCalculated=!1,this;var Nt=Ye[0],xn=Ye[1],pn=Ye[2],_n=Ye[3],zt=Ye[4],Yt=Ye[5],It=Ye[6],bn=Ye[7],Rn=Ye[8],Sn=Ye[9],vn=Ye[10],mi=Ye[11],Un=Ye[12],Jn=Ye[13],Mt=Ye[14],Vt=Ye[15];return Ye[0]=Nt*V+xn*nt+pn*je+_n*$t,Ye[1]=Nt*q+xn*at+pn*Xe+_n*tn,Ye[2]=Nt*Ee+xn*me+pn*rt+_n*yt,Ye[3]=Nt*ye+xn*ve+pn*mt+_n*bt,Ye[4]=zt*V+Yt*nt+It*je+bn*$t,Ye[5]=zt*q+Yt*at+It*Xe+bn*tn,Ye[6]=zt*Ee+Yt*me+It*rt+bn*yt,Ye[7]=zt*ye+Yt*ve+It*mt+bn*bt,Ye[8]=Rn*V+Sn*nt+vn*je+mi*$t,Ye[9]=Rn*q+Sn*at+vn*Xe+mi*tn,Ye[10]=Rn*Ee+Sn*me+vn*rt+mi*yt,Ye[11]=Rn*ye+Sn*ve+vn*mt+mi*bt,Ye[12]=Un*V+Jn*nt+Mt*je+Vt*$t,Ye[13]=Un*q+Jn*at+Mt*Xe+Vt*tn,Ye[14]=Un*Ee+Jn*me+Mt*rt+Vt*yt,Ye[15]=Un*ye+Jn*ve+Mt*mt+Vt*bt,this._identityCalculated=!1,this}function ne(V){var q=V.props;return this.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15])}function B(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function G(V){for(var q=0;q<16;){if(V.props[q]!==this.props[q])return!1;q+=1}return!0}function W(V){var q;for(q=0;q<16;q+=1)V.props[q]=this.props[q];return V}function Y(V){var q;for(q=0;q<16;q+=1)this.props[q]=V[q]}function fe(V,q,Ee){return{x:V*this.props[0]+q*this.props[4]+Ee*this.props[8]+this.props[12],y:V*this.props[1]+q*this.props[5]+Ee*this.props[9]+this.props[13],z:V*this.props[2]+q*this.props[6]+Ee*this.props[10]+this.props[14]}}function N(V,q,Ee){return V*this.props[0]+q*this.props[4]+Ee*this.props[8]+this.props[12]}function Q(V,q,Ee){return V*this.props[1]+q*this.props[5]+Ee*this.props[9]+this.props[13]}function O(V,q,Ee){return V*this.props[2]+q*this.props[6]+Ee*this.props[10]+this.props[14]}function ee(){var V=this.props[0]*this.props[5]-this.props[1]*this.props[4],q=this.props[5]/V,Ee=-this.props[1]/V,ye=-this.props[4]/V,nt=this.props[0]/V,at=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/V,me=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/V,ve=new Matrix;return ve.props[0]=q,ve.props[1]=Ee,ve.props[4]=ye,ve.props[5]=nt,ve.props[12]=at,ve.props[13]=me,ve}function ue(V){return this.getInverseMatrix().applyToPointArray(V[0],V[1],V[2]||0)}function _e(V){var q,Ee=V.length,ye=[];for(q=0;q<Ee;q+=1)ye[q]=ue(V[q]);return ye}function be(V,q,Ee){var ye=createTypedArray("float32",6);if(this.isIdentity())ye[0]=V[0],ye[1]=V[1],ye[2]=q[0],ye[3]=q[1],ye[4]=Ee[0],ye[5]=Ee[1];else{var nt=this.props[0],at=this.props[1],me=this.props[4],ve=this.props[5],je=this.props[12],Xe=this.props[13];ye[0]=V[0]*nt+V[1]*me+je,ye[1]=V[0]*at+V[1]*ve+Xe,ye[2]=q[0]*nt+q[1]*me+je,ye[3]=q[0]*at+q[1]*ve+Xe,ye[4]=Ee[0]*nt+Ee[1]*me+je,ye[5]=Ee[0]*at+Ee[1]*ve+Xe}return ye}function Qe(V,q,Ee){return this.isIdentity()?[V,q,Ee]:[V*this.props[0]+q*this.props[4]+Ee*this.props[8]+this.props[12],V*this.props[1]+q*this.props[5]+Ee*this.props[9]+this.props[13],V*this.props[2]+q*this.props[6]+Ee*this.props[10]+this.props[14]]}function ze(V,q){if(this.isIdentity())return V+","+q;var Ee=this.props;return Math.round(100*(V*Ee[0]+q*Ee[4]+Ee[12]))/100+","+Math.round(100*(V*Ee[1]+q*Ee[5]+Ee[13]))/100}function Oe(){for(var V=0,q=this.props,Ee="matrix3d(";V<16;)Ee+=t(1e4*q[V])/1e4,Ee+=15===V?")":",",V+=1;return Ee}function K(V){return V<1e-6&&V>0||V>-1e-6&&V<0?t(1e4*V)/1e4:V}function X(){var V=this.props;return"matrix("+K(V[0])+","+K(V[1])+","+K(V[4])+","+K(V[5])+","+K(V[12])+","+K(V[13])+")"}return function(){this.reset=e,this.rotate=s,this.rotateX=D,this.rotateY=x,this.rotateZ=M,this.skew=I,this.skewFromAxis=P,this.shear=w,this.scale=S,this.setTransform=k,this.translate=z,this.transform=F,this.multiply=ne,this.applyToPoint=fe,this.applyToX=N,this.applyToY=Q,this.applyToZ=O,this.applyToPointArray=Qe,this.applyToTriplePoints=be,this.applyToPointStringified=ze,this.toCSS=Oe,this.to2dCSS=X,this.clone=W,this.cloneFromProps=Y,this.equals=G,this.inversePoints=_e,this.inversePoint=ue,this.getInverseMatrix=ee,this._t=this.transform,this.isIdentity=B,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(o){setLocationHref(o)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){return!0===standalone&&(o.animationData=JSON.parse(animationData)),animationManager.loadAnimation(o)}function setQuality(o){if("string"==typeof o)switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(o)&&o>1&&setDefaultCurveSegments(o);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(o,u){"expressions"===o&&setExpressionsPlugin(u)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(o){for(var u=queryString.split("&"),a=0;a<u.length;a+=1){var t=u[a].split("=");if(decodeURIComponent(t[0])==o)return decodeURIComponent(t[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)}catch(o){}var ShapeModifiers=function(){var o={},u={};return o.registerModifier=function a(e,s){u[e]||(u[e]=s)},o.getModifier=function t(e,s,D){return new u[e](s,D)},o}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){}
vendor: 8,313 bytes, line 1
1,ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var u={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,u){this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,u){this.s=PropertyFactory.getProp(o,u.s,0,.01,this),this.e=PropertyFactory.getProp(o,u.e,0,.01,this),this.o=PropertyFactory.getProp(o,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,u,a,t,e){var s=[];u<=1?s.push({s:o,e:u}):o>=1?s.push({s:o-1,e:u-1}):(s.push({s:o,e:1}),s.push({s:0,e:u-1}));var x,w,D=[],M=s.length;for(x=0;x<M;x+=1)(w=s[x]).e*e<t||w.s*e>t+a||D.push([w.s*e<=t?0:(w.s*e-t)/a,w.e*e>=t+a?1:(w.e*e-t)/a]);return D.length||D.push([0,0]),D},TrimModifier.prototype.releasePathsData=function(o){var u,a=o.length;for(u=0;u<a;u+=1)segmentsLengthPool.release(o[u]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var u,a;if(this._mdf||o){var t=this.o.v%360/360;if(t<0&&(t+=1),(u=this.s.v>1?1+t:this.s.v<0?0+t:this.s.v+t)>(a=this.e.v>1?1+t:this.e.v<0?0+t:this.e.v+t)){var e=u;u=a,a=e}u=1e-4*Math.round(1e4*u),a=1e-4*Math.round(1e4*a),this.sValue=u,this.eValue=a}else u=this.sValue,a=this.eValue;var s,D,M,w,I,P,S,x=this.shapes.length,k=0;if(a===u)for(D=0;D<x;D+=1)this.shapes[D].localShapeCollection.releaseShapes(),this.shapes[D].shape._mdf=!0,this.shapes[D].shape.paths=this.shapes[D].localShapeCollection,this._mdf&&(this.shapes[D].pathsData.length=0);else if(1===a&&0===u||0===a&&1===u){if(this._mdf)for(D=0;D<x;D+=1)this.shapes[D].pathsData.length=0,this.shapes[D].shape._mdf=!0}else{var F,ne,z=[];for(D=0;D<x;D+=1)if((F=this.shapes[D]).shape._mdf||this._mdf||o||2===this.m){if(w=(s=F.shape.paths)._length,S=0,!F.shape._mdf&&F.pathsData.length)S=F.totalShapeLength;else{for(I=this.releasePathsData(F.pathsData),M=0;M<w;M+=1)P=bez.getSegmentsLength(s.shapes[M]),I.push(P),S+=P.totalLength;F.totalShapeLength=S,F.pathsData=I}k+=S,F.shape._mdf=!0}else F.shape.paths=F.localShapeCollection;var Y,B=u,G=a,W=0;for(D=x-1;D>=0;D-=1)if((F=this.shapes[D]).shape._mdf){for((ne=F.localShapeCollection).releaseShapes(),2===this.m&&x>1?(Y=this.calculateShapeEdges(u,a,F.totalShapeLength,W,k),W+=F.totalShapeLength):Y=[[B,G]],w=Y.length,M=0;M<w;M+=1){B=Y[M][0],G=Y[M][1],z.length=0,G<=1?z.push({s:F.totalShapeLength*B,e:F.totalShapeLength*G}):B>=1?z.push({s:F.totalShapeLength*(B-1),e:F.totalShapeLength*(G-1)}):(z.push({s:F.totalShapeLength*B,e:F.totalShapeLength}),z.push({s:0,e:F.totalShapeLength*(G-1)}));var fe=this.addShapes(F,z[0]);if(z[0].s!==z[0].e){if(z.length>1)if(F.shape.paths.shapes[F.shape.paths._length-1].c){var Q=fe.pop();this.addPaths(fe,ne),fe=this.addShapes(F,z[1],Q)}else this.addPaths(fe,ne),fe=this.addShapes(F,z[1]);this.addPaths(fe,ne)}}F.shape.paths=ne}}},TrimModifier.prototype.addPaths=function(o,u){var a,t=o.length;for(a=0;a<t;a+=1)u.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,u,a,t,e,s,D){e.setXYAt(u[0],u[1],"o",s),e.setXYAt(a[0],a[1],"i",s+1),D&&e.setXYAt(o[0],o[1],"v",s),e.setXYAt(t[0],t[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(o,u,a,t){u.setXYAt(o[1],o[5],"o",a),u.setXYAt(o[2],o[6],"i",a+1),t&&u.setXYAt(o[0],o[4],"v",a),u.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,u,a){var s,x,M,I,P,S,k,F,t=o.pathsData,e=o.shape.paths.shapes,D=o.shape.paths._length,w=0,z=[],ne=!0;for(a?(P=a._length,F=a._length):(a=shapePool.newElement(),P=0,F=0),z.push(a),s=0;s<D;s+=1){for(S=t[s].lengths,a.c=e[s].c,M=e[s].c?S.length:S.length+1,x=1;x<M;x+=1)if(w+(I=S[x-1]).addedLength<u.s)w+=I.addedLength,a.c=!1;else{if(w>u.e){a.c=!1;break}u.s<=w&&u.e>=w+I.addedLength?(this.addSegment(e[s].v[x-1],e[s].o[x-1],e[s].i[x],e[s].v[x],a,P,ne),ne=!1):(k=bez.getNewSegment(e[s].v[x-1],e[s].v[x],e[s].o[x-1],e[s].i[x],(u.s-w)/I.addedLength,(u.e-w)/I.addedLength,S[x-1]),this.addSegmentFromArray(k,a,P,ne),ne=!1,a.c=!1),w+=I.addedLength,P+=1}if(e[s].c&&S.length){if(I=S[x-1],w<=u.e){var B=S[x-1].addedLength;u.s<=w&&u.e>=w+B?(this.addSegment(e[s].v[x-1],e[s].o[x-1],e[s].i[0],e[s].v[0],a,P,ne),ne=!1):(k=bez.getNewSegment(e[s].v[x-1],e[s].v[0],e[s].o[x-1],e[s].i[0],(u.s-w)/B,(u.e-w)/B,S[x-1]),this.addSegmentFromArray(k,a,P,ne),ne=!1,a.c=!1)}else a.c=!1;w+=I.addedLength,P+=1}if(a._length&&(a.setXYAt(a.v[F][0],a.v[F][1],"i",F),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),w>u.e)break;s<D-1&&(a=shapePool.newElement(),ne=!0,z.push(a),P=0)}return z},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,u){var a=u/100,t=[0,0],e=o._length,s=0;for(s=0;s<e;s+=1)t[0]+=o.v[s][0],t[1]+=o.v[s][1];t[0]/=e,t[1]/=e;var D=shapePool.newElement();for(D.c=o.c,s=0;s<e;s+=1)D.setTripleAt(o.v[s][0]+(t[0]-o.v[s][0])*a,o.v[s][1]+(t[1]-o.v[s][1])*a,o.o[s][0]+(t[0]-o.o[s][0])*-a,o.o[s][1]+(t[1]-o.o[s][1])*-a,o.i[s][0]+(t[0]-o.i[s][0])*-a,o.i[s][1]+(t[1]-o.i[s][1])*-a,s);return D},PuckerAndBloatModifier.prototype.processShapes=function(o){var u,a,e,s,x,M,t=this.shapes.length,D=this.amount.v;if(0!==D)for(a=0;a<t;a+=1){if(M=(x=this.shapes[a]).localShapeCollection,x.shape._mdf||this._mdf||o)for(M.releaseShapes(),x.shape._mdf=!0,u=x.shape.paths.shapes,s=x.shape.paths._length,e=0;e<s;e+=1)M.addShape(this.processPath(u[e],D));x.shape.paths=x.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var o=[0,0];function D(M,w,I){if(this.elem=M,this.frameId=-1,this.propType="transform",this.data=w,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(I||M),w.p&&w.p.s?(this.px=PropertyFactory.getProp(M,w.p.x,0,0,this),this.py=PropertyFactory.getProp(M,w.p.y,0,0,this),w.p.z&&(this.pz=PropertyFactory.getProp(M,w.p.z,0,0,this))):this.p=PropertyFactory.getProp(M,w.p||{k:[0,0,0]},1,0,this),w.rx){if(this.rx=PropertyFactory.getProp(M,w.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(M,w.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(M,w.rz,0,degToRads,this),w.or.k[0].ti){var P,S=w.or.k.length;for(P=0;P<S;P+=1)w.or.k[P].to=null,w.or.k[P].ti=null}this.or=PropertyFactory.getProp(M,w.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(M,w.r||{k:0},0,degToRads,this);w.sk&&(this.sk=PropertyFactory.getProp(M,w.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(M,w.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(M,w.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(M,w.s||{k:[100,100,100]},1,.01,this),this.o=w.o?PropertyFactory.getProp(M,w.o,0,.01,M):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return D.prototype={applyToMatrix:function u(M){var w=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||w,this.a&&M.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&M.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&M.skewFromAxis(-this.sk.v,this.sa.v),this.r?M.rotate(-this.r.v):M.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?M.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):M.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function a(M){if(this.elem.globalData.frameId!==this.frameId){if
vendor: 4,370 bytes, line 1
1(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||M){var w;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var I,P;if(w=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(I=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/w,0),P=this.p.getValueAtTime(this.p.keyframes[0].t/w,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(I=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/w,0),P=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/w,0)):(I=this.p.pv,P=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/w,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){I=[],P=[];var S=this.px,k=this.py;S._caching.lastFrame+S.offsetTime<=S.keyframes[0].t?(I[0]=S.getValueAtTime((S.keyframes[0].t+.01)/w,0),I[1]=k.getValueAtTime((k.keyframes[0].t+.01)/w,0),P[0]=S.getValueAtTime(S.keyframes[0].t/w,0),P[1]=k.getValueAtTime(k.keyframes[0].t/w,0)):S._caching.lastFrame+S.offsetTime>=S.keyframes[S.keyframes.length-1].t?(I[0]=S.getValueAtTime(S.keyframes[S.keyframes.length-1].t/w,0),I[1]=k.getValueAtTime(k.keyframes[k.keyframes.length-1].t/w,0),P[0]=S.getValueAtTime((S.keyframes[S.keyframes.length-1].t-.01)/w,0),P[1]=k.getValueAtTime((k.keyframes[k.keyframes.length-1].t-.01)/w,0)):(I=[S.pv,k.pv],P[0]=S.getValueAtTime((S._caching.lastFrame+S.offsetTime-.01)/w,S.offsetTime),P[1]=k.getValueAtTime((k._caching.lastFrame+k.offsetTime-.01)/w,k.offsetTime))}else I=P=o;this.v.rotate(-Math.atan2(I[1]-P[1],I[0]-P[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function t(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function e(){}},extendPrototype([DynamicPropertyContainer],D),D.prototype.addDynamicProperty=function s(M){this._addDynamicProperty(M),this.elem.addDynamicProperty(M),this._isDirty=!0},D.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function x(M,w,I){return new D(M,w,I)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(o,u){return 1e5*Math.abs(o-u)<=Math.min(Math.abs(o),Math.abs(u))}function floatZero(o){return Math.abs(o)<=1e-5}function lerp(o,u,a){return o*(1-a)+u*a}function lerpPoint(o,u,a){return[lerp(o[0],u[0],a),lerp(o[1],u[1],a)]}function quadRoots(o,u,a){if(0===o)return[];var t=u*u-4*o*a;if(t<0)return[];var e=-u/(2*o);if(0===t)return[e];var s=Math.sqrt(t)/(2*o);return[e-s,e+s]}function polynomialCoefficients(o,u,a,t){return[3*u-o-3*a+t,3*o-6*u+3*a,-3*o+3*u,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,u,a,t,e){e&&pointEqual(o,u)&&(u=lerpPoint(o,t,1/3)),e&&pointEqual(a,t)&&(a=lerpPoint(o,t,2/3));
vendor: 6,798 bytes, line 1
1var s=polynomialCoefficients(o[0],u[0],a[0],t[0]),D=polynomialCoefficients(o[1],u[1],a[1],t[1]);this.a=[s[0],D[0]],this.b=[s[1],D[1]],this.c=[s[2],D[2]],this.d=[s[3],D[3]],this.points=[o,u,a,t]}function extrema(o,u){var a=o.points[0][u],t=o.points[o.points.length-1][u];if(a>t){var e=t;t=a,a=e}for(var s=quadRoots(3*o.a[u],2*o.b[u],o.c[u]),D=0;D<s.length;D+=1)if(s[D]>0&&s[D]<1){var x=o.point(s[D])[u];x<a?a=x:x>t&&(t=x)}return{min:a,max:t}}function intersectData(o,u,a){var t=o.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:o,t:(u+a)/2,t1:u,t2:a}}function splitData(o){var u=o.bez.split(.5);return[intersectData(u[0],o.t1,o.t),intersectData(u[1],o.t,o.t2)]}function boxIntersect(o,u){return 2*Math.abs(o.cx-u.cx)<o.width+u.width&&2*Math.abs(o.cy-u.cy)<o.height+u.height}function intersectsImpl(o,u,a,t,e,s){if(boxIntersect(o,u)){if(a>=s||o.width<=t&&o.height<=t&&u.width<=t&&u.height<=t)return void e.push([o.t,u.t]);var D=splitData(o),x=splitData(u);intersectsImpl(D[0],x[0],a+1,t,e,s),intersectsImpl(D[0],x[1],a+1,t,e,s),intersectsImpl(D[1],x[0],a+1,t,e,s),intersectsImpl(D[1],x[1],a+1,t,e,s)}}function crossProduct(o,u){return[o[1]*u[2]-o[2]*u[1],o[2]*u[0]-o[0]*u[2],o[0]*u[1]-o[1]*u[0]]}function lineIntersection(o,u,a,t){var D=[a[0],a[1],1],x=[t[0],t[1],1],M=crossProduct(crossProduct([o[0],o[1],1],[u[0],u[1],1]),crossProduct(D,x));return floatZero(M[2])?null:[M[0]/M[2],M[1]/M[2]]}function polarOffset(o,u,a){return[o[0]+Math.cos(u)*a,o[1]-Math.sin(u)*a]}function pointDistance(o,u){return Math.hypot(o[0]-u[0],o[1]-u[1])}function pointEqual(o,u){return floatEqual(o[0],u[0])&&floatEqual(o[1],u[1])}function ZigZagModifier(){}function setPoint(o,u,a,t,e,s,D){var x=a-Math.PI/2,M=a+Math.PI/2,w=u[0]+Math.cos(a)*t*e,I=u[1]-Math.sin(a)*t*e;o.setTripleAt(w,I,w+Math.cos(x)*s,I-Math.sin(x)*s,w+Math.cos(M)*D,I-Math.sin(M)*D,o.length())}function getPerpendicularVector(o,u){var a=[u[0]-o[0],u[1]-o[1]],t=.5*-Math.PI;return[Math.cos(t)*a[0]-Math.sin(t)*a[1],Math.sin(t)*a[0]+Math.cos(t)*a[1]]}function getProjectingAngle(o,u){var a=0===u?o.length()-1:u-1,t=(u+1)%o.length(),D=getPerpendicularVector(o.v[a],o.v[t]);return Math.atan2(0,1)-Math.atan2(D[1],D[0])}function zigZagCorner(o,u,a,t,e,s,D){var x=getProjectingAngle(u,a),M=u.v[a%u._length],w=u.v[0===a?u._length-1:a-1],I=u.v[(a+1)%u._length],P=2===s?Math.sqrt(Math.pow(M[0]-w[0],2)+Math.pow(M[1]-w[1],2)):0,S=2===s?Math.sqrt(Math.pow(M[0]-I[0],2)+Math.pow(M[1]-I[1],2)):0;setPoint(o,u.v[a%u._length],x,D,t,S/(2*(e+1)),P/(2*(e+1)),s)}function zigZagSegment(o,u,a,t,e,s){for(var D=0;D<t;D+=1){var x=(D+1)/(t+1),M=2===e?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,w=u.normalAngle(x);setPoint(o,u.point(x),w,s,a,M/(2*(t+1)),M/(2*(t+1)),e),s=-s}return s}function linearOffset(o,u,a){var t=Math.atan2(u[0]-o[0],u[1]-o[1]);return[polarOffset(o,t,a),polarOffset(u,t,a)]}function offsetSegment(o,u){var a,t,e,s,D,x,M;a=(M=linearOffset(o.points[0],o.points[1],u))[0],t=M[1],e=(M=linearOffset(o.points[1],o.points[2],u))[0],s=M[1],D=(M=linearOffset(o.points[2],o.points[3],u))[0],x=M[1];var w=lineIntersection(a,t,e,s);null===w&&(w=t);var I=lineIntersection(D,x,e,s);return null===I&&(I=D),new PolynomialBezier(a,w,I,x)}function joinLines(o,u,a,t,e){var s=u.points[3],D=a.points[0];if(3===t||pointEqual(s,D))return s;if(2===t){var x=-u.tangentAngle(1),M=-a.tangentAngle(0)+Math.PI,w=lineIntersection(s,polarOffset(s,x+Math.PI/2,100),D,polarOffset(D,x+Math.PI/2,100)),I=w?pointDistance(w,s):pointDistance(s,D)/2,P=polarOffset(s,x,2*I*roundCorner);return o.setXYAt(P[0],P[1],"o",o.length()-1),P=polarOffset(D,M,2*I*roundCorner),o.setTripleAt(D[0],D[1],D[0],D[1],P[0],P[1],o.length()),D}var z=lineIntersection(pointEqual(s,u.points[2])?u.points[0]:u.points[2],s,D,pointEqual(D,a.points[1])?a.points[3]:a.points[1]);return z&&pointDistance(z,s)<e?(o.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],o.length()),z):s}function getIntersection(o,u){var a=o.intersections(u);return a.length&&floatEqual(a[0][0],1)&&a.shift(),a.length?a[0]:null}function pruneSegmentIntersection(o,u){var a=o.slice(),t=u.slice(),e=getIntersection(o[o.length-1],u[0]);return e&&(a[o.length-1]=o[o.length-1].split(e[0])[0],t[0]=u[0].split(e[1])[1]),o.length>1&&u.length>1&&(e=getIntersection(o[0],u[u.length-1]))?[[o[0].split(e[0])[0]],[u[u.length-1].split(e[1])[1]]]:[a,t]}function pruneIntersections(o){for(var u,a=1;a<o.length;a+=1)u=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=u[0],o[a]=u[1];return o.length>1&&(u=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=u[0],o[0]=u[1]),o}function offsetSegmentSplit(o,u){var t,e,s,D,a=o.inflectionPoints();return 0===a.length?[offsetSegment(o,u)]:1===a.length||floatEqual(a[1],1)?(e=(s=o.split(a[0]))[1],[offsetSegment(t=s[0],u),offsetSegment(e,u)]):(t=(s=o.split(a[0]))[0],D=(s=s[1].split((a[1]-a[0])/(1-a[0])))[0],e=s[1],[offsetSegment(t,u),offsetSegment(D,u),offsetSegment(e,u)])}function OffsetPathModifier(){}function getFontProperties(o){for(var s,u=o.fStyle?o.fStyle.split(" "):[],a="normal",t="normal",e=u.length,D=0;D<e;D+=1)switch(s=u[D].toLowerCase(),s){case"italic":t="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200"}return{style:t,weight:o.fWeight||a}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,u.c,0,null,this),this.o=PropertyFactory.getProp(o,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,u.tr,this),this.so=PropertyFactory.getProp(o,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(o,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,u,a,t,e,s){var D=s?-1:1,x=t.s.v[0]+(1-t.s.v[0])*(1-e),M=t.s.v[1]+(1-t.s.v[1])*(1-e);o.translate(t.p.v[0]*D*e,t.p.v[1]*D*e,t.p.v[2]),u.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),u.rotate(-t.r.v*D*e),u.translate(t.a.v[0],t.a.v[1],t.a.v[2]),a.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),a.scale(s?1/x:x,s?1/M:M),a.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(o,u,a,t){for(this.elem=o,this.arr=u,this.pos=a,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,u[a]);a>0;)this._elements.unshift(u[a-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var u,a=o.length;for(u=0;
vendor: 9,695 bytes, line 1
1u<a;u+=1)o[u]._processed=!1,"gr"===o[u].ty&&this.resetElements(o[u].it)},RepeaterModifier.prototype.cloneElements=function(o){var u=JSON.parse(JSON.stringify(o));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(o,u){var a,t=o.length;for(a=0;a<t;a+=1)o[a]._render=u,"gr"===o[a].ty&&this.changeGroupRender(o[a].it,u)},RepeaterModifier.prototype.processShapes=function(o){var u,a,t,e,s,D=!1;if(this._mdf||o){var w,x=Math.ceil(this.c.v);if(this._groups.length<x){for(;this._groups.length<x;){var M={it:this.cloneElements(this._elements),ty:"gr"};M.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,M),this._groups.splice(0,0,M),this._currentCopies+=1}this.elem.reloadShapes(),D=!0}for(s=0,t=0;t<=this._groups.length-1;t+=1){if(this._groups[t]._render=w=s<x,this.changeGroupRender(this._groups[t].it,w),!w){var I=this.elemsData[t].it,P=I[I.length-1];0!==P.transform.op.v?(P.transform.op._mdf=!0,P.transform.op.v=0):P.transform.op._mdf=!1}s+=1}this._currentCopies=x;var S=this.o.v,k=S%1,z=S>0?Math.floor(S):Math.ceil(S),F=this.pMatrix.props,ne=this.rMatrix.props,B=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var W,Y,G=0;if(S>0){for(;G<z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),G+=1;k&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,k,!1),G+=k)}else if(S<0){for(;G>z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),G-=1;k&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-k,!0),G-=k)}for(t=1===this.data.m?0:this._currentCopies-1,e=1===this.data.m?1:-1,s=this._currentCopies;s;){if(Y=(a=(u=this.elemsData[t].it)[u.length-1].transform.mProps.v.props).length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+t/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==G){for((0!==t&&1===e||t!==this._currentCopies-1&&-1===e)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ne[0],ne[1],ne[2],ne[3],ne[4],ne[5],ne[6],ne[7],ne[8],ne[9],ne[10],ne[11],ne[12],ne[13],ne[14],ne[15]),this.matrix.transform(B[0],B[1],B[2],B[3],B[4],B[5],B[6],B[7],B[8],B[9],B[10],B[11],B[12],B[13],B[14],B[15]),this.matrix.transform(F[0],F[1],F[2],F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11],F[12],F[13],F[14],F[15]),W=0;W<Y;W+=1)a[W]=this.matrix.props[W];this.matrix.reset()}else for(this.matrix.reset(),W=0;W<Y;W+=1)a[W]=this.matrix.props[W];G+=1,s-=1,t+=e}}else for(s=this._currentCopies,t=0,e=1;s;)a=(u=this.elemsData[t].it)[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,s-=1,t+=e;return D},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,u){var a=shapePool.newElement();a.c=o.c;var t,s,D,x,M,w,I,S,k,z,F,ne,B,e=o._length,P=0;for(t=0;t<e;t+=1)D=o.i[t],(s=o.v[t])[0]===(x=o.o[t])[0]&&s[1]===x[1]&&s[0]===D[0]&&s[1]===D[1]?0!==t&&t!==e-1||o.c?(M=0===t?o.v[e-1]:o.v[t-1],I=(w=Math.sqrt(Math.pow(s[0]-M[0],2)+Math.pow(s[1]-M[1],2)))?Math.min(w/2,u)/w:0,a.setTripleAt(S=ne=s[0]+(M[0]-s[0])*I,k=B=s[1]-(s[1]-M[1])*I,S-(S-s[0])*roundCorner,k-(k-s[1])*roundCorner,ne,B,P),P+=1,M=t===e-1?o.v[0]:o.v[t+1],I=(w=Math.sqrt(Math.pow(s[0]-M[0],2)+Math.pow(s[1]-M[1],2)))?Math.min(w/2,u)/w:0,a.setTripleAt(S=z=s[0]+(M[0]-s[0])*I,k=F=s[1]+(M[1]-s[1])*I,z,F,ne=S-(S-s[0])*roundCorner,B=k-(k-s[1])*roundCorner,P),P+=1):(a.setTripleAt(s[0],s[1],x[0],x[1],D[0],D[1],P),P+=1):(a.setTripleAt(o.v[t][0],o.v[t][1],o.o[t][0],o.o[t][1],o.i[t][0],o.i[t][1],P),P+=1);return a},RoundCornersModifier.prototype.processShapes=function(o){var u,a,e,s,x,M,t=this.shapes.length,D=this.rd.v;if(0!==D)for(a=0;a<t;a+=1){if(M=(x=this.shapes[a]).localShapeCollection,x.shape._mdf||this._mdf||o)for(M.releaseShapes(),x.shape._mdf=!0,u=x.shape.paths.shapes,s=x.shape.paths._length,e=0;e<s;e+=1)M.addShape(this.processPath(u[e],D));x.shape.paths=x.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var u=this.derivative(o);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(o){var u=this.derivative(o);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var t=Math.sqrt(a);return floatZero(t)?t>0&&t<1?[u]:[]:[u-t,u+t].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),t=lerpPoint(this.points[2],this.points[3],o),e=lerpPoint(u,a,o),s=lerpPoint(a,t,o),D=lerpPoint(e,s,o);return[new PolynomialBezier(this.points[0],u,e,D,!0),new PolynomialBezier(D,s,t,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}},PolynomialBezier.prototype.intersections=function(o,u,a){void 0===u&&(u=2),void 0===a&&(a=7);var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,u,t,a),t},PolynomialBezier.shapeSegment=function(o,u){var a=(u+1)%o.length();return new PolynomialBezier(o.v[u],o.o[u],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,u){var a=(u+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[u],o.v[u],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,u.s,0,null,this),this.frequency=PropertyFactory.getProp(o,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,u.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(o,u,a,t){var e=o._length,s=shapePool.newElement();if(s.c=o.c,o.c||(e-=1),0===e)return s;var D=-1,x=PolynomialBezier.shapeSegment(o,0);zigZagCorner(s,o,0,u,a,t,D);for(var M=0;M<e;M+=1)D=zigZagSegment(s,x,u,a,t,-D),x=M!==e-1||o.c?PolynomialBezier.shapeSegment(o,(M+1)%e):null,zigZagCorner(s,o,M+1,u,a,t,D);return s},ZigZagModifier.prototype.processShapes=function(o){var u,a,e,s,w,I,t=this.shapes.length,D=this.amplitude.v,x=Math.max(0,Math.round(this.frequency.v)),M=this.pointsType.v;if(0!==D)for(a=0;a<t;a+=1){if(I=(w=this.shapes[a]).localShapeCollection,w.shape._mdf||this._mdf||o)for(I.releaseShapes(),w.shape._mdf=!0,u=w.shape.paths.shapes,s=w.shape.paths._length,e=0;e<s;e+=1)I.addShape(this.processPath(u[e],D,x,M));w.shape.paths=w.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(o,u,a,t){var e=shapePool.newElement();e.c=o.c;var s=o.length();o.c||(s-=1);var D,x,M,w=[];for(D=0;D<s;D+=1)M=PolynomialBezier.shapeSegment(o,D),w.push(offsetSegmentSplit(M,u));if(!o.c)for(D=s-1;D>=0;D-=1)M=PolynomialBezier.shapeSegmentInverted(o,D),w.push(offsetSegmentSplit(M,u));w=pruneIntersections(w);var I=null,P=null;for(D=0;D<w.length;D+=1){var S=w[D];for(P&&(I=joinLines(e,P,S[0],a,t)),P=S[S.length-1],x=0;x<S.length;x+=1)M=S[x],I&&pointEqual(M.points[0],I)?e.setXYAt(M.points[1][0],M.points[1][1],"o",e.length()-1):e.setTripleAt(M.points[0][0],M.points[0][1],M.points[1][0],M.points[1][1],M.points[0][0],M.points[0][1],e.length()),e.setTripleAt(M.points[3][0],M.points[3][1],M.points[3][0],M.points[3][1],M.points[2][0],M.points[2][1],e.length()),I=M.points[3]}return w.length&&joinLines(e,P,w[0][0],a,t),e},OffsetPathModifier.prototype.processShapes=function(o){var u,a,e,s,w,I,t=this.shapes.length,D=this.amount.v,x=this.miterLimit.v,M=this.lineJoin;if(0!==D)for(a=0;a<t;a+=1){if(I=(w=this.shapes[a]).localShapeCollection,w.shape._mdf||this._mdf||o)for(I.releaseShapes(),w.shape._mdf=!0,u=w.shape.paths.shapes,s=w.shape.paths._length,e=0;e<s;e+=1)I.addShape(this.processPath(u[e],D,M,x));w.shape.paths=w.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var u={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];
vendor: 6,282 bytes, line 1
1a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=127988,w=127462,I=127487,P=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function k(K,X){var V=createTag("span");V.setAttribute("aria-hidden",!0),V.style.fontFamily=X;var q=createTag("span");q.innerText="giItT1WQy@!-/#",V.style.position="absolute",V.style.left="-10000px",V.style.top="-10000px",V.style.fontSize="300px",V.style.fontVariant="normal",V.style.fontStyle="normal",V.style.fontWeight="normal",V.style.letterSpacing="0",V.appendChild(q),document.body.appendChild(V);var Ee=q.offsetWidth;return q.style.fontFamily=function S(K){var V,X=K.split(","),q=X.length,Ee=[];for(V=0;V<q;V+=1)"sans-serif"!==X[V]&&"monospace"!==X[V]&&Ee.push(X[V]);return Ee.join(",")}(K)+", "+X,{node:q,w:Ee,parent:V}}function F(K,X){var q,V=document.body&&X?"svg":"canvas",Ee=getFontProperties(K);if("svg"===V){var ye=createNS("text");ye.style.fontSize="100px",ye.setAttribute("font-family",K.fFamily),ye.setAttribute("font-style",Ee.style),ye.setAttribute("font-weight",Ee.weight),ye.textContent="1",K.fClass?(ye.style.fontFamily="inherit",ye.setAttribute("class",K.fClass)):ye.style.fontFamily=K.fFamily,X.appendChild(ye),q=ye}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=Ee.style+" "+Ee.weight+" 100px "+K.fFamily,q=nt}return{measureText:function at(me){return"svg"===V?(q.textContent=me,q.getComputedTextLength()):q.measureText(me).width}}}function fe(K){var X=0,V=K.charCodeAt(0);if(V>=55296&&V<=56319){var q=K.charCodeAt(1);q>=56320&&q<=57343&&(X=1024*(V-55296)+q-56320+65536)}return X}function ee(K){var X=fe(K);return X>=w&&X<=I}var ze=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return ze.isModifier=function N(K,X){var V=K.toString(16)+X.toString(16);return-1!==P.indexOf(V)},ze.isZeroWidthJoiner=function Q(K){return 8205===K},ze.isFlagEmoji=function ue(K){return ee(K.substr(0,2))&&ee(K.substr(2,2))},ze.isRegionalCode=ee,ze.isCombinedCharacter=function _e(K){return-1!==a.indexOf(K)},ze.isRegionalFlag=function be(K,X){var V=fe(K.substr(X,2));if(V!==t)return!1;var q=0;for(X+=2;q<5;){if((V=fe(K.substr(X,2)))<917601||V>917626)return!1;q+=1,X+=2}return 917631===fe(K.substr(X,2))},ze.isVariationSelector=function O(K){return 65039===K},ze.BLACK_FLAG_CODE_POINT=t,ze.prototype={addChars:function B(K){if(K){this.chars||(this.chars=[]);var X,q,ye,V=K.length,Ee=this.chars.length;for(X=0;X<V;X+=1){for(q=0,ye=!1;q<Ee;)this.chars[q].style===K[X].style&&this.chars[q].fFamily===K[X].fFamily&&this.chars[q].ch===K[X].ch&&(ye=!0),q+=1;ye||(this.chars.push(K[X]),Ee+=1)}}},addFonts:function ne(K,X){if(K){if(this.chars)return this.isLoaded=!0,void(this.fonts=K.list);if(!document.body)return this.isLoaded=!0,K.list.forEach(function(rt){rt.helper=F(rt),rt.cache={}}),void(this.fonts=K.list);var q,V=K.list,Ee=V.length,ye=Ee;for(q=0;q<Ee;q+=1){var at,me,nt=!0;if(V[q].loaded=!1,V[q].monoCase=k(V[q].fFamily,"monospace"),V[q].sansCase=k(V[q].fFamily,"sans-serif"),V[q].fPath){if("p"===V[q].fOrigin||3===V[q].origin){if((at=document.querySelectorAll('style[f-forigin="p"][f-family="'+V[q].fFamily+'"], style[f-origin="3"][f-family="'+V[q].fFamily+'"]')).length>0&&(nt=!1),nt){var ve=createTag("style");ve.setAttribute("f-forigin",V[q].fOrigin),ve.setAttribute("f-origin",V[q].origin),ve.setAttribute("f-family",V[q].fFamily),ve.type="text/css",ve.innerText="@font-face {font-family: "+V[q].fFamily+"; font-style: normal; src: url('"+V[q].fPath+"');}",X.appendChild(ve)}}else if("g"===V[q].fOrigin||1===V[q].origin){for(at=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),me=0;me<at.length;me+=1)-1!==at[me].href.indexOf(V[q].fPath)&&(nt=!1);if(nt){var je=createTag("link");je.setAttribute("f-forigin",V[q].fOrigin),je.setAttribute("f-origin",V[q].origin),je.type="text/css",je.rel="stylesheet",je.href=V[q].fPath,document.body.appendChild(je)}}else if("t"===V[q].fOrigin||2===V[q].origin){for(at=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),me=0;me<at.length;me+=1)V[q].fPath===at[me].src&&(nt=!1);if(nt){var Xe=createTag("link");Xe.setAttribute("f-forigin",V[q].fOrigin),Xe.setAttribute("f-origin",V[q].origin),Xe.setAttribute("rel","stylesheet"),Xe.setAttribute("href",V[q].fPath),X.appendChild(Xe)}}}else V[q].loaded=!0,ye-=1;V[q].helper=F(V[q],X),V[q].cache={},this.fonts.push(V[q])}0===ye?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function G(K,X,V){for(var q=0,Ee=this.chars.length;q<Ee;){if(this.chars[q].ch===K&&this.chars[q].style===X&&this.chars[q].fFamily===V)return this.chars[q];q+=1}return("string"==typeof K&&13!==K.charCodeAt(0)||!K)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",K,X,V)),u},getFontByName:function Y(K){for(var X=0,V=this.fonts.length;X<V;){if(this.fonts[X].fName===K)return this.fonts[X];X+=1}return this.fonts[0]},measureText:function W(K,X,V){var q=this.getFontByName(X),Ee=K;if(!q.cache[Ee]){var ye=q.helper;if(" "===K){var nt=ye.measureText("|"+K+"|"),at=ye.measureText("||");q.cache[Ee]=(nt-at)/100}else q.cache[Ee]=ye.measureText(K)/100}return q.cache[Ee]*V},checkLoadedFonts:function z(){var K,X=this.fonts.length,Ee=X;for(K=0;K<X;K+=1)this.fonts[K].loaded?Ee-=1:"n"===this.fonts[K].fOrigin||0===this.fonts[K].origin?this.fonts[K].loaded=!0:((this.fonts[K].monoCase.node.offsetWidth!==this.fonts[K].monoCase.w||this.fonts[K].sansCase.node.offsetWidth!==this.fonts[K].sansCase.w)&&(Ee-=1,this.fonts[K].loaded=!0),this.fonts[K].loaded&&(this.fonts[K].sansCase.parent.parentNode.removeChild(this.fonts[K].sansCase.parent),this.fonts[K].monoCase.parent.parentNode.removeChild(this.fonts[K].monoCase.parent)));0!==Ee&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function Qe(){this.isLoaded=!0}},ze}();function SlotManager(o){this.animationData=o}function slotFactory(o){return new SlotManager(o)}
vendor: 4,666 bytes, line 1
1function RenderableElement(){}SlotManager.prototype.getProp=function(o){return this.animationData.slots&&this.animationData.slots[o.sid]?Object.assign(o,this.animationData.slots[o.sid].p):o},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){-1===this.renderableComponents.indexOf(u)&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){-1!==this.renderableComponents.indexOf(u)&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,a=this.renderableComponents.length;for(u=0;u<a;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return o[u]||""}}();function SliderEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,0,0,a)}function AngleEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,0,0,a)}function ColorEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,1,0,a)}function PointEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,1,0,a)}function LayerIndexEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,0,0,a)}function MaskIndexEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,0,0,a)}function CheckboxEffect(o,u,a){this.p=PropertyFactory.getProp(u,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,u){var a=o.ef||[];this.effectElements=[];var t,s,e=a.length;for(t=0;t<e;t+=1)s=new GroupEffect(a[t],u),this.effectElements.push(s)}function GroupEffect(o,u){this.init(o,u)}function BaseElement(){}function FrameElement(){}function FootageElement(o,u,a){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(o.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(o,u,a)}function AudioElement(o,u,a){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(o.refId),this.initBaseData(o,u,a),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,u){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(u);var a,e,t=this.data.ef.length,s=this.data.ef;for(a=0;a<t;a+=1){switch(e=null,s[a].ty){case 0:e=new SliderEffect(s[a],u,this);break;case 1:e=new AngleEffect(s[a],u,this);break;case 2:e=new ColorEffect(s[a],u,this);break;case 3:e=new PointEffect(s[a],u,this);break;case 4:case 7:e=new CheckboxEffect(s[a],u,this);break;case 10:e=new LayerIndexEffect(s[a],u,this);break;case 11:e=new MaskIndexEffect(s[a],u,this);break;case 5:e=new EffectsManager(s[a],u,this);break;default:e=new NoValueEffect(s[a],u,this)}e&&this.effectElements.push(e)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,a=this.data.masksProperties.length;u<a;){if("n"!==this.data.masksProperties[u].mode&&!1!==this.data.masksProperties[u].cl)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var a=u("layer"),t=u("effects"),e=u("shape"),s=u("text"),D=u("comp");this.layerInterface=a(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);
vendor: 4,555 bytes, line 1
1var x=t.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(x),0===this.data.ty||this.data.xt?this.compInterface=D(this):4===this.data.ty?(this.layerInterface.shapeInterface=e(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=u},initBaseData:function(u,a,t){this.globalData=a,this.comp=t,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,a){var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)(a||this._isParent&&"transform"===this.dynamicProperties[t].propType)&&(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){-1===this.dynamicProperties.indexOf(u)&&this.dynamicProperties.push(u)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(o){var u=o("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(o){this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),this._currentTime=this.tm._placeholder?o/this.data.sr:this.tm.v,this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(o){var u,t,a=this.layers.length;for(this.completeLayers=!0,u=a-1;u>=0;u-=1)this.elements[u]||(t=this.layers[u]).ip-t.st<=o-this.layers[u].st&&t.op-t.st>o-this.layers[u].st&&this.buildItem(u),this.completeLayers=!!this.elements[u]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:default:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,u=this.layers.length;for(o=0;o<u;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var u,t,a=o.length,e=this.layers.length;for(u=0;
vendor: 6,235 bytes, line 1
1u<a;u+=1)for(t=0;t<e;){if(this.layers[t].id===o[u].id){this.layers[t]=o[u];break}t+=1}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,u,a){for(var t=this.elements,e=this.layers,s=0,D=e.length;s<D;)e[s].ind==u&&(t[s]&&!0!==t[s]?(a.push(t[s]),t[s].setAsParent(),void 0!==e[s].parent?this.buildElementParenting(o,e[s].parent,a):o.setHierarchy(a)):(this.buildItem(s),this.addPendingElement(o))),s+=1},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var u,a=o.length;for(u=0;u<a;u+=1)if(o[u].xt){var t=this.createComp(o[u]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(o){var u,a=this.elements.length;for(u=0;u<a;u+=1)if(this.elements[u].data.ind===o)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(o){var a,u=o.shift();if("number"==typeof u)a=this.elements[u];else{var t,e=this.elements.length;for(t=0;t<e;t+=1)if(this.elements[t].data.nm===u){a=this.elements[t];break}}return 0===o.length?a:a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(o,u,a){this.data=o,this.element=u,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var e,t=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var D,I,P,k,z,F,ne,x=this.masksProperties,M=0,w=[],S=createElementID(),B="clipPath",G="clip-path";for(e=0;e<s;e+=1)if(("a"!==x[e].mode&&"n"!==x[e].mode||x[e].inv||100!==x[e].o.k||x[e].o.x)&&(B="mask",G="mask"),"s"!==x[e].mode&&"i"!==x[e].mode||0!==M?k=null:((k=createNS("rect")).setAttribute("fill","#ffffff"),k.setAttribute("width",this.element.comp.data.w||0),k.setAttribute("height",this.element.comp.data.h||0),w.push(k)),D=createNS("path"),"n"===x[e].mode)this.viewData[e]={op:PropertyFactory.getProp(this.element,x[e].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,x[e],3),elem:D,lastPath:""},t.appendChild(D);else{var W;if(M+=1,D.setAttribute("fill","s"===x[e].mode?"#000000":"#ffffff"),D.setAttribute("clip-rule","nonzero"),0!==x[e].x.k?(B="mask",G="mask",ne=PropertyFactory.getProp(this.element,x[e].x,0,null,this.element),W=createElementID(),(z=createNS("filter")).setAttribute("id",W),(F=createNS("feMorphology")).setAttribute("operator","erode"),F.setAttribute("in","SourceGraphic"),F.setAttribute("radius","0"),z.appendChild(F),t.appendChild(z),D.setAttribute("stroke","s"===x[e].mode?"#000000":"#ffffff")):(F=null,ne=null),this.storedData[e]={elem:D,x:ne,expan:F,lastPath:"",lastOperator:"",filterId:W,lastRadius:0},"i"===x[e].mode){P=w.length;var Y=createNS("g");for(I=0;I<P;I+=1)Y.appendChild(w[I]);var fe=createNS("mask");fe.setAttribute("mask-type","alpha"),fe.setAttribute("id",S+"_"+M),fe.appendChild(D),t.appendChild(fe),Y.setAttribute("mask","url("+getLocationHref()+"#"+S+"_"+M+")"),w.length=0,w.push(Y)}else w.push(D);x[e].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[e]={elem:D,lastPath:"",op:PropertyFactory.getProp(this.element,x[e].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,x[e],3),invRect:k},this.viewData[e].prop.k||this.drawPath(x[e],this.viewData[e].prop.v,this.viewData[e])}for(this.maskElement=createNS(B),s=w.length,e=0;e<s;e+=1)this.maskElement.appendChild(w[e]);M>0&&(this.maskElement.setAttribute("id",S),this.element.maskedElement.setAttribute(G,"url("+getLocationHref()+"#"+S+")"),t.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var a=this.finalTransform.mat,t=0,e=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;t<e;){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf)for(a.cloneFromProps(this.finalTransform.mProp.v.props),t=0;t<e;t+=1)a.multiply(this.hierarchy[t].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<a;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var t=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(t),u=1;u<a;
vendor: 4,251 bytes, line 1
1u+=1)t.multiply(this.localTransforms[u].matrix);t.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(u=0;u<a;u+=1)s*=.01*this.localTransforms[u].opacity;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,t=u.length;for(a=0;a<t;a+=1)this.localTransforms.push(u[a])}}},globalToLocal:function(u){var a=[];a.push(this.finalTransform);for(var t=!0,e=this.comp;t;)e.finalTransform?(e.data.hasMask&&a.splice(0,0,e.finalTransform),e=e.comp):t=!1;var s,x,D=a.length;for(s=0;s<D;s+=1)x=a[s].mat.applyToPointArray(0,0,0),u=[u[0]-x[0],u[1]-x[1],0];return u},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var a,u=this.element.finalTransform.mat,t=this.masksProperties.length;for(a=0;a<t;a+=1)if((this.viewData[a].prop._mdf||o)&&this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]),(this.viewData[a].op._mdf||o)&&this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v),"n"!==this.masksProperties[a].mode&&(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o)&&this.viewData[a].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[a].x&&(this.storedData[a].x._mdf||o))){var e=this.storedData[a].expan;this.storedData[a].x.v<0?("erode"!==this.storedData[a].lastOperator&&(this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")")),e.setAttribute("radius",-this.storedData[a].x.v)):("dilate"!==this.storedData[a].lastOperator&&(this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null)),this.storedData[a].elem.setAttribute("stroke-width",2*this.storedData[a].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,(o+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(o,u,a){var e,s,t=" M"+u.v[0][0]+","+u.v[0][1];for(s=u._length,e=1;e<s;e+=1)t+=" C"+u.o[e-1][0]+","+u.o[e-1][1]+" "+u.i[e][0]+","+u.i[e][1]+" "+u.v[e][0]+","+u.v[e][1];if(u.c&&s>1&&(t+=" C"+u.o[e-1][0]+","+u.o[e-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),a.lastPath!==t){var D="";a.elem&&(u.c&&(D=o.inv?this.solidPath+t:t),a.elem.setAttribute("d",D)),a.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={createFilter:function u(t,e){var s=createNS("filter");return s.setAttribute("id",t),!0!==e&&(s.setAttribute("filterUnits","objectBoundingBox"),s.setAttribute("x","0%"),s.setAttribute("y","0%"),s.setAttribute("width","100%"),s.setAttribute("height","100%")),s},createAlphaToLuminanceFilter:function a(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(o.maskType=!1),/firefox/i.test(navigator.userAgent)&&(o.svgLumaHidden=!1),o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var u,x,a="SourceGraphic",t=o.data.ef?o.data.ef.length:0,e=createElementID(),s=filtersFactory.createFilter(e,!0),D=0;for(this.filters=[],u=0;u<t;u+=1){x=null;var M=o.data.ef[u].ty;registeredEffects$1[M]&&(x=new(0,registeredEffects$1[M].effect)(s,o.effectsManager.effectElements[u],o,idPrefix+D,a),a=idPrefix+D,registeredEffects$1[M].countsAsEffect&&(D+=1)),x&&this.filters.push(x)}
vendor: 4,287 bytes, line 1
1D&&(o.globalData.defs.appendChild(s),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+e+")")),this.filters.length&&o.addRenderableComponent(this)}function registerEffect$1(o,u,a){registeredEffects$1[o]={effect:u,countsAsEffect:a}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(o,u,a){this.assetData=u.getAssetData(o.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(o,u,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(o,u){this.elem=o,this.pos=u}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(o){var u,a=this.filters.length;for(u=0;u<a;u+=1)this.filters[u].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var u,a=this.filters.length,t=[];for(u=0;u<a;u+=1)this.filters[u].type===o&&t.push(this.filters[u]);return t},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),u=a,this.globalData.defs.appendChild(a)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var t=createNS("clipPath"),e=createNS("path");e.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(t.setAttribute("id",s),t.appendChild(e),this.globalData.defs.appendChild(t),this.checkMasks()){var D=createNS("g");D.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),D.appendChild(this.layerElement),this.transformedElement=D,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var t,e,s,D,a=this.layerId+"_"+u;if(1===u||3===u){var x=createNS("mask");x.setAttribute("id",a),x.setAttribute("mask-type",3===u?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),x.appendChild(s),this.globalData.defs.appendChild(x),!featureSupport.maskType&&1===u&&(x.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(D=createNS("g")).appendChild(s),x.appendChild(D),D.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===u){var M=createNS("mask");M.setAttribute("id",a),M.setAttribute("mask-type","alpha");var w=createNS("g");M.appendChild(w),t=createElementID(),e=filtersFactory.createFilter(t);var I=createNS("feComponentTransfer");I.setAttribute("in","SourceGraphic"),e.appendChild(I);var P=createNS("feFuncA");P.setAttribute("type","table"),P.setAttribute("tableValues","1.0 0.0"),I.appendChild(P),this.globalData.defs.appendChild(e);var S=createNS("rect");S.setAttribute("width",this.comp.data.w),S.setAttribute("height",this.comp.data.h),S.setAttribute("x","0"),S.setAttribute("y","0"),S.setAttribute("fill","#ffffff"),S.setAttribute("op
1acity","0"),w.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),w.appendChild(S),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),w.appendChild(s),featureSupport.maskType||(M.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),D=createNS("g"),w.appendChild(S),D.appendChild(this.layerElement),w.appendChild(D)),this.globalData.defs.appendChild(M)}this.matteMasks[u]=a}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(a,t,e){this.initFrame(),this.initBaseData(a,t,e),this.initTransform(a,t,e),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(u){var a,t=this.shapeModifiers.length;for(a=0;a<t;a+=1)this.shapeModifiers[a].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,a=this.shapes.length;for(u=0;u<a;u+=1)this.shapes[u].sh.reset();for(u=(a=this.shapeModifiers.length)-1;u>=0&&!this.shapeModifiers[u].processShapes(this._isFirstFrame);u-=1);}},searchProcessedElement:function(u){for(var a=this.processedElements,t=0,e=a.length;t<e;){if(a[t].elem===u)return a[t].pos;t+=1}return 0},addProcessedElement:function(u,a){for(var t=this.processedElements,e=t.length;e;)if(t[e-=1].elem===u)return void(t[e].pos=a);t.push(new ProcessedElement(u,a))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,u,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=u,this._isAnimated=!!a.k;for(var t=0,e=o.length;t<e;){if(o[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}function SVGStyleData(o,u){this.data=o,this.type=o.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=!0===o.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(o,u,a,t){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var e,D,s=u.length||0;for(e=0;e<s;e+=1)D=PropertyFactory.getProp(o,u[e].v,0,0,this),this.k=D.k||this.k,this.dataProps[e]={n:u[e].n,p:D};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(o,u,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,u.o,0,.01,this),this.w=PropertyFactory.getProp(o,u.w,0,null,this),this.d=new DashProperty(o,u.d||{},"svg",this),this.c=PropertyFactory.getProp(o,u.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(o,u,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,u.o,0,.01,this),this.c=PropertyFactory.getProp(o,u.c,1,255,this),this.style=a}function SVGNoStyleData(o,u,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}function GradientProperty(o,u,a){this.data=u,this.c=createTypedArray("uint8c",4*u.p);var t=u.k.k[0].s?u.k.k[0].s.length-4*u.p:u.k.k.length-4*u.p;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(o,u,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,u,a)}function SVGGradientStrokeStyleData(o,u,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,u.w,0,null,this),this.d=new DashProperty(o,u.d||{},"svg",this),this.initGradientData(o,u,a),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,u,a){this.transform={mProps:o,op:u,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1}
vendor: 4,344 bytes, line 1
1,DashProperty.prototype.getValue=function(o){if((this.elem.globalData.frameId!==this.frameId||o)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf)){var u=0,a=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),u=0;u<a;u+=1)"o"!==this.dataProps[u].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(o,u){for(var a=0,t=this.o.length/2;a<t;){if(Math.abs(o[4*a]-o[4*u+2*a])>.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var o=0,u=this.data.k.k.length;o<u;){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var u,t,e,a=4*this.data.p;for(u=0;u<a;u+=1)t=u%4==0?100:255,e=Math.round(this.prop.v[u]*t),this.c[u]!==e&&(this.c[u]=e,this._cmdf=!o);if(this.o.length)for(a=this.prop.v.length,u=4*this.data.p;u<a;u+=1)t=u%2==0?100:1,e=u%2==0?Math.round(100*this.prop.v[u]):this.prop.v[u],this.o[u-4*this.data.p]!==e&&(this.o[u-4*this.data.p]=e,this._omdf=!o);this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(o,u,a){this.o=PropertyFactory.getProp(o,u.o,0,.01,this),this.s=PropertyFactory.getProp(o,u.s,1,null,this),this.e=PropertyFactory.getProp(o,u.e,1,null,this),this.h=PropertyFactory.getProp(o,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(o,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,u.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,u),this.setGradientOpacity(u,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,u){var a=createElementID(),t=createNS(1===u.t?"linearGradient":"radialGradient");t.setAttribute("id",a),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var s,D,x,e=[];for(x=4*u.g.p,D=0;D<x;D+=4)s=createNS("stop"),t.appendChild(s),e.push(s);o.setAttribute("gf"===u.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=t,this.cst=e},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,u){if(this.g._hasOpacity&&!this.g._collapsable){var a,t,e,s=createNS("mask"),D=createNS("path");s.appendChild(D);var x=createElementID(),M=createElementID();s.setAttribute("id",M);var w=createNS(1===o.t?"linearGradient":"radialGradient");w.setAttribute("id",x),w.setAttribute("spreadMethod","pad"),w.setAttribute("gradientUnits","userSpaceOnUse"),e=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var I=this.stops;for(t=4*o.g.p;t<e;t+=2)(a=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),w.appendChild(a),I.push(a);D.setAttribute("gf"===o.ty?"fill":"stroke","url("+getLocationHref()+"#"+x+")"),"gs"===o.ty&&(D.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),D.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),1===o.lj&&D.setAttribute("stroke-miterlimit",o.ml)),this.of=w,this.ms=s,this.ost=I,this.maskId=M,u.msElem=D}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(u,a,t,e){if(0===a)return"";var M,s=u.o,D=u.i,x=u.v,w=" M"+e.applyToPointStringified(x[0][0],x[0][1]);for(M=1;M<a;M+=1)w+=" C"+e.applyToPointStringified(s[M-1][0],s[M-1][1])+" "+e.applyToPointStringified(D[M][0],D[M][1])+" "+e.applyToPointStringified(x[M][0],x[M][1]);return t&&a&&(w+=" C"+e.applyToPointStringified(s[M-1][0],s[M-1][1])+" "+e.applyToPointStringified(D[0][0],D[0][1])+" "+e.applyToPointStringified(x[0][0],x[0][1]),w+="z"),w},SVGElementsRenderer=function(){var o=new Matrix,u=new Matrix;function e(P,S,k){(k||S.transform.op._mdf)&&S.transform.container.setAttribute("op
1acity",S.transform.op.v),(k||S.transform.mProps._mdf)&&S.transform.container.setAttribute("transform",S.transform.mProps.v.to2dCSS())}function s(){}function D(P,S,k){var z,F,ne,B,G,W,N,Q,O,ee,Y=S.styles.length,fe=S.lvl;for(W=0;W<Y;W+=1){if(B=S.sh._mdf||k,S.styles[W].lvl<fe){for(Q=u.reset(),O=fe-S.styles[W].lvl,ee=S.transformers.length-1;!B&&O>0;)B=S.transformers[ee].mProps._mdf||B,O-=1,ee-=1;if(B)for(O=fe-S.styles[W].lvl,ee=S.transformers.length-1;O>0;)Q.multiply(S.transformers[ee].mProps.v),O-=1,ee-=1}else Q=o;if(F=(N=S.sh.paths)._length,B){for(ne="",z=0;z<F;z+=1)(G=N.shapes[z])&&G._length&&(ne+=buildShapeString(G,G._length,G.c,Q));S.caches[W]=ne}else ne=S.caches[W];S.styles[W].d+=!0===P.hd?"":ne,S.styles[W]._mdf=B||S.styles[W]._mdf}}function x(P,S,k){var z=S.style;(S.c._mdf||k)&&z.pElem.setAttribute("fill","rgb("+bmFloor(S.c.v[0])+","+bmFloor(S.c.v[1])+","+bmFloor(S.c.v[2])+")"),(S.o._mdf||k)&&z.pElem.setAttribute("fill-opacity",S.o.v)}function M(P,S,k){w(P,S,k),I(0,S,k)}function w(P,S,k){var fe,N,Q,O,_e,z=S.gf,F=S.g._hasOpacity,ne=S.s.v,B=S.e.v;if((S.o._mdf||k)&&S.style.pElem.setAttribute("gf"===P.ty?"fill-opacity":"stroke-opacity",S.o.v),S.s._mdf||k){var W=1===P.t?"x1":"cx",Y="x1"===W?"y1":"cy";z.setAttribute(W,ne[0]),z.setAttribute(Y,ne[1]),F&&!S.g._collapsable&&(S.of.setAttribute(W,ne[0]),S.of.setAttribute(Y,ne[1]))}if(S.g._cmdf||k){var ee=S.g.c;for(Q=(fe=S.cst).length,N=0;N<Q;N+=1)(O=fe[N]).setAttribute("offset",ee[4*N]+"%"),O.setAttribute("stop-color","rgb("+ee[4*N+1]+","+ee[4*N+2]+","+ee[4*N+3]+")")}if(F&&(S.g._omdf||k)){var ue=S.g.o;for(Q=(fe=S.g._collapsable?S.cst:S.ost).length,N=0;N<Q;N+=1)O=fe[N],S.g._collapsable||O.setAttribute("offset",ue[2*N]+"%"),O.setAttribute("stop-opacity",ue[2*N+1])}if(1===P.t)(S.e._mdf||k)&&(z.setAttribute("x2",B[0]),z.setAttribute("y2",B[1]),F&&!S.g._collapsable&&(S.of.setAttribute("x2",B[0]),S.of.setAttribute("y2",B[1])));else if((S.s._mdf||S.e._mdf||k)&&(_e=Math.sqrt(Math.pow(ne[0]-B[0],2)+Math.pow(ne[1]-B[1],2)),z.setAttribute("r",_e),F&&!S.g._collapsable&&S.of.setAttribute("r",_e)),S.s._mdf||S.e._mdf||S.h._mdf||S.a._mdf||k){_e||(_e=Math.sqrt(Math.pow(ne[0]-B[0],2)+Math.pow(ne[1]-B[1],2)));var be=Math.atan2(B[1]-ne[1],B[0]-ne[0]),Qe=S.h.v;Qe>=1?Qe=.99:Qe<=-1&&(Qe=-.99);var ze=_e*Qe,Oe=Math.cos(be+S.a.v)*ze+ne[0],K=Math.sin(be+S.a.v)*ze+ne[1];z.setAttribute("fx",Oe),z.setAttribute("fy",K),F&&!S.g._collapsable&&(S.of.setAttribute("fx",Oe),S.of.setAttribute("fy",K))}}function I(P,S,k){var z=S.style,F=S.d;F&&(F._mdf||k)&&F.dashStr&&(z.pElem.setAttribute("stroke-dasharray",F.dashStr),z.pElem.setAttribute("stroke-dashoffset",F.dashoffset[0])),S.c&&(S.c._mdf||k)&&z.pElem.setAttribute("stroke","rgb("+bmFloor(S.c.v[0])+","+bmFloor(S.c.v[1])+","+bmFloor(S.c.v[2])+")"),(S.o._mdf||k)&&z.pElem.setAttribute("stroke-opacity",S.o.v),(S.w._mdf||k)&&(z.pElem.setAttribute("stroke-width",S.w.v),z.msElem&&z.msElem.setAttribute("stroke-width",S.w.v))}return{createRenderFunction:function t(P){switch(P.ty){case"fl":return x;case"gf":return w;case"gs":return M;case"st":return I;case"sh":case"el":case"rc":case"sr":return D;case"tr":return e;case"no":return s;default:return null}}}}();function SVGShapeElement(o,u,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,u,a),this.prevViewData=[]}function LetterProps(o,u,a,t,e,s){this.o=o,this.sw=u,this.sc=a,this.fc=t,this.m=e,this.p=s,this._mdf={o:!0,sw:!!u,sc:!!a,fc:!!t,m:!0,p:!0}}function TextProperty(o,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=o.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,a,t,s,u=this.shapes.length,e=this.stylesList.length,D=[],x=!1;for(t=0;t<e;t+=1){for(s=this.stylesList[t],x=!1,D.length=0,o=0;o<u;o+=1)-1!==(a=this.shapes[o]).styles.indexOf(s)&&(D.push(a),x=a._isAnimated||x);D.length>1&&x&&this.setShapesAsAnimated(D)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var u,a=o.length;for(u=0;
vendor: 6,080 bytes, line 1
1u<a;u+=1)o[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,u){var a,t=new SVGStyleData(o,u),e=t.pElem;return"st"===o.ty?a=new SVGStrokeStyleData(this,o,t):"fl"===o.ty?a=new SVGFillStyleData(this,o,t):"gf"===o.ty||"gs"===o.ty?(a=new("gf"===o.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,o,t),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),e.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")"))):"no"===o.ty&&(a=new SVGNoStyleData(this,o,t)),("st"===o.ty||"gs"===o.ty)&&(e.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),e.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),e.setAttribute("fill-opacity","0"),1===o.lj&&e.setAttribute("stroke-miterlimit",o.ml)),2===o.r&&e.setAttribute("fill-rule","evenodd"),o.ln&&e.setAttribute("id",o.ln),o.cl&&e.setAttribute("class",o.cl),o.bm&&(e.style["mix-blend-mode"]=getBlendMode(o.bm)),this.stylesList.push(t),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var u=new ShapeGroupData;return o.ln&&u.gr.setAttribute("id",o.ln),o.cl&&u.gr.setAttribute("class",o.cl),o.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(o.bm)),u},SVGShapeElement.prototype.createTransformElement=function(o,u){var a=TransformPropertyFactory.getTransformProperty(this,o,this),t=new SVGTransformData(a,a.o,u);return this.addToAnimatedContents(o,t),t},SVGShapeElement.prototype.createShapeElement=function(o,u,a){var t=4;"rc"===o.ty?t=5:"el"===o.ty?t=6:"sr"===o.ty&&(t=7);var s=new SVGShapeData(u,a,ShapePropertyFactory.getShapeProp(this,o,t,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(o,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(o,u){for(var a=0,t=this.animatedContents.length;a<t;){if(this.animatedContents[a].element===u)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:u,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var a,u=o.styles,t=this.stylesList.length;for(a=0;a<t;a+=1)-1===u.indexOf(this.stylesList[a])&&!this.stylesList[a].closed&&u.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,u=this.itemsData.length;for(o=0;o<u;o+=1)this.prevViewData[o]=this.itemsData[o];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,o=0;o<u;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,u,a,t,e,s,D){var M,I,P,F,ne,x=[].concat(s),w=o.length-1,S=[],k=[];for(M=w;M>=0;M-=1){if((ne=this.searchProcessedElement(o[M]))?u[M]=a[ne-1]:o[M]._render=D,"fl"===o[M].ty||"st"===o[M].ty||"gf"===o[M].ty||"gs"===o[M].ty||"no"===o[M].ty)ne?u[M].style.closed=o[M].hd:u[M]=this.createStyleElement(o[M],e),o[M]._render&&u[M].style.pElem.parentNode!==t&&t.appendChild(u[M].style.pElem),S.push(u[M].style);else if("gr"===o[M].ty){if(ne)for(P=u[M].it.length,I=0;I<P;I+=1)u[M].prevViewData[I]=u[M].it[I];else u[M]=this.createGroupElement(o[M]);this.searchShapes(o[M].it,u[M].it,u[M].prevViewData,u[M].gr,e+1,x,D),o[M]._render&&u[M].gr.parentNode!==t&&t.appendChild(u[M].gr)}else"tr"===o[M].ty?(ne||(u[M]=this.createTransformElement(o[M],t)),x.push(u[M].transform)):"sh"===o[M].ty||"rc"===o[M].ty||"el"===o[M].ty||"sr"===o[M].ty?(ne||(u[M]=this.createShapeElement(o[M],x,e)),this.setElementStyles(u[M])):"tm"===o[M].ty||"rd"===o[M].ty||"ms"===o[M].ty||"pb"===o[M].ty||"zz"===o[M].ty||"op"===o[M].ty?(ne?(F=u[M]).closed=!1:((F=ShapeModifiers.getModifier(o[M].ty)).init(this,o[M]),u[M]=F,this.shapeModifiers.push(F)),k.push(F)):"rp"===o[M].ty&&(ne?(F=u[M]).closed=!0:(F=ShapeModifiers.getModifier(o[M].ty),u[M]=F,F.init(this,o,M,u),this.shapeModifiers.push(F),D=!1),k.push(F));this.addProcessedElement(o[M],M+1)}for(w=S.length,M=0;M<w;M+=1)S[M].closed=!0;for(w=k.length,M=0;M<w;M+=1)k[M].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,u=this.stylesList.length;for(o=0;o<u;o+=1)this.stylesList[o].reset();for(this.renderShape(),o=0;o<u;o+=1)(this.stylesList[o]._mdf||this._isFirstFrame)&&(this.stylesList[o].msElem&&(this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d),this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var o,a,u=this.animatedContents.length;for(o=0;o<u;o+=1)a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&!0!==a.data&&a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(o,u,a,t,e,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var D=!1;return this.o!==o&&(this.o=o,this._mdf.o=!0,D=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,D=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,D=!0),this.fc!==t&&(this.fc=t,this._mdf.fc=!0,D=!0),this.m!==e&&(this.m=e,this._mdf.m=!0,D=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,D=!0),D},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,u){for(var a in u)Object.prototype.hasOwnProperty.call(u,a)&&(o[a]=u[a]);return o},TextProperty.prototype.setCurrentData=function(o){o.__complete||this.completeTextData(o),this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)}
vendor: 7,587 bytes, line 1
1,TextProperty.prototype.getValue=function(o){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||o){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,a=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var t,e=this.effectsSequence.length,s=o||this.data.d.k[this.keysIndex].s;for(t=0;t<e;t+=1)s=this.effectsSequence[t](a!==this.keysIndex?s:this.currentData,s.t);u!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var o=this.data.d.k,u=this.elem.comp.renderedFrame,a=0,t=o.length;a<=t-1&&!(a===t-1||o[a+1].t>u);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){for(var e,s,u=[],a=0,t=o.length,D=!1,x=!1,M="";a<t;)D=x,x=!1,e=o.charCodeAt(a),M=o.charAt(a),FontManager.isCombinedCharacter(e)?D=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(o,a)?M=o.substr(a,14):(s=o.charCodeAt(a+1))>=56320&&s<=57343&&(FontManager.isModifier(e,s)?(M=o.substr(a,2),D=!0):M=FontManager.isFlagEmoji(o.substr(a,4))?o.substr(a,4):o.substr(a,2)):e>56319?(s=o.charCodeAt(a+1),FontManager.isVariationSelector(e)&&(D=!0)):FontManager.isZeroWidthJoiner(e)&&(D=!0,x=!0),D?(u[u.length-1]+=M,D=!1):u.push(M),a+=M.length;return u},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var e,s,D,M,ne,B,W,u=this.elem.globalData.fontManager,a=this.data,t=[],x=0,w=a.m.g,I=0,P=0,S=0,k=[],z=0,F=0,G=u.getFontByName(o.f),Y=0,fe=getFontProperties(G);o.fWeight=fe.weight,o.fStyle=fe.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),s=o.finalText.length,o.finalLineHeight=o.lh;var Q,N=o.tr/1e3*o.finalSize;if(o.sz)for(var _e,be,O=!0,ee=o.sz[0],ue=o.sz[1];O;){_e=0,z=0,s=(be=this.buildFinalText(o.t)).length,N=o.tr/1e3*o.finalSize;var Qe=-1;for(e=0;e<s;e+=1)Q=be[e].charCodeAt(0),D=!1," "===be[e]?Qe=e:(13===Q||3===Q)&&(z=0,D=!0,_e+=o.finalLineHeight||1.2*o.finalSize),u.chars?(W=u.getCharData(be[e],G.fStyle,G.fFamily),Y=D?0:W.w*o.finalSize/100):Y=u.measureText(be[e],o.f,o.finalSize),z+Y>ee&&" "!==be[e]?(-1===Qe?s+=1:e=Qe,_e+=o.finalLineHeight||1.2*o.finalSize,be.splice(e,Qe===e?1:0,"\r"),Qe=-1,z=0):(z+=Y,z+=N);_e+=G.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&ue<_e?(o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s):(o.finalText=be,s=o.finalText.length,O=!1)}z=-N,Y=0;var Oe,ze=0;for(e=0;e<s;e+=1)if(D=!1,13===(Q=(Oe=o.finalText[e]).charCodeAt(0))||3===Q?(ze=0,k.push(z),F=z>F?z:F,z=-2*N,M="",D=!0,S+=1):M=Oe,u.chars?(W=u.getCharData(Oe,G.fStyle,u.getFontByName(o.f).fFamily),Y=D?0:W.w*o.finalSize/100):Y=u.measureText(M,o.f,o.finalSize)," "===Oe?ze+=Y+N:(z+=Y+N+ze,ze=0),t.push({l:Y,an:Y,add:I,n:D,anIndexes:[],val:M,line:S,animatorJustifyOffset:0}),2==w){if(I+=Y,""===M||" "===M||e===s-1){for((""===M||" "===M)&&(I-=Y);P<=e;)t[P].an=I,t[P].ind=x,t[P].extra=Y,P+=1;x+=1,I=0}}else if(3==w){if(I+=Y,""===M||e===s-1){for(""===M&&(I-=Y);P<=e;)t[P].an=I,t[P].ind=x,t[P].extra=Y,P+=1;I=0,x+=1}}else t[x].ind=x,t[x].extra=0,x+=1;if(o.l=t,F=z>F?z:F,k.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=F,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=k;var X,V,K=a.a;B=K.length;var q,Ee,ye=[];for(ne=0;ne<B;ne+=1){for((X=K[ne]).a.sc&&(o.strokeColorAnim=!0),X.a.sw&&(o.strokeWidthAnim=!0),(X.a.fc||X.a.fh||X.a.fs||X.a.fb)&&(o.fillColorAnim=!0),Ee=0,q=X.s.b,e=0;e<s;e+=1)(V=t[e]).anIndexes[ne]=Ee,(1==q&&""!==V.val||2==q&&""!==V.val&&" "!==V.val||3==q&&(V.n||" "==V.val||e==s-1)||4==q&&(V.n||e==s-1))&&(1===X.s.rn&&ye.push(Ee),Ee+=1);a.a[ne].s.totalChars=Ee;var at,nt=-1;if(1===X.s.rn)for(e=0;e<s;e+=1)nt!=(V=t[e]).anIndexes[ne]&&(nt=V.anIndexes[ne],at=ye.splice(Math.floor(Math.random()*ye.length),1)[0]),V.anIndexes[ne]=at}o.yOffset=o.finalLineHeight||1.2*o.finalSize,o.ls=o.ls||0,o.ascent=G.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,u){var a=this.copyData({},this.data.d.k[u=void 0===u?this.keysIndex:u].s);a=this.copyData(a,o),this.data.d.k[u].s=a,this.recalculate(u),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var u=this.data.d.k[o].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,u=Math.min,a=Math.floor;function t(s,D){this._currentTextLength=-1,this.k=!1,this.data=D,this.elem=s,this.comp=s.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(s),this.s=PropertyFactory.getProp(s,D.s||{k:0},0,0,this),this.e="e"in D?PropertyFactory.getProp(s,D.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(s,D.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(s,D.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(s,D.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(s,D.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(s,D.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return t.prototype={getMult:function(D){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var x=0,M=0,w=1,I=1;this.ne.v>0?x=this.ne.v/100:M=-this.ne.v/100,this.xe.v>0?w=1-this.xe.v/100:I=1+this.xe.v/100;var P=BezierFactory.getBezierEasing(x,M,w,I).get,S=0,k=this.finalS,z=this.finalE,F=this.data.sh;if(2===F)S=P(S=z===k?D>=z?1:0:o(0,u(.5/(z-k)+(D-k)/(z-k),1)));else if(3===F)S=P(S=z===k?D>=z?0:1:1-o(0,u(.5/(z-k)+(D-k)/(z-k),1)));else if(4===F)z===k?S=0:(S=o(0,u(.5/(z-k)+(D-k)/(z-k),1)))<.5?S*=2:S=1-2*(S-.5),S=P(S);else if(5===F){if(z===k)S=0;else{var ne=z-k,B=-ne/2+(D=u(o(0,D+.5-k),z-k)),G=ne/2;S=Math.sqrt(1-B*B/(G*G))}S=P(S)}else 6===F?(z===k?S=0:(D=u(o(0,D+.5-k),z-k),S=(1+Math.cos(Math.PI+2*Math.PI*D/(z-k)))/2),S=P(S)):(D>=a(k)&&(S=o(0,u(D-k<0?u(z,1)-(k-D):z-D,1))),S=P(S));if(100!==this.sm.v){var W=.01*this.sm.v;0===W&&(W=1e-8);var Y=.5-.5*W;S<Y?S=0:(S=(S-Y)/W)>1&&(S=1)}return S*this.a.v},getValue:function(D){this.iterateDynamicProperties(),this._mdf=D||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,D&&2===this.data.r&&(this.e.v=this._currentTextLength);var x=2===this.data.r?1:100/this.data.totalChars,M=this.o.v/x,w=this.s.v/x+M,I=this.e.v/x+M;if(w>I){var P=w;w=I,I=P}this.finalS=w,this.finalE=I}},extendPrototype([DynamicPropertyContainer],t),{getTextSelectorProp:function e(s,D,x){return new t(s,D,x)}}}();function TextAnimatorDataProperty(o,u,a){var t={propType:!1},e=PropertyFactory.getProp,s=u.a;this.a={r:s.r?e(o,s.r,0,degToRads,a):t,rx:s.rx?e(o,s.rx,0,degToRads,a):t,ry:s.ry?e(o,s.ry,0,degToRads,a):t,sk:s.sk?e(o,s.sk,0,degToRads,a):t,sa:s.sa?e(o,s.sa,0,degToRads,a):t,s:s.s?e(o,s.s,1,.01,a):t,a:s.a?e(o,s.a,1,0,a):t,o:s.o?e(o,s.o,0,.01,a):t,p:s.p?e(o,s.p,1,0,a):t,sw:s.sw?e(o,s.sw,0,0,a):t,sc:s.sc?e(o,s.sc,1,0,a):t,fc:s.fc?e(o,s.fc,1,0,a):t,fh:s.fh?e(o,s.fh,0,0,a):t,fs:s.fs?e(o,s.fs,0,.01,a):t,fb:s.fb?e(o,s.fb,0,.01,a):t,t:s.t?e(o,s.t,0,0,a):t},this.s=TextSelectorProp.getTextSelectorProp(o,u.s,a),this.s.t=u.s.t}function TextAnimatorProperty(o,u,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=u,this._elem=a,this._animators
vendor: 8,773 bytes, line 1
1Data=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var o,u=this._textData.a.length,t=PropertyFactory.getProp;for(o=0;o<u;o+=1)this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,this._textData.a[o],this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,u){if(this.lettersChangedFlag=u,this._mdf||this._isFirstFrame||u||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var M,w,I,P,k,z,F,ne,B,G,W,Y,fe,N,Q,O,ee,_e,a=this._moreOptions.alignment.v,t=this._animatorsData,e=this._textData,s=this.mHelper,D=this._renderType,x=this.renderedLetters.length,S=o.l;if(this._hasMaskedPath){if(_e=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Qe,be=_e.v;for(this._pathData.r.v&&(be=be.reverse()),k={tLength:0,segments:[]},P=be._length-1,O=0,I=0;I<P;I+=1)Qe=bez.buildBezierData(be.v[I],be.v[I+1],[be.o[I][0]-be.v[I][0],be.o[I][1]-be.v[I][1]],[be.i[I+1][0]-be.v[I+1][0],be.i[I+1][1]-be.v[I+1][1]]),k.tLength+=Qe.segmentLength,k.segments.push(Qe),O+=Qe.segmentLength;I=P,_e.v.c&&(Qe=bez.buildBezierData(be.v[I],be.v[0],[be.o[I][0]-be.v[I][0],be.o[I][1]-be.v[I][1]],[be.i[0][0]-be.v[0][0],be.i[0][1]-be.v[0][1]]),k.tLength+=Qe.segmentLength,k.segments.push(Qe),O+=Qe.segmentLength),this._pathData.pi=k}if(W=0,G=1,ne=0,B=!0,N=(k=this._pathData.pi).segments,(z=this._pathData.f.v)<0&&_e.v.c)for(k.tLength<Math.abs(z)&&(z=-Math.abs(z)%k.tLength),G=(fe=N[W=N.length-1].points).length-1;z<0;)z+=fe[G].partialLength,(G-=1)<0&&(G=(fe=N[W-=1].points).length-1);Y=(fe=N[W].points)[G-1],Q=(F=fe[G]).partialLength}P=S.length,M=0,w=0;var K,V,q,Ee,ze=1.2*o.finalSize*.714,Oe=!0;q=t.length;var ye,at,me,ve,$t,tn,yt,bt,Ye,Nt,xn,pn,Yt,nt=-1,je=z,Xe=W,rt=G,mt=-1,_n="",zt=this.defaultPropsArray;if(2===o.j||1===o.j){var It=0,bn=0,Rn=2===o.j?-.5:-1,Sn=0,vn=!0;for(I=0;I<P;I+=1)if(S[I].n){for(It&&(It+=bn);Sn<I;)S[Sn].animatorJustifyOffset=It,Sn+=1;It=0,vn=!0}else{for(V=0;V<q;V+=1)(K=t[V].a).t.propType&&(vn&&2===o.j&&(bn+=K.t.v*Rn),It+=(ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars)).length?K.t.v*ye[0]*Rn:K.t.v*ye*Rn);vn=!1}for(It&&(It+=bn);Sn<I;)S[Sn].animatorJustifyOffset=It,Sn+=1}for(I=0;I<P;I+=1){if(s.reset(),$t=1,S[I].n)M=0,w+=o.yOffset,w+=Oe?1:0,z=je,Oe=!1,this._hasMaskedPath&&(Y=(fe=N[W=Xe].points)[(G=rt)-1],Q=(F=fe[G]).partialLength,ne=0),_n="",pn="",Nt="",Yt="",zt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(mt!==S[I].line){switch(o.j){case 1:z+=O-o.lineWidths[S[I].line];break;case 2:z+=(O-o.lineWidths[S[I].line])/2}mt=S[I].line}nt!==S[I].ind&&(S[nt]&&(z+=S[nt].extra),z+=S[I].an/2,nt=S[I].ind),z+=a[0]*S[I].an*.005;var mi=0;for(V=0;V<q;V+=1)(K=t[V].a).p.propType&&(mi+=(ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars)).length?K.p.v[0]*ye[0]:K.p.v[0]*ye),K.a.propType&&(mi+=(ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars)).length?K.a.v[0]*ye[0]:K.a.v[0]*ye);for(B=!0,this._pathData.a.v&&(z=.5*S[0].an+(O-this._pathData.f.v-.5*S[0].an-.5*S[S.length-1].an)*nt/(P-1),z+=this._pathData.f.v);B;)ne+Q>=z+mi||!fe?(me=Y.point[0]+(F.point[0]-Y.point[0])*(ee=(z+mi-ne)/F.partialLength),ve=Y.point[1]+(F.point[1]-Y.point[1])*ee,s.translate(-a[0]*S[I].an*.005,-a[1]*ze*.01),B=!1):fe&&(ne+=F.partialLength,(G+=1)>=fe.length&&(G=0,N[W+=1]?fe=N[W].points:_e.v.c?(G=0,fe=N[W=0].points):(ne-=F.partialLength,fe=null)),fe&&(Y=F,Q=(F=fe[G]).partialLength));s.translate(-(at=S[I].an/2-S[I].add),0,0)}else s.translate(-(at=S[I].an/2-S[I].add),0,0),s.translate(-a[0]*S[I].an*.005,-a[1]*ze*.01,0);for(V=0;V<q;V+=1)(K=t[V].a).t.propType&&(ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars),(0!==M||0!==o.j)&&(this._hasMaskedPath?z+=ye.length?K.t.v*ye[0]:K.t.v*ye:M+=ye.length?K.t.v*ye[0]:K.t.v*ye));for(o.strokeWidthAnim&&(yt=o.sw||0),o.strokeColorAnim&&(tn=o.sc?[o.sc[0],o.sc[1],o.sc[2]]:[0,0,0]),o.fillColorAnim&&o.fc&&(bt=[o.fc[0],o.fc[1],o.fc[2]]),V=0;V<q;V+=1)(K=t[V].a).a.propType&&((ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars)).length?s.translate(-K.a.v[0]*ye[0],-K.a.v[1]*ye[1],K.a.v[2]*ye[2]):s.translate(-K.a.v[0]*ye,-K.a.v[1]*ye,K.a.v[2]*ye));for(V=0;V<q;V+=1)(K=t[V].a).s.propType&&((ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars)).length?s.scale(1+(K.s.v[0]-1)*ye[0],1+(K.s.v[1]-1)*ye[1],1):s.scale(1+(K.s.v[0]-1)*ye,1+(K.s.v[1]-1)*ye,1));for(V=0;V<q;V+=1){if(K=t[V].a,ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars),K.sk.propType&&(ye.length?s.skewFromAxis(-K.sk.v*ye[0],K.sa.v*ye[1]):s.skewFromAxis(-K.sk.v*ye,K.sa.v*ye)),K.r.propType&&s.rotateZ(ye.length?-K.r.v*ye[2]:-K.r.v*ye),K.ry.propType&&s.rotateY(ye.length?K.ry.v*ye[1]:K.ry.v*ye),K.rx.propType&&s.rotateX(ye.length?K.rx.v*ye[0]:K.rx.v*ye),K.o.propType&&($t+=ye.length?(K.o.v*ye[0]-$t)*ye[0]:(K.o.v*ye-$t)*ye),o.strokeWidthAnim&&K.sw.propType&&(yt+=ye.length?K.sw.v*ye[0]:K.sw.v*ye),o.strokeColorAnim&&K.sc.propType)for(Ye=0;Ye<3;Ye+=1)tn[Ye]+=ye.length?(K.sc.v[Ye]-tn[Ye])*ye[0]:(K.sc.v[Ye]-tn[Ye])*ye;if(o.fillColorAnim&&o.fc){if(K.fc.propType)for(Ye=0;Ye<3;Ye+=1)bt[Ye]+=ye.length?(K.fc.v[Ye]-bt[Ye])*ye[0]:(K.fc.v[Ye]-bt[Ye])*ye;K.fh.propType&&(bt=addHueToRGB(bt,ye.length?K.fh.v*ye[0]:K.fh.v*ye)),K.fs.propType&&(bt=addSaturationToRGB(bt,ye.length?K.fs.v*ye[0]:K.fs.v*ye)),K.fb.propType&&(bt=addBrightnessToRGB(bt,ye.length?K.fb.v*ye[0]:K.fb.v*ye))}}for(V=0;V<q;V+=1)(K=t[V].a).p.propType&&(ye=t[V].s.getMult(S[I].anIndexes[V],e.a[V].s.totalChars),this._hasMaskedPath?ye.length?s.translate(0,K.p.v[1]*ye[0],-K.p.v[2]*ye[1]):s.translate(0,K.p.v[1]*ye,-K.p.v[2]*ye):ye.length?s.translate(K.p.v[0]*ye[0],K.p.v[1]*ye[1],-K.p.v[2]*ye[2]):s.translate(K.p.v[0]*ye,K.p.v[1]*ye,-K.p.v[2]*ye));if(o.strokeWidthAnim&&(Nt=yt<0?0:yt),o.strokeColorAnim&&(xn="rgb("+Math.round(255*tn[0])+","+Math.round(255*tn[1])+","+Math.round(255*tn[2])+")"),o.fillColorAnim&&o.fc&&(pn="rgb("+Math.round(255*bt[0])+","+Math.round(255*bt[1])+","+Math.round(255*bt[2])+")"),this._hasMaskedPath){if(s.translate(0,-o.ls),s.translate(0,a[1]*ze*.01+w,0),this._pathData.p.v){var Un=180*Math.atan((F.point[1]-Y.point[1])/(F.point[0]-Y.point[0]))/Math.PI;F.point[0]<Y.point[0]&&(Un+=180),s.rotate(-Un*Math.PI/180)}s.translate(me,ve,0),z-=a[0]*S[I].an*.005,S[I+1]&&nt!==S[I+1].ind&&(z+=S[I].an/2,z+=.001*o.tr*o.finalSize)}else{switch(s.translate(M,w,0),o.ps&&s.translate(o.ps[0],o.ps[1]+o.ascent,0),o.j){case 1:s.translate(S[I].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[S[I].line]),0,0);break;case 2:s.translate(S[I].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[S[I].line])/2,0,0)}s.translate(0,-o.ls),s.translate(at,0,0),s.translate(a[0]*S[I].an*.005,a[1]*ze*.01,0),M+=S[I].l+.001*o.tr*o.finalSize}"html"===D?_n=s.toCSS():"svg"===D?_n=s.to2dCSS():zt=[s.props[0],s.props[1],s.props[2],s.props[3],s.props[4],s.props[5],s.props[6],s.props[7],s.props[8],s.props[9],s.props[10],s.props[11],s.props[12],s.props[13],s.props[14],s.props[15]],Yt=$t}x<=I?(Ee=new LetterProps(Yt,Nt,xn,pn,_n,zt),this.renderedLetters.push(Ee),x+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(Ee=this.renderedLetters[I]).update(Yt,Nt,xn,pn,_n,zt)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(o,u,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,u,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,u,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,u){var a,e,t=u.length,s="";for(a=0;a<t;
vendor: 10,237 bytes, line 1
1a+=1)"sh"===u[a].ty&&(s+=buildShapeString(e=u[a].ks.k,e.i.length,!0,o));return s},ITextElement.prototype.updateDocumentData=function(o,u){this.textProperty.updateDocumentData(o,u)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,u,a,t,e){switch(o.ps&&u.translate(o.ps[0],o.ps[1]+o.ascent,0),u.translate(0,-o.ls,0),o.j){case 1:u.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:u.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0)}u.translate(t,e,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(255*o[0])+","+Math.round(255*o[1])+","+Math.round(255*o[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,u,a){this.textSpans=[],this.renderType="svg",this.initElement(o,u,a)}function ISolidElement(o,u,a){this.initElement(o,u,a)}function NullElement(o,u,a){this.initFrame(),this.initBaseData(o,u,a),this.initFrame(),this.initTransform(o,u,a),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(o,u,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,u,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,u.frameRate,this):{_placeholder:!0}}function SVGRenderer(o,u){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(u&&u.title){var t=createNS("title"),e=createElementID();t.setAttribute("id",e),t.textContent=u.title,this.svgElement.appendChild(t),a+=e}if(u&&u.description){var s=createNS("desc"),D=createElementID();s.setAttribute("id",D),s.textContent=u.description,this.svgElement.appendChild(s),a+=" "+D}a&&this.svgElement.setAttribute("aria-labelledby",a);var x=createNS("defs");this.svgElement.appendChild(x);var M=createNS("g");this.svgElement.appendChild(M),this.layerElement=M,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&!1===u.hideOnTransparent),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||void 0===u.runExpressions||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:x,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(o){for(var u=0,a=o.length,t=[],e="";u<a;)o[u]===String.fromCharCode(13)||o[u]===String.fromCharCode(3)?(t.push(e),e=""):e+=o[u],u+=1;return t.push(e),t},SVGTextLottieElement.prototype.buildShapeData=function(o,u){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var t=a.it[a.it.length-1];t.s&&(t.s.k[0]=u,t.s.k[1]=u)}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,u,a=this.textProperty.currentData;this.renderedLetters=createSizedArray(a?a.l.length:0),this.layerElement.setAttribute("fill",a.fc?this.buildColor(a.fc):"rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var t=this.globalData.fontManager.getFontByName(a.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var e=a.fWeight;this.layerElement.setAttribute("font-style",a.fStyle),this.layerElement.setAttribute("font-weight",e)}this.layerElement.setAttribute("aria-label",a.t);var D=a.l||[],x=!!this.globalData.fontManager.chars;u=D.length;var M,w=this.mHelper,P=this.data.singleShape,S=0,k=0,z=!0,F=.001*a.tr*a.finalSize;if(!P||x||a.sz){var Y,W=this.textSpans.length;for(o=0;o<u;o+=1){if(this.textSpans[o]||(this.textSpans[o]={span:null,childSpan:null,glyph:null}),!x||!P||0===o){if(M=W>o?this.textSpans[o].span:createNS(x?"g":"text"),W<=o){if(M.setAttribute("stroke-linecap","butt"),M.setAttribute("stroke-linejoin","round"),M.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=M,x){var fe=createNS("g");M.appendChild(fe),this.textSpans[o].childSpan=fe}this.textSpans[o].span=M,this.layerElement.appendChild(M)}M.style.display="inherit"}if(w.reset(),P&&(D[o].n&&(S=-F,k+=a.yOffset,k+=z?1:0,z=!1),this.applyTextPropertiesToMatrix(a,w,D[o].line,S,k),S+=D[o].l||0,S+=F),x){var N;if(1===(Y=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily)).t)N=new SVGCompElement(Y.data,this.globalData,this);else{var Q=emptyShapeData;Y.data&&Y.data.shapes&&(Q=this.buildShapeData(Y.data,a.finalSize)),N=new SVGShapeElement(Q,this.globalData,this)}if(this.textSpans[o].glyph){var O=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(O.layerElement),O.destroy()}this.textSpans[o].glyph=N,N._debug=!0,N.prepareFrame(0),N.renderFrame(),this.textSpans[o].childSpan.appendChild(N.layerElement),1===Y.t&&this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else P&&M.setAttribute("transform","translate("+w.props[12]+","+w.props[13]+")"),M.textContent=D[o].val,M.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}P&&M&&M.setAttribute("d","")}else{var ne=this.textContainer,B="start";switch(a.j){case 1:B="end";break;case 2:B="middle";break;default:B="start"}ne.setAttribute("text-anchor",B),ne.setAttribute("letter-spacing",F);var G=this.buildTextContents(a.finalText);for(u=G.length,k=a.ps?a.ps[1]+a.ascent:0,o=0;o<u;o+=1)(M=this.textSpans[o].span||createNS("tspan")).textContent=G[o],M.setAttribute("x",0),M.setAttribute("y",k),M.style.display="inherit",ne.appendChild(M),this.textSpans[o]||(this.textSpans[o]={span:null,glyph:null}),this.textSpans[o].span=M,k+=a.finalLineHeight;this.layerElement.appendChild(ne)}for(;o<this.textSpans.length;)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,a,u=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,o=0;o<u;o+=1)(a=this.textSpans[o].glyph)&&(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var o,u,e,s,D,a=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;for(u=t.length,o=0;o<u;o+=1)t[o].n||(e=a[o],s=this.textSpans[o].span,(D=this.textSpans[o].glyph)&&D.renderFrame(),e._mdf.m&&s.setAttribute("transform",e.m),e._mdf.o&&s.setAttribute("opacity",e.o),e._mdf.sw&&s.setAttribute("stroke-width",e.sw),e._mdf.sc&&s.setAttribute("stroke",e.sc),e._mdf.fc&&s.setAttribute("fill",e.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)},NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+o.w+" "+o.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
10,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(o,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",o.w),t.setAttribute("height",o.h),t.setAttribute("x",0),t.setAttribute("y",0);var e=createElementID();a.setAttribute("id",e),a.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),u.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var o,u=this.layers?this.layers.length:0;for(o=0;o<u;o+=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var u=0,a=this.layers.length;for(u=0;u<a;u+=1)if(this.layers[u].ind===o)return u;return-1},SVGRendererBase.prototype.buildItem=function(o){var u=this.elements;if(!u[o]&&99!==this.layers[o].ty){u[o]=!0;var a=this.createItem(this.layers[o]);if(u[o]=a,getExpressionsPlugin()&&(0===this.layers[o].ty&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,o),this.layers[o].tt){var t="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if(-1===t)return;if(this.elements[t]&&!0!==this.elements[t]){var s=u[t].getMatte(this.layers[o].tt);a.setMatte(s)}else this.buildItem(t),this.addPendingElement(a)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt)for(var u=0,a=this.elements.length;u<a;){if(this.elements[u]===o){var t="tp"in o.data?this.findIndexByInd(o.data.tp):u-1,s=this.elements[t].getMatte(this.layers[u].tt);o.setMatte(s);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(o){if(this.renderedFrame!==o&&!this.destroyed){null===o?o=this.renderedFrame:this.renderedFrame=o,this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var u,a=this.layers.length;for(this.completeLayers||this.checkLayers(o),u=a-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(o-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<a;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,u){var a=o.getBaseElement();if(a){for(var e,t=0;t<u;)this.elements[t]&&!0!==this.elements[t]&&this.elements[t].getBaseElement()&&(e=this.elements[t].getBaseElement()),t+=1;e?this.layerElement.insertBefore(a,e):this.layerElement.appendChild(a)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,u,a){this.initFrame(),this.initBaseData(o,u,a),this.initTransform(o,u,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()}
vendor: 2,938 bytes, line 1
1,ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=o/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var a,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=t-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var o,u=this.layers.length;for(o=0;o<u;o+=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,u=this.layers.length;for(o=0;o<u;o+=1)this.elements[o]&&this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(u){var a,t=u.length,e="_";for(a=0;a<t;a+=1)e+=u[a].transform.key+"_";var s=this.sequences[e];return s||(s={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[e]=s,this.sequenceList.push(s)),s},processSequence:function(u,a){for(var t=0,e=u.transforms.length,s=a;t<e&&!a;){if(u.transforms[t].transform.mProps._mdf){s=!0;break}t+=1}if(s)for(u.finalTransform.reset(),t=e-1;t>=0;t-=1)u.finalTransform.multiply(u.transforms[t].transform.mProps.v);u._mdf=s},processSequences:function(u){var a,t=this.sequenceList.length;for(a=0;a<t;a+=1)this.processSequence(this.sequenceList[a],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",a=null,t=null,e=null;function D(){a||(e=function s(){var M=createNS("svg"),w=createNS("filter"),I=createNS("feColorMatrix");return w.setAttribute("id",u),I.setAttribute("type","matrix"),I.setAttribute("color-interpolation-filters","sRGB"),I.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),w.appendChild(I),M.appendChild(w),M.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(M.style.display="none"),M}(),document.body.appendChild(e),a=createTag("canvas"),(t=a.getContext("2d")).filter="url(#"+u+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1))}return{load:D,get:function x(M){return a||D(),a.width=M.width,a.height=M.height,t.filter="url
1(#"+u+")",a}}};function createCanvas(o,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,u);var a=createTag("canvas");return a.width=o,a.height=u,a}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(o){var u,t,a=o.data.ef?o.data.ef.length:0;for(this.filters=[],u=0;u<a;u+=1){t=null;var e=o.data.ef[u].ty;registeredEffects[e]&&(t=new(0,registeredEffects[e].effect)(o.effectsManager.effectElements[u],o)),t&&this.filters.push(t)}this.filters.length&&o.addRenderableComponent(this)}function registerEffect(o,u){registeredEffects[o]={effect:u}}function CVMaskElement(o,u){this.data=o,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,t=this.masksProperties.length,e=!1;for(a=0;a<t;a+=1)"n"!==this.masksProperties[a].mode&&(e=!0),this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3);this.hasMasks=e,e&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(o){var u,a=this.filters.length;for(u=0;u<a;u+=1)this.filters[u].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var u,a=this.filters.length,t=[];for(u=0;u<a;u+=1)this.filters[u].type===o&&t.push(this.filters[u]);return t},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var a,e,s,D,o=this.element.finalTransform.mat,u=this.element.canvasContext,t=this.masksProperties.length;for(u.beginPath(),a=0;a<t;a+=1)if("n"!==this.masksProperties[a].mode){this.masksProperties[a].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),e=o.applyToPointArray((D=this.viewData[a].v).v[0][0],D.v[0][1],0),u.moveTo(e[0],e[1]);var x,M=D._length;for(x=1;x<M;x+=1)s=o.applyToTriplePoints(D.o[x-1],D.i[x],D.v[x]),u.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=o.applyToTriplePoints(D.o[x-1],D.i[0],D.v[0]),u.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(o,u,a,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var e=4;"rc"===u.ty?e=5:"el"===u.ty?e=6:"sr"===u.ty&&(e=7),this.sh=ShapePropertyFactory.getShapeProp(o,u,e,o);var s,x,D=a.length;for(s=0;s<D;s+=1)a[s].closed||(x={transforms:t.addTransformSequence(a[s].transforms),trNodes:[]},this.styledShapes.push(x),a[s].elements.push(x))}function CVShapeElement(o,u,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,u,a)}function CVTextElement(o,u,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,u,a)}function CVImageElement(o,u,a){this.assetData=u.getAssetData(o.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(o,u,a)}function CVSolidElement(o,u,a){this.initElement(o,u,a)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var o;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,o=0;o<15;o+=1){var a=new CanvasContext;this.stack[o]=a}
vendor: 5,988 bytes, line 1
1this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(o,u,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,u,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,u.frameRate,this):{_placeholder:!0}}function CanvasRenderer(o,u){this.animationItem=o,this.renderConfig={clearCanvas:!u||void 0===u.clearCanvas||u.clearCanvas,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||void 0===u.runExpressions||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(o,u,a){this.initElement(o,u,a)}function HShapeElement(o,u,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,u,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(o,u,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,u,a)}function HCameraElement(o,u,a){this.initFrame(),this.initBaseData(o,u,a),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,o.pe,0,0,this),o.ks.p.s?(this.px=t(this,o.ks.p.x,1,0,this),this.py=t(this,o.ks.p.y,1,0,this),this.pz=t(this,o.ks.p.z,1,0,this)):this.p=t(this,o.ks.p,1,0,this),o.ks.a&&(this.a=t(this,o.ks.a,1,0,this)),o.ks.or.k.length&&o.ks.or.k[0].to){var e,s=o.ks.or.k.length;for(e=0;e<s;e+=1)o.ks.or.k[e].to=null,o.ks.or.k[e].ti=null}this.or=t(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,o.ks.rx,0,degToRads,this),this.ry=t(this,o.ks.ry,0,degToRads,this),this.rz=t(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(o,u,a){this.assetData=u.getAssetData(o.refId),this.initElement(o,u,a)}function HybridRendererBase(o,u){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&!1===u.hideOnTransparent),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(o,u,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,u,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,u.frameRate,this):{_placeholder:!0}}function HybridRenderer(o,u){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&!1===u.hideOnTransparent),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||void 0===u.runExpressions||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,a=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(a);var t=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(t),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffe
vendor: 5,630 bytes, line 1
1ctsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var a=this.buffers[0].getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],a=u.getContext("2d");if(this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var e=assetLoader.getLumaCanvas(this.canvasContext.canvas);e.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(e,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,u){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:!0===o.hd},t={};if("fl"===o.ty||"st"===o.ty?(t.c=PropertyFactory.getProp(this,o.c,1,255,this),t.c.k||(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")")):("gf"===o.ty||"gs"===o.ty)&&(t.s=PropertyFactory.getProp(this,o.s,1,null,this),t.e=PropertyFactory.getProp(this,o.e,1,null,this),t.h=PropertyFactory.getProp(this,o.h||{k:0},0,.01,this),t.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,o.g,this)),t.o=PropertyFactory.getProp(this,o.o,0,.01,this),"st"===o.ty||"gs"===o.ty){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],1==o.lj&&(a.ml=o.ml),t.w=PropertyFactory.getProp(this,o.w,0,null,this),t.w.k||(a.wi=t.w.v),o.d){var e=new DashProperty(this,o.d,"canvas",this);t.d=e,t.d.k||(a.da=t.d.dashArray,a.do=t.d.dashoffset[0])}}else a.r=2===o.r?"evenodd":"nonzero";return this.stylesList.push(a),t.style=a,t},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(o){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}}},CVShapeElement.prototype.createShapeElement=function(o){var u=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,u=this.itemsData.length;for(o=0;o<u;o+=1)this.prevViewData[o]=this.itemsData[o];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,o=0;o<u;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var u,a=this.stylesList.length;for(u=0;
vendor: 5,677 bytes, line 1
1u<a;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,u=this.stylesList.length;for(o=0;o<u;o+=1)this.stylesList[o].closed||this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var u,a=o.length;for(u=0;u<a;u+=1)o[u].closed=!0},CVShapeElement.prototype.searchShapes=function(o,u,a,t,e){var s,x,M,P,S,k,D=o.length-1,w=[],I=[],z=[].concat(e);for(s=D;s>=0;s-=1){if((P=this.searchProcessedElement(o[s]))?u[s]=a[P-1]:o[s]._shouldRender=t,"fl"===o[s].ty||"st"===o[s].ty||"gf"===o[s].ty||"gs"===o[s].ty)P?u[s].style.closed=!1:u[s]=this.createStyleElement(o[s],z),w.push(u[s].style);else if("gr"===o[s].ty){if(P)for(M=u[s].it.length,x=0;x<M;x+=1)u[s].prevViewData[x]=u[s].it[x];else u[s]=this.createGroupElement(o[s]);this.searchShapes(o[s].it,u[s].it,u[s].prevViewData,t,z)}else"tr"===o[s].ty?(P||(k=this.createTransformElement(o[s]),u[s]=k),z.push(u[s]),this.addTransformToStyleList(u[s])):"sh"===o[s].ty||"rc"===o[s].ty||"el"===o[s].ty||"sr"===o[s].ty?P||(u[s]=this.createShapeElement(o[s])):"tm"===o[s].ty||"rd"===o[s].ty||"pb"===o[s].ty||"zz"===o[s].ty||"op"===o[s].ty?(P?(S=u[s]).closed=!1:((S=ShapeModifiers.getModifier(o[s].ty)).init(this,o[s]),u[s]=S,this.shapeModifiers.push(S)),I.push(S)):"rp"===o[s].ty&&(P?(S=u[s]).closed=!0:(S=ShapeModifiers.getModifier(o[s].ty),u[s]=S,S.init(this,o,s,u),this.shapeModifiers.push(S),t=!1),I.push(S));this.addProcessedElement(o[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(w),D=I.length,s=0;s<D;s+=1)I[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,u){(o._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=o.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var o,a,t,e,s,D,x,I,P,u=this.stylesList.length,M=this.globalData.renderer,w=this.globalData.canvasContext;for(o=0;o<u;o+=1)if(("st"!==(I=(P=this.stylesList[o]).type)&&"gs"!==I||0!==P.wi)&&P.data._shouldRender&&0!==P.coOp&&0!==this.globalData.currentGlobalAlpha){for(M.save(),D=P.elements,"st"===I||"gs"===I?(M.ctxStrokeStyle("st"===I?P.co:P.grd),M.ctxLineWidth(P.wi),M.ctxLineCap(P.lc),M.ctxLineJoin(P.lj),M.ctxMiterLimit(P.ml||0)):M.ctxFillStyle("fl"===I?P.co:P.grd),M.ctxOpacity(P.coOp),"st"!==I&&"gs"!==I&&w.beginPath(),M.ctxTransform(P.preTransforms.finalTransform.props),t=D.length,a=0;a<t;a+=1){for(("st"===I||"gs"===I)&&(w.beginPath(),P.da&&(w.setLineDash(P.da),w.lineDashOffset=P.do)),s=(x=D[a].trNodes).length,e=0;e<s;e+=1)"m"===x[e].t?w.moveTo(x[e].p[0],x[e].p[1]):"c"===x[e].t?w.bezierCurveTo(x[e].pts[0],x[e].pts[1],x[e].pts[2],x[e].pts[3],x[e].pts[4],x[e].pts[5]):w.closePath();("st"===I||"gs"===I)&&(M.ctxStroke(),P.da&&w.setLineDash(this.dashResetter))}"st"!==I&&"gs"!==I&&this.globalData.renderer.ctxFill(P.r),M.restore()}},CVShapeElement.prototype.renderShape=function(o,u,a,t){var e,D;for(D=o,e=u.length-1;e>=0;e-=1)"tr"===u[e].ty?this.renderShapeTransform(o,D=a[e].transform):"sh"===u[e].ty||"el"===u[e].ty||"rc"===u[e].ty||"sr"===u[e].ty?this.renderPath(u[e],a[e]):"fl"===u[e].ty?this.renderFill(u[e],a[e],D):"st"===u[e].ty?this.renderStroke(u[e],a[e],D):"gf"===u[e].ty||"gs"===u[e].ty?this.renderGradientFill(u[e],a[e],D):"gr"===u[e].ty&&this.renderShape(D,u[e].it,a[e].it);t&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,u){if(this._isFirstFrame||u._mdf||o.transforms._mdf){var e,s,D,a=o.trNodes,t=u.paths,x=t._length;a.length=0;var M=o.transforms.finalTransform;for(D=0;D<x;D+=1){var w=t.shapes[D];if(w&&w.v){for(s=w._length,e=1;e<s;e+=1)1===e&&a.push({t:"m",p:M.applyToPointArray(w.v[0][0],w.v[0][1],0)}),a.push({t:"c",pts:M.applyToTriplePoints(w.o[e-1],w.i[e],w.v[e])});1===s&&a.push({t:"m",p:M.applyToPointArray(w.v[0][0],w.v[0][1],0)}),w.c&&s&&(a.push({t:"c",pts:M.applyToTriplePoints(w.o[e-1],w.i[0],w.v[0])}),a.push({t:"z"}))}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,u){if(!0!==o.hd&&o._shouldRender){var a,t=u.styledShapes.length;for(a=0;a<t;a+=1)this.renderStyledShape(u.styledShapes[a],u.sh)}},CVShapeElement.prototype.renderFill=function(o,u,a){var t=u.style;(u.c._mdf||this._isFirstFrame)&&(t.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||a._opMdf||this._isFirstFrame)&&(t.coOp=u.o.v*a.opacity)},CVShapeElement.prototype.renderGradientFill=function(o,u,a){var e,t=u.style;if(!t.grd||u.g._mdf||u.s._mdf||u.e._mdf||1!==o.t&&(u.h._mdf||u.a._mdf)){var s=this.globalData.canvasContext,D=u.s.v,x=u.e.v;if(1===o.t)e=s.createLinearGradient(D[0],D[1],x[0],x[1]);else{var M=Math.sqrt(Math.pow(D[0]-x[0],2)+Math.pow(D[1]-x[1],2)),w=Math.atan2(x[1]-D[1],x[0]-D[0]),I=u.h.v;I>=1?I=.99:I<=-1&&(I=-.99);var P=M*I,S=Math.cos(w+u.a.v)*P+D[0],k=Math.sin(w+u.a.v)*P+D[1];e=s.createRadialGradient(S,k,0,D[0],D[1],M)}var z,F=o.g.p,ne=u.g.c,B=1;for(z=0;z<F;z+=1)u.g._hasOpacity&&u.g._collapsable&&(B=u.g.o[2*z+1]),e.addColorStop(ne[4*z]/100,"rgba("+ne[4*z+1]+","+ne[4*z+2]+","+ne[4*z+3]+","+B+")");t.grd=e}t.coOp=u.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,u,a){var t=u.style,e=u.d;e&&(e._mdf||this._isFirstFrame)&&(t.da=e.dashArray,t.do=e.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(t.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||a._opMdf||this._isFirstFrame)&&(t.coOp=u.o.v*a.opacity),(u.w._mdf||this._isFirstFrame)&&(t.wi=u.w.v)}
vendor: 12,095 bytes, line 1
1,CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var u=!1;o.fc?(u=!0,this.values.fill=this.buildColor(o.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var a=!1;o.sc&&(a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw);var e,s,t=this.globalData.fontManager.getFontByName(o.f),D=o.l,x=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,s=o.finalText.length;var M,w,I,P,S,k,z,F,ne,B,G=this.data.singleShape,W=.001*o.tr*o.finalSize,Y=0,fe=0,N=!0,Q=0;for(e=0;e<s;e+=1){w=(M=this.globalData.fontManager.getCharData(o.finalText[e],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily))&&M.data||{},x.reset(),G&&D[e].n&&(Y=-W,fe+=o.yOffset,fe+=N?1:0,N=!1),z=(S=w.shapes?w.shapes[0].it:[]).length,x.scale(o.finalSize/100,o.finalSize/100),G&&this.applyTextPropertiesToMatrix(o,x,D[e].line,Y,fe),ne=createSizedArray(z-1);var O=0;for(k=0;k<z;k+=1)if("sh"===S[k].ty){for(P=S[k].ks.k.i.length,F=S[k].ks.k,B=[],I=1;I<P;I+=1)1===I&&B.push(x.applyToX(F.v[0][0],F.v[0][1],0),x.applyToY(F.v[0][0],F.v[0][1],0)),B.push(x.applyToX(F.o[I-1][0],F.o[I-1][1],0),x.applyToY(F.o[I-1][0],F.o[I-1][1],0),x.applyToX(F.i[I][0],F.i[I][1],0),x.applyToY(F.i[I][0],F.i[I][1],0),x.applyToX(F.v[I][0],F.v[I][1],0),x.applyToY(F.v[I][0],F.v[I][1],0));B.push(x.applyToX(F.o[I-1][0],F.o[I-1][1],0),x.applyToY(F.o[I-1][0],F.o[I-1][1],0),x.applyToX(F.i[0][0],F.i[0][1],0),x.applyToY(F.i[0][0],F.i[0][1],0),x.applyToX(F.v[0][0],F.v[0][1],0),x.applyToY(F.v[0][0],F.v[0][1],0)),ne[O]=B,O+=1}G&&(Y+=D[e].l,Y+=W),this.textSpans[Q]?this.textSpans[Q].elem=ne:this.textSpans[Q]={elem:ne},Q+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,a,t,e,s,D,x=this.textAnimator.renderedLetters,M=this.textProperty.currentData.l;a=M.length;var w,k,z,I=null,P=null,S=null,F=this.globalData.renderer;for(u=0;u<a;u+=1)if(!M[u].n){if((w=x[u])&&(F.save(),F.ctxTransform(w.p),F.ctxOpacity(w.o)),this.fill){for(w&&w.fc?I!==w.fc&&(F.ctxFillStyle(w.fc),I=w.fc):I!==this.values.fill&&(I=this.values.fill,F.ctxFillStyle(this.values.fill)),e=(k=this.textSpans[u].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(D=(z=k[t]).length,this.globalData.canvasContext.moveTo(z[0],z[1]),s=2;s<D;s+=6)this.globalData.canvasContext.bezierCurveTo(z[s],z[s+1],z[s+2],z[s+3],z[s+4],z[s+5]);this.globalData.canvasContext.closePath(),F.ctxFill()}if(this.stroke){for(w&&w.sw?S!==w.sw&&(S=w.sw,F.ctxLineWidth(w.sw)):S!==this.values.sWidth&&(S=this.values.sWidth,F.ctxLineWidth(this.values.sWidth)),w&&w.sc?P!==w.sc&&(P=w.sc,F.ctxStrokeStyle(w.sc)):P!==this.values.stroke&&(P=this.values.stroke,F.ctxStrokeStyle(this.values.stroke)),e=(k=this.textSpans[u].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(D=(z=k[t]).length,this.globalData.canvasContext.moveTo(z[0],z[1]),s=2;s<D;s+=6)this.globalData.canvasContext.bezierCurveTo(z[s],z[s+1],z[s+2],z[s+3],z[s+4],z[s+5]);this.globalData.canvasContext.closePath(),F.ctxStroke()}w&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var D,x,u=o.getContext("2d"),a=this.img.width,t=this.img.height,e=a/t,s=this.assetData.w/this.assetData.h,M=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;e>s&&"xMidYMid slice"===M||e<s&&"xMidYMid slice"!==M?D=(x=t)*s:x=(D=a)/s,u.drawImage(this.img,(a-D)/2,(t-x)/2,D,x,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){1===o[0]&&0===o[1]&&0===o[4]&&1===o[5]&&0===o[12]&&0===o[13]||this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,u,a,t){this.canvasContext.fillRect(o,u,a,t)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){this.renderConfig.clearCanvas?(o&&(this.globalData.blendMode="source-over"),this.contextData.restore(o)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var a="0px 0px 0px";u.transformOrigin=a,u.mozTransformOrigin=a,u.webkitTransformOrigin=a,u["-webkit-transform"]=a,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,u){var a,t,e,s;if(this.reset(),o?(t=u,this.canvasContext.canvas.width=a=o,this.canvasContext.canvas.height=t):(this.animationItem.wrapper&&this.animationItem.container?(a=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight):(a=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height),this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var D=this.renderConfig.preserveAspectRatio.split(" "),x=D[1]||"meet",M=D[0]||"xMidYMid",w=M.substr(0,4),I=M.substr(4);(s=this.transformCanvas.w/this.transformCanvas.h)>(e=a/t)&&"meet"===x||s<e&&"slice"===x?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===w&&(s<e&&"meet"===x||s>e&&"slice"===x)?(a-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===w&&(s<e&&"meet"===x||s>e&&"slice"===x)?(a-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===I&&(s>e&&"meet"===x||s<e&&"slice"===x)?(t-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===I&&(s>e&&"meet"===x||s<e&&"slice"===x)?(t-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var o;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),o=(this.layers?this.layers.length:0)-1;o>=0;o-=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,u){if((this.renderedFrame!==o||!0!==this.renderConfig.clearCanvas||u)&&!this.destroyed&&-1!==o){this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=o;var a,t=this.layers.length;for(this.completeLayers||this.checkLayers(o),a=t-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),a=t-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].renderFrame();
vendor: 24,319 bytes, line 1
1!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(o){var u=this.elements;if(!u[o]&&99!==this.layers[o].ty){var a=this.createItem(this.layers[o],this,this.globalData);u[o]=a,a.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var o=2*this._length,u=0;for(u=this._length;u<o;u+=1)this.stack[u]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var t,u=this.stack[this.cArrPos],a=u.transform,e=this.cTr.props;for(t=0;t<16;t+=1)e[t]=a[t];if(o){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),(o||-1!==u.opacity&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(o){o&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var t,a=this.stack[this.cArrPos];for(t=0;t<16;t+=1)a.transform[t]=u[t];this.cArrPos+=1;var e=this.stack[this.cArrPos];e.opacity=a.opacity,e.fillStyle=a.fillStyle,e.strokeStyle=a.strokeStyle,e.lineWidth=a.lineWidth,e.lineCap=a.lineCap,e.lineJoin=a.lineJoin,e.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){this.stack[this.cArrPos].fillStyle!==o&&(this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o)},CVContextData.prototype.strokeStyle=function(o){this.stack[this.cArrPos].strokeStyle!==o&&(this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o)},CVContextData.prototype.lineWidth=function(o){this.stack[this.cArrPos].lineWidth!==o&&(this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o)},CVContextData.prototype.lineCap=function(o){this.stack[this.cArrPos].lineCap!==o&&(this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o)},CVContextData.prototype.lineJoin=function(o){this.stack[this.cArrPos].lineJoin!==o&&(this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o)},CVContextData.prototype.miterLimit=function(o){this.stack[this.cArrPos].miterLimit!==o&&(this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o)},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var a=u.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var u=this.stack[this.cArrPos].opacity;this.stack[this.cArrPos].opacity!==(u*=o<0?0:o)&&(this.currentOpacity!==o&&(this.nativeContext.globalAlpha=o,this.currentOpacity=o),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(o){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,u,a,t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(o,u,a,t)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var u,o=this.canvasContext;for(o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip(),u=this.layers.length-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var o;for(o=this.layers.length-1;o>=0;o-=1)this.elements[o]&&this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();u.transform=a,u.webkitTransform=a}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;this.data.hasMask?((o=createNS("rect")).setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((o=createTag("div")).style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc),this.layerElement.appendChild(o)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",u.w),o.setAttribute("height",u.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,u){var a,t=o.length;for(a=0;a<t;a+=1)u=o[a].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(o,u){var e,D,x,M,w,a=o.sh.v,t=o.transformers,s=a._length;if(!(s<=1)){for(e=0;e<s-1;e+=1)D=this.getTransformedPoint(t,a.v[e]),x=this.getTransformedPoint(t,a.o[e]),M=this.getTransformedPoint(t,a.i[e+1]),w=this.getTransformedPoint(t,a.v[e+1]),this.checkBounds(D,x,M,w,u);a.c&&(D=this.getTransformedPoint(t,a.v[e]),x=this.getTransformedPoint(t,a.o[e]),M=this.getTransformedPoint(t,a.i[0]),w=this.getTransformedPoint(t,a.v[0]),this.checkBounds(D,x,M,w,u))}},HShapeElement.prototype.checkBounds=function(o,u,a,t,e){this.getBoundsOfCurve(o,u,a,t);var s=this.shapeBoundingBox;e.x=bmMin(s.left,e.x),e.xMax=bmMax(s.right,e.xMax),e.y=bmMin(s.top,e.y),e.yMax=bmMax(s.bottom,e.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,u,a,t){for(var s,D,x,M,w,I,P,e=[[o[0],t[0]],[o[1],t[1]]],S=0;S<2;++S)D=6*o[S]-12*u[S]+6*a[S],s=-3*o[S]+9*u[S]-9*a[S]+3*t[S],x=3*u[S]-3*o[S],D|=0,x|=0,0==(s|=0)&&0===D||(0===s?(M=-x/D)>0&&M<1&&e[S].push(this.calculateF(M,o,u,a,t,S)):(w=D*D-4*x*s)>=0&&((I=(-D+bmSqrt(w))/(2*s))>0&&I<1&&e[S].push(this.calculateF(I,o,u,a,t,S)),(P=(-D-bmSqrt(w))/(2*s))>0&&P<1&&e[S].push(this.calculateF(P,o,u,a,t,S))));this.shapeBoundingBox.left=bmMin.apply(null,e[0]),this.shapeBoundingBox.top=bmMin.apply(null,e[1]),this.shapeBoundingBox.right=bmMax.apply(null,e[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,e[1])},HShapeElement.prototype.calculateF=function(o,u,a,t,e,s){return bmPow(1-o,3)*u[s]+3*bmPow(1-o,2)*o*a[s]+3*(1-o)*bmPow(o,2)*t[s]+bmPow(o,3)*e[s]},HShapeElement.prototype.calculateBoundingBox=function(o,u){var a,t=o.length;for(a=0;a<t;a+=1)o[a]&&o[a].sh?this.calculateShapeBoundingBox(o[a],u):o[a]&&o[a].it?this.calculateBoundingBox(o[a].it,u):o[a]&&o[a].style&&o[a].w&&this.expandStrokeBoundingBox(o[a].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,u){var a=0;if(o.keyframes){for(var t=0;t<o.keyframes.length;t+=1){var e=o.keyframes[t].s;e>a&&(a=e)}a*=o.mult}else a=o.v*o.mult;u.x-=a,u.xMax+=a,u.y-=a,u.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,u=999999;if(o.x=u,o.xMax=-u,o.y=u,o.yMax=-u,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width&&(this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0),this.currentBBox.h!==o.height&&(this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0),a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=e,t.webkitTransform=e}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var u=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";u.fill=a,u.color=a,o.sc&&(u.stroke=this.buildColor(o.sc),u.strokeWidth=o.sw+"px");var t=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(u.fontSize=o.finalSize+"px",u.lineHeight=o.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{u.fontFamily=t.fFamily;var e=o.fWeight;u.fontStyle=o.fStyle,u.fontWeight=e}var D,x,M=o.l;x=M.length;var w,I,P,k,S=this.mHelper,z="",F=0;for(D=0;D<x;D+=1){if(this.globalData.fontManager.chars?(this.textPaths[F]?w=this.textPaths[F]:((w=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),w.setAttribute("stroke-linejoin",lineJoinEnum[2]),w.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[F]?P=(I=this.textSpans[F]).children[0]:((I=createTag("div")).style.lineHeight=0,(P=createNS("svg")).appendChild(w),styleDiv(I)))):this.isMasked?w=this.textPaths[F]?this.textPaths[F]:createNS("text"):this.textSpans[F]?(I=this.textSpans[F],w=this.textPaths[F]):(styleDiv(I=createTag("span")),styleDiv(w=createTag("span")),I.appendChild(w)),this.globalData.fontManager.chars){var B,ne=this.globalData.fontManager.getCharData(o.finalText[D],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);if(B=ne?ne.data:null,S.reset(),B&&B.shapes&&B.shapes.length&&(k=B.shapes[0].it,S.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(S,k),w.setAttribute("d",z)),this.isMasked)this.innerElem.appendChild(w);else{if(this.innerElem.appendChild(I),B&&B.shapes){document.body.appendChild(P);var G=P.getBBox();P.setAttribute("width",G.width+2),P.setAttribute("height",G.height+2),P.setAttribute("viewBox",G.x-1+" "+(G.y-1)+" "+(G.width+2)+" "+(G.height+2));var W=P.style,Y="translate("+(G.x-1)+"px,"+(G.y-1)+"px)";W.transform=Y,W.webkitTransform=Y,M[D].yOffset=G.y-1}else P.setAttribute("width",1),P.setAttribute("height",1);I.appendChild(P)}}else if(w.textContent=M[D].val,w.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(w);else{this.innerElem.appendChild(I);var fe=w.style,N="translate3d(0,"+-o.finalSize/1.2+"px,0)";fe.transform=N,fe.webkitTransform=N}this.textSpans[F]=this.isMasked?w:I,this.textSpans[F].style.display="block",this.textPaths[F]=w,F+=1}for(;F<this.textSpans.length;)this.textSpans[F].style.display="none",F+=1},HTextElement.prototype.renderInnerContent=function(){var o;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";(o=this.svgElement.style).transform=u,o.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var a,t,x,M,w,e=0,s=this.textAnimator.renderedLetters,D=this.textProperty.currentData.l;for(t=D.length,a=0;a<t;a+=1)D[a].n?e+=1:(M=this.textSpans[a],w=this.textPaths[a],x=s[e],e+=1,x._mdf.m&&(this.isMasked?M.setAttribute("transform",x.m):(M.style.webkitTransform=x.m,M.style.transform=x.m)),M.style.opacity=x.o,x.sw&&x._mdf.sw&&w.setAttribute("stroke-width",x.sw),x.sc&&x._mdf.sc&&w.setAttribute("stroke",x.sc),x.fc&&x._mdf.fc&&(w.setAttribute("fill",x.fc),w.style.color=x.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var I=this.innerElem.getBBox();if(this.currentBBox.w!==I.width&&(this.currentBBox.w=I.width,this.svgElement.setAttribute("width",I.width)),this.currentBBox.h!==I.height&&(this.currentBBox.h=I.height,this.svgElement.setAttribute("height",I.height)),this.currentBBox.w!==I.width+2||this.currentBBox.h!==I.height+2||this.currentBBox.x!==I.x-1||this.currentBBox.y!==I.y-1){this.currentBBox.w=I.width+2,this.currentBBox.h=I.height+2,this.currentBBox.x=I.x-1,this.currentBBox.y=I.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var S="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";(o=this.svgElement.style).transform=S,o.webkitTransform=S}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,a,t,e,u=this.comp.threeDElements.length;for(o=0;o<u;o+=1)if("3d"===(a=this.comp.threeDElements[o]).type){e=a.container.style;var s=this.pe.v+"px",D="0px 0px 0px",x="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(t=a.perspectiveElem.style).perspective=s,t.webkitPerspective=s,e.transformOrigin=D,e.mozTransformOrigin=D,e.webkitTransformOrigin=D,t.transform=x,t.webkitTransform=x}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var u,a,o=this._isFirstFrame;if(this.hierarchy)for(a=this.hierarchy.length,u=0;u<a;u+=1)o=this.hierarchy[u].finalTransform.mProp._mdf||o;if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(u=a=this.hierarchy.length-1;u>=0;u-=1){var t=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var e;e=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var s=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)),D=[e[0]/s,e[1]/s,e[2]/s],x=Math.sqrt(D[2]*D[2]+D[0]*D[0]),M=Math.atan2(D[1],x),w=Math.atan2(D[0],-D[2]);this.mat.rotateY(w).rotateX(-M)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var I=!this._prevMat.equals(this.mat);if((I||this.pe._mdf)&&this.comp.threeDElements){var P,S,k;for(a=this.comp.threeDElements.length,u=0;u<a;u+=1)if("3d"===(P=this.comp.threeDElements[u]).type){if(I){var z=this.mat.toCSS();(k=P.container.style).transform=z,k.webkitTransform=z}this.pe._mdf&&((S=P.perspectiveElem.style).perspective=this.pe.v+"px",S.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=o,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(o,u){var a=o.getBaseElement();if(a){var t=this.layers[u];if(t.ddd&&this.supports3d)this.addTo3dContainer(a,u);else if(this.threeDElements)this.addTo3dContainer(a,u);else{for(var s,D,e=0;e<u;)this.elements[e]&&!0!==this.elements[e]&&this.elements[e].getBaseElement&&(D=this.elements[e],s=(this.layers[e].ddd?this.getThreeDContainerByPos(e):D.getBaseElement())||s),e+=1;s?(!t.ddd||!this.supports3d)&&this.layerElement.insertBefore(a,s):(!t.ddd||!this.supports3d)&&this.layerElement.appendChild(a)}}},HybridRendererBase.prototype.createShape=function(o){return this.supports3d?new HShapeElement(o,this.globalData,this):new SVGShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){return this.supports3d?new HTextElement(o,this.globalData,this):new SVGTextLottieElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){return this.supports3d?new HImageElement(o,this.globalData,this):new IImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){return this.supports3d?new HSolidElement(o,this.globalData,this):new ISolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){for(var u=0,a=this.threeDElements.length;u<a;){if(this.threeDElements[u].startPos<=o&&this.threeDElements[u].endPos>=o)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,u){var t,e,a=createTag("div");styleDiv(a);var s=createTag("div");if(styleDiv(s),"3d"===u){(t=a.style).width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var D="50% 50%";t.webkitTransformOrigin=D,t.mozTransformOrigin=D,t.transformOrigin=D;var x="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(e=s.style).transform=x,e.webkitTransform=x}a.appendChild(s);var M={container:s,perspectiveElem:a,startPos:o,endPos:o,type:u};return this.threeDElements.push(M),M},HybridRendererBase.prototype.build3dContainers=function(){var o,a,u=this.layers.length,t="";for(o=0;o<u;o+=1)this.layers[o].ddd&&3!==this.layers[o].ty?("3d"!==t&&(t="3d",a=this.createThreeDContainer(o,"3d")),a.endPos=Math.max(a.endPos,o)):("2d"!==t&&(t="2d",a=this.createThreeDContainer(o,"2d")),a.endPos=Math.max(a.endPos,o));for(o=(u=this.threeDElements.length)-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,u){for(var a=0,t=this.threeDElements.length;a<t;){if(u<=this.threeDElements[a].endPos){for(var s,e=this.threeDElements[a].startPos;e<u;)this.elements[e]&&this.elements[e].getBaseElement&&(s=this.elements[e].getBaseElement()),e+=1;s?this.threeDElements[a].container.insertBefore(o,s):this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var u=createTag("div"),a=this.animationItem.wrapper,t=u.style;
vendor: 9,067 bytes, line 1
1t.width=o.w+"px",t.height=o.h+"px",this.resizerElem=u,styleDiv(u),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),a.appendChild(u),t.overflow="hidden";var e=createNS("svg");e.setAttribute("width","1"),e.setAttribute("height","1"),styleDiv(e),this.resizerElem.appendChild(e);var s=createNS("defs");e.appendChild(s),this.data=o,this.setupGlobalData(o,e),this.globalData.defs=s,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var o,u=this.layers?this.layers.length:0;for(o=0;o<u;o+=1)this.elements[o]&&this.elements[o].destroy&&this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,s,D,x,o=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight;this.globalData.compSize.w/this.globalData.compSize.h>o/u?(e=o/this.globalData.compSize.w,s=o/this.globalData.compSize.w,D=0,x=(u-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=u/this.globalData.compSize.h,s=u/this.globalData.compSize.h,D=(o-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,x=0);var M=this.resizerElem.style;M.webkitTransform="matrix3d("+e+",0,0,0,0,"+s+",0,0,0,0,1,0,"+D+","+x+",0,1)",M.transform=M.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var a,o=this.globalData.compSize.w,u=this.globalData.compSize.h,t=this.threeDElements.length;for(a=0;a<t;a+=1){var e=this.threeDElements[a].perspectiveElem.style;e.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(u,2))+"px",e.perspective=e.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var u,a=o.length,t=createTag("div");for(u=0;u<a;u+=1)if(o[u].xt){var e=this.createComp(o[u],t,this.globalData.comp,null);e.initExpressions(),this.globalData.projectInterface.registerComposition(e)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,u){for(var t,a=0;a<u;)this.elements[a]&&this.elements[a].getBaseElement&&(t=this.elements[a].getBaseElement()),a+=1;t?this.layerElement.insertBefore(o,t):this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){return this.supports3d?new HCompElement(o,this.globalData,this):new SVGCompElement(o,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){return this.supports3d?new HCompElement(o,this.globalData,this):new SVGCompElement(o,this.globalData,this)};var CompExpressionInterface=function(o){function u(a){for(var t=0,e=o.layers.length;t<e;){if(o.layers[t].nm===a||o.layers[t].ind===a)return o.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(u,"_name",{value:o.data.nm}),u.layer=u,u.pixelAspect=1,u.height=o.data.h||o.globalData.compSize.h,u.width=o.data.w||o.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/o.globalData.frameRate,u.displayStartTime=0,u.numLayers=o.layers.length,u};function _typeof$2(o){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}function seedRandom(o,u){var P,a=this,t=256,D="random",x=u.pow(t,6),M=u.pow(2,52),w=2*M,I=t-1;function k(W){var Y,fe=W.length,N=this,Q=0,O=N.i=N.j=0,ee=N.S=[];for(fe||(W=[fe++]);Q<t;)ee[Q]=Q++;for(Q=0;Q<t;Q++)ee[Q]=ee[O=I&O+W[Q%fe]+(Y=ee[Q])],ee[O]=Y;N.g=function(ue){for(var _e,be=0,Qe=N.i,ze=N.j,Oe=N.S;ue--;)_e=Oe[Qe=I&Qe+1],be=be*t+Oe[I&(Oe[Qe]=Oe[ze=I&ze+_e])+(Oe[ze]=_e)];return N.i=Qe,N.j=ze,be}}function z(W,Y){return Y.i=W.i,Y.j=W.j,Y.S=W.S.slice(),Y}function F(W,Y){var Q,fe=[],N=_typeof$2(W);if(Y&&"object"==N)for(Q in W)try{fe.push(F(W[Q],Y-1))}catch{}return fe.length?fe:"string"==N?W:W+"\0"}function ne(W,Y){for(var N,fe=W+"",Q=0;Q<fe.length;)Y[I&Q]=I&(N^=19*Y[I&Q])+fe.charCodeAt(Q++);return G(Y)}function G(W){return String.fromCharCode.apply(0,W)}u["seed"+D]=function S(W,Y,fe){var N=[],Q=ne(F((Y=!0===Y?{entropy:!0}:Y||{}).entropy?[W,G(o)]:null===W?function B(){try{P;var W=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(W),G(W)}catch{var Y=a.navigator,fe=Y&&Y.plugins;return[+new Date,a,fe,a.screen,G(o)]}}():W,3),N),O=new k(N),ee=function(){for(var _e=O.g(6),be=x,Qe=0;_e<M;)_e=(_e+Qe)*t,be*=t,Qe=O.g(1);for(;_e>=w;)_e/=2,be/=2,Qe>>>=1;return(_e+Qe)/be};return ee.int32=function(){return 0|O.g(4)},ee.quick=function(){return O.g(4)/4294967296},ee.double=ee,ne(G(O.S),o),(Y.pass||fe||function(ue,_e,be,Qe){return Qe&&(Qe.S&&z(Qe,O),ue.state=function(){return z(O,{})}),be?(u[D]=ue,_e):ue})(ee,Q,"global"in Y?Y.global:this==u,Y.state)},ne(u.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,u){return"number"===o||u instanceof Number||"boolean"===o||"string"===o}function $bm_neg(o){var u=_typeof$1(o);if("number"===u||o instanceof Number||"boolean"===u)return-o;if($bm_isInstanceOfArray(o)){var a,t=o.length,e=[];for(a=0;a<t;a+=1)e[a]=-o[a];return e}return o.propType?o.v:-o}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(o,u){var a=_typeof$1(o),t=_typeof$1(u);if(isNumerable(a,o)&&isNumerable(t,u)||"string"===a||"string"===t)return o+u;if($bm_isInstanceOfArray(o)&&isNumerable(t,u))return(o=o.slice(0))[0]+=u,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(u))return(u=u.slice(0))[0]=o+u[0],u;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(u)){for(var e=0,s=o.length,D=u.length,x=[];e<s||e<D;)x[e]=("number"==typeof o[e]||o[e]instanceof Number)&&("number"==typeof u[e]||u[e]instanceof Number)?o[e]+u[e]:void 0===u[e]?o[e]:o[e]||u[e],e+=1;return x}return 0}var add=sum;function sub(o,u){var a=_typeof$1(o),t=_typeof$1(u);if(isNumerable(a,o)&&isNumerable(t,u))return"string"===a&&(o=parseInt(o,10)),"string"===t&&(u=parseInt(u,10)),o-u;if($bm_isInstanceOfArray(o)&&isNumerable(t,u))return(o=o.slice(0))[0]-=u,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(u))return(u=u.slice(0))[0]=o-u[0],u;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(u)){for(var e=0,s=o.length,D=u.length,x=[];e<s||e<D;)x[e]=("number"==typeof o[e]||o[e]instanceof Number)&&("number"==typeof u[e]||u[e]instanceof Number)?o[e]-u[e]:void 0===u[e]?o[e]:o[e]||u[e],e+=1;return x}return 0}function mul(o,u){var e,s,D,a=_typeof$1(o),t=_typeof$1(u);if(isNumerable(a,o)&&isNumerable(t,u))return o*u;if($bm_isInstanceOfArray(o)&&isNumerable(t,u)){for(e=createTypedArray("float32",D=o.length),s=0;s<D;s+=1)e[s]=o[s]*u;return e}if(isNumerable(a,o)&&$bm_isInstanceOfArray(u)){for(e=createTypedArray("float32",D=u.length),s=0;s<D;s+=1)e[s]=o*u[s];return e}return 0}function div(o,u){var e,s,D,a=_typeof$1(o),t=_typeof$1(u);if(isNumerable(a,o)&&isNumerable(t,u))return o/u;if($bm_isInstanceOfArray(o)&&isNumerable(t,u)){for(e=createTypedArray("float32",D=o.length),s=0;s<D;s+=1)e[s]=o[s]/u;return e}if(isNumerable(a,o)&&$bm_isInstanceOfArray(u)){for(e=createTypedArray("float32",D=u.length),s=0;s<D;s+=1)e[s]=o/u[s];return e}return 0}function mod(o,u){return"string"==typeof o&&(o=parseInt(o,10)),"string"==typeof u&&(u=parseInt(u,10)),o%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,u,a){if(u>a){var t=a;a=u,u=t}return Math.min(Math.max(o,u),a)}function radiansToDegrees(o){return o/degToRads}
vendor: 9,364 bytes, line 1
1var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,u){if("number"==typeof o||o instanceof Number)return Math.abs(o-(u=u||0));u||(u=helperLengthArray);var a,t=Math.min(o.length,u.length),e=0;for(a=0;a<t;a+=1)e+=Math.pow(u[a]-o[a],2);return Math.sqrt(e)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var D,x,u=o[0],a=o[1],t=o[2],e=Math.max(u,a,t),s=Math.min(u,a,t),M=(e+s)/2;if(e===s)D=0,x=0;else{var w=e-s;switch(x=M>.5?w/(2-e-s):w/(e+s),e){case u:D=(a-t)/w+(a<t?6:0);break;case a:D=(t-u)/w+2;break;case t:D=(u-a)/w+4}D/=6}return[D,x,M,o[3]]}function hue2rgb(o,u,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?o+6*(u-o)*a:a<.5?u:a<2/3?o+(u-o)*(2/3-a)*6:o}function hslToRgb(o){var e,s,D,u=o[0],a=o[1],t=o[2];if(0===a)e=t,D=t,s=t;else{var x=t<.5?t*(1+a):t+a-t*a,M=2*t-x;e=hue2rgb(M,x,u+1/3),s=hue2rgb(M,x,u),D=hue2rgb(M,x,u-1/3)}return[e,s,D,o[3]]}function linear(o,u,a,t,e){if((void 0===t||void 0===e)&&(t=u,e=a,u=0,a=1),a<u){var s=a;a=u,u=s}if(o<=u)return t;if(o>=a)return e;var D=a===u?0:(o-u)/(a-u);if(!t.length)return t+(e-t)*D;var x,M=t.length,w=createTypedArray("float32",M);for(x=0;x<M;x+=1)w[x]=t[x]+(e[x]-t[x])*D;return w}function random(o,u){if(void 0===u&&(void 0===o?(o=0,u=1):(u=o,o=void 0)),u.length){var a,t=u.length;o||(o=createTypedArray("float32",t));var e=createTypedArray("float32",t),s=BMMath.random();for(a=0;a<t;a+=1)e[a]=o[a]+s*(u[a]-o[a]);return e}return void 0===o&&(o=0),o+BMMath.random()*(u-o)}function createPath(o,u,a,t){var e,s=o.length,D=shapePool.newElement();D.setPathData(!!t,s);var M,w,x=[0,0];for(e=0;e<s;e+=1)D.setTripleAt(o[e][0],o[e][1],(w=a&&a[e]?a[e]:x)[0]+o[e][0],w[1]+o[e][1],(M=u&&u[e]?u[e]:x)[0]+o[e][0],M[1]+o[e][1],e,!0);return D}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function o(u,a){var t,e,s=this.pv.length?this.pv.length:1,D=createTypedArray("float32",s),x=Math.floor(5*time);for(t=0,e=0;t<x;){for(e=0;e<s;e+=1)D[e]+=-a+2*a*BMMath.random();t+=1}var M=5*time,w=M-Math.floor(M),I=createTypedArray("float32",s);if(s>1){for(e=0;e<s;e+=1)I[e]=this.pv[e]+D[e]+(-a+2*a*BMMath.random())*w;return I}return this.pv+D[0]+(-a+2*a*BMMath.random())*w}.bind(this);function loopInDuration(o,u){return loopIn(o,u,!0)}function loopOutDuration(o,u){return loopOut(o,u,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,u){var a=[u[0]-o[0],u[1]-o[1],u[2]-o[2]],t=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads;return[-Math.atan2(a[1],a[2])/degToRads,t,0]}function easeOut(o,u,a,t,e){return applyEase(easeOutBez,o,u,a,t,e)}function easeIn(o,u,a,t,e){return applyEase(easeInBez,o,u,a,t,e)}function ease(o,u,a,t,e){return applyEase(easeInOutBez,o,u,a,t,e)}function applyEase(o,u,a,t,e,s){void 0===e?(e=a,s=t):u=(u-a)/(t-a),u>1?u=1:u<0&&(u=0);var D=o(u);if($bm_isInstanceOfArray(e)){var x,M=e.length,w=createTypedArray("float32",M);for(x=0;x<M;x+=1)w[x]=(s[x]-e[x])*D+e[x];return w}return(s-e)*D+e}function nearestKey(o){var u,t,e,a=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(t=-1,(o*=elem.comp.globalData.frameRate)<data.k[0].t)t=1,e=data.k[0].t;else{for(u=0;u<a-1;u+=1){if(o===data.k[u].t){t=u+1,e=data.k[u].t;break}if(o>data.k[u].t&&o<data.k[u+1].t){o-data.k[u].t>data.k[u+1].t-o?(t=u+2,e=data.k[u+1].t):(t=u+1,e=data.k[u].t);break}}-1===t&&(t=u+1,e=data.k[u].t)}else t=0,e=0;var s={};return s.index=t,s.time=e/elem.comp.globalData.frameRate,s}function key(o){var u,a,t;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+o);u={time:data.k[o-=1].t/elem.comp.globalData.frameRate,value:[]};var e=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;for(t=e.length,a=0;a<t;a+=1)u[a]=e[a],u.value[a]=e[a];return u}function framesToTime(o,u){return u||(u=elem.comp.globalData.frameRate),o/u}function timeToFrames(o,u){return!o&&0!==o&&(o=time),u||(u=elem.comp.globalData.frameRate),o*u}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,u){return"string"==typeof value?void 0===u?value.substring(o):value.substring(o,u):""}function substr(o,u){return"string"==typeof value?void 0===u?value.substr(o):value.substr(o,u):""}function posterizeTime(o){time=0===o?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(o){return value=o,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisComp=elem.comp.compInterface,toWorld=(thisLayer=elem.layerInterface).toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4===elemType&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={initExpressions:function u(a){var t=0,e=[];a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=function s(){t+=1},a.renderer.globalData.popExpression=function D(){0==(t-=1)&&function M(){var w,I=e.length;for(w=0;w<I;w+=1)e[w].release();e.length=0}()},a.renderer.globalData.registerExpressionProperty=function x(w){-1===e.indexOf(w)&&e.push(w)}}};return o.resetFrame=ExpressionManager.resetFrame,o}(),MaskManagerInterface=function(){function o(a,t){this._mask=a,this._data=t}return Object.defineProperty(o.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var s,e=createSizedArray(t.viewData.length),D=t.viewData.length;for(s=0;s<D;s+=1)e[s]=new o(t.viewData[s],t.masksProperties[s]);return function(w){for(s=0;s<D;){if(t.masksProperties[s].nm===w)return e[s];s+=1}return null}}}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1}
vendor: 5,085 bytes, line 1
1,u={pv:[0,0,0],v:[0,0,0],mult:1};function a(D,x,M){Object.defineProperty(D,"velocity",{get:function(){return x.getVelocityAtTime(x.comp.currentFrame)}}),D.numKeys=x.keyframes?x.keyframes.length:0,D.key=function(w){if(!D.numKeys)return 0;var I;I="s"in x.keyframes[w-1]?x.keyframes[w-1].s:"e"in x.keyframes[w-2]?x.keyframes[w-2].e:x.keyframes[w-2].s;var P="unidimensional"===M?new Number(I):Object.assign({},I);return P.time=x.keyframes[w-1].t/x.elem.comp.globalData.frameRate,P.value="unidimensional"===M?I[0]:I,P},D.valueAtTime=x.getValueAtTime,D.speedAtTime=x.getSpeedAtTime,D.velocityAtTime=x.getVelocityAtTime,D.propertyGroup=x.propertyGroup}function s(){return o}return function(D){return D?"unidimensional"===D.propType?function t(D){(!D||!("pv"in D))&&(D=o);var x=1/D.mult,M=D.pv*x,w=new Number(M);return w.value=M,a(w,D,"unidimensional"),function(){return D.k&&D.getValue(),w.value!==(M=D.v*x)&&((w=new Number(M)).value=M,w[0]=M,a(w,D,"unidimensional")),w}}(D):function e(D){(!D||!("pv"in D))&&(D=u);var x=1/D.mult,M=D.data&&D.data.l||D.pv.length,w=createTypedArray("float32",M),I=createTypedArray("float32",M);return w.value=I,a(w,D,"multidimensional"),function(){D.k&&D.getValue();for(var P=0;P<M;P+=1)I[P]=D.v[P]*x,w[P]=I[P];return w}}(D):s}}(),TransformExpressionInterface=function(o){function u(D){switch(D){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}var a,t,e,s;return Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(o.s)}),o.p?s=ExpressionPropertyInterface(o.p):(a=ExpressionPropertyInterface(o.px),t=ExpressionPropertyInterface(o.py),o.pz&&(e=ExpressionPropertyInterface(o.pz))),Object.defineProperty(u,"position",{get:function(){return o.p?s():[a(),t(),e?e():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(o.or)}),u},LayerExpressionInterface=function(){function o(w){var I=new Matrix;return void 0!==w?this._elem.finalTransform.mProp.getValueAtTime(w).clone(I):this._elem.finalTransform.mProp.applyToMatrix(I),I}function u(w,I){var P=this.getMatrix(I);return P.props[12]=0,P.props[13]=0,P.props[14]=0,this.applyPoint(P,w)}function a(w,I){var P=this.getMatrix(I);return this.applyPoint(P,w)}function t(w,I){var P=this.getMatrix(I);return P.props[12]=0,P.props[13]=0,P.props[14]=0,this.invertPoint(P,w)}function e(w,I){var P=this.getMatrix(I);return this.invertPoint(P,w)}function s(w,I){if(this._elem.hierarchy&&this._elem.hierarchy.length){var P,S=this._elem.hierarchy.length;for(P=0;P<S;P+=1)this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(w)}return w.applyToPointArray(I[0],I[1],I[2]||0)}function D(w,I){if(this._elem.hierarchy&&this._elem.hierarchy.length){var P,S=this._elem.hierarchy.length;for(P=0;P<S;P+=1)this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(w)}return w.inversePoint(I)}function x(w){var I=new Matrix;if(I.reset(),this._elem.finalTransform.mProp.applyToMatrix(I),this._elem.hierarchy&&this._elem.hierarchy.length){var P,S=this._elem.hierarchy.length;for(P=0;P<S;P+=1)this._elem.hierarchy[P].finalTransform.mProp.applyToMatrix(I);return I.inversePoint(w)}return I.inversePoint(w)}function M(){return[1,1,1,1]}return function(w){var I;function k(F){switch(F){case"ADBE Root Vectors Group":case"Contents":case 2:return k.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return I;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return k.effect;case"ADBE Text Properties":return k.textInterface;default:return null}}k.getMatrix=o,k.invertPoint=D,k.applyPoint=s,k.toWorld=a,k.toWorldVec=u,k.fromWorld=e,k.fromWorldVec=t,k.toComp=a,k.fromComp=x,k.sampleImage=M,k.sourceRectAtTime=w.sourceRectAtTime.bind(w),k._elem=w;
vendor: 10,201 bytes, line 1
1var z=getDescriptor(I=TransformExpressionInterface(w.finalTransform.mProp),"anchorPoint");return Object.defineProperties(k,{hasParent:{get:function(){return w.hierarchy.length}},parent:{get:function(){return w.hierarchy[0].layerInterface}},rotation:getDescriptor(I,"rotation"),scale:getDescriptor(I,"scale"),position:getDescriptor(I,"position"),opacity:getDescriptor(I,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function(){return I}},active:{get:function(){return w.isInRange}}}),k.startTime=w.data.st,k.index=w.data.ind,k.source=w.data.refId,k.height=0===w.data.ty?w.data.h:100,k.width=0===w.data.ty?w.data.w:100,k.inPoint=w.data.ip/w.comp.globalData.frameRate,k.outPoint=w.data.op/w.comp.globalData.frameRate,k._name=w.data.nm,k.registerMaskInterface=function P(F){k.mask=new MaskManagerInterface(F,w)},k.registerEffectsInterface=function S(F){k.effect=F},k}}(),propertyGroupFactory=function(o,u){return function(a){return(a=void 0===a?1:a)<=0?o:u(a-1)}},PropertyInterface=function(o,u){var a={_name:o};return function t(e){return(e=void 0===e?1:e)<=0?a:u(e-1)}},EffectsExpressionInterface=function(){function a(e,s,D,x){function M(k){for(var z=e.ef,F=0,ne=z.length;F<ne;){if(k===z[F].nm||k===z[F].mn||k===z[F].ix)return 5===z[F].ty?I[F]:I[F]();F+=1}throw new Error}var P,w=propertyGroupFactory(M,D),I=[],S=e.ef.length;for(P=0;P<S;P+=1)I.push(5===e.ef[P].ty?a(e.ef[P],s.effectElements[P],s.effectElements[P].propertyGroup,x):t(s.effectElements[P],e.ef[P].ty,x,w));return"ADBE Color Control"===e.mn&&Object.defineProperty(M,"color",{get:function(){return I[0]()}}),Object.defineProperties(M,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:w}}),M.active=M.enabled=0!==e.en,M}function t(e,s,D,x){var M=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",x)),function w(){return 10===s?D.comp.compInterface(e.p.v):M()}}return{createEffectsInterface:function u(e,s){if(e.effectsManager){var M,D=[],x=e.data.ef,w=e.effectsManager.effectElements.length;for(M=0;M<w;M+=1)D.push(a(x[M],e.effectsManager.effectElements[M],s,e));var I=e.data.ef||[],P=function(k){for(M=0,w=I.length;M<w;){if(k===I[M].nm||k===I[M].mn||k===I[M].ix)return D[M];M+=1}return null};return Object.defineProperty(P,"numProperties",{get:function(){return I.length}}),P}return null}}}(),ShapePathInterface=function(u,a,t){var e=a.sh;function s(x){return"Shape"===x||"shape"===x||"Path"===x||"path"===x||"ADBE Vector Shape"===x||2===x?s.path:null}var D=propertyGroupFactory(s,t);return e.setGroupProperty(PropertyInterface("Path",D)),Object.defineProperties(s,{path:{get:function(){return e.k&&e.getValue(),e}},shape:{get:function(){return e.k&&e.getValue(),e}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:t}}),s},ShapeExpressionInterface=function(){function o(z,F,ne){var G,B=[],W=z?z.length:0;for(G=0;G<W;G+=1)"gr"===z[G].ty?B.push(a(z[G],F[G],ne)):"fl"===z[G].ty?B.push(t(z[G],F[G],ne)):"st"===z[G].ty?B.push(D(z[G],F[G],ne)):"tm"===z[G].ty?B.push(x(z[G],F[G],ne)):"tr"===z[G].ty||B.push("el"===z[G].ty?w(z[G],F[G],ne):"sr"===z[G].ty?I(z[G],F[G],ne):"sh"===z[G].ty?ShapePathInterface(z[G],F[G],ne):"rc"===z[G].ty?P(z[G],F[G],ne):"rd"===z[G].ty?S(z[G],F[G],ne):"rp"===z[G].ty?k(z[G],F[G],ne):"gf"===z[G].ty?e(z[G],F[G],ne):function z(){return null});return B}function a(z,F,ne){var B=function(fe){switch(fe){case"ADBE Vectors Group":case"Contents":case 2:return B.content;default:return B.transform}};B.propertyGroup=propertyGroupFactory(B,ne);var G=function u(z,F,ne){var B,G=function(fe){for(var N=0,Q=B.length;N<Q;){if(B[N]._name===fe||B[N].mn===fe||B[N].propertyIndex===fe||B[N].ix===fe||B[N].ind===fe)return B[N];N+=1}return"number"==typeof fe?B[fe-1]:null};G.propertyGroup=propertyGroupFactory(G,ne),B=o(z.it,F.it,G.propertyGroup),G.numProperties=B.length;var W=M(z.it[z.it.length-1],F.it[F.it.length-1],G.propertyGroup);return G.transform=W,G.propertyIndex=z.cix,G._name=z.nm,G}(z,F,B.propertyGroup),W=M(z.it[z.it.length-1],F.it[F.it.length-1],B.propertyGroup);return B.content=G,B.transform=W,Object.defineProperty(B,"_name",{get:function(){return z.nm}}),B.numProperties=z.np,B.propertyIndex=z.ix,B.nm=z.nm,B.mn=z.mn,B}function t(z,F,ne){function B(G){return"Color"===G||"color"===G?B.color:"Opacity"===G||"opacity"===G?B.opacity:null}return Object.defineProperties(B,{color:{get:ExpressionPropertyInterface(F.c)},opacity:{get:ExpressionPropertyInterface(F.o)},_name:{value:z.nm},mn:{value:z.mn}}),F.c.setGroupProperty(PropertyInterface("Color",ne)),F.o.setGroupProperty(PropertyInterface("Opacity",ne)),B}function e(z,F,ne){function B(G){return"Start Point"===G||"start point"===G?B.startPoint:"End Point"===G||"end point"===G?B.endPoint:"Opacity"===G||"opacity"===G?B.opacity:null}return Object.defineProperties(B,{startPoint:{get:ExpressionPropertyInterface(F.s)},endPoint:{get:ExpressionPropertyInterface(F.e)},opacity:{get:ExpressionPropertyInterface(F.o)},type:{get:function(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),F.s.setGroupProperty(PropertyInterface("Start Point",ne)),F.e.setGroupProperty(PropertyInterface("End Point",ne)),F.o.setGroupProperty(PropertyInterface("Opacity",ne)),B}function D(z,F,ne){var Y,O,B=propertyGroupFactory(Q,ne),G=propertyGroupFactory(N,B),fe=z.d?z.d.length:0,N={};for(Y=0;Y<fe;Y+=1)O=Y,Object.defineProperty(N,z.d[O].nm,{get:ExpressionPropertyInterface(F.d.dataProps[O].p)}),F.d.dataProps[Y].p.setGroupProperty(G);function Q(O){return"Color"===O||"color"===O?Q.color:"Opacity"===O||"opacity"===O?Q.opacity:"Stroke Width"===O||"stroke width"===O?Q.strokeWidth:null}return Object.defineProperties(Q,{color:{get:ExpressionPropertyInterface(F.c)},opacity:{get:ExpressionPropertyInterface(F.o)},strokeWidth:{get:ExpressionPropertyInterface(F.w)},dash:{get:function(){return N}},_name:{value:z.nm},mn:{value:z.mn}}),F.c.setGroupProperty(PropertyInterface("Color",B)),F.o.setGroupProperty(PropertyInterface("Opacity",B)),F.w.setGroupProperty(PropertyInterface("Stroke Width",B)),Q}function x(z,F,ne){function B(W){return W===z.e.ix||"End"===W||"end"===W?B.end:W===z.s.ix?B.start:W===z.o.ix?B.offset:null}var G=propertyGroupFactory(B,ne);return B.propertyIndex=z.ix,F.s.setGroupProperty(PropertyInterface("Start",G)),F.e.setGroupProperty(PropertyInterface("End",G)),F.o.setGroupProperty(PropertyInterface("Offset",G)),B.propertyIndex=z.ix,B.propertyGroup=ne,Object.defineProperties(B,{start:{get:ExpressionPropertyInterface(F.s)},end:{get:ExpressionPropertyInterface(F.e)},offset:{get:ExpressionPropertyInterface(F.o)},_name:{value:z.nm}}),B.mn=z.mn,B}function M(z,F,ne){function B(W){return z.a.ix===W||"Anchor Point"===W?B.anchorPoint:z.o.ix===W||"Opacity"===W?B.opacity:z.p.ix===W||"Position"===W?B.position:z.r.ix===W||"Rotation"===W||"ADBE Vector Rotation"===W?B.rotation:z.s.ix===W||"Scale"===W?B.scale:z.sk&&z.sk.ix===W||"Skew"===W?B.skew:z.sa&&z.sa.ix===W||"Skew Axis"===W?B.skewAxis:null}var G=propertyGroupFactory(B,ne);return F.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",G)),F.transform.mProps.p.setGroupProperty(PropertyInterface("Position",G)),F.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",G)),F.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",G)),F.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",G)),F.transform.mProps.sk&&(F.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",G)),F.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",G))),F.transform.op.setGroupProperty(PropertyInterface("Opacity",G)),Object.defineProperties(B,{opacity:{get:ExpressionPropertyInterface(F.transform.mProps.o)},position:{get:ExpressionPropertyInterface(F.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(F.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(F.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(F.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(F.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(F.transform.mProps.sa)},_name:{value:z.nm}}),B.ty="tr",B.mn=z.mn,B.propertyGroup=ne,B}function w(z,F,ne){function B(Y){return z.p.ix===Y?B.position:z.s.ix===Y?B.size:null}var G=propertyGroupFactory(B,ne);B.propertyIndex=z.ix;var W="tm"===F.sh.ty?F.sh.prop:F.sh;return W.s.setGroupProperty(PropertyInterface("Size",G)),W.p.setGroupProperty(PropertyInterface("Position",G)),Object.defineProperties(B,{size:{get:ExpressionPropertyInterface(W.s)},position:{get:ExpressionPropertyInterface(W.p)},_name:{value:z.nm}}),B.mn=z.mn,B}function I(z,F,ne){function B(Y){return z.p.ix===Y?B.position:z.r.ix===Y?B.rotation:z.pt.ix===Y?B.points:z.or.ix===Y||"ADBE Vector Star Outer Radius"===Y?B.outerRadius:z.os.ix===Y?B.outerRoundness:!z.ir||z.ir.ix!==Y&&"ADBE Vector Star Inner Radius"!==Y?z.is&&z.is.ix===Y?B.innerRoundness:null:B.innerRadius}var G=propertyGroupFactory(B,ne),W="tm"===F.sh.ty?F.sh.prop:F.sh;return B.propertyIndex=z.ix,W.or.setGroupProperty(PropertyInterface("Outer Radius",G)),W.os.setGroupProperty(PropertyInterface("Outer Roundness",G)),W.pt.setGroupProperty(PropertyInterface("Points",G)),W.p.setGroupProperty(PropertyInterface("Position",G)),W.r.setGroupProperty(PropertyInterface("Rotation",G)),z.ir&&(W.ir.setGroupProperty(PropertyInterface("Inner Radius",G)),W.is.setGroupProperty(PropertyInterface("Inner Roundness",G))),Object.defineProperties(B,{position:{get:ExpressionPropertyInterface(W.p)},rotation:{get:ExpressionPropertyInterface(W.r)},points:{get:ExpressionPropertyInterface(W.pt)},outerRadius:{get:ExpressionPropertyInterface(W.or)},outerRoundness:{get:ExpressionPropertyInterface(W.os)},innerRadius:{get:ExpressionPropertyInterface(W.ir)},innerRoundness:{get:ExpressionPropertyInterface(W.is)},_name:{value:z.nm}}),B.mn=z.mn,B}function P(z,F,ne){function B(Y){return z.p.ix===Y?B.position:z.r.ix===Y?B.roundness:z.s.ix===Y||"Size"===Y||"ADBE Vector Rect Size"===Y?B.size:null}var G=propertyGroupFactory(B,ne),W="tm"===F.sh.ty?F.sh.prop:F.sh;return B.propertyIndex=z.ix,W.p.setGroupProperty(PropertyInterface("Position",G)),W.s.setGroupProperty(PropertyInterface("Size",G)),W.r.setGroupProperty(PropertyInterface("Rotation",G)),Ob
vendor: 6,079 bytes, line 1
1ject.defineProperties(B,{position:{get:ExpressionPropertyInterface(W.p)},roundness:{get:ExpressionPropertyInterface(W.r)},size:{get:ExpressionPropertyInterface(W.s)},_name:{value:z.nm}}),B.mn=z.mn,B}function S(z,F,ne){function B(Y){return z.r.ix===Y||"Round Corners 1"===Y?B.radius:null}var G=propertyGroupFactory(B,ne),W=F;return B.propertyIndex=z.ix,W.rd.setGroupProperty(PropertyInterface("Radius",G)),Object.defineProperties(B,{radius:{get:ExpressionPropertyInterface(W.rd)},_name:{value:z.nm}}),B.mn=z.mn,B}function k(z,F,ne){function B(Y){return z.c.ix===Y||"Copies"===Y?B.copies:z.o.ix===Y||"Offset"===Y?B.offset:null}var G=propertyGroupFactory(B,ne),W=F;return B.propertyIndex=z.ix,W.c.setGroupProperty(PropertyInterface("Copies",G)),W.o.setGroupProperty(PropertyInterface("Offset",G)),Object.defineProperties(B,{copies:{get:ExpressionPropertyInterface(W.c)},offset:{get:ExpressionPropertyInterface(W.o)},_name:{value:z.nm}}),B.mn=z.mn,B}return function(z,F,ne){var B;function G(Y){if("number"==typeof Y)return 0===(Y=void 0===Y?1:Y)?ne:B[Y-1];for(var fe=0,N=B.length;fe<N;){if(B[fe]._name===Y)return B[fe];fe+=1}return null}return G.propertyGroup=propertyGroupFactory(G,function W(){return ne}),B=o(z,F,G.propertyGroup),G.numProperties=B.length,G._name="Contents",G}}(),TextExpressionInterface=function(o){var u;function a(t){return"ADBE Text Document"===t?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){o.textProperty.getValue();var e=o.textProperty.currentData.t;return(!u||e!==u.value)&&((u=new String(e)).value=e||new String(e),Object.defineProperty(u,"style",{get:function(){return{fillColor:o.textProperty.currentData.fc}}})),u}}),a};function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(o)}var FootageInterface=(u=function(t){function e(s){return"Outline"===s?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",s=t.getFootageData();function x(M){if(s[M])return e=M,"object"===_typeof(s=s[M])?x:s;var w=M.indexOf(e);if(-1!==w){var I=parseInt(M.substr(w+e.length),10);return"object"===_typeof(s=s[I])?x:s}return""}return function D(){return e="",s=t.getFootageData(),x}}(t),e},function(a){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=u(a),t}),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface},u;function getInterface(o){return interfaces[o]||null}var expressionHelpers={searchExpressions:function o(D,x,M){x.x&&(M.k=!0,M.x=!0,M.initiateExpression=ExpressionManager.initiateExpression,M.effectsSequence.push(M.initiateExpression(D,x,M).bind(M)))},getSpeedAtTime:function a(D){var M=this.getValueAtTime(D),w=this.getValueAtTime(D+-.01),I=0;if(M.length){var P;for(P=0;P<M.length;P+=1)I+=Math.pow(w[P]-M[P],2);I=100*Math.sqrt(I)}else I=0;return I},getVelocityAtTime:function t(D){if(void 0!==this.vel)return this.vel;var I,P,x=-.001,M=this.getValueAtTime(D),w=this.getValueAtTime(D+x);if(M.length)for(I=createTypedArray("float32",M.length),P=0;P<M.length;P+=1)I[P]=(w[P]-M[P])/x;else I=(w-M)/x;return I},getValueAtTime:function u(D){return D*=this.elem.globalData.frameRate,(D-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<D?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(D,this._cachingAtTime),this._cachingAtTime.lastFrame=D),this._cachingAtTime.value},getStaticValueAtTime:function e(){return this.pv},setGroupProperty:function s(D){this.propertyGroup=D}};function addPropertyDecorator(){function o(S,k,z){if(!this.k||!this.keyframes)return this.pv;S=S?S.toLowerCase():"";var G,W,Y,fe,N,F=this.comp.renderedFrame,ne=this.keyframes,B=ne[ne.length-1].t;if(F<=B)return this.pv;if(z?W=B-(G=k?Math.abs(B-this.elem.comp.globalData.frameRate*k):Math.max(0,B-this.elem.data.ip)):((!k||k>ne.length-1)&&(k=ne.length-1),G=B-(W=ne[ne.length-1-k].t)),"pingpong"===S){if(Math.floor((F-W)/G)%2!=0)return this.getValueAtTime((G-(F-W)%G+W)/this.comp.globalData.frameRate,0)}else{if("offset"===S){var O=this.getValueAtTime(W/this.comp.globalData.frameRate,0),ee=this.getValueAtTime(B/this.comp.globalData.frameRate,0),ue=this.getValueAtTime(((F-W)%G+W)/this.comp.globalData.frameRate,0),_e=Math.floor((F-W)/G);if(this.pv.length){for(fe=(N=new Array(O.length)).length,Y=0;Y<fe;Y+=1)N[Y]=(ee[Y]-O[Y])*_e+ue[Y];return N}return(ee-O)*_e+ue}if("continue"===S){var be=this.getValueAtTime(B/this.comp.globalData.frameRate,0),Qe=this.getValueAtTime((B-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(fe=(N=new Array(be.length)).length,Y=0;Y<fe;Y+=1)N[Y]=be[Y]+(F-B)/this.comp.globalData.frameRate*(be[Y]-Qe[Y])/5e-4;return N}return be+(F-B)/.001*(be-Qe)}}return this.getValueAtTime(((F-W)%G+W)/this.comp.globalData.frameRate,0)}function u(S,k,z){if(!this.k)return this.pv;S=S?S.toLowerCase():"";var G,W,Y,fe,N,F=this.comp.renderedFrame,ne=this.keyframes,B=ne[0].t;if(F>=B)return this.pv;if(z?W=B+(G=k?Math.abs(this.elem.comp.globalData.frameRate*k):Math.max(0,this.elem.data.op-B)):((!k||k>ne.length-1)&&(k=ne.length-1),G=(W=ne[k].t)-B),"pingpong"===S){if(Math.floor((B-F)/G)%2==0)return this.getValueAtTime(((B-F)%G+B)/this.comp.globalData.frameRate,0)}else{if("offset"===S){var O=this.getValueAtTime(B/this.comp.globalData.frameRate,0),ee=this.getValueAtTime(W/this.comp.globalData.frameRate,0),ue=this.getValueAtTime((G-(B-F)%G+B)/this.comp.globalData.frameRate,0),_e=Math.floor((B-F)/G)+1;if(this.pv.length){for(fe=(N=new Array(O.length)).length,Y=0;Y<fe;Y+=1)N[Y]=ue[Y]-(ee[Y]-O[Y])*_e;return N}return ue-(ee-O)*_e}if("continue"===S){var be=this.getValueAtTime(B/this.comp.globalData.frameRate,0),Qe=this.getValueAtTime((B+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(fe=(N=new Array(be.length)).length,Y=0;Y<fe;
vendor: 7,838 bytes, line 1
1Y+=1)N[Y]=be[Y]+(be[Y]-Qe[Y])*(B-F)/.001;return N}return be+(be-Qe)*(B-F)/.001}}return this.getValueAtTime((G-((B-F)%G+B))/this.comp.globalData.frameRate,0)}function a(S,k){if(!this.k)return this.pv;if(S=.5*(S||.4),(k=Math.floor(k||5))<=1)return this.pv;var Y,fe,z=this.comp.renderedFrame/this.comp.globalData.frameRate,F=z-S,B=k>1?(z+S-F)/(k-1):1,G=0,W=0;for(Y=this.pv.length?createTypedArray("float32",this.pv.length):0;G<k;){if(fe=this.getValueAtTime(F+G*B),this.pv.length)for(W=0;W<this.pv.length;W+=1)Y[W]+=fe[W];else Y+=fe;G+=1}if(this.pv.length)for(W=0;W<this.pv.length;W+=1)Y[W]/=k;else Y/=k;return Y}function t(S){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var k=this._transformCachingAtTime.v;if(k.cloneFromProps(this.pre.props),this.appliedTransformations<1){var z=this.a.getValueAtTime(S);k.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var F=this.s.getValueAtTime(S);k.scale(F[0]*this.s.mult,F[1]*this.s.mult,F[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var ne=this.sk.getValueAtTime(S),B=this.sa.getValueAtTime(S);k.skewFromAxis(-ne*this.sk.mult,B*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var G=this.r.getValueAtTime(S);k.rotate(-G*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var W=this.rz.getValueAtTime(S),Y=this.ry.getValueAtTime(S),fe=this.rx.getValueAtTime(S),N=this.or.getValueAtTime(S);k.rotateZ(-W*this.rz.mult).rotateY(Y*this.ry.mult).rotateX(fe*this.rx.mult).rotateZ(-N[2]*this.or.mult).rotateY(N[1]*this.or.mult).rotateX(N[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var Q=this.px.getValueAtTime(S),O=this.py.getValueAtTime(S);if(this.data.p.z){var ee=this.pz.getValueAtTime(S);k.translate(Q*this.px.mult,O*this.py.mult,-ee*this.pz.mult)}else k.translate(Q*this.px.mult,O*this.py.mult,0)}else{var ue=this.p.getValueAtTime(S);k.translate(ue[0]*this.p.mult,ue[1]*this.p.mult,-ue[2]*this.p.mult)}return k}function e(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(S,k,z){var F=s(S,k,z);return F.getValueAtTime=F.dynamicProperties.length?t.bind(F):e.bind(F),F.setGroupProperty=expressionHelpers.setGroupProperty,F};var D=PropertyFactory.getProp;PropertyFactory.getProp=function(S,k,z,F,ne){var B=D(S,k,z,F,ne);B.getValueAtTime=B.kf?expressionHelpers.getValueAtTime.bind(B):expressionHelpers.getStaticValueAtTime.bind(B),B.setGroupProperty=expressionHelpers.setGroupProperty,B.loopOut=o,B.loopIn=u,B.smooth=a,B.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(B),B.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(B),B.numKeys=1===k.a?k.k.length:0,B.propertyIndex=k.ix;var G=0;return 0!==z&&(G=createTypedArray("float32",1===k.a?k.k[0].s.length:k.k.length)),B._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:G},expressionHelpers.searchExpressions(S,k,B),B.k&&ne.addDynamicProperty(B),B};var M=ShapePropertyFactory.getConstructorFunction(),w=ShapePropertyFactory.getKeyframedConstructorFunction();function I(){}I.prototype={vertices:function(k,z){this.k&&this.getValue();var F=this.v;void 0!==z&&(F=this.getValueAtTime(z,0));var ne,B=F._length,G=F[k],W=F.v,Y=createSizedArray(B);for(ne=0;ne<B;ne+=1)Y[ne]="i"===k||"o"===k?[G[ne][0]-W[ne][0],G[ne][1]-W[ne][1]]:[G[ne][0],G[ne][1]];return Y},points:function(k){return this.vertices("v",k)},inTangents:function(k){return this.vertices("i",k)},outTangents:function(k){return this.vertices("o",k)},isClosed:function(){return this.v.c},pointOnPath:function(k,z){var F=this.v;void 0!==z&&(F=this.getValueAtTime(z,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(F));for(var N,ne=this._segmentsLength,B=ne.lengths,G=ne.totalLength*k,W=0,Y=B.length,fe=0;W<Y;){if(fe+B[W].addedLength>G){var O=F.c&&W===Y-1?0:W+1;N=bez.getPointInSegment(F.v[W],F.v[O],F.o[W],F.i[O],(G-fe)/B[W].addedLength,B[W]);break}fe+=B[W].addedLength,W+=1}return N||(N=F.c?[F.v[0][0],F.v[0][1]]:[F.v[F._length-1][0],F.v[F._length-1][1]]),N},vectorOnPath:function(k,z,F){1==k?k=this.v.c:0==k&&(k=.999);var ne=this.pointOnPath(k,z),B=this.pointOnPath(k+.001,z),G=B[0]-ne[0],W=B[1]-ne[1],Y=Math.sqrt(Math.pow(G,2)+Math.pow(W,2));return 0===Y?[0,0]:"tangent"===F?[G/Y,W/Y]:[-W/Y,G/Y]},tangentOnPath:function(k,z){return this.vectorOnPath(k,z,"tangent")},normalOnPath:function(k,z){return this.vectorOnPath(k,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([I],M),extendPrototype([I],w),w.prototype.getValueAtTime=function x(S){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),S*=this.elem.globalData.frameRate,(S-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<S?this._caching.lastIndex:0,this._cachingAtTime.lastTime=S,this.interpolateShape(S,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},w.prototype.initiateExpression=ExpressionManager.initiateExpression;var P=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(S,k,z,F,ne){var B=P(S,k,z,F,ne);return B.propertyIndex=k.ix,B.lock=!1,3===z?expressionHelpers.searchExpressions(S,k.pt,B):4===z&&expressionHelpers.searchExpressions(S,k.ks,B),B.k&&S.addDynamicProperty(B),B}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(u,a){var t=this.calculateExpression(a);if(u.t!==t){var e={};return this.copyData(e,u),e.t=t.toString(),e.__complete=!1,e}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),a=this.searchExpressions();return this.kf=u||a,this.kf},TextProperty.prototype.searchExpressions=function o(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(u,a){var e,s,t=createNS("feMerge");for(t.setAttribute("result",u),s=0;s<a.length;s+=1)(e=createNS("feMergeNode")).setAttribute("in",a[s]),t.appendChild(e),t.appendChild(e);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,u,a,t,e){this.filterManager=u;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",t+"_tint_1"),o.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",t+"_tint_2"),o.appendChild(s),this.matrixFilter=s;var D=this.createMergeNode(t,[e,t+"_tint_1",t+"_tint_2"]);o.appendChild(D)}function SVGFillFilter(o,u,a,t){this.filterManager=u;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t),o.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(o,u,a){this.initialized=!1,this.filterManager=u,this.elem=a,this.paths=[]}function SVGTritoneFilter(o,u,a,t){this.filterManager=u;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(e);var s=createNS("feComponentTransfer");
vendor: 5,063 bytes, line 1
1s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",t),this.matrixFilter=s;var D=createNS("feFuncR");D.setAttribute("type","table"),s.appendChild(D),this.feFuncR=D;var x=createNS("feFuncG");x.setAttribute("type","table"),s.appendChild(x),this.feFuncG=x;var M=createNS("feFuncB");M.setAttribute("type","table"),s.appendChild(M),this.feFuncB=M,o.appendChild(s)}function SVGProLevelsFilter(o,u,a,t){this.filterManager=u;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(s)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",t),o.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(o,u,a,t,e){var s=u.container.globalData.renderConfig.filterSize,D=u.data.fs||s;o.setAttribute("x",D.x||s.x),o.setAttribute("y",D.y||s.y),o.setAttribute("width",D.width||s.width),o.setAttribute("height",D.height||s.height),this.filterManager=u;var x=createNS("feGaussianBlur");x.setAttribute("in","SourceAlpha"),x.setAttribute("result",t+"_drop_shadow_1"),x.setAttribute("stdDeviation","0"),this.feGaussianBlur=x,o.appendChild(x);var M=createNS("feOffset");M.setAttribute("dx","25"),M.setAttribute("dy","0"),M.setAttribute("in",t+"_drop_shadow_1"),M.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=M,o.appendChild(M);var w=createNS("feFlood");w.setAttribute("flood-color","#00ff00"),w.setAttribute("flood-opacity","1"),w.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=w,o.appendChild(w);var I=createNS("feComposite");I.setAttribute("in",t+"_drop_shadow_3"),I.setAttribute("in2",t+"_drop_shadow_2"),I.setAttribute("operator","in"),I.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(I);var P=this.createMergeNode(t,[t+"_drop_shadow_4",e]);o.appendChild(P)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v;this.linearFilter.setAttribute("values",linearFilterValue+" "+this.filterManager.effectElements[2].p.v/100+" 0"),this.matrixFilter.setAttribute("values",a[0]-u[0]+" 0 0 0 "+u[0]+" "+(a[1]-u[1])+" 0 0 0 "+u[1]+" "+(a[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var u,a,t,e,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(e=this.elem.maskManager.masksProperties.length,t=0):e=1+(t=this.filterManager.effectElements[0].p.v-1),(a=createNS("g")).setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1);t<e;t+=1)u=createNS("path"),a.appendChild(u),this.paths.push({p:u,m:t});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),D=createElementID();s.setAttribute("id",D),s.setAttribute("mask-type","alpha"),s.appendChild(a),this.elem.globalData.defs.appendChild(s);var x=createNS("g");for(x.setAttribute("mask","url("+getLocationHref()+"#"+D+")");o[0];)x.appendChild(o[0]);this.elem.layerElement.appendChild(x),this.masker=s,a.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){this.initialized||this.initialize();var u,t,e,a=this.paths.length;for(u=0;
vendor: 4,646 bytes, line 1
1u<a;u+=1)if(-1!==this.paths[u].m&&(t=this.elem.maskManager.viewData[this.paths[u].m],e=this.paths[u].p,(o||this.filterManager._mdf||t.prop._mdf)&&e.setAttribute("d",t.lastPath),o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var D=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),x=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),M=e.getTotalLength();s="0 0 0 "+M*D+" ";var S,P=Math.floor(M*(x-D)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(S=0;S<P;S+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*M+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",s)}if((o||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(o||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(o||this.filterManager.effectElements[3].p._mdf)){var k=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*k[0])+","+bmFloor(255*k[1])+","+bmFloor(255*k[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,s=t[1]+" "+a[1]+" "+u[1],D=t[2]+" "+a[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",t[0]+" "+a[0]+" "+u[0]),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",D)}},SVGProLevelsFilter.prototype.createFeFunc=function(o,u){var a=createNS(o);return a.setAttribute("type","table"),u.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,u,a,t,e){for(var x,P,s=0,M=Math.min(o,u),w=Math.max(o,u),I=Array.call(null,{length:256}),S=0,k=e-t,z=u-o;s<=256;)P=(x=s/256)<=M?z<0?e:t:x>=w?z<0?t:e:t+k*Math.pow((x-o)/z,1/a),I[S]=P,S+=1,s+=256/255;return I.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var u,a=this.filterManager.effectElements;this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf)&&(u=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf)&&(u=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf)&&(u=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf)&&(u=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf)&&(u=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",u))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if((o||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),o||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*u[0]),Math.round(255*u[1]),Math.round(255*u[2])))}if((o||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=a*Math.cos(t),s=a*Math.sin(t);
vendor: 4,301 bytes, line 1
1this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,u,a){this.initialized=!1,this.filterManager=u,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}function SVGGaussianBlurEffect(o,u,a,t){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=u;var e=createNS("feGaussianBlur");e.setAttribute("result",t),o.appendChild(e),this.feGaussianBlur=e}function TransformEffect(){}function SVGTransformEffect(o,u){this.init(u)}function CVTransformEffect(o){this.init(o)}return SVGMatte3Effect.prototype.findSymbol=function(o){for(var u=0,a=_svgMatteSymbols.length;u<a;){if(_svgMatteSymbols[u]===o)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,u){var a=o.layerElement.parentNode;if(a){for(var t=a.children,e=0,s=t.length;e<s&&t[e]!==o.layerElement;)e+=1;var D;e<=s-2&&(D=t[e+1]);var x=createNS("use");x.setAttribute("href","#"+u),D?a.insertBefore(x,D):a.appendChild(x)}},SVGMatte3Effect.prototype.setElementAsMask=function(o,u){if(!this.findSymbol(u)){var a=createElementID(),t=createNS("mask");t.setAttribute("id",u.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var e=o.globalData.defs;e.appendChild(t);var s=createNS("symbol");s.setAttribute("id",a),this.replaceInParent(u,a),s.appendChild(u.layerElement),e.appendChild(s);var D=createNS("use");D.setAttribute("href","#"+a),t.appendChild(D),u.data.hd=!1,u.show()}o.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var o=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,a=0,t=u.length;a<t;)u[a]&&u[a].data.ind===o&&this.setElementAsMask(this.elem,u[a]),a+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var a=.3*this.filterManager.effectElements[0].p.v,t=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==t?0:a)+" "+(2==t?0:a)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var u=this.effectsManager.effectElements,a=u[0].p.v,t=u[1].p.v,s=u[3].p.v,D=1===u[2].p.v?s:u[4].p.v,x=u[5].p.v,M=u[6].p.v,w=u[7].p.v;this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(.01*D,.01*s,1),this.matrix.rotate(-w*degToRads),this.matrix.skewFromAxis(-x*degToRads,(M+90)*degToRads),this.matrix.translate(t[0],t[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=u())},4815:(o,u,a)=>{"use strict";a.d(u,{HE:()=>Jn});var t=a(7582),e=a(4650);function s(Z,re){return new Promise((pe,Re)=>
1{var Bt;Yt?Re(new Error("OneSignal script failed to load.")):null===(Bt=window.OneSignalDeferred)||void 0===Bt||Bt.push(jt=>{jt.login(Z,re).then(()=>pe()).catch(_t=>Re(_t))})})}function D(){return new Promise((Z,re)=>{var pe;Yt?re(new Error("OneSignal script failed to load.")):null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.logout().then(()=>Z()).catch(Bt=>re(Bt))})})}function x(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.setConsentGiven(Z).then(()=>re()).catch(jt=>pe(jt))})})}function M(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.setConsentRequired(Z).then(()=>re()).catch(jt=>pe(jt))})})}const tn={get onesignalId(){var Z,re;return null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.User)||void 0===re?void 0:re.onesignalId},get externalId(){var Z,re;return null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.User)||void 0===re?void 0:re.externalId},addAlias:function Q(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.addAlias(Z,re)})},addAliases:function O(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.addAliases(Z)})},removeAlias:function ee(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeAlias(Z)})},removeAliases:function ue(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeAliases(Z)})},addEmail:function _e(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.addEmail(Z)})},removeEmail:function be(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeEmail(Z)})},addSms:function Qe(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.addSms(Z)})},removeSms:function ze(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeSms(Z)})},addTag:function Oe(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.addTag(Z,re)})},addTags:function K(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.addTags(Z)})},removeTag:function X(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeTag(Z)})},removeTags:function V(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.removeTags(Z)})},getTags:function q(){var Z;return(0,t.mG)(this,void 0,void 0,function*(){let re;return yield null===(Z=window.OneSignalDeferred)||void 0===Z?void 0:Z.push(pe=>{re=pe.User.getTags()}),re})},addEventListener:function Ee(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.addEventListener(Z,re)})},removeEventListener:function ye(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.removeEventListener(Z,re)})},setLanguage:function nt(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.User.setLanguage(Z)})},getLanguage:function at(){var Z;return(0,t.mG)(this,void 0,void 0,function*(){let re;return yield null===(Z=window.OneSignalDeferred)||void 0===Z?void 0:Z.push(pe=>{re=pe.User.getLanguage()}),re})},trackEvent:function me(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.trackEvent(Z,re)})},PushSubscription:{get id(){var Z,re,pe;return null===(pe=null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.User)||void 0===re?void 0:re.PushSubscription)||void 0===pe?void 0:pe.id},get token(){var Z,re,pe;return null===(pe=null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.User)||void 0===re?void 0:re.PushSubscription)||void 0===pe?void 0:pe.token},get optedIn(){var Z,re,pe;return null===(pe=null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.User)||void 0===re?void 0:re.PushSubscription)||void 0===pe?void 0:pe.optedIn},optIn:function ve(){return new Promise((Z,re)=>{var pe;Yt?re(new Error("OneSignal script failed to load.")):null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.PushSubscription.optIn().then(()=>Z()).catch(Bt=>re(Bt))})})},optOut:function je(){return new Promise((Z,re)=>{var pe;Yt?re(new Error("OneSignal script failed to load.")):null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.PushSubscription.optOut().then(()=>Z()).catch(Bt=>re(Bt))})})},addEventListener:function Xe(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.PushSubscription.addEventListener(Z,re)})},removeEventListener:function rt(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.User.PushSubscription.removeEventListener(Z,re)})}}},yt={sendOutcome:function fe(Z,re){return new Promise((pe,Re)=>
1{var Bt;Yt?Re(new Error("OneSignal script failed to load.")):null===(Bt=window.OneSignalDeferred)||void 0===Bt||Bt.push(jt=>{jt.Session.sendOutcome(Z,re).then(()=>pe()).catch(_t=>Re(_t))})})},sendUniqueOutcome:function N(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Session.sendUniqueOutcome(Z).then(()=>re()).catch(jt=>pe(jt))})})}},bt={setLogLevel:function mt(Z){var re;null===(re=window.OneSignalDeferred)||void 0===re||re.push(pe=>{pe.Debug.setLogLevel(Z)})}},Ye={promptPush:function w(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Slidedown.promptPush(Z).then(()=>re()).catch(jt=>pe(jt))})})},promptPushCategories:function I(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Slidedown.promptPushCategories(Z).then(()=>re()).catch(jt=>pe(jt))})})},promptSms:function P(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Slidedown.promptSms(Z).then(()=>re()).catch(jt=>pe(jt))})})},promptEmail:function S(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Slidedown.promptEmail(Z).then(()=>re()).catch(jt=>pe(jt))})})},promptSmsAndEmail:function k(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Slidedown.promptSmsAndEmail(Z).then(()=>re()).catch(jt=>pe(jt))})})},addEventListener:function z(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.Slidedown.addEventListener(Z,re)})},removeEventListener:function F(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.Slidedown.removeEventListener(Z,re)})}},Nt={get permissionNative(){var Z,re,pe;return null!==(pe=null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.Notifications)||void 0===re?void 0:re.permissionNative)&&void 0!==pe?pe:"default"},get permission(){var Z,re,pe;return null!==(pe=null===(re=null===(Z=window.OneSignal)||void 0===Z?void 0:Z.Notifications)||void 0===re?void 0:re.permission)&&void 0!==pe&&pe},setDefaultUrl:function ne(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Notifications.setDefaultUrl(Z).then(()=>re()).catch(jt=>pe(jt))})})},setDefaultTitle:function B(Z){return new Promise((re,pe)=>{var Re;Yt?pe(new Error("OneSignal script failed to load.")):null===(Re=window.OneSignalDeferred)||void 0===Re||Re.push(Bt=>{Bt.Notifications.setDefaultTitle(Z).then(()=>re()).catch(jt=>pe(jt))})})},isPushSupported:function xn(){return bn()},requestPermission:function G(){return new Promise((Z,re)=>{var pe;Yt?re(new Error("OneSignal script failed to load.")):null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.Notifications.requestPermission().then(Bt=>Z(Bt)).catch(Bt=>re(Bt))})})},addEventListener:function W(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.Notifications.addEventListener(Z,re)})},removeEventListener:function Y(Z,re){var pe;null===(pe=window.OneSignalDeferred)||void 0===pe||pe.push(Re=>{Re.Notifications.removeEventListener(Z,re)})}},pn="onesignal-sdk",_n="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js";let It,zt=!1,Yt=!1;function bn(){return function vn(){return typeof PushSubscriptionOptions<"u"&&PushSubscriptionOptions.prototype.hasOwnProperty("applicationServerKey")}()||function Sn(){return window.safari&&typeof window.safari.pushNotification<"u"||function Rn(){return window.top!==window&&"Apple Computer, Inc."===navigator.vendor&&"MacIntel"===navigator.platform}()}()}typeof window<"u"&&(window.OneSignalDeferred=window.OneSignalDeferred||[]);let Jn=(()=>{class Z{constructor(){this.User=tn,this.Session=yt,this.Debug=bt,this.Slidedown=Ye,this.Notifications=Nt,this.login=s,this.logout=D,this.setConsentGiven=x,this.setConsentRequired=M}init(pe){var Re;return zt?Promise.reject("OneSignal is already initialized."):pe&&pe.appId?document?bn()?(void 0!==(null===(Re=pe.welcomeNotification)||void 0===Re?void 0:Re.disabled)&&(pe.welcomeNotification.disable=pe.welcomeNotification.disabled),function Un(Z){if(document.getElementById(pn))return;const re=document.createElement("script");re.id=pn,re.defer=!0,re.src=Z||_n,re.onerror=()=>{!function mi(){Yt=!0,It?.(new Error("OneSignal script failed to load.")),It=void 0}()},document.head.appendChild(re)}(pe.scriptSrc),new Promise((Bt,jt)=>{var _t;It=jt,null===(_t=window.OneSignalDeferred)||void 0===_t||_t.push(dt=>{dt.init(pe).then(()=>{zt=!0,It=void 0,Bt()}).catch(Be=>{It=void 0,jt(Be)})})})):Promise.reject(new Error("This browser does not support Web Push notifications.")):Promise.reject("Document is not defined."):Promise.reject("You need to provide your OneSignal appId.")}}
1return Z.\u0275fac=function(pe){return new(pe||Z)},Z.\u0275prov=e.Yz7({factory:function(){return new Z},token:Z,providedIn:"root"}),Z})()},1492:(o,u)=>{"use strict";function t(w){return"string"==typeof w?w.replace(/^0+|[^0-9kK]+/g,"").toUpperCase():""}u.t2=u.fW=void 0,u.fW=function e(w){if(/^0+/.test(w)||!/^0*(\d{1,3}(\.?\d{3})*)-?([\dkK])$/.test(w))return!1;for(var I=t(w),P=parseInt(I.slice(0,-1),10),S=I.slice(-1),k=0,z=1;P;P=Math.floor(P/10))z=(z+P%10*(9-k++%6))%11;return(z?z-1:"K").toString()===S},u.t2=function D(w,I){var P;if(void 0===I&&(I=!0),w=t(w),I){P=w.slice(-4,-1)+"-"+w.substr(w.length-1);for(var S=4;S<w.length;S+=3)P=w.slice(-3-S,-S)+"."+P}else P=w.slice(0,-1)+"-"+w.substr(w.length-1);return P}},1135:(o,u,a)=>{"use strict";a.d(u,{X:()=>e});var t=a(7579);class e extends t.x{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const x=super._subscribe(D);return!x.closed&&D.next(this._value),x}getValue(){const{hasError:D,thrownError:x,_value:M}=this;if(D)throw x;return this._throwIfClosed(),M}next(D){super.next(this._value=D)}}},9751:(o,u,a)=>{"use strict";a.d(u,{y:()=>I});var t=a(930),e=a(727),s=a(8822),D=a(9635),x=a(2416),M=a(576),w=a(2806);let I=(()=>{class z{constructor(ne){ne&&(this._subscribe=ne)}lift(ne){const B=new z;return B.source=this,B.operator=ne,B}subscribe(ne,B,G){const W=function k(z){return z&&z instanceof t.Lv||function S(z){return z&&(0,M.m)(z.next)&&(0,M.m)(z.error)&&(0,M.m)(z.complete)}(z)&&(0,e.Nn)(z)}(ne)?ne:new t.Hp(ne,B,G);return(0,w.x)(()=>{const{operator:Y,source:fe}=this;W.add(Y?Y.call(W,fe):fe?this._subscribe(W):this._trySubscribe(W))}),W}_trySubscribe(ne){try{return this._subscribe(ne)}catch(B){ne.error(B)}}forEach(ne,B){return new(B=P(B))((G,W)=>{const Y=new t.Hp({next:fe=>{try{ne(fe)}catch(N){W(N),Y.unsubscribe()}},error:W,complete:G});this.subscribe(Y)})}_subscribe(ne){var B;return null===(B=this.source)||void 0===B?void 0:B.subscribe(ne)}[s.L](){return this}pipe(...ne){return(0,D.U)(ne)(this)}toPromise(ne){return new(ne=P(ne))((B,G)=>{let W;this.subscribe(Y=>W=Y,Y=>G(Y),()=>B(W))})}}return z.create=F=>new z(F),z})();function P(z){var F;return null!==(F=z??x.v.Promise)&&void 0!==F?F:Promise}},4707:(o,u,a)=>{"use strict";a.d(u,{t:()=>s});var t=a(7579),e=a(6063);class s extends t.x{constructor(x=1/0,M=1/0,w=e.l){super(),this._bufferSize=x,this._windowTime=M,this._timestampProvider=w,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,x),this._windowTime=Math.max(1,M)}next(x){const{isStopped:M,_buffer:w,_infiniteTimeWindow:I,_timestampProvider:P,_windowTime:S}=this;M||(w.push(x),!I&&w.push(P.now()+S)),this._trimBuffer(),super.next(x)}_subscribe(x){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(x),{_infiniteTimeWindow:w,_buffer:I}=this,P=I.slice();for(let S=0;S<P.length&&!x.closed;S+=w?1:2)x.next(P[S]);return this._checkFinalizedStatuses(x),M}_trimBuffer(){const{_bufferSize:x,_timestampProvider:M,_buffer:w,_infiniteTimeWindow:I}=this,P=(I?1:2)*x;if(x<1/0&&P<w.length&&w.splice(0,w.length-P),!I){const S=M.now();let k=0;for(let z=1;z<w.length&&w[z]<=S;z+=2)k=z;k&&w.splice(0,k+1)}}}},7579:(o,u,a)=>{"use strict";a.d(u,{x:()=>w});var t=a(9751),e=a(727);const D=(0,a(3888).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var x=a(8737),M=a(2806);let w=(()=>{class P extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(k){const z=new I(this,this);return z.operator=k,z}_throwIfClosed(){if(this.closed)throw new D}next(k){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const z of this.currentObservers)z.next(k)}})}error(k){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=k;const{observers:z}=this;for(;z.length;)z.shift().error(k)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:k}=this;for(;k.length;)k.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var k;return(null===(k=this.observers)||void 0===k?void 0:k.length)>0}_trySubscribe(k){return this._throwIfClosed(),super._trySubscribe(k)}_subscribe(k){return this._throwIfClosed(),this._checkFinalizedStatuses(k),this._innerSubscribe(k)}_innerSubscribe(k){const{hasError:z,isStopped:F,observers:ne}=this;return z||F?e.Lc:(this.currentObservers=null,ne.push(k),new e.w0(()=>{this.currentObservers=null,(0,x.P)(ne,k)}))}_checkFinalizedStatuses(k){const{hasError:z,thrownError:F,isStopped:ne}=this;z?k.error(F):ne&&k.complete()}asObservable(){const k=new t.y;return k.source=this,k}}return P.create=(S,k)=>new I(S,k),P})();class I extends w{constructor(S,k){super(),this.destination=S,this.source=k}next(S){var k,z;null===(z=null===(k=this.destination)||void 0===k?void 0:k.next)||void 0===z||z.call(k,S)}error(S){var k,z;null===(z=null===(k=this.destination)||void 0===k?void 0:k.error)||void 0===z||z.call(k,S)}complete(){var S,k;null===(k=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===k||k.call(S)}_subscribe(S){var k,z;return null!==(z=null===(k=this.source)||void 0===k?void 0:k.subscribe(S))&&void 0!==z?z:e.Lc}}},930:(o,u,a)=>{"use strict";a.d(u,{Hp:()=>G,Lv:()=>z});var t=a(576),e=a(727),s=a(2416),D=a(7849),x=a(5032);const M=P("C",void 0,void 0);function P(Q,O,ee){return{kind:Q,value:O,error:ee}}var S=a(3410),k=a(2806);class z extends e.w0{constructor(O){super(),this.isStopped=!1,O?(this.destination=O,(0,e.Nn)(O)&&O.add(this)):this.destination=N}static create(O,ee,ue){return new G(O,ee,ue)}next(O){this.isStopped?fe(function I(Q){return P("N",Q,void 0)}(O),this):this._next(O)}error(O){this.isStopped?fe(function w(Q){return P("E",void 0,Q)}(O),this):(this.isStopped=!0,this._error(O))}complete(){this.isStopped?fe(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(O){this.destination.next(O)}_error(O){try{this.destination.error(O)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const F=Function.prototype.bind;function ne(Q,O){return F.call(Q,O)}class B{constructor(O){this.partialObserver=O}next(O){const{partialObserver:ee}=this;if(ee.next)try{ee.next(O)}catch(ue){W(ue)}}error(O){const{partialObserver:ee}=this;if(ee.error)try{ee.error(O)}catch(ue){W(ue)}else W(O)}complete(){const{partialObserver:O}=this;if(O.complete)try{O.complete()}catch(ee){W(ee)}
1}}class G extends z{constructor(O,ee,ue){let _e;if(super(),(0,t.m)(O)||!O)_e={next:O??void 0,error:ee??void 0,complete:ue??void 0};else{let be;this&&s.v.useDeprecatedNextContext?(be=Object.create(O),be.unsubscribe=()=>this.unsubscribe(),_e={next:O.next&&ne(O.next,be),error:O.error&&ne(O.error,be),complete:O.complete&&ne(O.complete,be)}):_e=O}this.destination=new B(_e)}}function W(Q){s.v.useDeprecatedSynchronousErrorHandling?(0,k.O)(Q):(0,D.h)(Q)}function fe(Q,O){const{onStoppedNotification:ee}=s.v;ee&&S.z.setTimeout(()=>ee(Q,O))}const N={closed:!0,next:x.Z,error:function Y(Q){throw Q},complete:x.Z}},727:(o,u,a)=>{"use strict";a.d(u,{Lc:()=>M,w0:()=>x,Nn:()=>w});var t=a(576);const s=(0,a(3888).d)(P=>function(k){P(this),this.message=k?`${k.length} errors occurred during unsubscription:\n${k.map((z,F)=>`${F+1}) ${z.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=k});var D=a(8737);class x{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:k}=this;if(k)if(this._parentage=null,Array.isArray(k))for(const ne of k)ne.remove(this);else k.remove(this);const{initialTeardown:z}=this;if((0,t.m)(z))try{z()}catch(ne){S=ne instanceof s?ne.errors:[ne]}const{_finalizers:F}=this;if(F){this._finalizers=null;for(const ne of F)try{I(ne)}catch(B){S=S??[],B instanceof s?S=[...S,...B.errors]:S.push(B)}}if(S)throw new s(S)}}add(S){var k;if(S&&S!==this)if(this.closed)I(S);else{if(S instanceof x){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._finalizers=null!==(k=this._finalizers)&&void 0!==k?k:[]).push(S)}}_hasParent(S){const{_parentage:k}=this;return k===S||Array.isArray(k)&&k.includes(S)}_addParent(S){const{_parentage:k}=this;this._parentage=Array.isArray(k)?(k.push(S),k):k?[k,S]:S}_removeParent(S){const{_parentage:k}=this;k===S?this._parentage=null:Array.isArray(k)&&(0,D.P)(k,S)}remove(S){const{_finalizers:k}=this;k&&(0,D.P)(k,S),S instanceof x&&S._removeParent(this)}}x.EMPTY=(()=>{const P=new x;return P.closed=!0,P})();const M=x.EMPTY;function w(P){return P instanceof x||P&&"closed"in P&&(0,t.m)(P.remove)&&(0,t.m)(P.add)&&(0,t.m)(P.unsubscribe)}function I(P){(0,t.m)(P)?P():P.unsubscribe()}},2416:(o,u,a)=>{"use strict";a.d(u,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(o,u,a)=>{"use strict";a.d(u,{a:()=>S});var t=a(9751),e=a(4742),s=a(457),D=a(4671),x=a(3268),M=a(3269),w=a(1810),I=a(5403),P=a(9672);function S(...F){const ne=(0,M.yG)(F),B=(0,M.jO)(F),{args:G,keys:W}=(0,e.D)(F);if(0===G.length)return(0,s.D)([],ne);const Y=new t.y(function k(F,ne,B=D.y){return G=>{z(ne,()=>{const{length:W}=F,Y=new Array(W);let fe=W,N=W;for(let Q=0;Q<W;Q++)z(ne,()=>{const O=(0,s.D)(F[Q],ne);let ee=!1;O.subscribe((0,I.x)(G,ue=>{Y[Q]=ue,ee||(ee=!0,N--),N||G.next(B(Y.slice()))},()=>{--fe||G.complete()}))},G)},G)}}(G,ne,W?fe=>(0,w.n)(W,fe):D.y));return B?Y.pipe((0,x.Z)(B)):Y}function z(F,ne,B){F?(0,P.f)(B,F,ne):ne()}},7272:(o,u,a)=>{"use strict";a.d(u,{z:()=>x});var t=a(8189),s=a(3269),D=a(457);function x(...M){return function e(){return(0,t.J)(1)}()((0,D.D)(M,(0,s.yG)(M)))}},9770:(o,u,a)=>{"use strict";a.d(u,{P:()=>s});var t=a(9751),e=a(8421);function s(D){return new t.y(x=>{(0,e.Xf)(D()).subscribe(x)})}},515:(o,u,a)=>{"use strict";a.d(u,{E:()=>e});const e=new(a(9751).y)(x=>x.complete())},4128:(o,u,a)=>{"use strict";a.d(u,{D:()=>I});var t=a(9751),e=a(4742),s=a(8421),D=a(3269),x=a(5403),M=a(3268),w=a(1810);function I(...P){const S=(0,D.jO)(P),{args:k,keys:z}=(0,e.D)(P),F=new t.y(ne=>{const{length:B}=k;if(!B)return void ne.complete();const G=new Array(B);let W=B,Y=B;for(let fe=0;fe<B;fe++){let N=!1;(0,s.Xf)(k[fe]).subscribe((0,x.x)(ne,Q=>{N||(N=!0,Y--),G[fe]=Q},()=>W--,void 0,()=>{(!W||!N)&&(Y||ne.next(z?(0,w.n)(z,G):G),ne.complete())}))}});return S?F.pipe((0,M.Z)(S)):F}},457:(o,u,a)=>{"use strict";a.d(u,{D:()=>ee});var t=a(8421),e=a(5363),s=a(4482);function D(ue,_e=0){return(0,s.e)((be,Qe)=>{Qe.add(ue.schedule(()=>be.subscribe(Qe),_e))})}var w=a(9751),P=a(2202),S=a(576),k=a(9672);function F(ue,_e){if(!ue)throw new Error("Iterable cannot be null");return new w.y(be=>{(0,k.f)(be,_e,()=>{const Qe=ue[Symbol.asyncIterator]();(0,k.f)(be,_e,()=>{Qe.next().then(ze=>{ze.done?be.complete():be.next(ze.value)})},0,!0)})})}var ne=a(3670),B=a(8239),G=a(1144),W=a(6495),Y=a(2206),fe=a(4532),N=a(3260);function ee(ue,_e){return _e?function O(ue,_e){if(null!=ue){if((0,ne.c)(ue))return function x(ue,_e){return(0,t.Xf)(ue).pipe(D(_e),(0,e.Q)(_e))}(ue,_e);if((0,G.z)(ue))return function I(ue,_e){return new w.y(be=>{let Qe=0;return _e.schedule(function(){Qe===ue.length?be.complete():(be.next(ue[Qe++]),be.closed||this.schedule())})})}(ue,_e);if((0,B.t)(ue))return function M(ue,_e){return(0,t.Xf)(ue).pipe(D(_e),(0,e.Q)(_e))}(ue,_e);if((0,Y.D)(ue))return F(ue,_e);if((0,W.T)(ue))return function z(ue,_e){return new w.y(be=>{let Qe;return(0,k.f)(be,_e,()=>{Qe=ue[P.h](),(0,k.f)(be,_e,()=>{let ze,Oe;try{({value:ze,done:Oe}=Qe.next())}catch(K){return void be.error(K)}Oe?be.complete():be.next(ze)},0,!0)}),()=>(0,S.m)(Qe?.return)&&Qe.return()})}(ue,_e);if((0,N.L)(ue))return function Q(ue,_e){return F((0,N.Q)(ue),_e)}(ue,_e)}throw(0,fe.z)(ue)}(ue,_e):(0,t.Xf)(ue)}},8421:(o,u,a)=>{"use strict";a.d(u,{Xf:()=>F});var t=a(7582),e=a(1144),s=a(8239),D=a(9751),x=a(3670),M=a(2206),w=a(4532),I=a(6495),P=a(3260),S=a(576),k=a(7849),z=a(8822);function F(Q){if(Q instanceof D.y)return Q;
1if(null!=Q){if((0,x.c)(Q))return function ne(Q){return new D.y(O=>{const ee=Q[z.L]();if((0,S.m)(ee.subscribe))return ee.subscribe(O);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Q);if((0,e.z)(Q))return function B(Q){return new D.y(O=>{for(let ee=0;ee<Q.length&&!O.closed;ee++)O.next(Q[ee]);O.complete()})}(Q);if((0,s.t)(Q))return function G(Q){return new D.y(O=>{Q.then(ee=>{O.closed||(O.next(ee),O.complete())},ee=>O.error(ee)).then(null,k.h)})}(Q);if((0,M.D)(Q))return Y(Q);if((0,I.T)(Q))return function W(Q){return new D.y(O=>{for(const ee of Q)if(O.next(ee),O.closed)return;O.complete()})}(Q);if((0,P.L)(Q))return function fe(Q){return Y((0,P.Q)(Q))}(Q)}throw(0,w.z)(Q)}function Y(Q){return new D.y(O=>{(function N(Q,O){var ee,ue,_e,be;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ee=(0,t.KL)(Q);!(ue=yield ee.next()).done;)if(O.next(ue.value),O.closed)return}catch(Qe){_e={error:Qe}}finally{try{ue&&!ue.done&&(be=ee.return)&&(yield be.call(ee))}finally{if(_e)throw _e.error}}O.complete()})})(Q,O).catch(ee=>O.error(ee))})}},6451:(o,u,a)=>{"use strict";a.d(u,{T:()=>M});var t=a(8189),e=a(8421),s=a(515),D=a(3269),x=a(457);function M(...w){const I=(0,D.yG)(w),P=(0,D._6)(w,1/0),S=w;return S.length?1===S.length?(0,e.Xf)(S[0]):(0,t.J)(P)((0,x.D)(S,I)):s.E}},9646:(o,u,a)=>{"use strict";a.d(u,{of:()=>s});var t=a(3269),e=a(457);function s(...D){const x=(0,t.yG)(D);return(0,e.D)(D,x)}},2843:(o,u,a)=>{"use strict";a.d(u,{_:()=>s});var t=a(9751),e=a(576);function s(D,x){const M=(0,e.m)(D)?D:()=>D,w=I=>I.error(M());return new t.y(x?I=>x.schedule(w,0,I):w)}},5963:(o,u,a)=>{"use strict";a.d(u,{H:()=>x});var t=a(9751),e=a(4986),s=a(3532);function x(M=0,w,I=e.P){let P=-1;return null!=w&&((0,s.K)(w)?I=w:P=w),new t.y(S=>{let k=function D(M){return M instanceof Date&&!isNaN(M)}(M)?+M-I.now():M;k<0&&(k=0);let z=0;return I.schedule(function(){S.closed||(S.next(z++),0<=P?this.schedule(void 0,P):S.complete())},k)})}},5403:(o,u,a)=>{"use strict";a.d(u,{x:()=>e});var t=a(930);function e(D,x,M,w,I){return new s(D,x,M,w,I)}class s extends t.Lv{constructor(x,M,w,I,P,S){super(x),this.onFinalize=P,this.shouldUnsubscribe=S,this._next=M?function(k){try{M(k)}catch(z){x.error(z)}}:super._next,this._error=I?function(k){try{I(k)}catch(z){x.error(z)}finally{this.unsubscribe()}}:super._error,this._complete=w?function(){try{w()}catch(k){x.error(k)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var x;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:M}=this;super.unsubscribe(),!M&&(null===(x=this.onFinalize)||void 0===x||x.call(this))}}}},262:(o,u,a)=>{"use strict";a.d(u,{K:()=>D});var t=a(8421),e=a(5403),s=a(4482);function D(x){return(0,s.e)((M,w)=>{let S,I=null,P=!1;I=M.subscribe((0,e.x)(w,void 0,void 0,k=>{S=(0,t.Xf)(x(k,D(x)(M))),I?(I.unsubscribe(),I=null,S.subscribe(w)):P=!0})),P&&(I.unsubscribe(),I=null,S.subscribe(w))})}},4351:(o,u,a)=>{"use strict";a.d(u,{b:()=>s});var t=a(6099),e=a(576);function s(D,x){return(0,e.m)(x)?(0,t.z)(D,x,1):(0,t.z)(D,1)}},8372:(o,u,a)=>{"use strict";a.d(u,{b:()=>D});var t=a(4986),e=a(4482),s=a(5403);function D(x,M=t.z){return(0,e.e)((w,I)=>{let P=null,S=null,k=null;const z=()=>{if(P){P.unsubscribe(),P=null;const ne=S;S=null,I.next(ne)}};function F(){const ne=k+x,B=M.now();if(B<ne)return P=this.schedule(void 0,ne-B),void I.add(P);z()}w.subscribe((0,s.x)(I,ne=>{S=ne,k=M.now(),P||(P=M.schedule(F,x),I.add(P))},()=>{z(),I.complete()},void 0,()=>{S=P=null}))})}},6590:(o,u,a)=>{"use strict";a.d(u,{d:()=>s});var t=a(4482),e=a(5403);function s(D){return(0,t.e)((x,M)=>{let w=!1;x.subscribe((0,e.x)(M,I=>{w=!0,M.next(I)},()=>{w||M.next(D),M.complete()}))})}},1884:(o,u,a)=>{"use strict";a.d(u,{x:()=>D});var t=a(4671),e=a(4482),s=a(5403);function D(M,w=t.y){return M=M??x,(0,e.e)((I,P)=>{let S,k=!0;I.subscribe((0,s.x)(P,z=>{const F=w(z);(k||!M(S,F))&&(k=!1,S=F,P.next(z))}))})}function x(M,w){return M===w}},9300:(o,u,a)=>{"use strict";a.d(u,{h:()=>s});var t=a(4482),e=a(5403);function s(D,x){return(0,t.e)((M,w)=>{let I=0;M.subscribe((0,e.x)(w,P=>D.call(x,P,I++)&&w.next(P)))})}},8746:(o,u,a)=>{"use strict";a.d(u,{x:()=>e});var t=a(4482);function e(s){return(0,t.e)((D,x)=>{try{D.subscribe(x)}finally{x.add(s)}})}},590:(o,u,a)=>{"use strict";a.d(u,{P:()=>w});var t=a(6805),e=a(9300),s=a(5698),D=a(6590),x=a(8068),M=a(4671);function w(I,P){const S=arguments.length>=2;return k=>
1k.pipe(I?(0,e.h)((z,F)=>I(z,F,k)):M.y,(0,s.q)(1),S?(0,D.d)(P):(0,x.T)(()=>new t.K))}},4004:(o,u,a)=>{"use strict";a.d(u,{U:()=>s});var t=a(4482),e=a(5403);function s(D,x){return(0,t.e)((M,w)=>{let I=0;M.subscribe((0,e.x)(w,P=>{w.next(D.call(x,P,I++))}))})}},9718:(o,u,a)=>{"use strict";a.d(u,{h:()=>e});var t=a(4004);function e(s){return(0,t.U)(()=>s)}},8189:(o,u,a)=>{"use strict";a.d(u,{J:()=>s});var t=a(6099),e=a(4671);function s(D=1/0){return(0,t.z)(e.y,D)}},2733:(o,u,a)=>{"use strict";a.d(u,{p:()=>D});var t=a(8421),e=a(9672),s=a(5403);function D(x,M,w,I,P,S,k,z){const F=[];let ne=0,B=0,G=!1;const W=()=>{G&&!F.length&&!ne&&M.complete()},Y=N=>ne<I?fe(N):F.push(N),fe=N=>{S&&M.next(N),ne++;let Q=!1;(0,t.Xf)(w(N,B++)).subscribe((0,s.x)(M,O=>{P?.(O),S?Y(O):M.next(O)},()=>{Q=!0},void 0,()=>{if(Q)try{for(ne--;F.length&&ne<I;){const O=F.shift();k?(0,e.f)(M,k,()=>fe(O)):fe(O)}W()}catch(O){M.error(O)}}))};return x.subscribe((0,s.x)(M,Y,()=>{G=!0,W()})),()=>{z?.()}}},6099:(o,u,a)=>{"use strict";a.d(u,{z:()=>M});var t=a(4004),e=a(8421),s=a(4482),D=a(2733),x=a(576);function M(w,I,P=1/0){return(0,x.m)(I)?M((S,k)=>(0,t.U)((z,F)=>I(S,z,k,F))((0,e.Xf)(w(S,k))),P):("number"==typeof I&&(P=I),(0,s.e)((S,k)=>(0,D.p)(S,k,w,P)))}},5363:(o,u,a)=>{"use strict";a.d(u,{Q:()=>D});var t=a(9672),e=a(4482),s=a(5403);function D(x,M=0){return(0,e.e)((w,I)=>{w.subscribe((0,s.x)(I,P=>(0,t.f)(I,x,()=>I.next(P),M),()=>(0,t.f)(I,x,()=>I.complete(),M),P=>(0,t.f)(I,x,()=>I.error(P),M)))})}},3099:(o,u,a)=>{"use strict";a.d(u,{B:()=>x});var t=a(8421),e=a(7579),s=a(930),D=a(4482);function x(w={}){const{connector:I=(()=>new e.x),resetOnError:P=!0,resetOnComplete:S=!0,resetOnRefCountZero:k=!0}=w;return z=>{let F,ne,B,G=0,W=!1,Y=!1;const fe=()=>{ne?.unsubscribe(),ne=void 0},N=()=>{fe(),F=B=void 0,W=Y=!1},Q=()=>{const O=F;N(),O?.unsubscribe()};return(0,D.e)((O,ee)=>{G++,!Y&&!W&&fe();const ue=B=B??I();ee.add(()=>{G--,0===G&&!Y&&!W&&(ne=M(Q,k))}),ue.subscribe(ee),!F&&G>0&&(F=new s.Hp({next:_e=>ue.next(_e),error:_e=>{Y=!0,fe(),ne=M(N,P,_e),ue.error(_e)},complete:()=>{W=!0,fe(),ne=M(N,S),ue.complete()}}),(0,t.Xf)(O).subscribe(F))})(z)}}function M(w,I,...P){if(!0===I)return void w();if(!1===I)return;const S=new s.Hp({next:()=>{S.unsubscribe(),w()}});return I(...P).subscribe(S)}},4782:(o,u,a)=>{"use strict";a.d(u,{d:()=>s});var t=a(4707),e=a(3099);function s(D,x,M){let w,I=!1;return D&&"object"==typeof D?({bufferSize:w=1/0,windowTime:x=1/0,refCount:I=!1,scheduler:M}=D):w=D??1/0,(0,e.B)({connector:()=>new t.t(w,x,M),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:I})}},8675:(o,u,a)=>{"use strict";a.d(u,{O:()=>D});var t=a(7272),e=a(3269),s=a(4482);function D(...x){const M=(0,e.yG)(x);return(0,s.e)((w,I)=>{(M?(0,t.z)(x,w,M):(0,t.z)(x,w)).subscribe(I)})}},3900:(o,u,a)=>{"use strict";a.d(u,{w:()=>D});var t=a(8421),e=a(4482),s=a(5403);function D(x,M){return(0,e.e)((w,I)=>{let P=null,S=0,k=!1;const z=()=>k&&!P&&I.complete();w.subscribe((0,s.x)(I,F=>{P?.unsubscribe();let ne=0;const B=S++;(0,t.Xf)(x(F,B)).subscribe(P=(0,s.x)(I,G=>I.next(M?M(F,G,B,ne++):G),()=>{P=null,z()}))},()=>{k=!0,z()}))})}},5698:(o,u,a)=>{"use strict";a.d(u,{q:()=>D});var t=a(515),e=a(4482),s=a(5403);function D(x){return x<=0?()=>t.E:(0,e.e)((M,w)=>{let I=0;M.subscribe((0,s.x)(w,P=>{++I<=x&&(w.next(P),x<=I&&w.complete())}))})}},2722:(o,u,a)=>{"use strict";a.d(u,{R:()=>x});var t=a(4482),e=a(5403),s=a(8421),D=a(5032);function x(M){return(0,t.e)((w,I)=>{(0,s.Xf)(M).subscribe((0,e.x)(I,()=>I.complete(),D.Z)),!I.closed&&w.subscribe(I)})}},2529:(o,u,a)=>{"use strict";a.d(u,{o:()=>s});var t=a(4482),e=a(5403);function s(D,x=!1){return(0,t.e)((M,w)=>{let I=0;M.subscribe((0,e.x)(w,P=>{const S=D(P,I++);(S||x)&&w.next(P),!S&&w.complete()}))})}},8505:(o,u,a)=>{"use strict";a.d(u,{b:()=>x});var t=a(576),e=a(4482),s=a(5403),D=a(4671);function x(M,w,I){const P=(0,t.m)(M)||w||I?{next:M,error:w,complete:I}:M;return P?(0,e.e)((S,k)=>{var z;null===(z=P.subscribe)||void 0===z||z.call(P);let F=!0;S.subscribe((0,s.x)(k,ne=>{var B;null===(B=P.next)||void 0===B||B.call(P,ne),k.next(ne)},()=>{var ne;F=!1,null===(ne=P.complete)||void 0===ne||ne.call(P),k.complete()},ne=>{var B;F=!1,null===(B=P.error)||void 0===B||B.call(P,ne),k.error(ne)},()=>{var ne,B;F&&(null===(ne=P.unsubscribe)||void 0===ne||ne.call(P)),null===(B=P.finalize)||void 0===B||B.call(P)}))}):D.y}},8068:(o,u,a)=>{"use strict";a.d(u,{T:()=>D});var t=a(6805),e=a(4482),s=a(5403);function D(M=x){return(0,e.e)((w,I)=>{let P=!1;w.subscribe((0,s.x)(I,S=>{P=!0,I.next(S)},()=>P?I.complete():I.error(M())))})}function x(){return new t.K}},4408:(o,u,a)=>{"use strict";a.d(u,{o:()=>x});var t=a(727);class e extends t.w0{constructor(w,I){super()}schedule(w,I=0){return this}}const s={setInterval(M,w,...I){const{delegate:P}=s;return P?.setInterval?P.setInterval(M,w,...I):setInterval(M,w,...I)},clearInterval(M){const{delegate:w}=s;return(w?.clearInterval||clearInterval)(M)},delegate:void 0};var D=a(8737);
vendor: 6,264 bytes, line 1
1class x extends e{constructor(w,I){super(w,I),this.scheduler=w,this.work=I,this.pending=!1}schedule(w,I=0){var P;if(this.closed)return this;this.state=w;const S=this.id,k=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(k,S,I)),this.pending=!0,this.delay=I,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId(k,this.id,I),this}requestAsyncId(w,I,P=0){return s.setInterval(w.flush.bind(w,this),P)}recycleAsyncId(w,I,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return I;null!=I&&s.clearInterval(I)}execute(w,I){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(w,I);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(w,I){let S,P=!1;try{this.work(w)}catch(k){P=!0,S=k||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),S}unsubscribe(){if(!this.closed){const{id:w,scheduler:I}=this,{actions:P}=I;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.P)(P,this),null!=w&&(this.id=this.recycleAsyncId(I,w,null)),this.delay=null,super.unsubscribe()}}}},7565:(o,u,a)=>{"use strict";a.d(u,{v:()=>s});var t=a(6063);class e{constructor(x,M=e.now){this.schedulerActionCtor=x,this.now=M}schedule(x,M=0,w){return new this.schedulerActionCtor(this,x).schedule(w,M)}}e.now=t.l.now;class s extends e{constructor(x,M=e.now){super(x,M),this.actions=[],this._active=!1}flush(x){const{actions:M}=this;if(this._active)return void M.push(x);let w;this._active=!0;do{if(w=x.execute(x.state,x.delay))break}while(x=M.shift());if(this._active=!1,w){for(;x=M.shift();)x.unsubscribe();throw w}}}},6406:(o,u,a)=>{"use strict";a.d(u,{Z:()=>w});var t=a(4408),e=a(727);const s={schedule(P){let S=requestAnimationFrame,k=cancelAnimationFrame;const{delegate:z}=s;z&&(S=z.requestAnimationFrame,k=z.cancelAnimationFrame);const F=S(ne=>{k=void 0,P(ne)});return new e.w0(()=>k?.(F))},requestAnimationFrame(...P){const{delegate:S}=s;return(S?.requestAnimationFrame||requestAnimationFrame)(...P)},cancelAnimationFrame(...P){const{delegate:S}=s;return(S?.cancelAnimationFrame||cancelAnimationFrame)(...P)},delegate:void 0};var x=a(7565);const w=new class M extends x.v{flush(S){this._active=!0;const k=this._scheduled;this._scheduled=void 0;const{actions:z}=this;let F;S=S||z.shift();do{if(F=S.execute(S.state,S.delay))break}while((S=z[0])&&S.id===k&&z.shift());if(this._active=!1,F){for(;(S=z[0])&&S.id===k&&z.shift();)S.unsubscribe();throw F}}}(class D extends t.o{constructor(S,k){super(S,k),this.scheduler=S,this.work=k}requestAsyncId(S,k,z=0){return null!==z&&z>0?super.requestAsyncId(S,k,z):(S.actions.push(this),S._scheduled||(S._scheduled=s.requestAnimationFrame(()=>S.flush(void 0))))}recycleAsyncId(S,k,z=0){var F;if(null!=z?z>0:this.delay>0)return super.recycleAsyncId(S,k,z);const{actions:ne}=S;null!=k&&(null===(F=ne[ne.length-1])||void 0===F?void 0:F.id)!==k&&(s.cancelAnimationFrame(k),S._scheduled=void 0)}})},4986:(o,u,a)=>{"use strict";a.d(u,{P:()=>D,z:()=>s});var t=a(4408);const s=new(a(7565).v)(t.o),D=s},6063:(o,u,a)=>{"use strict";a.d(u,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},3410:(o,u,a)=>{"use strict";a.d(u,{z:()=>t});const t={setTimeout(e,s,...D){const{delegate:x}=t;return x?.setTimeout?x.setTimeout(e,s,...D):setTimeout(e,s,...D)},clearTimeout(e){const{delegate:s}=t;return(s?.clearTimeout||clearTimeout)(e)},delegate:void 0}},2202:(o,u,a)=>{"use strict";a.d(u,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(o,u,a)=>{"use strict";a.d(u,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(o,u,a)=>{"use strict";a.d(u,{K:()=>e});const e=(0,a(3888).d)(s=>function(){s(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(o,u,a)=>{"use strict";a.d(u,{_6:()=>M,jO:()=>D,yG:()=>x});var t=a(576),e=a(3532);function s(w){return w[w.length-1]}function D(w){return(0,t.m)(s(w))?w.pop():void 0}function x(w){return(0,e.K)(s(w))?w.pop():void 0}function M(w,I){return"number"==typeof s(w)?w.pop():I}},4742:(o,u,a)=>{"use strict";a.d(u,{D:()=>x});const{isArray:t}=Array,{getPrototypeOf:e,prototype:s,keys:D}=Object;function x(w){if(1===w.length){const I=w[0];if(t(I))return{args:I,keys:null};if(function M(w){return w&&"object"==typeof w&&e(w)===s}(I)){const P=D(I);return{args:P.map(S=>I[S]),keys:P}}}return{args:w,keys:null}}},8737:(o,u,a)=>{"use strict";function t(e,s){if(e){const D=e.indexOf(s);0<=D&&e.splice(D,1)}}a.d(u,{P:()=>t})},3888:(o,u,a)=>{"use strict";function t(e){const D=e(x=>{Error.call(x),x.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}a.d(u,{d:()=>t})},1810:(o,u,a)=>{"use strict";function t(e,s){return e.reduce((D,x,M)=>(D[x]=s[M],D),{})}a.d(u,{n:()=>t})},2806:(o,u,a)=>{"use strict";a.d(u,{O:()=>D,x:()=>s});var t=a(2416);let e=null;function s(x){if(t.v.useDeprecatedSynchronousErrorHandling){const M=!e;if(M&&(e={errorThrown:!1,error:null}),x(),M){const{errorThrown:w,error:I}=e;if(e=null,w)throw I}}else x()}function D(x){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=x)}},9672:(o,u,a)=>{"use strict";function t(e,s,D,x=0,M=!1){const w=s.schedule(function(){D(),M?e.add(this.schedule(null,x)):this.unsubscribe()},x);if(e.add(w),!M)return w}a.d(u,{f:()=>t})},4671:(o,u,a)=>{"use strict";function t(e){return e}a.d(u,{y:()=>t})},1144:(o,u,a)=>{"use strict";a.d(u,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(o,u,a)=>{"use strict";a.d(u,{D:()=>e});var t=a(576);function e(s){return Symbol.asyncIterator&&(0,t.m)(s?.[Symbol.asyncIterator])}},576:(o,u,a)=>{"use strict";function t(e){return"function"==typeof e}a.d(u,{m:()=>t})},3670:(o,u,a)=>{"use strict";a.d(u,{c:()=>s});var t=a(8822),e=a(576);function s(D){return(0,e.m)(D[t.L])}},6495:(o,u,a)=>{"use strict";a.d(u,{T:()=>s});var t=a(2202),e=a(576);function s(D){return(0,e.m)(D?.[t.h])}},8239:(o,u,a)=>{"use strict";a.d(u,{t:()=>e});var t=a(576);function e(s){return(0,t.m)(s?.then)}},3260:(o,u,a)=>{"use strict";a.d(u,{L:()=>D,Q:()=>s});var t=a(7582),e=a(576);function s(x){return(0,t.FC)(this,arguments,function*(){const w=x.getReader();try{for(;;
1){const{value:I,done:P}=yield(0,t.qq)(w.read());if(P)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(I)}}finally{w.releaseLock()}})}function D(x){return(0,e.m)(x?.getReader)}},3532:(o,u,a)=>{"use strict";a.d(u,{K:()=>e});var t=a(576);function e(s){return s&&(0,t.m)(s.schedule)}},4482:(o,u,a)=>{"use strict";a.d(u,{A:()=>e,e:()=>s});var t=a(576);function e(D){return(0,t.m)(D?.lift)}function s(D){return x=>{if(e(x))return x.lift(function(M){try{return D(M,this)}catch(w){this.error(w)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(o,u,a)=>{"use strict";a.d(u,{Z:()=>D});var t=a(4004);const{isArray:e}=Array;function D(x){return(0,t.U)(M=>function s(x,M){return e(M)?x(...M):x(M)}(x,M))}},5032:(o,u,a)=>{"use strict";function t(){}a.d(u,{Z:()=>t})},9635:(o,u,a)=>{"use strict";a.d(u,{U:()=>s,z:()=>e});var t=a(4671);function e(...D){return s(D)}function s(D){return 0===D.length?t.y:1===D.length?D[0]:function(M){return D.reduce((w,I)=>I(w),M)}}},7849:(o,u,a)=>{"use strict";a.d(u,{h:()=>s});var t=a(2416),e=a(3410);function s(D){e.z.setTimeout(()=>{const{onUnhandledError:x}=t.v;if(!x)throw D;x(D)})}},4532:(o,u,a)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(u,{z:()=>t})},7340:(o,u,a)=>{"use strict";a.d(u,{IO:()=>B,LC:()=>
vendor: 4,214 bytes, line 1
1e,SB:()=>P,X$:()=>D,ZE:()=>fe,ZN:()=>Y,_7:()=>ne,_j:()=>t,eR:()=>k,jt:()=>x,k1:()=>N,l3:()=>s,oB:()=>I,oQ:()=>z,pV:()=>F,vP:()=>w});class t{}class e{}const s="*";function D(Q,O){return{type:7,name:Q,definitions:O,options:{}}}function x(Q,O=null){return{type:4,styles:O,timings:Q}}function w(Q,O=null){return{type:2,steps:Q,options:O}}function I(Q){return{type:6,styles:Q,offset:null}}function P(Q,O,ee){return{type:0,name:Q,styles:O,options:ee}}function k(Q,O,ee=null){return{type:1,expr:Q,animation:O,options:ee}}function z(Q,O=null){return{type:8,animation:Q,options:O}}function F(Q=null){return{type:9,options:Q}}function ne(Q,O=null){return{type:10,animation:Q,options:O}}function B(Q,O,ee=null){return{type:11,selector:Q,animation:O,options:ee}}function W(Q){Promise.resolve().then(Q)}class Y{constructor(O=0,ee=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=O+ee}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){W(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(O=>O()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(O){this._position=this.totalTime?O*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(O){const ee="start"==O?this._onStartFns:this._onDoneFns;ee.forEach(ue=>ue()),ee.length=0}}class fe{constructor(O){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=O;let ee=0,ue=0,_e=0;const be=this.players.length;0==be?W(()=>this._onFinish()):this.players.forEach(Qe=>{Qe.onDone(()=>{++ee==be&&this._onFinish()}),Qe.onDestroy(()=>{++ue==be&&this._onDestroy()}),Qe.onStart(()=>{++_e==be&&this._onStart()})}),this.totalTime=this.players.reduce((Qe,ze)=>Math.max(Qe,ze.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this.players.forEach(O=>O.init())}onStart(O){this._onStartFns.push(O)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(O=>O()),this._onStartFns=[])}onDone(O){this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(O=>O.play())}pause(){this.players.forEach(O=>O.pause())}restart(){this.players.forEach(O=>O.restart())}finish(){this._onFinish(),this.players.forEach(O=>O.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(O=>O.destroy()),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this.players.forEach(O=>O.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(O){const ee=O*this.totalTime;this.players.forEach(ue=>{const _e=ue.totalTime?Math.min(1,ee/ue.totalTime):1;ue.setPosition(_e)})}getPosition(){const O=this.players.reduce((ee,ue)=>null===ee||ue.totalTime>ee.totalTime?ue:ee,null);return null!=O?O.getPosition():0}beforeDestroy(){this.players.forEach(O=>{O.beforeDestroy&&O.beforeDestroy()})}triggerCallback(O){const ee="start"==O?this._onStartFns:this._onDoneFns;ee.forEach(ue=>ue()),ee.length=0}}const N="!"},1281:(o,u,a)=>{"use strict";a.d(u,{Eq:()=>x,Ig:()=>e,fI:()=>w,su:()=>s});var t=a(4650);function e(P){return null!=P&&"false"!=`${P}`}function s(P,S=0){return function D(P){return!isNaN(parseFloat(P))&&
1!isNaN(Number(P))}(P)?Number(P):S}function x(P){return Array.isArray(P)?P:[P]}function w(P){return P instanceof t.SBq?P.nativeElement:P}},1235:(o,u,a)=>{"use strict";a.d(u,{Yg:()=>Q,u3:()=>ee});var t=a(4650),e=a(1281),s=a(7579),D=a(9841),x=a(7272),M=a(9751),w=a(5698),I=a(9300),S=a(8372),k=a(4004),z=a(8675),F=a(2722),ne=a(3353);const G=new Set;let W,Y=(()=>{class ue{constructor(be){this._platform=be,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):N}matchMedia(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function fe(ue){if(!G.has(ue))try{W||(W=document.createElement("style"),W.setAttribute("type","text/css"),document.head.appendChild(W)),W.sheet&&(W.sheet.insertRule(`@media ${ue} {body{ }}`,0),G.add(ue))}catch(_e){console.error(_e)}}(be),this._matchMedia(be)}}return ue.\u0275fac=function(be){return new(be||ue)(t.LFG(ne.t4))},ue.\u0275prov=t.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function N(ue){return{matches:"all"===ue||""===ue,media:ue,addListener:()=>{},removeListener:()=>{}}}let Q=(()=>{class ue{constructor(be,Qe){this._mediaMatcher=be,this._zone=Qe,this._queries=new Map,this._destroySubject=new s.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(be){return O((0,e.Eq)(be)).some(ze=>this._registerQuery(ze).mql.matches)}observe(be){const ze=O((0,e.Eq)(be)).map(K=>this._registerQuery(K).observable);let Oe=(0,D.a)(ze);return Oe=(0,x.z)(Oe.pipe((0,w.q)(1)),Oe.pipe(function P(ue){return(0,I.h)((_e,be)=>ue<=be)}(1),(0,S.b)(0))),Oe.pipe((0,k.U)(K=>{const X={matches:!1,breakpoints:{}};return K.forEach(({matches:V,query:q})=>{X.matches=X.matches||V,X.breakpoints[q]=V}),X}))}_registerQuery(be){if(this._queries.has(be))return this._queries.get(be);const Qe=this._mediaMatcher.matchMedia(be),Oe={observable:new M.y(K=>{const X=V=>this._zone.run(()=>K.next(V));return Qe.addListener(X),()=>{Qe.removeListener(X)}}).pipe((0,z.O)(Qe),(0,k.U)(({matches:K})=>({query:be,matches:K})),(0,F.R)(this._destroySubject)),mql:Qe};return this._queries.set(be,Oe),Oe}}return ue.\u0275fac=function(be){return new(be||ue)(t.LFG(Y),t.LFG(t.R0b))},ue.\u0275prov=t.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function O(ue){return ue.map(_e=>_e.split(",")).reduce((_e,be)=>_e.concat(be)).map(_e=>_e.trim())}const ee={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},3353:(o,u,a)=>{"use strict";a.d(u,{i$:()=>k,kV:()=>Y,sA:()=>N,t4:()=>D});var t=a(4650),e=a(6895);let s;try{s=typeof Intl<"u"&&Intl.v8BreakIterator}catch{s=!1}let P,G,D=(()=>{class O{constructor(ue){this._platformId=ue,this.isBrowser=this._platformId?(0,e.NF)(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&&!s)&&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}}return O.\u0275fac=function(ue){return new(ue||O)(t.LFG(t.Lbi))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();function k(O){return function S(){if(null==P&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>P=!0}))}finally{P=P||!1}return P}()?O:!!O.capture}function Y(O){if(function W(){if(null==G){const O=typeof document<"u"?document.head:null;G=!(!O||!O.createShadowRoot&&!O.attachShadow)}return G}()){const ee=O.getRootNode?O.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ee instanceof ShadowRoot)return ee}return null}function N(O){return O.composedPath?O.composedPath()[0]:O.target}},6895:(o,u,a)=>{"use strict";a.d(u,{Do:()=>fe,EM:()=>kr,H9:()=>Hr,HT:()=>D,JF:()=>Fe,JJ:()=>Ki,K0:()=>M,Mx:()=>Ms,NF:()=>Mo,O5:()=>rn,Ov:()=>Ns,PC:()=>ir,RF:()=>ji,S$:()=>G,V_:()=>P,Ye:()=>N,b0:()=>Y,bD:()=>qr,ez:()=>Qr,mk:()=>Wn,n9:()=>Ni,q:()=>s,sg:()=>we,tP:()=>qs,uU:()=>ts,w_:()=>x});var t=a(4650);let e=null;function s(){return e}function D(se){e||(e=se)}class x{}const M=new t.OlP("DocumentToken");let w=(()=>{class se{historyGo(de){throw new Error("Not implemented")}}return se.\u0275fac=function(de){return new(de||se)},se.\u0275prov=t.Yz7({token:se,factory:function(){return function I(){return(0,t.LFG)(S)}()},providedIn:"platform"}),se})();const P=new t.OlP("Location Initialized");let S=(()=>{class se extends w{constructor(de){super(),this._doc=de,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(de){const Le=s().getGlobalEventTarget(this._doc,"window");return Le.addEventListener("popstate",de,!1),()=>Le.removeEventListener("popstate",de)}onHashChange(de){const Le=s().getGlobalEventTarget(this._doc,"window");return Le.addEventListener("hashchange",de,!1),()=>Le.removeEventListener("hashchange",de)}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(de){this._location.pathname=de}pushState(de,Le,ut){k()?this._history.pushState(de,Le,ut):this._location.hash=ut}replaceState(de,Le,ut){k()?this._history.replaceState(de,Le,ut):this._location.hash=ut}forward(){this._history.forward()}back(){this._history.back()}historyGo(de=0){this._history.go(de)}getState(){return this._history.state}}return se.\u0275fac=function(de){return new(de||se)(t.LFG(M))},se.\u0275prov=t.Yz7({token:se,factory:function(){return function z(){return new S((0,t.LFG)(M))}()},providedIn:"platform"}),se})();function k(){return!!window.history.pushState}function F(se,De){if(0==se.length)return De;if(0==De.length)return se;let de=0;return se.endsWith("/")&&de++,De.startsWith("/")&&de++,2==de?se+De.substring(1):1==de?se+De:se+"/"+De}function ne(se){const De=se.match(/#|\?|$/),de=De&&De.index||se.length;return se.slice(0,de-("/"===se[de-1]?1:0))+se.slice(de)}function B(se){return se&&"?"!==se[0]?"?"+se:se}let G=(()=>{class se{historyGo(de){throw new Error("Not implemented")}}return se.\u0275fac=function(de){return new(de||se)},se.\u0275prov=t.Yz7({token:se,factory:function(){return(0,t.f3M)(Y)},providedIn:"root"}),se})();const W=new t.OlP("appBaseHref");let Y=(()=>{class se extends G{constructor(de,Le){super(),this._platformLocation=de,this._removeListenerFns=[],this._baseHref=Le??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(M).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(de){this._removeListenerFns.push(this._platformLocation.onPopState(de),this._platformLocation.on
1HashChange(de))}getBaseHref(){return this._baseHref}prepareExternalUrl(de){return F(this._baseHref,de)}path(de=!1){const Le=this._platformLocation.pathname+B(this._platformLocation.search),ut=this._platformLocation.hash;return ut&&de?`${Le}${ut}`:Le}pushState(de,Le,ut,Wt){const an=this.prepareExternalUrl(ut+B(Wt));this._platformLocation.pushState(de,Le,an)}replaceState(de,Le,ut,Wt){const an=this.prepareExternalUrl(ut+B(Wt));this._platformLocation.replaceState(de,Le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){this._platformLocation.historyGo?.(de)}}return se.\u0275fac=function(de){return new(de||se)(t.LFG(w),t.LFG(W,8))},se.\u0275prov=t.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),fe=(()=>{class se extends G{constructor(de,Le){super(),this._platformLocation=de,this._baseHref="",this._removeListenerFns=[],null!=Le&&(this._baseHref=Le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(de){this._removeListenerFns.push(this._platformLocation.onPopState(de),this._platformLocation.onHashChange(de))}getBaseHref(){return this._baseHref}path(de=!1){let Le=this._platformLocation.hash;return null==Le&&(Le="#"),Le.length>0?Le.substring(1):Le}prepareExternalUrl(de){const Le=F(this._baseHref,de);return Le.length>0?"#"+Le:Le}pushState(de,Le,ut,Wt){let an=this.prepareExternalUrl(ut+B(Wt));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(de,Le,an)}replaceState(de,Le,ut,Wt){let an=this.prepareExternalUrl(ut+B(Wt));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(de,Le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(de=0){this._platformLocation.historyGo?.(de)}}return se.\u0275fac=function(de){return new(de||se)(t.LFG(w),t.LFG(W,8))},se.\u0275prov=t.Yz7({token:se,factory:se.\u0275fac}),se})(),N=(()=>{class se{constructor(de){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=de;const Le=this._locationStrategy.getBaseHref();this._basePath=function ue(se){if(new RegExp("^(https?:)?//").test(se)){const[,de]=se.split(/\/\/[^\/]+/);return de}return se}(ne(ee(Le))),this._locationStrategy.onPopState(ut=>{this._subject.emit({url:this.path(!0),pop:!0,state:ut.state,type:ut.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(de=!1){return this.normalize(this._locationStrategy.path(de))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(de,Le=""){return this.path()==this.normalize(de+B(Le))}normalize(de){return se.stripTrailingSlash(function O(se,De){if(!se||!De.startsWith(se))return De;const de=De.substring(se.length);return""===de||["/",";","?","#"].includes(de[0])?de:De}(this._basePath,ee(de)))}prepareExternalUrl(de){return de&&"/"!==de[0]&&(de="/"+de),this._locationStrategy.prepareExternalUrl(de)}go(de,Le="",ut=null){this._locationStrategy.pushState(ut,"",de,Le),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+B(Le)),ut)}replaceState(de,Le="",ut=null){this._locationStrategy.replaceState(ut,"",de,Le),this._notifyUrlChangeListeners(this.prepareExternalUrl(de+B(Le)),ut)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(de=0){this._locationStrategy.historyGo?.(de)}onUrlChange(de){return this._urlChangeListeners.push(de),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Le=>{this._notifyUrlChangeListeners(Le.url,Le.state)})),()=>{const Le=this._urlChangeListeners.indexOf(de);this._urlChangeListeners.splice(Le,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(de="",Le){this._urlChangeListeners.forEach(ut=>ut(de,Le))}subscribe(de,Le,ut){return this._subject.subscribe({next:de,error:Le,complete:ut})}}return se.normalizeQueryParams=B,se.joinWithSlash=F,se.stripTrailingSlash=ne,se.\u0275fac=function(de){return new(de||se)(t.LFG(G))},se.\u0275prov=t.Yz7({token:se,factory:function(){return function Q(){return new N((0,t.LFG)(G))}()},providedIn:"root"}),se})();function ee(se){return se.replace(/\/index.html$/,"")}const _e={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var be=(()=>((be=be||{})[be.Decimal=0]="Decimal",be[be.Percent=1]="Percent",be[be.Currency=2]="Currency",be[be.Scientific=3]="Scientific",be))(),ze=(()=>((ze=ze||{})[ze.Format=0]="Format",ze[ze.Standalone=1]="Standalone",ze))(),Oe=(()=>((Oe=Oe||{})[Oe.Narrow=0]="Narrow",Oe[Oe.Abbreviated=1]="Abbreviated",Oe[Oe.Wide=2]="Wide",Oe[Oe.Short=3]="Short",Oe))(),K=(()=>((K=K||{})[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K))(),X=(()=>((X=X||{})[X.Decimal=0]="Decimal",X[X.Group=1]="Group",X[X.List=2]="List",X[X.PercentSign=3]="PercentSign",X[X.PlusSign=4]="PlusSign",X[X.MinusSign=5]="MinusSign",X[X.Exponential=6]="Exponential",X[X.SuperscriptingExponent=7]="SuperscriptingExponent",X[X.PerMille=8]="PerMille",X[X.Infinity=9]="Infinity",X[X.NaN=10]="NaN",X[X.TimeSeparator=11]="TimeSeparator",X[X.CurrencyDecimal=12]="CurrencyDecimal",X[X.CurrencyGroup=13]="CurrencyGroup",X))();function je(se,De){return Yt((0,t.cg1)(se)[t.wAp.DateFormat],De)}function Xe(se,De){return Yt((0,t.cg1)(se)[t.wAp.TimeFormat],De)}function rt(se,De){return Yt((0,t.cg1)(se)[t.wAp.DateTimeFormat],De)}function mt(se,De){const de=(0,t.cg1)(se),Le=de[t.wAp.NumberSymbols][De];if(typeof Le>"u"){if(De===X.CurrencyDecimal)return de[t.wAp.NumberSymbols][X.Decimal];if(De===X.CurrencyGroup)return de[t.wAp.NumberSymbols][X.Group]}return Le}function $t(se,De){return(0,t.cg1)(se)[t.wAp.NumberFormats][De]}function xn(se){if(!se[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${se[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yt(se,De){for(let de=De;de>-1;de--)if(typeof se[de]<"u")return se[de];throw new Error("Locale data API: locale data undefined")}function It(se){const[De,de]=se.split(":");return{hours:+De,minutes:+de}}const Rn=2,vn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mi={},Un=/((?:[^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]*)/;var Jn=(()=>((Jn=Jn||{})[Jn.Short=0]="Short",Jn[Jn.ShortGMT=1]="ShortGMT",Jn[Jn.Long=2]="Long",Jn[Jn.Extended=3]="Extended",Jn))(),Mt=(()=>((Mt=Mt||{})[Mt.FullYear=0]="FullYear",Mt[Mt.Month=1]="Month",Mt[Mt.Date=2]="Date",Mt[Mt.Hours=3]="Hours",Mt[Mt.Minutes=4]="Minutes",Mt[Mt.Seconds=5]="Seconds",Mt[Mt.FractionalSeconds=6]="FractionalSeconds",Mt[Mt.Day=7]="Day",Mt))(),Vt=(()=>((Vt=Vt||{})[Vt.DayPeriods=0]="DayPeriods",Vt[Vt.Days=1]="Days",Vt[Vt.Months=2]="Months",Vt[Vt.Eras=3]="Eras",Vt))();function Z(se,De,de,Le){let ut=function Dn(se){if(At(se))return se;if("number"==typeof se&&!isNaN(se))return new Date(se);if("string"==typeof se){if(se=se.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(se)){const[ut,Wt=1,an=1]=se.split("-").map(Bn=>+Bn);return re(ut,Wt-1,an)}const de=parseFloat(se);if(!isNaN(se-de))return new Date(de);let Le;if(Le=se.match(vn))return function En(se){const De=new Date(0);let de=0,Le=0;
vendor: 19,171 bytes, line 1
1const ut=se[8]?De.setUTCFullYear:De.setFullYear,Wt=se[8]?De.setUTCHours:De.setHours;se[9]&&(de=Number(se[9]+se[10]),Le=Number(se[9]+se[11])),ut.call(De,Number(se[1]),Number(se[2])-1,Number(se[3]));const an=Number(se[4]||0)-de,Bn=Number(se[5]||0)-Le,zi=Number(se[6]||0),Ri=Math.floor(1e3*parseFloat("0."+(se[7]||0)));return Wt.call(De,an,Bn,zi,Ri),De}(Le)}const De=new Date(se);if(!At(De))throw new Error(`Unable to convert "${se}" into a date`);return De}(se);De=pe(de,De)||De;let Bn,an=[];for(;De;){if(Bn=Un.exec(De),!Bn){an.push(De);break}{an=an.concat(Bn.slice(1));const bi=an.pop();if(!bi)break;De=bi}}let zi=ut.getTimezoneOffset();Le&&(zi=ht(Le,zi),ut=function Jt(se,De,de){const Le=de?-1:1,ut=se.getTimezoneOffset();return function Ht(se,De){return(se=new Date(se.getTime())).setMinutes(se.getMinutes()+De),se}(se,Le*(ht(De,ut)-ut))}(ut,Le,!0));let Ri="";return an.forEach(bi=>{const fi=function $e(se){if(xt[se])return xt[se];let De;switch(se){case"G":case"GG":case"GGG":De=Be(Vt.Eras,Oe.Abbreviated);break;case"GGGG":De=Be(Vt.Eras,Oe.Wide);break;case"GGGGG":De=Be(Vt.Eras,Oe.Narrow);break;case"y":De=_t(Mt.FullYear,1,0,!1,!0);break;case"yy":De=_t(Mt.FullYear,2,0,!0,!0);break;case"yyy":De=_t(Mt.FullYear,3,0,!1,!0);break;case"yyyy":De=_t(Mt.FullYear,4,0,!1,!0);break;case"Y":De=lt(1);break;case"YY":De=lt(2,!0);break;case"YYY":De=lt(3);break;case"YYYY":De=lt(4);break;case"M":case"L":De=_t(Mt.Month,1,1);break;case"MM":case"LL":De=_t(Mt.Month,2,1);break;case"MMM":De=Be(Vt.Months,Oe.Abbreviated);break;case"MMMM":De=Be(Vt.Months,Oe.Wide);break;case"MMMMM":De=Be(Vt.Months,Oe.Narrow);break;case"LLL":De=Be(Vt.Months,Oe.Abbreviated,ze.Standalone);break;case"LLLL":De=Be(Vt.Months,Oe.Wide,ze.Standalone);break;case"LLLLL":De=Be(Vt.Months,Oe.Narrow,ze.Standalone);break;case"w":De=wt(1);break;case"ww":De=wt(2);break;case"W":De=wt(1,!0);break;case"d":De=_t(Mt.Date,1);break;case"dd":De=_t(Mt.Date,2);break;case"c":case"cc":De=_t(Mt.Day,1);break;case"ccc":De=Be(Vt.Days,Oe.Abbreviated,ze.Standalone);break;case"cccc":De=Be(Vt.Days,Oe.Wide,ze.Standalone);break;case"ccccc":De=Be(Vt.Days,Oe.Narrow,ze.Standalone);break;case"cccccc":De=Be(Vt.Days,Oe.Short,ze.Standalone);break;case"E":case"EE":case"EEE":De=Be(Vt.Days,Oe.Abbreviated);break;case"EEEE":De=Be(Vt.Days,Oe.Wide);break;case"EEEEE":De=Be(Vt.Days,Oe.Narrow);break;case"EEEEEE":De=Be(Vt.Days,Oe.Short);break;case"a":case"aa":case"aaa":De=Be(Vt.DayPeriods,Oe.Abbreviated);break;case"aaaa":De=Be(Vt.DayPeriods,Oe.Wide);break;case"aaaaa":De=Be(Vt.DayPeriods,Oe.Narrow);break;case"b":case"bb":case"bbb":De=Be(Vt.DayPeriods,Oe.Abbreviated,ze.Standalone,!0);break;case"bbbb":De=Be(Vt.DayPeriods,Oe.Wide,ze.Standalone,!0);break;case"bbbbb":De=Be(Vt.DayPeriods,Oe.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":De=Be(Vt.DayPeriods,Oe.Abbreviated,ze.Format,!0);break;case"BBBB":De=Be(Vt.DayPeriods,Oe.Wide,ze.Format,!0);break;case"BBBBB":De=Be(Vt.DayPeriods,Oe.Narrow,ze.Format,!0);break;case"h":De=_t(Mt.Hours,1,-12);break;case"hh":De=_t(Mt.Hours,2,-12);break;case"H":De=_t(Mt.Hours,1);break;case"HH":De=_t(Mt.Hours,2);break;case"m":De=_t(Mt.Minutes,1);break;case"mm":De=_t(Mt.Minutes,2);break;case"s":De=_t(Mt.Seconds,1);break;case"ss":De=_t(Mt.Seconds,2);break;case"S":De=_t(Mt.FractionalSeconds,1);break;case"SS":De=_t(Mt.FractionalSeconds,2);break;case"SSS":De=_t(Mt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":De=We(Jn.Short);break;case"ZZZZZ":De=We(Jn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":De=We(Jn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":De=We(Jn.Long);break;default:return null}return xt[se]=De,De}(bi);Ri+=fi?fi(ut,de,zi):"''"===bi?"'":bi.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Ri}function re(se,De,de){const Le=new Date(0);return Le.setFullYear(se,De,de),Le.setHours(0,0,0),Le}function pe(se,De){const de=function q(se){return(0,t.cg1)(se)[t.wAp.LocaleId]}(se);if(mi[de]=mi[de]||{},mi[de][De])return mi[de][De];let Le="";switch(De){case"shortDate":Le=je(se,K.Short);break;case"mediumDate":Le=je(se,K.Medium);break;case"longDate":Le=je(se,K.Long);break;case"fullDate":Le=je(se,K.Full);break;case"shortTime":Le=Xe(se,K.Short);break;case"mediumTime":Le=Xe(se,K.Medium);break;case"longTime":Le=Xe(se,K.Long);break;case"fullTime":Le=Xe(se,K.Full);break;case"short":const ut=pe(se,"shortTime"),Wt=pe(se,"shortDate");Le=Re(rt(se,K.Short),[ut,Wt]);break;case"medium":const an=pe(se,"mediumTime"),Bn=pe(se,"mediumDate");Le=Re(rt(se,K.Medium),[an,Bn]);break;case"long":const zi=pe(se,"longTime"),Ri=pe(se,"longDate");Le=Re(rt(se,K.Long),[zi,Ri]);break;case"full":const bi=pe(se,"fullTime"),fi=pe(se,"fullDate");Le=Re(rt(se,K.Full),[bi,fi])}return Le&&(mi[de][De]=Le),Le}function Re(se,De){return De&&(se=se.replace(/\{([^}]+)}/g,function(de,Le){return null!=De&&Le in De?De[Le]:de})),se}function Bt(se,De,de="-",Le,ut){let Wt="";(se<0||ut&&se<=0)&&(ut?se=1-se:(se=-se,Wt=de));let an=String(se);for(;an.length<De;)an="0"+an;return Le&&(an=an.slice(an.length-De)),Wt+an}function _t(se,De,de=0,Le=!1,ut=!1){return function(Wt,an){let Bn=function dt(se,De){switch(se){case Mt.FullYear:return De.getFullYear();case Mt.Month:return De.getMonth();case Mt.Date:return De.getDate();case Mt.Hours:return De.getHours();case Mt.Minutes:return De.getMinutes();case Mt.Seconds:return De.getSeconds();case Mt.FractionalSeconds:return De.getMilliseconds();case Mt.Day:return De.getDay();default:throw new Error(`Unknown DateType value "${se}".`)}}(se,Wt);if((de>0||Bn>-de)&&(Bn+=de),se===Mt.Hours)0===Bn&&-12===de&&(Bn=12);else if(se===Mt.FractionalSeconds)return function jt(se,De){return Bt(se,3).substring(0,De)}(Bn,De);const zi=mt(an,X.MinusSign);return Bt(Bn,De,zi,Le,ut)}}function Be(se,De,de=ze.Format,Le=!1){return function(ut,Wt){return function Te(se,De,de,Le,ut,Wt){switch(de){case Vt.Months:return function nt(se,De,de){const Le=(0,t.cg1)(se),Wt=Yt([Le[t.wAp.MonthsFormat],Le[t.wAp.MonthsStandalone]],De);return Yt(Wt,de)}(De,ut,Le)[se.getMonth()];case Vt.Days:return function ye(se,De,de){const Le=(0,t.cg1)(se),Wt=Yt([Le[t.wAp.DaysFormat],Le[t.wAp.DaysStandalone]],De);return Yt(Wt,de)}(De,ut,Le)[se.getDay()];case Vt.DayPeriods:const an=se.getHours(),Bn=se.getMinutes();if(Wt){const Ri=function pn(se){const De=(0,t.cg1)(se);return xn(De),(De[t.wAp.ExtraData][2]||[]).map(Le=>"string"==typeof Le?It(Le):[It(Le[0]),It(Le[1])])}(De),bi=function _n(se,De,de){const Le=(0,t.cg1)(se);xn(Le);const Wt=Yt([Le[t.wAp.ExtraData][0],Le[t.wAp.ExtraData][1]],De)||[];return Yt(Wt,de)||[]}(De,ut,Le),fi=Ri.findIndex(Bi=>{if(Array.isArray(Bi)){const[Ei,us]=Bi,_r=an>=Ei.hours&&Bn>=Ei.minutes,vs=an<us.hours||an===us.hours&&Bn<us.minutes;if(Ei.hours<us.hours){if(_r&&vs)return!0}else if(_r||vs)return!0}else if(Bi.hours===an&&Bi.minutes===Bn)return!0;return!1});if(-1!==fi)return bi[fi]}return function Ee(se,De,de){const Le=(0,t.cg1)(se),Wt=Yt([Le[t.wAp.DayPeriodsFormat],Le[t.wAp.DayPeriodsStandalone]],De);return Yt(Wt,de)}(De,ut,Le)[an<12?0:1];case Vt.Eras:return function at(se,De){return Yt((0,t.cg1)(se)[t.wAp.Eras],De)}(De,Le)[se.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${de}`)}}(ut,Wt,se,De,de,Le)}}function We(se){return function(De,de,Le){const ut=-1*Le,Wt=mt(de,X.MinusSign),an=ut>0?Math.floor(ut/60):Math.ceil(ut/60);switch(se){case Jn.Short:return(ut>=0?"+":"")+Bt(an,2,Wt)+Bt(Math.abs(ut%60),2,Wt);case Jn.ShortGMT:return"GMT"+(ut>=0?"+":"")+Bt(an,1,Wt);case Jn.Long:return"GMT"+(ut>=0?"+":"")+Bt(an,2,Wt)+":"+Bt(Math.abs(ut%60),2,Wt);case Jn.Extended:return 0===Le?"Z":(ut>=0?"+":"")+Bt(an,2,Wt)+":"+Bt(Math.abs(ut%60),2,Wt);default:throw new Error(`Unknown zone width "${se}"`)}}}const ft=0,Ft=4;function pt(se){return re(se.getFullYear(),se.getMonth(),se.getDate()+(Ft-se.getDay()))}function wt(se,De=!1){return function(de,Le){let ut;if(De){const Wt=new Date(de.getFullYear(),de.getMonth(),1).getDay()-1,an=de.getDate();ut=1+Math.floor((an+Wt)/7)}else{const Wt=pt(de),an=function Pt(se){const De=re(se,ft,1).getDay();return re(se,0,1+(De<=Ft?Ft:Ft+7)-De)}(Wt.getFullYear()),Bn=Wt.getTime()-an.getTime();ut=1+Math.round(Bn/6048e5)}return Bt(ut,se,mt(Le,X.MinusSign))}}function lt(se,De=!1){return function(de,Le){return Bt(pt(de).getFullYear(),se,mt(Le,X.MinusSign),De)}}const xt={};function ht(se,De){se=se.replace(/:/g,"");const de=Date.parse("Jan 01, 1970 00:00:00 "+se)/6e4;return isNaN(de)?De:de}function At(se){return se instanceof Date&&!isNaN(se.valueOf())}const Ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/,qe=22,Tt=".",Qt="0",nn=";",dn=",",ai="#",ni="\xa4";function rs(se,De,de,Le,ut,Wt,an=!1){let Bn="",zi=!1;if(isFinite(se)){let Ri=function Yn(se){let Le,ut,Wt,an,Bn,De=Math.abs(se)+"",de=0;for((ut=De.indexOf(Tt))>-1&&(De=De.replace(Tt,"")),(Wt=De.search(/e/i))>0?(ut<0&&(ut=Wt),ut+=+De.slice(Wt+1),De=De.substring(0,Wt)):ut<0&&(ut=De.length),Wt=0;De.charAt(Wt)===Qt;Wt++);if(Wt===(Bn=De.length))Le=[0],ut=1;else{for(Bn--;De.charAt(Bn)===Qt;)Bn--;for(ut-=Wt,Le=[],an=0;Wt<=Bn;Wt++,an++)Le[an]=Number(De.charAt(Wt))}return ut>qe&&(Le=Le.splice(0,qe-1),de=ut-1,ut=1),{digits:Le,exponent:de,integerLen:ut}}(se);an&&(Ri=function Is(se){if(0===se.digits[0])return se;const De=se.digits.length-se.integerLen;return se.exponent?se.exponent+=2:(0===De?se.digits.push(0,0):1===De&&se.digits.push(0),se.integerLen+=2),se}(Ri));let bi=De.minInt,fi=De.minFrac,Bi=De.maxFrac;if(Wt){const zs=Wt.match(Ct);if(null===zs)throw new Error(`${Wt} is not a valid digit info`);const or=zs[1],Fr=zs[3],wr=zs[5];null!=or&&(bi=Ai(or)),null!=Fr&&(fi=Ai(Fr)),null!=wr?Bi=Ai(wr):null!=Fr&&fi>Bi&&(Bi=fi)}!function Ji(se,De,de){if(De>de)throw new Error(`The minimum number of digits after fraction (${De}) is higher than the maximum (${de}).`);let Le=se.digits,ut=Le.length-se.integerLen;const Wt=Math.min(Math.max(De,ut),de);let an=Wt+se.integerLen,Bn=Le[an];if(an>0){Le.splice(Math.max(se.integerLen,an));for(let fi=an;fi<Le.length;fi++)Le[fi]=0}else{ut=Math.max(0,ut),se.integerLen=1,Le.length=Math.max(1,an=Wt+1),Le[0]=0;for(let fi=1;fi<an;fi++)Le[fi]=0}if(Bn>=5)if(an-1<0){for(let fi=0;fi>an;fi--)Le.unshift(0),se.integerLen++;Le.unshift(1),se.integerLen++}else Le[an-1]++;for(;ut<Math.max(0,Wt);ut++)Le.push(0);let zi=0!==Wt;const Ri=De+se.integerLen,bi=Le.reduceRight(function(fi,Bi,Ei,us){return us[Ei]=(Bi+=fi)<10?Bi:Bi-10,zi&&(0===us[Ei]&&Ei>=Ri?us.pop():zi=!1),Bi>=10?1:0},0);bi&&(Le.unshift(bi),se.integerLen++)}(Ri,fi,Bi);let Ei=Ri.digits,us=Ri.integerLen;const _r=Ri.exponent;let vs=[];for(zi=Ei.every(zs=>!zs);us<bi;us++)Ei.unshift(0);for(;us<0;us++)Ei.unshift(0);us>0?vs=Ei.splice(us,Ei.length):(vs=Ei,Ei=[0]);const vr=[];for(Ei.length>=De.lgSize&&vr.unshift(Ei.splice(-De.lgSize,Ei.length).join(""));Ei.length>De.gSize;)vr.unshift(Ei.splice(-De.gSize,Ei.length).join(""));Ei.length&&vr.unshift(Ei.join("")),Bn=vr.join(mt(de,Le)),vs.length&&(Bn+=mt(de,ut)+vs.join("")),_r&&(Bn+=mt(de,X.Exponential)+"+"+_r)}else Bn=mt(de,X.Infinity);return Bn=se<0&&!zi?De.negPre+Bn+De.negSuf:De.posPre+Bn+De.posSuf,Bn}function bs(se,De="-"){const de={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Le=se.split(nn),ut=Le[0],Wt=Le[1],an=-1!==ut.indexOf(Tt)?ut.split(Tt):[ut.substring(0,ut.lastIndexOf(Qt)+1),ut.substring(ut.lastIndexOf(Qt)+1)],Bn=an[0],zi=an[1]||"";de.posPre=Bn.substring(0,Bn.indexOf(ai));for(let bi=0;bi<zi.length;bi++){const fi=zi.charAt(bi);fi===Qt?de.minFrac=de.maxFrac=bi+1:fi===ai?de.maxFrac=bi+1:de.posSuf+=fi}const Ri=Bn.split(dn);if(de.gSize=Ri[1]?Ri[1].length:0,de.lgSize=Ri[2]||Ri[1]?(Ri[2]||Ri[1]).length:0,Wt){const bi=ut.length-de.posPre.length-de.posSuf.length,fi=Wt.indexOf(ai);de.negPre=Wt.substring(0,fi).replace(/'/g,""),de.negSuf=Wt.slice(fi+bi).replace(/'/g,"")}else de.negPre=De+de.posPre,de.negSuf=de.posSuf;return de}function Ai(se){const De=parseInt(se);if(isNaN(De))throw new Error("Invalid integer literal when parsing "+se);return De}function Ms(se,De){De=encodeURIComponent(De);for(const de of se.split(";")){const Le=de.indexOf("="),[ut,Wt]=-1==Le?[de,""]:[de.slice(0,Le),de.slice(Le+1)];if(ut.trim()===De)return decodeURIComponent(Wt)}return null}const ki=/\s+/,sn=[];let Wn=(()=>{class se{constructor(de,Le,ut,Wt){this._iterableDiffers=de,this._keyValueDiffers=Le,this._ngEl=ut,this._renderer=Wt,this.initialClasses=sn,this.stateMap=new Map}set klass(de){this.initialClasses=null!=de?de.trim().split(ki):sn}set ngClass(de){this.rawClass="string"==typeof de?de.trim().split(ki):de}ngDoCheck(){for(const Le of this.initialClasses)this._updateState(Le,!0);const de=this.rawClass;if(Array.isArray(de)||de instanceof Set)for(const Le of de)this._updateState(Le,!0);else if(null!=de)for(const Le of Object.keys(de))this._updateState(Le,Boolean(de[Le]));this._applyStateDiff()}_updateState(de,Le){const ut=this.stateMap.get(de);void 0!==ut?(ut.enabled!==Le&&(ut.changed=!0,ut.enabled=Le),ut.touched=!0):this.stateMap.set(de,{enabled:Le,changed:!0,touched:!0})}_applyStateDiff(){for(const de of this.stateMap){const Le=de[0],ut=de[1];ut.changed?(this._toggleClass(Le,ut.enabled),ut.changed=!1):ut.touched||(ut.enabled&&this._toggleClass(Le,!1),this.stateMap.delete(Le)),ut.touched=!1}}_toggleClass(de,Le){(de=de.trim()).length>0&&de.split(ki).forEach(ut=>{Le?this._renderer.addClass(this._ngEl.nativeElement,ut):this._renderer.removeClass(this._ngEl.nativeElement,ut)})}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),se})();class he{constructor(De,de,Le,ut){this.$implicit=De,this.ngForOf=de,this.index=Le,this.count=ut}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 we=(()=>{class se{set ngForOf(de){this._ngForOf=de,this._ngForOfDirty=!0}set ngForTrackBy(de){this._trackByFn=de}get ngForTrackBy(){return this._trackByFn}constructor(de,Le,ut){this._viewContainer=de,this._template=Le,this._differs=ut,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(de){de&&(this._template=de)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const de=this._ngForOf;!this._differ&&de&&(this._differ=this._differs.find(de).create(this.ngForTrackBy))}if(this._differ){const de=this._differ.diff(this._ngForOf);de&&this._applyChanges(de)}}_applyChanges(de){const Le=this._viewContainer;de.forEachOperation((ut,Wt,an)=>{if(null==ut.previousIndex)Le.createEmbeddedView(this._template,new he(ut.item,this._ngForOf,-1,-1),null===an?void 0:an);else if(null==an)Le.remove(null===Wt?void 0:Wt);else if(null!==Wt){const Bn=Le.get(Wt);Le.move(Bn,an),Ne(Bn,ut)}});for(let ut=0,Wt=Le.length;ut<Wt;ut++){const Bn=Le.get(ut).context;Bn.index=ut,Bn.count=Wt,Bn.ngForOf=this._ngForOf}de.forEachIdentityChange(ut=>{Ne(Le.get(ut.currentIndex),ut)})}static ngTemplateContextGuard(de,Le){return!0}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),se})();function Ne(se,De){se.context.$implicit=De.item}let rn=(()=>{class se{constructor(de,Le){this._viewContainer=de,this._context=new hn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Le}set ngIf(de){this._context.$implicit=this._context.ngIf=de,this._updateView()}set ngIfThen(de){Gn("ngIfThen",de),this._thenTemplateRef=de,this._thenViewRef=null,this._updateView()}set ngIfElse(de){Gn("ngIfElse",de),this._elseTemplateRef=de,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(de,Le){return!0}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.s_b),t.Y36(t.Rgc))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),se})();class hn{constructor(){this.$implicit=null,this.ngIf=null}}function Gn(se,De){if(De&&!De.createEmbeddedView)throw new Error(`${se} must be a TemplateRef, but received '${(0,t.AaK)(De)}'.`)}class Xn{constructor(De,de){this._viewContainerRef=De,this._templateRef=de,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(De){De&&!this._created?this.create():!De&&this._created&&this.destroy()}}let ji=(()=>{class se{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(de){this._ngSwitch=de,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(de){this._defaultViews.push(de)}_matchCase(de){const Le=de==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Le,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Le}_updateDefaultCases(de){if(this._defaultViews.length>0&&de!==this._defaultUsed){this._defaultUsed=de;for(const Le of this._defaultViews)Le.enforceState(de)}}}return se.\u0275fac=function(de){return new(de||se)},se.\u0275dir=t.lG2({type:se,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),se})(),Ni=(()=>{class se{constructor(de,Le,ut){this.ngSwitch=ut,ut._addCase(),this._view=new Xn(de,Le)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(ji,9))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),se})(),ir=(()=>{class se{constructor(de,Le,ut){this._ngEl=de,this._differs=Le,this._renderer=ut,this._ngStyle=null,this._differ=null}set ngStyle(de){this._ngStyle=de,!this._differ&&de&&(this._differ=this._differs.find(de).create())}ngDoCheck(){if(this._differ){const de=this._differ.diff(this._ngStyle);de&&this._applyChanges(de)}}_setStyle(de,Le){const[ut,Wt]=de.split("."),an=-1===ut.indexOf("-")?void 0:t.JOm.DashCase;null!=Le?this._renderer.setStyle(this._ngEl.nativeElement,ut,Wt?`${Le}${Wt}`:Le,an):this._renderer.removeStyle(this._ngEl.nativeElement,ut,an)}_applyChanges(de){de.forEachRemovedItem(Le=>this._setStyle(Le.key,null)),de.forEachAddedItem(Le=>this._setStyle(Le.key,Le.currentValue)),de.forEachChangedItem(Le=>this._setStyle(Le.key,Le.currentValue))}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),se})(),qs=(()=>
1{class se{constructor(de){this._viewContainerRef=de,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(de){if(de.ngTemplateOutlet||de.ngTemplateOutletInjector){const Le=this._viewContainerRef;if(this._viewRef&&Le.remove(Le.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ut,ngTemplateOutletContext:Wt,ngTemplateOutletInjector:an}=this;this._viewRef=Le.createEmbeddedView(ut,Wt,an?{injector:an}:void 0)}else this._viewRef=null}else this._viewRef&&de.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.s_b))},se.\u0275dir=t.lG2({type:se,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]}),se})();function Mn(se,De){return new t.vHH(2100,!1)}class qi{createSubscription(De,de){return De.subscribe({next:de,error:Le=>{throw Le}})}dispose(De){De.unsubscribe()}}class Xs{createSubscription(De,de){return De.then(de,Le=>{throw Le})}dispose(De){}}const Ti=new Xs,gs=new qi;let Ns=(()=>{class se{constructor(de){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=de}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(de){return this._obj?de!==this._obj?(this._dispose(),this.transform(de)):this._latestValue:(de&&this._subscribe(de),this._latestValue)}_subscribe(de){this._obj=de,this._strategy=this._selectStrategy(de),this._subscription=this._strategy.createSubscription(de,Le=>this._updateLatestValue(de,Le))}_selectStrategy(de){if((0,t.QGY)(de))return Ti;if((0,t.F4k)(de))return gs;throw Mn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(de,Le){de===this._obj&&(this._latestValue=Le,this._ref.markForCheck())}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.sBO,16))},se.\u0275pipe=t.Yjl({name:"async",type:se,pure:!1,standalone:!0}),se})();const Bs=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),ks=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let ts=(()=>{class se{constructor(de,Le,ut){this.locale=de,this.defaultTimezone=Le,this.defaultOptions=ut}transform(de,Le,ut,Wt){if(null==de||""===de||de!=de)return null;try{return Z(de,Le??this.defaultOptions?.dateFormat??"mediumDate",Wt||this.locale,ut??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(an){throw Mn()}}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.soG,16),t.Y36(Bs,24),t.Y36(ks,24))},se.\u0275pipe=t.Yjl({name:"date",type:se,pure:!0,standalone:!0}),se})(),Ki=(()=>{class se{constructor(de){this._locale=de}transform(de,Le,ut){if(!Os(de))return null;ut=ut||this._locale;try{return function Mi(se,De,de){return rs(se,bs($t(De,be.Decimal),mt(De,X.MinusSign)),De,X.Group,X.Decimal,de)}(er(de),ut,Le)}catch(Wt){throw Mn()}}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.soG,16))},se.\u0275pipe=t.Yjl({name:"number",type:se,pure:!0,standalone:!0}),se})(),Hr=(()=>{class se{constructor(de,Le="USD"){this._locale=de,this._defaultCurrencyCode=Le}transform(de,Le=this._defaultCurrencyCode,ut="symbol",Wt,an){if(!Os(de))return null;an=an||this._locale,"boolean"==typeof ut&&(ut=ut?"symbol":"code");let Bn=Le||this._defaultCurrencyCode;"code"!==ut&&(Bn="symbol"===ut||"symbol-narrow"===ut?function bn(se,De,de="en"){const Le=function Ye(se){return(0,t.cg1)(se)[t.wAp.Currencies]}(de)[se]||_e[se]||[],ut=Le[1];return"narrow"===De&&"string"==typeof ut?ut:Le[0]||se}(Bn,"symbol"===ut?"wide":"narrow",an):ut);try{return function Js(se,De,de,Le,ut){const an=bs($t(De,be.Currency),mt(De,X.MinusSign));return an.minFrac=function Sn(se){let De;const de=_e[se];return de&&(De=de[2]),"number"==typeof De?De:Rn}(Le),an.maxFrac=an.minFrac,rs(se,an,De,X.CurrencyGroup,X.CurrencyDecimal,ut).replace(ni,de).replace(ni,"").trim()}(er(de),an,Bn,Le,Wt)}catch(zi){throw Mn()}}}return se.\u0275fac=function(de){return new(de||se)(t.Y36(t.soG,16),t.Y36(t.EJc,16))},se.\u0275pipe=t.Yjl({name:"currency",type:se,pure:!0,standalone:!0}),se})();function Os(se){return!(null==se||""===se||se!=se)}function er(se){if("string"==typeof se&&!isNaN(Number(se)-parseFloat(se)))return Number(se);if("number"!=typeof se)throw new Error(`${se} is not a number`);return se}let Qr=(()=>{class se{}return se.\u0275fac=function(de){return new(de||se)},se.\u0275mod=t.oAB({type:se}),se.\u0275inj=t.cJS({}),se})();const qr="browser";function Mo(se){return se===qr}let kr=(()=>{class se{}return se.\u0275prov=(0,t.Yz7)({token:se,providedIn:"root",factory:()=>new He((0,t.LFG)(M),window)}),se})();class He{constructor(De,de){this.document=De,this.window=de,this.offset=()=>[0,0]}setOffset(De){this.offset=Array.isArray(De)?()=>De:De}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(De){this.supportsScrolling()&&this.window.scrollTo(De[0],De[1])}scrollToAnchor(De){if(!this.supportsScrolling())return;const de=function H(se,De){const de=se.getElementById(De)||se.getElementsByName(De)[0];if(de)return de;if("function"==typeof se.createTreeWalker&&se.body&&(se.body.createShadowRoot||se.body.attachShadow)){const Le=se.createTreeWalker(se.body,NodeFilter.SHOW_ELEMENT);let ut=Le.currentNode;for(;ut;){const Wt=ut.shadowRoot;if(Wt){const an=Wt.getElementById(De)||Wt.querySelector(`[name="${De}"]`);if(an)return an}ut=Le.nextNode()}}return null}(this.document,De);de&&(this.scrollToElement(de),de.focus())}setHistoryScrollRestoration(De){if(this.supportScrollRestoration()){const de=this.window.history;de&&de.scrollRestoration&&(de.scrollRestoration=De)}}scrollToElement(De){const de=De.getBoundingClientRect(),Le=de.left+this.window.pageXOffset,ut=de.top+this.window.pageYOffset,Wt=this.offset();this.window.scrollTo(Le-Wt[0],ut-Wt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const De=gt(this.window.history)||gt(Object.getPrototypeOf(this.window.history));return!(!De||!De.writable&&!De.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function gt(se){return Object.getOwnPropertyDescriptor(se,"scrollRestoration")}class Fe{}},529:(o,u,a)=>{"use strict";a.d(u,{JF:()=>We,LE:()=>Y,TP:()=>at,UA:()=>X,WM:()=>S,Zn:()=>K,eN:()=>q});var t=a(6895),e=a(4650),s=a(9646),D=a(9751),x=a(4351),M=a(9300),w=a(4004);class I{}class P{}class S{constructor(pt){this.normalizedNames=new Map,this.lazyUpdate=null,pt?this.lazyInit="string"==typeof pt?()=>{this.headers=new Map,pt.split("\n").forEach(wt=>{const lt=wt.indexOf(":");if(lt>0){const xt=wt.slice(0,lt),$e=xt.toLowerCase(),ht=wt.slice(lt+1).trim();this.maybeSetNormalizedName(xt,$e),this.headers.has($e)?this.headers.get($e).push(ht):this.headers.set($e,[ht])}})}:()=>{this.headers=new Map,Object.entries(pt).forEach(([wt,lt])=>{let xt;if(xt="string"==typeof lt?[lt]:"number"==typeof lt?[lt.toString()]:lt.map($e=>$e.toString()),xt.length>0){const $e=wt.toLowerCase();this.headers.set($e,xt),this.maybeSetNormalizedName(wt,$e)}})}:this.headers=new Map}has(pt){return this.init(),this.headers.has(pt.toLowerCase())}get(pt){this.init();const wt=this.headers.get(pt.toLowerCase());return wt&&wt.length>0?wt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(pt){return this.init(),this.headers.get(pt.toLowerCase())||null}append(pt,wt){return this.clone({name:pt,value:wt,op:"a"})}set(pt,wt){return this.clone({name:pt,value:wt,op:"s"})}
vendor: 4,179 bytes, line 1
1delete(pt,wt){return this.clone({name:pt,value:wt,op:"d"})}maybeSetNormalizedName(pt,wt){this.normalizedNames.has(wt)||this.normalizedNames.set(wt,pt)}init(){this.lazyInit&&(this.lazyInit instanceof S?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(pt=>this.applyUpdate(pt)),this.lazyUpdate=null))}copyFrom(pt){pt.init(),Array.from(pt.headers.keys()).forEach(wt=>{this.headers.set(wt,pt.headers.get(wt)),this.normalizedNames.set(wt,pt.normalizedNames.get(wt))})}clone(pt){const wt=new S;return wt.lazyInit=this.lazyInit&&this.lazyInit instanceof S?this.lazyInit:this,wt.lazyUpdate=(this.lazyUpdate||[]).concat([pt]),wt}applyUpdate(pt){const wt=pt.name.toLowerCase();switch(pt.op){case"a":case"s":let lt=pt.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(pt.name,wt);const xt=("a"===pt.op?this.headers.get(wt):void 0)||[];xt.push(...lt),this.headers.set(wt,xt);break;case"d":const $e=pt.value;if($e){let ht=this.headers.get(wt);if(!ht)return;ht=ht.filter(Ht=>-1===$e.indexOf(Ht)),0===ht.length?(this.headers.delete(wt),this.normalizedNames.delete(wt)):this.headers.set(wt,ht)}else this.headers.delete(wt),this.normalizedNames.delete(wt)}}forEach(pt){this.init(),Array.from(this.normalizedNames.keys()).forEach(wt=>pt(this.normalizedNames.get(wt),this.headers.get(wt)))}}class z{encodeKey(pt){return G(pt)}encodeValue(pt){return G(pt)}decodeKey(pt){return decodeURIComponent(pt)}decodeValue(pt){return decodeURIComponent(pt)}}const ne=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function G(Pt){return encodeURIComponent(Pt).replace(ne,(pt,wt)=>B[wt]??pt)}function W(Pt){return`${Pt}`}class Y{constructor(pt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=pt.encoder||new z,pt.fromString){if(pt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F(Pt,pt){const wt=new Map;return Pt.length>0&&Pt.replace(/^\?/,"").split("&").forEach(xt=>{const $e=xt.indexOf("="),[ht,Ht]=-1==$e?[pt.decodeKey(xt),""]:[pt.decodeKey(xt.slice(0,$e)),pt.decodeValue(xt.slice($e+1))],Jt=wt.get(ht)||[];Jt.push(Ht),wt.set(ht,Jt)}),wt}(pt.fromString,this.encoder)}else pt.fromObject?(this.map=new Map,Object.keys(pt.fromObject).forEach(wt=>{const lt=pt.fromObject[wt],xt=Array.isArray(lt)?lt.map(W):[W(lt)];this.map.set(wt,xt)})):this.map=null}has(pt){return this.init(),this.map.has(pt)}get(pt){this.init();const wt=this.map.get(pt);return wt?wt[0]:null}getAll(pt){return this.init(),this.map.get(pt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(pt,wt){return this.clone({param:pt,value:wt,op:"a"})}appendAll(pt){const wt=[];return Object.keys(pt).forEach(lt=>{const xt=pt[lt];Array.isArray(xt)?xt.forEach($e=>{wt.push({param:lt,value:$e,op:"a"})}):wt.push({param:lt,value:xt,op:"a"})}),this.clone(wt)}set(pt,wt){return this.clone({param:pt,value:wt,op:"s"})}delete(pt,wt){return this.clone({param:pt,value:wt,op:"d"})}toString(){return this.init(),this.keys().map(pt=>{const wt=this.encoder.encodeKey(pt);return this.map.get(pt).map(lt=>wt+"="+this.encoder.encodeValue(lt)).join("&")}).filter(pt=>""!==pt).join("&")}clone(pt){const wt=new Y({encoder:this.encoder});return wt.cloneFrom=this.cloneFrom||this,wt.updates=(this.updates||[]).concat(pt),wt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(pt=>this.map.set(pt,this.cloneFrom.map.get(pt))),this.updates.forEach(pt=>{switch(pt.op){case"a":case"s":const wt=("a"===pt.op?this.map.get(pt.param):void 0)||[];wt.push(W(pt.value)),this.map.set(pt.param,wt);break;case"d":if(void 0===pt.value){this.map.delete(pt.param);break}{let lt=this.map.get(pt.param)||[];const xt=lt.indexOf(W(pt.value));-1!==xt&<.splice(xt,1),lt.length>0?this.map.set(pt.param,lt):this.map.delete(pt.param)}}}),this.cloneFrom=this.updates=null)}}class N{constructor(){this.map=new Map}set(pt,wt){return this.map.set(pt,wt),this}get(pt){return this.map.has(pt)||this.map.set(pt,pt.defaultValue()),this.map.get(pt)}delete(pt){return this.map.delete(pt),this}has(pt){return this.map.has(pt)}
1keys(){return this.map.keys()}}function O(Pt){return typeof ArrayBuffer<"u"&&Pt instanceof ArrayBuffer}function ee(Pt){return typeof Blob<"u"&&Pt instanceof Blob}function ue(Pt){return typeof FormData<"u"&&Pt instanceof FormData}class be{constructor(pt,wt,lt,xt){let $e;if(this.url=wt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=pt.toUpperCase(),function Q(Pt){switch(Pt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xt?(this.body=void 0!==lt?lt:null,$e=xt):$e=lt,$e&&(this.reportProgress=!!$e.reportProgress,this.withCredentials=!!$e.withCredentials,$e.responseType&&(this.responseType=$e.responseType),$e.headers&&(this.headers=$e.headers),$e.context&&(this.context=$e.context),$e.params&&(this.params=$e.params)),this.headers||(this.headers=new S),this.context||(this.context=new N),this.params){const ht=this.params.toString();if(0===ht.length)this.urlWithParams=wt;else{const Ht=wt.indexOf("?");this.urlWithParams=wt+(-1===Ht?"?":Ht<wt.length-1?"&":"")+ht}}else this.params=new Y,this.urlWithParams=wt}serializeBody(){return null===this.body?null:O(this.body)||ee(this.body)||ue(this.body)||function _e(Pt){return typeof URLSearchParams<"u"&&Pt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Y?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||ue(this.body)?null:ee(this.body)?this.body.type||null:O(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Y?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(pt={}){const wt=pt.method||this.method,lt=pt.url||this.url,xt=pt.responseType||this.responseType,$e=void 0!==pt.body?pt.body:this.body,ht=void 0!==pt.withCredentials?pt.withCredentials:this.withCredentials,Ht=void 0!==pt.reportProgress?pt.reportProgress:this.reportProgress;let Jt=pt.headers||this.headers,Dn=pt.params||this.params;const En=pt.context??this.context;return void 0!==pt.setHeaders&&(Jt=Object.keys(pt.setHeaders).reduce((At,Ct)=>At.set(Ct,pt.setHeaders[Ct]),Jt)),pt.setParams&&(Dn=Object.keys(pt.setParams).reduce((At,Ct)=>At.set(Ct,pt.setParams[Ct]),Dn)),new be(wt,lt,$e,{params:Dn,headers:Jt,context:En,reportProgress:Ht,responseType:xt,withCredentials:ht})}}var Qe=(()=>((Qe=Qe||{})[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe))();class ze{constructor(pt,wt=200,lt="OK"){this.headers=pt.headers||new S,this.status=void 0!==pt.status?pt.status:wt,this.statusText=pt.statusText||lt,this.url=pt.url||null,this.ok=this.status>=200&&this.status<300}}class Oe extends ze{constructor(pt={}){super(pt),this.type=Qe.ResponseHeader}clone(pt={}){return new Oe({headers:pt.headers||this.headers,status:void 0!==pt.status?pt.status:this.status,statusText:pt.statusText||this.statusText,url:pt.url||this.url||void 0})}}class K extends ze{constructor(pt={}){super(pt),this.type=Qe.Response,this.body=void 0!==pt.body?pt.body:null}clone(pt={}){return new K({body:void 0!==pt.body?pt.body:this.body,headers:pt.headers||this.headers,status:void 0!==pt.status?pt.status:this.status,statusText:pt.statusText||this.statusText,url:pt.url||this.url||void 0})}}class X extends ze{constructor(pt){super(pt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${pt.url||"(unknown url)"}`:`Http failure response for ${pt.url||"(unknown url)"}: ${pt.status} ${pt.statusText}`,this.error=pt.error||null}}function V(Pt,pt){return{body:pt,headers:Pt.headers,context:Pt.context,observe:Pt.observe,params:Pt.params,reportProgress:Pt.reportProgress,responseType:Pt.responseType,withCredentials:Pt.withCredentials}}let q=(()=>{class Pt{constructor(wt){this.handler=wt}request(wt,lt,xt={}){let $e;if(wt instanceof be)$e=wt;else{let Jt,Dn;Jt=xt.headers instanceof S?xt.headers:new S(xt.headers),xt.params&&(Dn=xt.params instanceof Y?xt.params:new Y({fromObject:xt.params})),$e=new be(wt,lt,void 0!==xt.body?xt.body:null,{headers:Jt,context:xt.context,params:Dn,reportProgress:xt.reportProgress,responseType:xt.responseType||"json",withCredentials:xt.withCredentials})}const ht=(0,s.of)($e).pipe((0,x.b)(Jt=>this.handler.handle(Jt)));if(wt instanceof be||"events"===xt.observe)return ht;const Ht=ht.pipe((0,M.h)(Jt=>Jt instanceof K));switch(xt.observe||"body"){case"body":switch($e.responseType){case"arraybuffer":return Ht.pipe((0,w.U)(Jt=>{if(null!==Jt.body&&!(Jt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Jt.body}));case"blob":return Ht.pipe((0,w.U)(Jt=>{if(null!==Jt.body&&!(Jt.body instanceof Blob))throw new Error("Response is not a Blob.");return Jt.body}));case"text":return Ht.pipe((0,w.U)(Jt=>{if(null!==Jt.body&&"string"!=typeof Jt.body)throw new Error("Response is not a string.");return Jt.body}));default:return Ht.pipe((0,w.U)(Jt=>Jt.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${xt.observe}}`)}}delete(wt,lt={}){return this.request("DELETE",wt,lt)}get(wt,lt={}){return this.request("GET",wt,lt)}head(wt,lt={}){return this.request("HEAD",wt,lt)}jsonp(wt,lt){return this.request("JSONP",wt,{params:(new Y).append(lt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(wt,lt={}){return this.request("OPTIONS",wt,lt)}patch(wt,lt,xt={}){return this.request("PATCH",wt,V(xt,lt))}post(wt,lt,xt={}){return this.request("POST",wt,V(xt,lt))}put(wt,lt,xt={}){return this.request("PUT",wt,V(xt,lt))}}return Pt.\u0275fac=function(wt){return new(wt||Pt)(e.LFG(I))},Pt.\u0275prov=e.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();function Ee(Pt,pt){return pt(Pt)}function ye(Pt,pt){return(wt,lt)=>pt.intercept(wt,{handle:xt=>Pt(xt,lt)})}const at=new e.OlP("HTTP_INTERCEPTORS"),me=new e.OlP("HTTP_INTERCEPTOR_FNS");function ve(){let Pt=null;return(pt,wt)=>(null===Pt&&(Pt=((0,e.f3M)(at,{optional:!0})??[]).reduceRight(ye,Ee)),Pt(pt,wt))}let je=(()=>{class Pt extends I{constructor(wt,lt){super(),this.backend=wt,this.injector=lt,this.chain=null}handle(wt){if(null===this.chain){const lt=Array.from(new Set(this.injector.get(me)));this.chain=lt.reduceRight((xt,$e)=>function nt(Pt,pt,wt){return(lt,xt)=>wt.runInContext(()=>pt(lt,$e=>Pt($e,xt)))}(xt,$e,this.injector),Ee)}return this.chain(wt,lt=>this.backend.handle(lt))}}return Pt.\u0275fac=function(wt){return new(wt||Pt)(e.LFG(P),e.LFG(e.lqb))},Pt.\u0275prov=e.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const _n=/^\)\]\}',?\n/;let Yt=(()=>{class Pt{constructor(wt){this.xhrFactory=wt}handle(wt){if("JSONP"===wt.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(lt=>{const xt=this.xhrFactory.build();if(xt.open(wt.method,wt.urlWithParams),wt.withCredentials&&(xt.withCredentials=!0),wt.headers.forEac
1h((qe,Tt)=>xt.setRequestHeader(qe,Tt.join(","))),wt.headers.has("Accept")||xt.setRequestHeader("Accept","application/json, text/plain, */*"),!wt.headers.has("Content-Type")){const qe=wt.detectContentTypeHeader();null!==qe&&xt.setRequestHeader("Content-Type",qe)}if(wt.responseType){const qe=wt.responseType.toLowerCase();xt.responseType="json"!==qe?qe:"text"}const $e=wt.serializeBody();let ht=null;const Ht=()=>{if(null!==ht)return ht;const qe=xt.statusText||"OK",Tt=new S(xt.getAllResponseHeaders()),Qt=function zt(Pt){return"responseURL"in Pt&&Pt.responseURL?Pt.responseURL:/^X-Request-URL:/m.test(Pt.getAllResponseHeaders())?Pt.getResponseHeader("X-Request-URL"):null}(xt)||wt.url;return ht=new Oe({headers:Tt,status:xt.status,statusText:qe,url:Qt}),ht},Jt=()=>{let{headers:qe,status:Tt,statusText:Qt,url:nn}=Ht(),dn=null;204!==Tt&&(dn=typeof xt.response>"u"?xt.responseText:xt.response),0===Tt&&(Tt=dn?200:0);let ai=Tt>=200&&Tt<300;if("json"===wt.responseType&&"string"==typeof dn){const ni=dn;dn=dn.replace(_n,"");try{dn=""!==dn?JSON.parse(dn):null}catch(ei){dn=ni,ai&&(ai=!1,dn={error:ei,text:dn})}}ai?(lt.next(new K({body:dn,headers:qe,status:Tt,statusText:Qt,url:nn||void 0})),lt.complete()):lt.error(new X({error:dn,headers:qe,status:Tt,statusText:Qt,url:nn||void 0}))},Dn=qe=>{const{url:Tt}=Ht(),Qt=new X({error:qe,status:xt.status||0,statusText:xt.statusText||"Unknown Error",url:Tt||void 0});lt.error(Qt)};let En=!1;const At=qe=>{En||(lt.next(Ht()),En=!0);let Tt={type:Qe.DownloadProgress,loaded:qe.loaded};qe.lengthComputable&&(Tt.total=qe.total),"text"===wt.responseType&&xt.responseText&&(Tt.partialText=xt.responseText),lt.next(Tt)},Ct=qe=>{let Tt={type:Qe.UploadProgress,loaded:qe.loaded};qe.lengthComputable&&(Tt.total=qe.total),lt.next(Tt)};return xt.addEventListener("load",Jt),xt.addEventListener("error",Dn),xt.addEventListener("timeout",Dn),xt.addEventListener("abort",Dn),wt.reportProgress&&(xt.addEventListener("progress",At),null!==$e&&xt.upload&&xt.upload.addEventListener("progress",Ct)),xt.send($e),lt.next({type:Qe.Sent}),()=>{xt.removeEventListener("error",Dn),xt.removeEventListener("abort",Dn),xt.removeEventListener("load",Jt),xt.removeEventListener("timeout",Dn),wt.reportProgress&&(xt.removeEventListener("progress",At),null!==$e&&xt.upload&&xt.upload.removeEventListener("progress",Ct)),xt.readyState!==xt.DONE&&xt.abort()}})}}return Pt.\u0275fac=function(wt){return new(wt||Pt)(e.LFG(t.JF))},Pt.\u0275prov=e.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();const It=new e.OlP("XSRF_ENABLED"),Rn=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vn=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mi{}let Un=(()=>{class Pt{constructor(wt,lt,xt){this.doc=wt,this.platform=lt,this.cookieName=xt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const wt=this.doc.cookie||"";return wt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(wt,this.cookieName),this.lastCookieString=wt),this.lastToken}}return Pt.\u0275fac=function(wt){return new(wt||Pt)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Rn))},Pt.\u0275prov=e.Yz7({token:Pt,factory:Pt.\u0275fac}),Pt})();function Jn(Pt,pt){const wt=Pt.url.toLowerCase();if(!(0,e.f3M)(It)||"GET"===Pt.method||"HEAD"===Pt.method||wt.startsWith("http://")||wt.startsWith("https://"))return pt(Pt);const lt=(0,e.f3M)(mi).getToken(),xt=(0,e.f3M)(vn);return null!=lt&&!Pt.headers.has(xt)&&(Pt=Pt.clone({headers:Pt.headers.set(xt,lt)})),pt(Pt)}var Vt=(()=>((Vt=Vt||{})[Vt.Interceptors=0]="Interceptors",Vt[Vt.LegacyInterceptors=1]="LegacyInterceptors",Vt[Vt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Vt[Vt.NoXsrfProtection=3]="NoXsrfProtection",Vt[Vt.JsonpSupport=4]="JsonpSupport",Vt[Vt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Vt))();function Z(Pt,pt){return{\u0275kind:Pt,\u0275providers:pt}}function re(...Pt){const pt=[q,Yt,je,{provide:I,useExisting:je},{provide:P,useExisting:Yt},{provide:me,useValue:Jn,multi:!0},{provide:It,useValue:!0},{provide:mi,useClass:Un}];for(const wt of Pt)pt.push(...wt.\u0275providers);return(0,e.MR2)(pt)}const Re=new e.OlP("LEGACY_INTERCEPTOR_FN");let We=(()=>{class Pt{}return Pt.\u0275fac=function(wt){return new(wt||Pt)},Pt.\u0275mod=e.oAB({type:Pt}),Pt.\u0275inj=e.cJS({providers:[re(Z(Vt.LegacyInterceptors,[{provide:Re,useFactory:ve},{provide:me,useExisting:Re,multi:!0}]))]}),Pt})()},4650:(o,u,a)=>{"use strict";a.d(u,{$8M:()=>An,$WT:()=>Qi,$Z:()=>Xh,AFp:()=>Rv,ALo:()=>X_,AaK:()=>I,Akn:()=>Ga,AsE:()=>Bf,BQk:()=>pp,CHM:()=>xr,CRH:()=>dv,CZH:()=>Tp,CqO:()=>og,D6c:()=>mC,DdM:()=>V_,EJc:()=>A1,EiD:()=>fu,EpF:()=>sg,F$t:()=>hg,F4k:()=>rg,FYo:()=>Ph,FiY:()=>xl,G48:()=>Q1,Gf:()=>cv,GfV:()=>Rh,GkF:()=>Ef,Gpc:()=>k,Gre:()=>$g,HTZ:()=>j_,Hh0:()=>G_,Hsn:()=>pg,JOm:()=>Lo,JVY:()=>Wd,JZr:()=>G,Jf7:()=>Fh,KtG:()=>to,L6k:()=>mc,LAX:()=>gc,LFG:()=>We,LSH:()=>wc,Lbi:()=>T1,Lck:()=>Ob,MAs:()=>ig,MGl:()=>fp,MMx:()=>Kf,MR2:()=>tt,NdJ:()=>If,O4$:()=>Ko,OlP:()=>Ui,Oqu:()=>Nf,P3R:()=>_,PXZ:()=>j1,Q6J:()=>Sf,QGY:()=>Df,QbO:()=>E1,Qsj:()=>Mm,R0b:()=>wa,RDi:()=>Gu,Rgc:()=>wh,SBq:()=>vu,Sil:()=>O1,Suo:()=>uv,TTD:()=>pr,TgZ:()=>up,Tol:()=>Ig,Udp:()=>Rf,VKq:()=>H_,W1O:()=>mv,WLB:()=>z_,X6Q:()=>J1,XFs:()=>It,Xpm:()=>ai,Xts:()=>U,Y36:()=>Dc,YKP:()=>A_,YNc:()=>ng,Yjl:()=>Is,Yz7:()=>mt,Z0I:()=>bt,ZZ4:()=>bm,_Bn:()=>I_,_UZ:()=>
1Tf,_Vd:()=>id,_c5:()=>pC,_uU:()=>Lg,aQg:()=>Cm,c2e:()=>D1,cJS:()=>tn,cg1:()=>Hf,dDg:()=>z1,dqk:()=>Un,eBb:()=>Kd,eFA:()=>Wv,eJc:()=>sm,ekj:()=>Ff,eoX:()=>$v,evT:()=>Lh,f3M:()=>Ft,g9A:()=>Lv,gM2:()=>nv,h0i:()=>bd,hGG:()=>fC,hij:()=>_p,iGM:()=>lv,ifc:()=>Jt,ip1:()=>Pv,jDz:()=>O_,kEZ:()=>U_,kL8:()=>t_,kYT:()=>Ss,kcU:()=>da,l5B:()=>$_,lG2:()=>bs,lcZ:()=>ev,lnq:()=>Vf,lqb:()=>Ls,lri:()=>zv,mCW:()=>Cc,n5z:()=>La,oAB:()=>Js,oJD:()=>Bl,oxw:()=>dg,pB0:()=>_c,q3G:()=>xs,qLn:()=>Mc,qOj:()=>bf,qZA:()=>dp,qbA:()=>Z_,qzn:()=>dl,rFY:()=>W_,rWj:()=>Uv,s9C:()=>Af,sBO:()=>q1,s_b:()=>wp,soG:()=>Ep,tb:()=>jv,tp0:()=>Xo,uIk:()=>wf,uOi:()=>gu,vHH:()=>W,vpe:()=>gl,wAp:()=>oi,xi3:()=>tv,xp6:()=>zh,ynx:()=>hp,z2F:()=>Dp,z3N:()=>so,zSh:()=>Hn,zs3:()=>Ec});var t=a(7579),e=a(727),s=a(9751),D=a(6451),x=a(3099);function M(n){for(let i in n)if(n[i]===M)return i;throw Error("Could not find renamed property on target object.")}function w(n,i){for(const l in i)i.hasOwnProperty(l)&&!n.hasOwnProperty(l)&&(n[l]=i[l])}function I(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(I).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const l=i.indexOf("\n");return-1===l?i:i.substring(0,l)}function P(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const S=M({__forward_ref__:M});function k(n){return n.__forward_ref__=k,n.toString=function(){return I(this())},n}function z(n){return F(n)?n():n}function F(n){return"function"==typeof n&&n.hasOwnProperty(S)&&n.__forward_ref__===k}function ne(n){return n&&!!n.\u0275providers}const G="https://g.co/ng/security#xss";class W extends Error{constructor(i,l){super(Y(i,l)),this.code=i}}function Y(n,i){return`NG0${Math.abs(n)}${i?": "+i.trim():""}`}function fe(n){return"string"==typeof n?n:null==n?"":String(n)}function ue(n,i){throw new W(-201,!1)}function me(n,i){null==n&&function ve(n,i,l,m){throw new Error(`ASSERTION ERROR: ${n}`+(null==m?"":` [Expected=> ${l} ${m} ${i} <=Actual]`))}(i,n,null,"!=")}function mt(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function tn(n){return{providers:n.providers||[],imports:n.imports||[]}}function yt(n){return Ye(n,pn)||Ye(n,zt)}function bt(n){return null!==yt(n)}function Ye(n,i){return n.hasOwnProperty(i)?n[i]:null}function xn(n){return n&&(n.hasOwnProperty(_n)||n.hasOwnProperty(Yt))?n[_n]:null}const pn=M({\u0275prov:M}),_n=M({\u0275inj:M}),zt=M({ngInjectableDef:M}),Yt=M({ngInjectorDef:M});var It=(()=>((It=It||{})[It.Default=0]="Default",It[It.Host=1]="Host",It[It.Self=2]="Self",It[It.SkipSelf=4]="SkipSelf",It[It.Optional=8]="Optional",It))();let bn;function Sn(n){const i=bn;return bn=n,i}function vn(n,i,l){const m=yt(n);return m&&"root"==m.providedIn?void 0===m.value?m.value=m.factory():m.value:l&It.Optional?null:void 0!==i?i:void ue(I(n))}const Un=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Z={},re="__NG_DI_FLAG__",pe="ngTempTokenPath",Re="ngTokenPath",Bt=/\n/gm,jt="\u0275",_t="__source";let dt;function Be(n){const i=dt;return dt=n,i}function Te(n,i=It.Default){if(void 0===dt)throw new W(-203,!1);return null===dt?vn(n,void 0,i):dt.get(n,i&It.Optional?null:void 0,i)}function We(n,i=It.Default){return(function Rn(){return bn}()||Te)(z(n),i)}function Ft(n,i=It.Default){return We(n,Pt(i))}function Pt(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function pt(n){const i=[];for(let l=0;l<n.length;l++){const m=z(n[l]);if(Array.isArray(m)){if(0===m.length)throw new W(900,!1);let v,E=It.Default;for(let L=0;L<m.length;L++){const te=m[L],ae=lt(te);"number"==typeof ae?-1===ae?v=te.token:E|=ae:v=te}i.push(We(v,E))}else i.push(We(m))}return i}function wt(n,i){return n[re]=i,n.prototype[re]=i,n}function lt(n){return n[re]}function ht(n){return{toString:n}.toString()}var Ht=(()=>((Ht=Ht||{})[Ht.OnPush=0]="OnPush",Ht[Ht.Default=1]="Default",Ht))(),Jt=(()=>{return(n=Jt||(Jt={}
vendor: 26,528 bytes, line 1
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Jt;var n})();const Dn={},En=[],At=M({\u0275cmp:M}),Ct=M({\u0275dir:M}),qe=M({\u0275pipe:M}),Tt=M({\u0275mod:M}),Qt=M({\u0275fac:M}),nn=M({__NG_ELEMENT_ID__:M});let dn=0;function ai(n){return ht(()=>{const i=ls(n),l={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Ht.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,data:n.data||{},encapsulation:n.encapsulation||Jt.Emulated,id:"c"+dn++,styles:n.styles||En,_:null,schemas:n.schemas||null,tView:null};ps(l);const m=n.dependencies;return l.directiveDefs=Ms(m,!1),l.pipeDefs=Ms(m,!0),l})}function ei(n){return Yn(n)||Ji(n)}function rs(n){return null!==n}function Js(n){return ht(()=>({type:n.type,bootstrap:n.bootstrap||En,declarations:n.declarations||En,imports:n.imports||En,exports:n.exports||En,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Ss(n,i){return ht(()=>{const l=Li(n,!0);l.declarations=i.declarations||En,l.imports=i.imports||En,l.exports=i.exports||En})}function Mi(n,i){if(null==n)return Dn;const l={};for(const m in n)if(n.hasOwnProperty(m)){let v=n[m],E=v;Array.isArray(v)&&(E=v[1],v=v[0]),l[v]=m,i&&(i[v]=E)}return l}function bs(n){return ht(()=>{const i=ls(n);return ps(i),i})}function Is(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Yn(n){return n[At]||null}function Ji(n){return n[Ct]||null}function Ai(n){return n[qe]||null}function Qi(n){const i=Yn(n)||Ji(n)||Ai(n);return null!==i&&i.standalone}function Li(n,i){const l=n[Tt]||null;if(!l&&!0===i)throw new Error(`Type ${I(n)} does not have '\u0275mod' property.`);return l}function ls(n){const i={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,exportAs:n.exportAs||null,standalone:!0===n.standalone,selectors:n.selectors||En,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Mi(n.inputs,i),outputs:Mi(n.outputs)}}function ps(n){n.features?.forEach(i=>i(n))}function Ms(n,i){if(!n)return null;const l=i?Ai:ei;return()=>("function"==typeof n?n():n).map(m=>l(m)).filter(rs)}const ki=0,sn=1,Wn=2,hi=3,fs=4,Ve=5,he=6,we=7,Ne=8,vt=9,rn=10,hn=11,Gn=12,Xn=13,ji=14,Ni=15,xi=16,ms=17,Qs=18,Qn=19,ir=20,qs=21,Ii=22,qi=1,Xs=2,Ti=7,gs=8,Ns=9,Xi=10;function os(n){return Array.isArray(n)&&"object"==typeof n[qi]}function $i(n){return Array.isArray(n)&&!0===n[qi]}function As(n){return 0!=(4&n.flags)}function Bs(n){return n.componentOffset>-1}function ks(n){return 1==(1&n.flags)}function ts(n){return!!n.template}function Jr(n){return 0!=(256&n[Wn])}function Vs(n,i){return n.hasOwnProperty(Qt)?n[Qt]:null}class Xr{constructor(i,l,m){this.previousValue=i,this.currentValue=l,this.firstChange=m}isFirstChange(){return this.firstChange}}function pr(){return kr}function kr(n){return n.type.prototype.ngOnChanges&&(n.setInput=gt),He}function He(){const n=xe(this),i=n?.current;if(i){const l=n.previous;if(l===Dn)n.previous=i;else for(let m in i)l[m]=i[m];n.current=null,this.ngOnChanges(i)}}function gt(n,i,l,m){const v=this.declaredInputs[l],E=xe(n)||function Fe(n,i){return n[H]=i}(n,{previous:Dn,current:null}),L=E.current||(E.current={}),te=E.previous,ae=te[v];L[v]=new Xr(ae&&ae.currentValue,i,te===Dn),n[m]=i}pr.ngInherit=!0;const H="__ngSimpleChanges__";function xe(n){return n[H]||null}const mn=function(n,i,l){},kn="svg";function $n(n){for(;Array.isArray(n);)n=n[ki];return n}function ns(n,i){return $n(i[n])}function Oi(n,i){return $n(i[n.index])}function $r(n,i){return n.data[i]}function fr(n,i){return n[i]}function es(n,i){const l=i[n];return os(l)?l:l[ki]}function mr(n){return 64==(64&n[Wn])}function tr(n,i){return null==i?null:n[i]}function Cr(n){n[Qs]=0}function To(n,i){n[Ve]+=i;let l=n,m=n[hi];for(;null!==m&&(1===i&&1===l[Ve]||-1===i&&0===l[Ve]);)m[Ve]+=i,l=m,m=m[hi]}const Kn={lFrame:Go(null),bindingsEnabled:!0};function Gt(){return Kn.bindingsEnabled}function Xt(){return Kn.lFrame.lView}function di(){return Kn.lFrame.tView}function xr(n){return Kn.lFrame.contextLView=n,n[Ne]}function to(n){return Kn.lFrame.contextLView=null,n}function as(){let n=Sa();for(;null!==n&&64===n.type;)n=n.parent;return n}function Sa(){return Kn.lFrame.currentTNode}function Ps(n,i){const l=Kn.lFrame;l.currentTNode=n,l.isParent=i}function zo(){return Kn.lFrame.isParent}function Uo(){Kn.lFrame.isParent=!1}function Cs(){const n=Kn.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function _i(){return Kn.lFrame.bindingIndex}function no(){return Kn.lFrame.bindingIndex++}function gr(n){const i=Kn.lFrame,l=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,l}function lo(n,i){const l=Kn.lFrame;l.bindingIndex=l.bindingRootIndex=n,Rr(i)}function Rr(n){Kn.lFrame.currentDirectiveIndex=n}function Io(){return Kn.lFrame.currentQueryIndex}function Ao(n){Kn.lFrame.currentQueryIndex=n}function Zo(n){const i=n[sn];return 2===i.type?i.declTNode:1===i.type?n[he]:null}function uo(n,i,l){if(l&It.SkipSelf){let v=i,E=n;for(;!(v=v.parent,null!==v||l&It.Host||(v=Zo(E),null===v||(E=E[Ni],10&v.type))););if(null===v)return!1;i=v,n=E}const m=Kn.lFrame=Zr();return m.currentTNode=i,m.lView=n,!0}function jo(n){const i=Zr(),l=n[sn];Kn.lFrame=i,i.currentTNode=l.firstChild,i.lView=n,i.tView=l,i.contextLView=n,i.bindingIndex=l.bindingStartIndex,i.inI18n=!1}function Zr(){const n=Kn.lFrame,i=null===n?null:n.child;return null===i?Go(n):i}function Go(n){const i={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:n,child:null,inI18n:!1};return null!==n&&(n.child=i),i}function Ta(){const n=Kn.lFrame;return Kn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ea=Ta;function Wo(){const n=Ta();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function _s(){return Kn.lFrame.selectedIndex}function cs(n){Kn.lFrame.selectedIndex=n}function Wi(){const n=Kn.lFrame;return $r(n.tView,n.selectedIndex)}function Ko(){Kn.lFrame.currentNamespace=kn}function da(){!function Qa(){Kn.lFrame.currentNamespace=null}()}function ho(n,i){for(let l=i.directiveStart,m=i.directiveEnd;l<m;l++){const E=n.data[l].type.prototype,{ngAfterContentInit:L,ngAfterContentChecked:te,ngAfterViewInit:ae,ngAfterViewChecked:Ie,ngOnDestroy:Ue}=E;L&&(n.contentHooks??(n.contentHooks=[])).push(-l,L),te&&((n.contentHooks??(n.contentHooks=[])).push(l,te),(n.contentCheckHooks??(n.contentCheckHooks=[])).push(l,te)),ae&&(n.viewHooks??(n.viewHooks=[])).push(-l,ae),Ie&&((n.viewHooks??(n.viewHooks=[])).push(l,Ie),(n.viewCheckHooks??(n.viewCheckHooks=[])).push(l,Ie)),null!=Ue&&(n.destroyHooks??(n.destroyHooks=[])).push(l,Ue)}}function ko(n,i,l){De(n,i,3,l)}function Oo(n,i,l,m){(3&n[Wn])===l&&De(n,i,l,m)}function se(n,i){let l=n[Wn];(3&l)===i&&(l&=2047,l+=1,n[Wn]=l)}function De(n,i,l,m){const E=m??-1,L=i.length-1;let te=0;for(let ae=void 0!==m?65535&n[Qs]:0;ae<L;ae++)if("number"==typeof i[ae+1]){if(te=i[ae],null!=m&&te>=m)break}else i[ae]<0&&(n[Qs]+=65536),(te<E||-1==E)&&(de(n,l,i,ae),n[Qs]=(4294901760&n[Qs])+ae+2),ae++}function de(n,i,l,m){const v=l[m]<0,E=l[m+1],te=n[v?-l[m]:l[m]];if(v){if(n[Wn]>>11<n[Qs]>>16&&(3&n[Wn])===i){n[Wn]+=2048,mn(4,te,E);try{E.call(te)}finally{mn(5,te,E)}}}else{mn(4,te,E);try{E.call(te)}finally{mn(5,te,E)}}}const Le=-1;class ut{constructor(i,l,m){this.factory=i,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=m}}function Ei(n,i,l){let m=0;for(;m<l.length;){const v=l[m];if("number"==typeof v){if(0!==v)break;m++;const E=l[m++],L=l[m++],te=l[m++];n.setAttribute(i,L,te,E)}else{const E=v,L=l[++m];_r(E)?n.setProperty(i,E,L):n.setAttribute(i,E,L),m++}}return m}function us(n){return 3===n||4===n||6===n}function _r(n){return 64===n.charCodeAt(0)}function vs(n,i){if(null!==i&&0!==i.length)if(null===n||0===n.length)n=i.slice();else{let l=-1;for(let m=0;m<i.length;m++){const v=i[m];"number"==typeof v?l=v:0===l||vr(n,l,v,null,-1===l||2===l?i[++m]:null)}}return n}function vr(n,i,l,m,v){let E=0,L=n.length;if(-1===i)L=-1;else for(;E<n.length;){const te=n[E++];if("number"==typeof te){if(te===i){L=-1;break}if(te>i){L=E-1;break}}}for(;E<n.length;){const te=n[E];if("number"==typeof te)break;if(te===l){if(null===m)return void(null!==v&&(n[E+1]=v));if(m===n[E+1])return void(n[E+2]=v)}E++,null!==m&&E++,null!==v&&E++}-1!==L&&(n.splice(L,0,i),E=L+1),n.splice(E++,0,l),null!==m&&n.splice(E++,0,m),null!==v&&n.splice(E++,0,v)}function zs(n){return n!==Le}function or(n){return 32767&n}function wr(n,i){let l=function Fr(n){return n>>16}(n),m=i;for(;l>0;)m=m[Ni],l--;return m}let Ia=!0;function Yo(n){const i=Ia;return Ia=n,i}const Jo=255,pa=5;let _l=0;const is={};function po(n,i){const l=qa(n,i);if(-1!==l)return l;const m=i[sn];m.firstCreatePass&&(n.injectorIndex=i.length,Po(m.data,n),Po(i,null),Po(m.blueprint,null));const v=Us(n,i),E=n.injectorIndex;if(zs(v)){const L=or(v),te=wr(v,i),ae=te[sn].data;for(let Ie=0;Ie<8;Ie++)i[E+Ie]=te[L+Ie]|ae[L+Ie]}return i[E+8]=v,E}function Po(n,i){n.push(0,0,0,0,0,0,0,0,i)}function qa(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function Us(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let l=0,m=null,v=i;for(;null!==v;){if(m=Ot(v),null===m)return Le;if(l++,v=v[Ni],-1!==m.injectorIndex)return m.injectorIndex|l<<16}return Le}function ka(n,i,l){!function Aa(n,i,l){let m;"string"==typeof l?m=l.charCodeAt(0)||0:l.hasOwnProperty(nn)&&(m=l[nn]),null==m&&(m=l[nn]=_l++);const v=m&Jo;i.data[n+(v>>pa)]|=1<<v}(n,i,l)}function Pa(n,i,l){if(l&It.Optional||void 0!==n)return n;ue()}function Ro(n,i,l,m){if(l&It.Optional&&void 0===m&&(m=null),!(l&(It.Self|It.Host))){const v=n[vt],E=Sn(void 0);try{return v?v.get(i,m,l&It.Optional):vn(i,m,l&It.Optional)}finally{Sn(E)}}return Pa(m,0,l)}function Ra(n,i,l,m=It.Default,v){if(null!==n){if(1024&i[Wn]){const L=function St(n,i,l,m,v){let E=n,L=i;for(;null!==E&&null!==L&&1024&L[Wn]&&!(256&L[Wn]);){const te=vl(E,L,l,m|It.Self,is);if(te!==is)return te;let ae=E.parent;if(!ae){const Ie=L[qs];if(Ie){const Ue=Ie.get(l,is,m);if(Ue!==is)return Ue}ae=Ot(L),L=L[Ni]}E=ae}return v}(n,i,l,m,is);if(L!==is)return L}const E=vl(n,i,l,m,is);if(E!==is)return E}return Ro(i,l,m,v)}function vl(n,i,l,m,v){const E=function Gr(n){if("string"==typeof n)return n.charCodeAt(0)||0;const i=n.hasOwnProperty(nn)?n[nn]:void 0;return"number"==typeof i?i>=0?i&Jo:bl:i}(l);if("function"==typeof E){if(!uo(i,n,m))return m&It.Host?Pa(v,0,m):Ro(i,l,m,v);try{const L=E(m);if(null!=L||m&It.Optional)return L;ue()}finally{Ea()}}else if("number"==typeof E){let L=null,te=qa(n,i),ae=Le,Ie=m&It.Host?i[xi][he]:null;for((-1===te||m&It.SkipSelf)&&(ae=-1===te?Us(n,i):i[te+8],ae!==Le&&Fa(m,!1)?(L=i[sn],te=or(ae),i=wr(ae,i)):te=-1);-1!==te;){const Ue=i[sn];if(ys(E,te,Ue.data)){const ct=yl(te,i,l,L,m,Ie);if(ct!==is)return ct}ae=i[te+8],ae!==Le&&Fa(m,i[sn].data[te+8]===Ie)&&ys(E,te,i)?(L=Ue,te=or(ae),i=wr(ae,i)):te=-1}}return v}function yl(n,i,l,m,v,E){const L=i[sn],te=L.data[n+8],Ue=Qo(te,L,l,null==m?Bs(te)&&Ia:m!=L&&0!=(3&te.type),v&It.Host&&E===te);return null!==Ue?jr(i,L,Ue,te):is}function Qo(n,i,l,m,v){const E=n.providerIndexes,L=i.data,te=1048575&E,ae=n.directiveStart,Ue=E>>20,Dt=v?te+Ue:n.directiveEnd;for(let Ut=m?te:te+Ue;Ut<Dt;Ut++){const cn=L[Ut];if(Ut<ae&&l===cn||Ut>=ae&&cn.type===l)return Ut}if(v){const Ut=L[ae];if(Ut&&ts(Ut)&&Ut.type===l)return ae}return null}function jr(n,i,l,m){let v=n[l];const E=i.data;if(function Wt(n){return n instanceof ut}(v)){const L=v;L.resolving&&function Q(n,i){const l=i?`. Dependency path: ${i.join(" > ")} > ${n}`:"";throw new W(-200,`Circular dependency in DI detected for ${n}${l}`)}(function N(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():fe(n)}(E[l]));const te=Yo(L.canSeeViewProviders);L.resolving=!0;const ae=L.injectImpl?Sn(L.injectImpl):null;uo(n,m,It.Default);try{v=n[l]=L.factory(void 0,E,n,m),i.firstCreatePass&&l>=m.directiveStart&&function ha(n,i,l){const{ngOnChanges:m,ngOnInit:v,ngDoCheck:E}=i.type.prototype;if(m){const L=kr(i);(l.preOrderHooks??(l.preOrderHooks=[])).push(n,L),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(n,L)}v&&(l.preOrderHooks??(l.preOrderHooks=[])).push(0-n,v),E&&((l.preOrderHooks??(l.preOrderHooks=[])).push(n,E),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(n,E))}(l,E[l],i)}finally{null!==ae&&Sn(ae),Yo(te),L.resolving=!1,Ea()}}return v}function ys(n,i,l){return!!(l[i+(n>>pa)]&1<<n)}function Fa(n,i){return!(n&It.Self||n&It.Host&&i)}class Ts{constructor(i,l){this._tNode=i,this._lView=l}get(i,l,m){return Ra(this._tNode,this._lView,i,Pt(m),l)}}function bl(){return new Ts(as(),Xt())}function La(n){return ht(()=>{const i=n.prototype.constructor,l=i[Qt]||Je(i),m=Object.prototype;let v=Object.getPrototypeOf(n.prototype).constructor;for(;v&&v!==m;){const E=v[Qt]||Je(v);if(E&&E!==l)return E;v=Object.getPrototypeOf(v)}return E=>new E})}function Je(n){return F(n)?()=>{const i=Je(z(n));return i&&i()}:Vs(n)}function Ot(n){const i=n[sn],l=i.type;return 2===l?i.declTNode:1===l?n[he]:null}function An(n){return function Oa(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const l=n.attrs;if(l){const m=l.length;let v=0;for(;v<m;){const E=l[v];if(us(E))break;if(0===E)v+=2;else if("number"==typeof E)for(v++;v<m&&"string"==typeof l[v];)v++;else{if(E===i)return l[v+1];v+=2}}}return null}(as(),n)}const ri="__parameters__";function Fs(n,i,l){return ht(()=>{const m=function Yi(n){return function(...l){if(n){const m=n(...l);for(const v in m)this[v]=m[v]}}}(i);function v(...E){if(this instanceof v)return m.apply(this,E),this;const L=new v(...E);return te.annotation=L,te;function te(ae,Ie,Ue){const ct=ae.hasOwnProperty(ri)?ae[ri]:Object.defineProperty(ae,ri,{value:[]})[ri];for(;ct.length<=Ue;)ct.push(null);return(ct[Ue]=ct[Ue]||[]).push(L),ae}}return l&&(v.prototype=Object.create(l.prototype)),v.prototype.ngMetadataName=n,v.annotationCls=v,v})}class Ui{constructor(i,l){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=mt({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function mo(n,i){n.forEach(l=>Array.isArray(l)?mo(l,i):i(l))}function Lc(n,i,l){i>=n.length?n.push(l):n.splice(i,0,l)}function $(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function J(n,i){const l=[];for(let m=0;m<n;m++)l.push(i);return l}function Ge(n,i,l){let m=qt(n,i);return m>=0?n[1|m]=l:(m=~m,function Se(n,i,l,m){let v=n.length;if(v==i)n.push(l,m);else if(1===v)n.push(m,n[0]),n[0]=l;else{for(v--,n.push(n[v-1],n[v]);v>i;)n[v]=n[v-2],v--;n[i]=l,n[i+1]=m}}(n,m,i,l)),m}function kt(n,i){const l=qt(n,i);if(l>=0)return n[1|l]}function qt(n,i){return function Fn(n,i,l){let m=0,v=n.length>>l;for(;v!==m;){const E=m+(v-m>>1),L=n[E<<l];if(i===L)return E<<l;L>i?v=E:m=E+1}return~(v<<l)}(n,i,1)}const xl=wt(Fs("Optional"),8),Xo=wt(Fs("SkipSelf"),4);var Lo=(()=>((Lo=Lo||{})[Lo.Important=1]="Important",Lo[Lo.DashCase=2]="DashCase",Lo))();const Zc=new Map;let Fd=0;const Wc="__ngContext__";function lr(n,i){os(i)?(n[Wc]=i[ir],function jc(n){Zc.set(n[ir],n)}(i)):n[Wc]=i}let nl;function ta(n,i){return nl(n,i)}function vo(n){const i=n[hi];return $i(i)?i[hi]:i}function Uu(n){return El(n[Xn])}function qc(n){return El(n[fs])}function El(n){for(;null!==n&&!$i(n);)n=n[fs];return n}function No(n,i,l,m,v){if(null!=m){let E,L=!1;$i(m)?E=m:os(m)&&(L=!0,m=m[ki]);const te=$n(m);0===n&&null!==l?null==v?su(i,l,te):Ha(i,l,te,v||null,!0):1===n&&null!==l?Ha(i,l,te,v||null,!0):2===n?function ru(n,i,l){const m=Kr(n,i);m&&function Zu(n,i,l,m){n.removeChild(i,l,m)}(n,m,i,l)}(i,te,L):3===n&&i.destroyNode(te),null!=E&&function kl(n,i,l,m,v){const E=l[Ti];E!==$n(l)&&No(i,n,m,E,v);for(let te=Xi;te<l.length;te++){const ae=l[te];cr(ae[sn],ae,n,i,m,E)}}(i,n,E,l,v)}}function ic(n,i,l){return n.createElement(i,l)}function Dl(n,i){const l=n[Ns],m=l.indexOf(i),v=i[hi];512&i[Wn]&&(i[Wn]&=-513,To(v,-1)),l.splice(m,1)}function sl(n,i){if(n.length<=Xi)return;const l=Xi+i,m=n[l];if(m){const v=m[ms];null!==v&&v!==n&&Dl(v,m),i>0&&(n[l-1][fs]=m[fs]);const E=$(n,Xi+i);!function tu(n,i){cr(n,i,i[hn],2,null,null),i[ki]=null,i[he]=null}(m[sn],m);const L=E[Qn];null!==L&&L.detachView(E[sn]),m[hi]=null,m[fs]=null,m[Wn]&=-65}return m}function yo(n,i){if(!(128&i[Wn])){const l=i[hn];l.destroyNode&&cr(n,i,l,3,null,null),function sc(n){let i=n[Xn];if(!i)return rl(n[sn],n);for(;i;){let l=null;if(os(i))l=i[Xn];else{const m=i[Xi];m&&(l=m)}if(!l){for(;i&&!i[fs]&&i!==n;)os(i)&&rl(i[sn],i),i=i[hi];null===i&&(i=n),os(i)&&rl(i[sn],i),l=i&&i[fs]}i=l}}(i)}}function rl(n,i){if(!(128&i[Wn])){i[Wn]&=-65,i[Wn]|=128,function Hd(n,i){let l;if(null!=n&&null!=(l=n.destroyHooks))for(let m=0;m<l.length;m+=2){const v=i[l[m]];if(!(v instanceof ut)){const E=l[m+1];if(Array.isArray(E))for(let L=0;L<E.length;L+=2){const te=v[E[L]],ae=E[L+1];mn(4,te,ae);try{ae.call(te)}finally{mn(5,te,ae)}}else{mn(4,v,E);try{E.call(v)}finally{mn(5,v,E)}}}}}(n,i),function oc(n,i){const l=n.cleanup,m=i[we];let v=-1;if(null!==l)for(let E=0;E<l.length-1;E+=2)if("string"==typeof l[E]){const L=l[E+3];L>=0?m[v=L]():m[v=-L].unsubscribe(),E+=2}else{const L=m[v=l[E+1]];l[E].call(L)}if(null!==m){for(let E=v+1;E<m.length;E++)(0,m[E])();i[we]=null}}(n,i),1===i[sn].type&&i[hn].destroy();const l=i[ms];if(null!==l&&$i(i[hi])){l!==i[hi]&&Dl(l,i);const m=i[Qn];null!==m&&m.detachView(n)}!function Ld(n){Zc.delete(n[ir])}(i)}}function ol(n,i,l){return function iu(n,i,l){let m=i;for(;null!==m&&40&m.type;)m=(i=m).parent;if(null===m)return l[ki];{const{componentOffset:v}=m;if(v>-1){const{encapsulation:E}=n.data[m.directiveStart+v];if(E===Jt.None||E===Jt.Emulated)return null}return Oi(m,l)}}(n,i.parent,l)}function Ha(n,i,l,m,v){n.insertBefore(i,l,m,v)}function su(n,i,l){n.appendChild(i,l)}function na(n,i,l,m,v){null!==m?Ha(n,i,l,m,v):su(n,i,l)}function Kr(n,i){return n.parentNode(i)}function al(n,i,l){return ac(n,i,l)}let lc,au,Pl,ul,ac=function ju(n,i,l){return 40&n.type?Oi(n,l):null};function ia(n,i,l,m){const v=ol(n,m,i),E=i[hn],te=al(m.parent||i[he],m,i);if(null!=v)if(Array.isArray(l))for(let ae=0;ae<l.length;ae++)na(E,v,l[ae],te,!1);else na(E,v,l,te,!1);void 0!==lc&&lc(E,m,i,l,v)}function cc(n,i){if(null!==i){const l=i.type;if(3&l)return Oi(i,n);if(4&l)return uc(-1,n[i.index]);if(8&l){const m=i.child;if(null!==m)return cc(n,m);{const v=n[i.index];return $i(v)?uc(-1,v):$n(v)}}if(32&l)return ta(i,n)()||$n(n[i.index]);{const m=Il(n,i);return null!==m?Array.isArray(m)?m[0]:cc(vo(n[xi]),m):cc(n,i.next)}}return null}function Il(n,i){return null!==i?n[xi][he].projection[i.projection]:null}function uc(n,i){const l=Xi+n+1;if(l<i.length){const m=i[l],v=m[sn].firstChild;if(null!==v)return cc(m,v)}return i[Ti]}function dc(n,i,l,m,v,E,L){for(;null!=l;){const te=m[l.index],ae=l.type;if(L&&0===i&&(te&&lr($n(te),m),l.flags|=2),32!=(32&l.flags))if(8&ae)dc(n,i,l.child,m,v,E,!1),No(i,n,v,te,E);else if(32&ae){const Ie=ta(l,m);let Ue;for(;Ue=Ie();)No(i,n,v,Ue,E);No(i,n,v,te,E)}else 16&ae?Al(n,i,m,l,v,E):No(i,n,v,te,E);l=L?l.projectionNext:l.next}}function cr(n,i,l,m,v,E){dc(l,m,n.firstChild,i,v,E,!1)}function Al(n,i,l,m,v,E){const L=l[xi],ae=L[he].projection[m.projection];if(Array.isArray(ae))for(let Ie=0;Ie<ae.length;Ie++)No(i,n,v,ae[Ie],E);else dc(n,i,ae,L[hi],v,E,!0)}function hc(n,i,l){""===l?n.removeAttribute(i,"class"):n.setAttribute(i,"class",l)}function Zd(n,i,l){const{mergedAttrs:m,classes:v,styles:E}=l;null!==m&&Ei(n,i,m),null!==v&&hc(n,i,v),null!==E&&function $d(n,i,l){n.setAttribute(i,"style",l)}(n,i,E)}function cl(n){return function sa(){if(void 0===au&&(au=null,Un.trustedTypes))try{au=Un.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return au}()?.createHTML(n)||n}function Gu(n){Pl=n}function Rl(){if(void 0===ul&&(ul=null,Un.trustedTypes))try{ul=Un.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return ul}function Ku(n){return Rl()?.createHTML(n)||n}function lu(n){return Rl()?.createScriptURL(n)||n}class Vo{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${G})`}}class Ju extends Vo{getTypeName(){return"HTML"}}class jd extends Vo{getTypeName(){return"Style"}}class Ca extends Vo{getTypeName(){return"Script"}}class fc extends Vo{getTypeName(){return"URL"}}class cu extends Vo{getTypeName(){return"ResourceURL"}}function so(n){return n instanceof Vo?n.changingThisBreaksApplicationSecurity:n}function dl(n,i){const l=function Gd(n){return n instanceof Vo&&n.getTypeName()||null}(n);if(null!=l&&l!==i){if("ResourceURL"===l&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${l} (see ${G})`)}return l===i}function Wd(n){return new Ju(n)}function mc(n){return new jd(n)}function Kd(n){return new Ca(n)}function gc(n){return new fc(n)}function _c(n){return new cu(n)}class vc{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const l=(new window.DOMParser).parseFromString(cl(i),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(i):(l.removeChild(l.firstChild),l)}catch{return null}}}class yc{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const l=this.inertDocument.createElement("template");return l.innerHTML=cl(i),l}}const bc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cc(n){return(n=String(n)).match(bc)?n:"unsafe:"+n}function ra(n){const i={};for(const l of n.split(","))i[l]=!0;return i}function Ua(...n){const i={};for(const l of n)for(const m in l)l.hasOwnProperty(m)&&(i[m]=!0);return i}const Yd=ra("area,br,col,hr,img,wbr"),Qu=ra("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qu=ra("rp,rt"),du=Ua(Yd,Ua(Qu,ra("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")),Ua(qu,ra("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")),Ua(qu,Qu)),hu=ra("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fl=Ua(hu,ra("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"),ra("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")),Nr=ra("script,style,template");class qd{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let l=i.firstChild,m=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?m=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,m&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let v=this.checkClobberedElement(l,l.nextSibling);if(v){l=v;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(i){const l=i.nodeName.toLowerCase();if(!du.hasOwnProperty(l))return this.sanitizedSomething=!0,!Nr.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const m=i.attributes;for(let v=0;v<m.length;v++){const E=m.item(v),L=E.name,te=L.toLowerCase();if(!Fl.hasOwnProperty(te)){this.sanitizedSomething=!0;continue}let ae=E.value;hu[te]&&(ae=Cc(ae)),this.buf.push(" ",L,'="',td(ae),'"')}return this.buf.push(">"),!0}endElement(i){const l=i.nodeName.toLowerCase();du.hasOwnProperty(l)&&!Yd.hasOwnProperty(l)&&(this.buf.push("</"),this.buf.push(l),this.buf.push(">"))}chars(i){this.buf.push(td(i))}checkClobberedElement(i,l){if(l&&(i.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return l}}const pu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ed=/([^\#-~ |!])/g;function td(n){return n.replace(/&/g,"&").replace(pu,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(ed,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Ll;function fu(n,i){let l=null;try{Ll=Ll||function za(n){const i=new yc(n);return function uu(){try{return!!(new window.DOMParser).parseFromString(cl(""),"text/html")}catch{return!1}}()?new vc(i):i}(n);let m=i?String(i):"";l=Ll.getInertBodyElement(m);let v=5,E=m;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,m=E,E=l.innerHTML,l=Ll.getInertBodyElement(m)}while(m!==E);return cl((new qd).sanitizeChildren(Nl(l)||l))}finally{if(l){const m=Nl(l)||l;for(;m.firstChild;)m.removeChild(m.firstChild)}}}
1function Nl(n){return"content"in n&&function nd(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var xs=(()=>((xs=xs||{})[xs.NONE=0]="NONE",xs[xs.HTML=1]="HTML",xs[xs.STYLE=2]="STYLE",xs[xs.SCRIPT=3]="SCRIPT",xs[xs.URL=4]="URL",xs[xs.RESOURCE_URL=5]="RESOURCE_URL",xs))();function Bl(n){const i=A();return i?Ku(i.sanitize(xs.HTML,n)||""):dl(n,"HTML")?Ku(so(n)):fu(function Wu(){return void 0!==Pl?Pl:typeof document<"u"?document:void 0}(),fe(n))}function wc(n){const i=A();return i?i.sanitize(xs.URL,n)||"":dl(n,"URL")?so(n):Cc(fe(n))}function gu(n){const i=A();if(i)return lu(i.sanitize(xs.RESOURCE_URL,n)||"");if(dl(n,"ResourceURL"))return lu(so(n));throw new W(904,!1)}function _(n,i,l){return function p(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?gu:wc}(i,l)(n)}function A(){const n=Xt();return n&&n[Gn]}const U=new Ui("ENVIRONMENT_INITIALIZER"),ie=new Ui("INJECTOR",-1),Me=new Ui("INJECTOR_DEF_TYPES");class ke{get(i,l=Z){if(l===Z){const m=new Error(`NullInjectorError: No provider for ${I(i)}!`);throw m.name="NullInjectorError",m}return l}}function tt(n){return{\u0275providers:n}}function st(...n){return{\u0275providers:ot(0,n),\u0275fromNgModule:!0}}function ot(n,...i){const l=[],m=new Set;let v;return mo(i,E=>{const L=E;Lt(L,l,[],m)&&(v||(v=[]),v.push(L))}),void 0!==v&&Et(v,l),l}function Et(n,i){for(let l=0;l<n.length;l++){const{providers:v}=n[l];on(v,E=>{i.push(E)})}}function Lt(n,i,l,m){if(!(n=z(n)))return!1;let v=null,E=xn(n);const L=!E&&Yn(n);if(E||L){if(L&&!L.standalone)return!1;v=n}else{const ae=n.ngModule;if(E=xn(ae),!E)return!1;v=ae}const te=m.has(v);if(L){if(te)return!1;if(m.add(v),L.dependencies){const ae="function"==typeof L.dependencies?L.dependencies():L.dependencies;for(const Ie of ae)Lt(Ie,i,l,m)}}else{if(!E)return!1;{if(null!=E.imports&&!te){let Ie;m.add(v);try{mo(E.imports,Ue=>{Lt(Ue,i,l,m)&&(Ie||(Ie=[]),Ie.push(Ue))})}finally{}void 0!==Ie&&Et(Ie,i)}if(!te){const Ie=Vs(v)||(()=>new v);i.push({provide:v,useFactory:Ie,deps:En},{provide:Me,useValue:v,multi:!0},{provide:U,useValue:()=>We(v),multi:!0})}const ae=E.providers;null==ae||te||on(ae,Ue=>{i.push(Ue)})}}return v!==n&&void 0!==n.providers}function on(n,i){for(let l of n)ne(l)&&(l=l.\u0275providers),Array.isArray(l)?on(l,i):i(l)}const Cn=M({provide:String,useValue:M});function gn(n){return null!==n&&"object"==typeof n&&Cn in n}function Tn(n){return"function"==typeof n}const Hn=new Ui("Set Injector scope."),wi={},Vi={};let Di;function ws(){return void 0===Di&&(Di=new ke),Di}class Ls{}class gi extends Ls{get destroyed(){return this._destroyed}constructor(i,l,m,v){super(),this.parent=l,this.source=m,this.scopes=v,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,zl(i,L=>this.processProvider(L)),this.records.set(ie,Co(void 0,this)),v.has("environment")&&this.records.set(Ls,Co(void 0,this));const E=this.records.get(Hn);null!=E&&"string"==typeof E.value&&this.scopes.add(E.value),this.injectorDefTypes=new Set(this.get(Me.multi,En,It.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const l=Be(this),m=Sn(void 0);try{return i()}finally{Be(l),Sn(m)}}get(i,l=Z,m=It.Default){this.assertNotDestroyed(),m=Pt(m);const v=Be(this),E=Sn(void 0);try{if(!(m&It.SkipSelf)){let te=this.records.get(i);if(void 0===te){const ae=function Hl(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ui}(i)&&yt(i);te=ae&&this.injectableDefInScope(ae)?Co(hs(i),wi):null,this.records.set(i,te)}if(null!=te)return this.hydrate(i,te)}return(m&It.Self?ws():this.parent).get(i,l=m&It.Optional&&l===Z?null:l)}catch(L){if("NullInjectorError"===L.name){if((L[pe]=L[pe]||[]).unshift(I(i)),v)throw L;return function xt(n,i,l,m){const v=n[pe];throw i[_t]&&v.unshift(i[_t]),n.message=function $e(n,i,l,m=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==jt?n.slice(2):n;let v=I(i);if(Array.isArray(i))v=i.map(I).join(" -> ");else if("object"==typeof i){let E=[];for(let L in i)if(i.hasOwnProperty(L)){let te=i[L];
vendor: 15,217 bytes, line 1
1E.push(L+":"+("string"==typeof te?JSON.stringify(te):I(te)))}v=`{${E.join(", ")}}`}return`${l}${m?"("+m+")":""}[${v}]: ${n.replace(Bt,"\n ")}`}("\n"+n.message,v,l,m),n[Re]=v,n[pe]=null,n}(L,i,"R3InjectorError",this.source)}throw L}finally{Sn(E),Be(v)}}resolveInjectorInitializers(){const i=Be(this),l=Sn(void 0);try{const m=this.get(U.multi,En,It.Self);for(const v of m)v()}finally{Be(i),Sn(l)}}toString(){const i=[],l=this.records;for(const m of l.keys())i.push(I(m));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(i){let l=Tn(i=z(i))?i:z(i&&i.provide);const m=function $a(n){return gn(n)?Co(void 0,n.useValue):Co(Vl(n),wi)}(i);if(Tn(i)||!0!==i.multi)this.records.get(l);else{let v=this.records.get(l);v||(v=Co(void 0,wi,!0),v.factory=()=>pt(v.multi),this.records.set(l,v)),l=i,v.multi.push(i)}this.records.set(l,m)}hydrate(i,l){return l.value===wi&&(l.value=Vi,l.value=l.factory()),"object"==typeof l.value&&l.value&&function hl(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(l.value)&&this._ngOnDestroyHooks.add(l.value),l.value}injectableDefInScope(i){if(!i.providedIn)return!1;const l=z(i.providedIn);return"string"==typeof l?"any"===l||this.scopes.has(l):this.injectorDefTypes.has(l)}}function hs(n){const i=yt(n),l=null!==i?i.factory:Vs(n);if(null!==l)return l;if(n instanceof Ui)throw new W(204,!1);if(n instanceof Function)return function Ds(n){const i=n.length;if(i>0)throw J(i,"?"),new W(204,!1);const l=function Nt(n){return n&&(n[pn]||n[zt])||null}(n);return null!==l?()=>l.factory(n):()=>new n}(n);throw new W(204,!1)}function Vl(n,i,l){let m;if(Tn(n)){const v=z(n);return Vs(v)||hs(v)}if(gn(n))m=()=>z(n.useValue);else if(function In(n){return!(!n||!n.useFactory)}(n))m=()=>n.useFactory(...pt(n.deps||[]));else if(function un(n){return!(!n||!n.useExisting)}(n))m=()=>We(z(n.useExisting));else{const v=z(n&&(n.useClass||n.provide));if(!function Sc(n){return!!n.deps}(n))return Vs(v)||hs(v);m=()=>new v(...pt(n.deps))}return m}function Co(n,i,l=!1){return{factory:n,value:i,multi:l?[]:void 0}}function zl(n,i){for(const l of n)Array.isArray(l)?zl(l,i):l&&ne(l)?zl(l.\u0275providers,i):i(l)}class _u{}class Ul{}class wm{resolveComponentFactory(i){throw function Xd(n){const i=Error(`No component factory found for ${I(n)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=n,i}(i)}}let id=(()=>{class n{}return n.NULL=new wm,n})();function Sm(){return $l(as(),Xt())}function $l(n,i){return new vu(Oi(n,i))}let vu=(()=>{class n{constructor(l){this.nativeElement=l}}return n.__NG_ELEMENT_ID__=Sm,n})();function Oh(n){return n instanceof vu?n.nativeElement:n}class Ph{}let Mm=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Tm(){const n=Xt(),l=es(as().index,n);return(os(l)?l:n)[hn]}(),n})(),Pp=(()=>{class n{}return n.\u0275prov=mt({token:n,providedIn:"root",factory:()=>null}),n})();class Rh{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const Rp=new Rh("15.2.10"),th={},nh="ngOriginalError";function ih(n){return n[nh]}class Mc{constructor(){this._console=console}handleError(i){const l=this._findOriginalError(i);this._console.error("ERROR",i),l&&this._console.error("ORIGINAL ERROR",l)}_findOriginalError(i){let l=i&&ih(i);for(;l&&ih(l);)l=ih(l);return l||null}}function Fh(n){return n.ownerDocument.defaultView}function Lh(n){return n.ownerDocument}function Za(n){return n instanceof Function?n():n}function Zp(n,i,l){let m=n.length;for(;;){const v=n.indexOf(i,l);if(-1===v)return v;if(0===v||n.charCodeAt(v-1)<=32){const E=i.length;if(v+E===m||n.charCodeAt(v+E)<=32)return v}l=v+1}}const Nh="ng-template";function jp(n,i,l){let m=0,v=!0;for(;m<n.length;){let E=n[m++];if("string"==typeof E&&v){const L=n[m++];if(l&&"class"===E&&-1!==Zp(L.toLowerCase(),i,0))return!0}else{if(1===E){for(;m<n.length&&"string"==typeof(E=n[m++]);)if(E.toLowerCase()===i)return!0;return!1}"number"==typeof E&&(v=!1)}}return!1}function Bh(n){return 4===n.type&&n.value!==Nh}function Gp(n,i,l){return i===(4!==n.type||l?n.value:Nh)}function Wp(n,i,l){let m=4;const v=n.attrs||[],E=function Vh(n){for(let i=0;i<n.length;i++)if(us(n[i]))return i;return n.length}(v);let L=!1;for(let te=0;te<i.length;te++){const ae=i[te];if("number"!=typeof ae){if(!L)if(4&m){if(m=2|1&m,""!==ae&&!Gp(n,ae,l)||""===ae&&1===i.length){if(oa(m))return!1;L=!0}}else{const Ie=8&m?ae:i[++te];if(8&m&&null!==n.attrs){if(!jp(n.attrs,Ie,l)){if(oa(m))return!1;L=!0}continue}const ct=Kp(8&m?"class":ae,v,Bh(n),l);if(-1===ct){if(oa(m))return!1;L=!0;continue}if(""!==Ie){let Dt;Dt=ct>E?"":v[ct+1].toLowerCase();const Ut=8&m?Dt:null;if(Ut&&-1!==Zp(Ut,Ie,0)||2&m&&Ie!==Dt){if(oa(m))return!1;L=!0}}}}else{if(!L&&!oa(m)&&!oa(ae))return!1;if(L&&oa(ae))continue;L=!1,m=ae|1&m}}return oa(m)||L}function oa(n){return 0==(1&n)}function Kp(n,i,l,m){if(null===i)return-1;let v=0;if(m||!l){let E=!1;for(;v<i.length;){const L=i[v];if(L===n)return v;if(3===L||6===L)E=!0;else{if(1===L||2===L){let te=i[++v];for(;"string"==typeof te;)te=i[++v];continue}if(4===L)break;if(0===L){v+=4;continue}}v+=E?1:2}return-1}return function Jp(n,i){let l=n.indexOf(4);if(l>-1)for(l++;l<n.length;){const m=n[l];if("number"==typeof m)return-1;if(m===i)return l;l++}return-1}(i,n)}function sh(n,i,l=!1){for(let m=0;m<i.length;m++)if(Wp(n,i[m],l))return!0;return!1}function Qp(n,i){e:for(let l=0;l<i.length;l++){const m=i[l];if(n.length===m.length){for(let v=0;v<n.length;v++)if(n[v]!==m[v])continue e;return!0}}return!1}function Hh(n,i){return n?":not("+i.trim()+")":i}function qp(n){let i=n[0],l=1,m=2,v="",E=!1;for(;l<n.length;){let L=n[l];if("string"==typeof L)if(2&m){const te=n[++l];v+="["+L+(te.length>0?'="'+te+'"':"")+"]"}else 8&m?v+="."+L:4&m&&(v+=" "+L);else""!==v&&!oa(L)&&(i+=Hh(E,v),v=""),m=L,E=E||!oa(m);l++}return""!==v&&(i+=Hh(E,v)),i}const vi={};function zh(n){Uh(di(),Xt(),_s()+n,!1)}function Uh(n,i,l,m){if(!m)if(3==(3&i[Wn])){const E=n.preOrderCheckHooks;null!==E&&ko(i,E,l)}else{const E=n.preOrderHooks;null!==E&&Oo(i,E,0,l)}cs(l)}function Zh(n,i=null,l=null,m){const v=af(n,i,l,m);return v.resolveInjectorInitializers(),v}function af(n,i=null,l=null,m,v=new Set){const E=[l||En,st(n)];return m=m||("object"==typeof n?void 0:I(n)),new gi(E,i||ws(),m||null,v)}let Ec=(()=>{class n{static create(l,m){if(Array.isArray(l))return Zh({name:""},m,l,"");{const v=l.name??"";return Zh({name:v},l.parent,l.providers,v)}}}return n.THROW_IF_NOT_FOUND=Z,n.NULL=new ke,n.\u0275prov=mt({token:n,providedIn:"any",factory:()=>We(ie)}),n.__NG_ELEMENT_ID__=-1,n})();function Dc(n,i=It.Default){const l=Xt();return null===l?We(n,i):Ra(as(),l,z(n),i)}function Xh(){throw new Error("invalid")}function ep(n,i){const l=n.contentQueries;if(null!==l)for(let m=0;m<l.length;m+=2){const E=l[m+1];if(-1!==E){const L=n.data[E];Ao(l[m]),L.contentQueries(2,i[E],E)}}}function oh(n,i,l,m,v,E,L,te,ae,Ie,Ue){const ct=i.blueprint.slice();return ct[ki]=v,ct[Wn]=76|m,(null!==Ue||n&&1024&n[Wn])&&(ct[Wn]|=1024),Cr(ct),ct[hi]=ct[Ni]=n,ct[Ne]=l,ct[rn]=L||n&&n[rn],ct[hn]=te||n&&n[hn],ct[Gn]=ae||n&&n[Gn]||null,ct[vt]=Ie||n&&n[vt]||null,ct[he]=E,ct[ir]=function tl(){return Fd++}(),ct[qs]=Ue,ct[xi]=2==i.type?n[xi]:ct,ct}function Ic(n,i,l,m,v){let E=n.data[i];if(null===E)E=function tp(n,i,l,m,v){const E=Sa(),L=zo(),ae=n.data[i]=function f(n,i,l,m,v,E){return{type:l,index:m,insertBeforeIndex:null,injectorIndex:i?i.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:v,attrs:E,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,L?E:E&&E.parent,l,i,m,v);return null===n.firstChild&&(n.firstChild=ae),null!==E&&(L?null==E.child&&null!==ae.parent&&(E.child=ae):null===E.next&&(E.next=ae,ae.prev=E)),ae}(n,i,l,m,v),function io(){return Kn.lFrame.inI18n}()&&(E.flags|=32);else if(64&E.type){E.type=l,E.value=m,E.attrs=v;const L=function Eo(){const n=Kn.lFrame,i=n.currentTNode;return n.isParent?i:i.parent}();E.injectorIndex=null===L?-1:L.injectorIndex}return Ps(E,!0),E}function rd(n,i,l,m){if(0===l)return-1;const v=i.length;for(let E=0;E<l;E++)i.push(m),n.blueprint.push(m),n.data.push(null);return v}function ah(n,i,l){jo(i);try{const m=n.viewQuery;null!==m&&ad(1,m,l);const v=n.template;null!==v&&yf(n,i,v,1,l),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&ep(n,i),n.staticViewQueries&&ad(2,n.viewQuery,l);const E=n.components;null!==E&&function vf(n,i){for(let l=0;l<i.length;l++)Zi(n,i[l])}(i,E)}catch(m){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),m}finally{i[Wn]&=-5,Wo()}}function lh(n,i,l,m){const v=i[Wn];if(128!=(128&v)){jo(i);try{Cr(i),function Pr(n){return Kn.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==l&&yf(n,i,l,2,m);const L=3==(3&v);if(L){const Ie=n.preOrderCheckHooks;null!==Ie&&ko(i,Ie,null)}else{const Ie=n.preOrderHooks;null!==Ie&&Oo(i,Ie,0,null),se(i,0)}if(function jn(n){for(let i=Uu(n);null!==i;i=qc(i)){if(!i[Xs])continue;const l=i[Ns];for(let m=0;m<l.length;m++){const v=l[m];512&v[Wn]||To(v[hi],1),v[Wn]|=512}}}(i),function rp(n){for(let i=Uu(n);null!==i;i=qc(i))for(let l=Xi;l<i.length;l++){const m=i[l],v=m[sn];mr(m)&&lh(v,m,v.template,m[Ne])}}(i),null!==n.contentQueries&&ep(n,i),L){const Ie=n.contentCheckHooks;null!==Ie&&ko(i,Ie)}else{const Ie=n.contentHooks;null!==Ie&&Oo(i,Ie,1),se(i,1)}!function _f(n,i){const l=n.hostBindingOpCodes;if(null!==l)try{for(let m=0;m<l.length;m++){const v=l[m];if(v<0)cs(~v);else{const E=v,L=l[++m],te=l[++m];lo(L,E),te(2,i[E])}}}finally{cs(-1)}}(n,i);const te=n.components;null!==te&&function Vm(n,i){for(let l=0;l<i.length;l++)ti(n,i[l])}(i,te);const ae=n.viewQuery;if(null!==ae&&ad(2,ae,m),L){const Ie=n.viewCheckHooks;null!==Ie&&ko(i,Ie)}else{const Ie=n.viewHooks;null!==Ie&&Oo(i,Ie,2),se(i,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),i[Wn]&=-41,512&i[Wn]&&(i[Wn]&=-513,To(i[hi],-1))}finally{Wo()}}}function yf(n,i,l,m,v){const E=_s(),L=2&m;try{cs(-1),L&&i.length>Ii&&Uh(n,i,Ii,!1),mn(L?2:0,v),l(m,v)}finally{cs(E),mn(L?3:1,v)}}function np(n,i,l){if(As(i)){const v=i.directiveEnd;for(let E=i.directiveStart;E<v;E++){const L=n.data[E];L.contentQueries&&L.contentQueries(1,l[E],E)}}}function ip(n,i,l){Gt()&&(function Si(n,i,l,m){const v=l.directiveStart,E=l.directiveEnd;Bs(l)&&function ja(n,i,l){const m=Oi(i,n),v=sp(l),E=n[rn],L=xo(n,oh(n,v,null,l.onPush?32:16,m,i,E,E.createRenderer(m,l),null,null,null));n[i.index]=L}(i,l,n.data[v+l.componentOffset]),n.firstCreatePass||po(l,i),lr(m,i);const L=l.initialInputs;for(let te=v;te<E;te++){const ae=n.data[te],Ie=jr(i,n,te,l);lr(Ie,i),null!==L&&yu(0,te-v,Ie,ae,0,L),ts(ae)&&(es(l.index,i)[Ne]=jr(i,n,te,l))}}(n,i,l,Oi(l,i)),64==(64&l.flags)&&ii(n,i,l))}function ch(n,i,l=Oi){const m=i.localNames;if(null!==m){let v=i.index+1;for(let E=0;E<m.length;E+=2){const L=m[E+1],te=-1===L?l(i,n):n[L];n[v++]=te}}}function sp(n){const i=n.tView;return null===i||i.incompleteFirstPass?n.tView=uh(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):i}function uh(n,i,l,m,v,E,L,te,ae,Ie){const Ue=Ii+m,ct=Ue+v,Dt=function y(n,i){const l=[];for(let m=0;m<i;m++)l.push(m<n?null:vi);return l}(Ue,ct),Ut="function"==typeof Ie?Ie():Ie;return Dt[sn]={type:n,blueprint:Dt,template:l,queries:null,viewQuery:te,declTNode:i,data:Dt.slice().fill(null,Ue),bindingStartIndex:Ue,expandoStartIndex:ct,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 E?E():E,pipeRegistry:"function"==typeof L?L():L,firstChild:null,schemas:ae,consts:Ut,incompleteFirstPass:!1}}function r(n,i,l,m){const v=Tr(i);null===l?v.push(m):(v.push(l),n.firstCreatePass&&pl(n).push(m,v.length-1))}function C(n,i,l,m){for(let v in n)if(n.hasOwnProperty(v)){l=null===l?{}:l;const E=n[v];null===m?j(l,i,v,E):m.hasOwnProperty(v)&&j(l,i,m[v],E)}return l}function j(n,i,l,m){n.hasOwnProperty(l)?n[l].push(i,m):n[l]=[i,m]}function Ke(n,i,l,m,v,E,L,te){const ae=Oi(i,l);let Ue,Ie=i.inputs;!te&&null!=Ie&&(Ue=Ie[m])?(Cu(n,l,Ue,m,v),Bs(i)&&function it(n,i){const l=es(i,n);16&l[Wn]||(l[Wn]|=32)}(l,i.index)):3&i.type&&(m=function Ae(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(m),v=null!=L?L(v,i.value||"",m):v,E.setProperty(ae,m,v))}function fn(n,i,l,m){if(Gt()){const v=null===m?null:{"":-1},E=function Zs(n,i){const l=n.directiveRegistry;let m=null,v=null;if(l)for(let E=0;E<l.length;E++){const L=l[E];if(sh(i,L.selectors,!1))if(m||(m=[]),ts(L))if(null!==L.findHostDirectiveDefs){const te=[];v=v||new Map,L.findHostDirectiveDefs(L,te,v),m.unshift(...te,L),ss(n,i,te.length)}else m.unshift(L),ss(n,i,0);else v=v||new Map,L.findHostDirectiveDefs?.(L,m,v),m.push(L)}return null===m?null:[m,v]}(n,l);let L,te;null===E?L=te=null:[L,te]=E,null!==L&&ln(n,i,l,L,v,te),v&&function Mr(n,i,l){if(i){const m=n.localNames=[];for(let v=0;v<i.length;v+=2){const E=l[i[v+1]];if(null==E)throw new W(-301,!1);m.push(i[v],E)}}}(l,m,v)}l.mergedAttrs=vs(l.mergedAttrs,l.attrs)}function ln(n,i,l,m,v,E){for(let Ie=0;Ie<m.length;Ie++)ka(po(l,i),n,m[Ie].type);!function Ys(n,i,l){n.flags|=1,n.directiveStart=i,n.directiveEnd=i+l,n.providerIndexes=i}(l,n.data.length,m.length);for(let Ie=0;Ie<m.length;Ie++){const Ue=m[Ie];Ue.providersResolver&&Ue.providersResolver(Ue)}let L=!1,te=!1,ae=rd(n,i,m.length,null);for(let Ie=0;Ie<m.length;Ie++){const Ue=m[Ie];l.mergedAttrs=vs(l.mergedAttrs,Ue.hostAttrs),Ho(n,l,i,ae,Ue),Ks(ae,Ue,v),null!==Ue.contentQueries&&(l.flags|=4),(null!==Ue.hostBindings||null!==Ue.hostAttrs||0!==Ue.hostVars)&&(l.flags|=64);const ct=Ue.type.prototype;!L&&(ct.ngOnChanges||ct.ngOnInit||ct.ngDoCheck)&&((n.preOrderHooks??(n.preOrderHooks=[])).push(l.index),L=!0),!te&&(ct.ngOnChanges||ct.ngDoCheck)&&((n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(l.index),te=!0),ae++}!function le(n,i,l){const v=i.directiveEnd,E=n.data,L=i.attrs,te=[];let ae=null,Ie=null;for(let Ue=i.directiveStart;Ue<v;Ue++){const ct=E[Ue],Dt=l?l.get(ct):null,cn=Dt?Dt.outputs:null;ae=C(ct.inputs,Ue,ae,Dt?Dt.inputs:null),Ie=C(ct.outputs,Ue,Ie,cn);const wn=null===ae||null===L||Bh(i)?null:jl(ae,Ue,L);te.push(wn)}null!==ae&&(ae.hasOwnProperty("class")&&(i.flags|=8),ae.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=te,i.inputs=ae,i.outputs=Ie}(n,l,E)}function ii(n,i,l){const m=l.directiveStart,v=l.directiveEnd,E=l.index,L=function co(){return Kn.lFrame.currentDirectiveIndex}();try{cs(E);for(let te=m;te<v;te++){const ae=n.data[te],Ie=i[te];Rr(te),(null!==ae.hostBindings||0!==ae.hostVars||null!==ae.hostAttrs)&&Fi(ae,Ie)}}finally{cs(-1),Rr(L)}}function Fi(n,i){null!==n.hostBindings&&n.hostBindings(1,i)}
1function ss(n,i,l){i.componentOffset=l,(n.components??(n.components=[])).push(i.index)}function Ks(n,i,l){if(l){if(i.exportAs)for(let m=0;m<i.exportAs.length;m++)l[i.exportAs[m]]=n;ts(i)&&(l[""]=n)}}function Ho(n,i,l,m,v){n.data[m]=v;const E=v.factory||(v.factory=Vs(v.type)),L=new ut(E,ts(v),Dc);n.blueprint[m]=L,l[m]=L,function On(n,i,l,m,v){const E=v.hostBindings;if(E){let L=n.hostBindingOpCodes;null===L&&(L=n.hostBindingOpCodes=[]);const te=~i.index;(function zn(n){let i=n.length;for(;i>0;){const l=n[--i];if("number"==typeof l&&l<0)return l}return 0})(L)!=te&&L.push(te),L.push(l,m,E)}}(n,i,m,rd(n,l,v.hostVars,vi),v)}function yr(n,i,l,m,v,E){const L=Oi(n,i);!function od(n,i,l,m,v,E,L){if(null==E)n.removeAttribute(i,v,l);else{const te=null==L?fe(E):L(E,m||"",v);n.setAttribute(i,v,te,l)}}(i[hn],L,E,n.value,l,m,v)}function yu(n,i,l,m,v,E){const L=E[i];if(null!==L){const te=m.setInput;for(let ae=0;ae<L.length;){const Ie=L[ae++],Ue=L[ae++],ct=L[ae++];null!==te?m.setInput(l,ct,Ie,Ue):l[Ue]=ct}}}function jl(n,i,l){let m=null,v=0;for(;v<l.length;){const E=l[v];if(0!==E)if(5!==E){if("number"==typeof E)break;if(n.hasOwnProperty(E)){null===m&&(m=[]);const L=n[E];for(let te=0;te<L.length;te+=2)if(L[te]===i){m.push(E,L[te+1],l[v+1]);break}}v+=2}else v+=2;else v+=4}return m}function dh(n,i,l,m){return[n,!0,!1,i,null,0,m,l,null,null]}function ti(n,i){const l=es(i,n);if(mr(l)){const m=l[sn];48&l[Wn]?lh(m,l,m.template,l[Ne]):l[Ve]>0&&si(l)}}function si(n){for(let m=Uu(n);null!==m;m=qc(m))for(let v=Xi;v<m.length;v++){const E=m[v];if(mr(E))if(512&E[Wn]){const L=E[sn];lh(L,E,L.template,E[Ne])}else E[Ve]>0&&si(E)}const l=n[sn].components;if(null!==l)for(let m=0;m<l.length;m++){const v=es(l[m],n);mr(v)&&v[Ve]>0&&si(v)}}function Zi(n,i){const l=es(i,n),m=l[sn];(function br(n,i){for(let l=i.length;l<n.blueprint.length;l++)i.push(n.blueprint[l])})(m,l),ah(m,l,l[Ne])}function xo(n,i){return n[Xn]?n[ji][fs]=i:n[Xn]=i,n[ji]=i,i}function Br(n){for(;n;){n[Wn]|=32;const i=vo(n);if(Jr(n)&&!i)return n;n=i}return null}function aa(n,i,l,m=!0){const v=i[rn];v.begin&&v.begin();try{lh(n,i,n.template,l)}catch(L){throw m&&bu(i,L),L}finally{v.end&&v.end()}}function ad(n,i,l){Ao(0),i(n,l)}function Tr(n){return n[we]||(n[we]=[])}function pl(n){return n.cleanup||(n.cleanup=[])}function bu(n,i){const l=n[vt],m=l?l.get(Mc,null):null;m&&m.handleError(i)}function Cu(n,i,l,m,v){for(let E=0;E<l.length;){const L=l[E++],te=l[E++],ae=i[L],Ie=n.data[L];null!==Ie.setInput?Ie.setInput(ae,v,m,te):ae[te]=v}}function Gl(n,i,l){const m=ns(i,n);!function Xc(n,i,l){n.setValue(i,l)}(n[hn],m,l)}function op(n,i,l){let m=l?n.styles:null,v=l?n.classes:null,E=0;if(null!==i)for(let L=0;L<i.length;L++){const te=i[L];"number"==typeof te?E=te:1==E?v=P(v,te):2==E&&(m=P(m,te+": "+i[++L]+";"))}l?n.styles=m:n.stylesWithoutHost=m,l?n.classes=v:n.classesWithoutHost=v}function ap(n,i,l,m,v=!1){for(;null!==l;){const E=i[l.index];if(null!==E&&m.push($n(E)),$i(E))for(let te=Xi;te<E.length;te++){const ae=E[te],Ie=ae[sn].firstChild;null!==Ie&&ap(ae[sn],ae,Ie,m)}const L=l.type;if(8&L)ap(n,i,l.child,m);else if(32&L){const te=ta(l,i);let ae;for(;ae=te();)m.push(ae)}else if(16&L){const te=Il(i,l);if(Array.isArray(te))m.push(...te);else{const ae=vo(i[xi]);ap(ae[sn],ae,te,m,!0)}}l=v?l.projectionNext:l.next}return m}class hh{get rootNodes(){const i=this._lView,l=i[sn];return ap(l,i,l.firstChild,[])}constructor(i,l){this._lView=i,this._cdRefInjectingView=l,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ne]}set context(i){this._lView[Ne]=i}get destroyed(){return 128==(128&this._lView[Wn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[hi];if($i(i)){const l=i[gs],m=l?l.indexOf(this):-1;m>-1&&(sl(i,m),$(l,m))}this._attachedToViewContainer=!1}yo(this._lView[sn],this._lView)}onDestroy(i){r(this._lView[sn],this._lView,null,i)}markForCheck(){Br(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wn]&=-65}reattach(){this._lView[Wn]|=64}detectChanges(){aa(this._lView[sn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function nu(n,i){cr(n,i,i[hn],2,null,null)}(this._lView[sn],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=i}}class gy extends hh{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;aa(i[sn],i,i[Ne],!1)}checkNoChanges(){}get context(){return null}}class zm extends id{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const l=Yn(i);return new ph(l,this.ngModule)}}function Um(n){const i=[];for(let l in n)n.hasOwnProperty(l)&&i.push({propName:n[l],templateName:l});return i}class vy{constructor(i,l){this.injector=i,this.parentInjector=l}get(i,l,m){m=Pt(m);const v=this.injector.get(i,th,m);return v!==th||l===th?v:this.parentInjector.get(i,l,m)}}class ph extends Ul{get inputs(){return Um(this.componentDef.inputs)}get outputs(){return Um(this.componentDef.outputs)}constructor(i,l){super(),this.componentDef=i,this.ngModule=l,this.componentType=i.type,this.selector=function Xp(n){return n.map(qp).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!l}create(i,l,m,v){let E=(v=v||this.ngModule)instanceof Ls?v:v?.injector;E&&null!==this.componentDef.getStandaloneInjector&&(E=this.componentDef.getStandaloneInjector(E)||E);const L=E?new vy(i,E):i,te=L.get(Ph,null);if(null===te)throw new W(407,!1);const ae=L.get(Pp,null),Ie=te.createRenderer(null,this.componentDef),Ue=this.componentDef.selectors[0][0]||"div",ct=m?function g(n,i,l){return n.selectRootElement(i,l===Jt.ShadowDom)}(Ie,m,this.componentDef.encapsulation):ic(Ie,Ue,function _y(n){const i=n.toLowerCase();return"svg"===i?kn:"math"===i?"math":null}
vendor: 34,096 bytes, line 1
1(Ue)),Dt=this.componentDef.onPush?288:272,Ut=uh(0,null,null,1,0,null,null,null,null,null),cn=oh(null,Ut,null,Dt,null,null,te,Ie,ae,L,null);let wn,Ln;jo(cn);try{const Zn=this.componentDef;let ci,yn=null;Zn.findHostDirectiveDefs?(ci=[],yn=new Map,Zn.findHostDirectiveDefs(Zn,ci,yn),ci.push(Zn)):ci=[Zn];const yi=function by(n,i){const l=n[sn],m=Ii;return n[m]=i,Ic(l,m,2,"#host",null)}(cn,ct),Gs=function Cy(n,i,l,m,v,E,L,te){const ae=v[sn];!function xy(n,i,l,m){for(const v of n)i.mergedAttrs=vs(i.mergedAttrs,v.hostAttrs);null!==i.mergedAttrs&&(op(i,i.mergedAttrs,!0),null!==l&&Zd(m,l,i))}(m,n,i,L);const Ie=E.createRenderer(i,l),Ue=oh(v,sp(l),null,l.onPush?32:16,v[n.index],n,E,Ie,te||null,null,null);return ae.firstCreatePass&&ss(ae,n,m.length-1),xo(v,Ue),v[n.index]=Ue}(yi,ct,Zn,ci,cn,te,Ie);Ln=$r(Ut,Ii),ct&&function Sy(n,i,l,m){if(m)Ei(n,l,["ng-version",Rp.full]);else{const{attrs:v,classes:E}=function ef(n){const i=[],l=[];let m=1,v=2;for(;m<n.length;){let E=n[m];if("string"==typeof E)2===v?""!==E&&i.push(E,n[++m]):8===v&&l.push(E);else{if(!oa(v))break;v=E}m++}return{attrs:i,classes:l}}(i.selectors[0]);v&&Ei(n,l,v),E&&E.length>0&&hc(n,l,E.join(" "))}}(Ie,Zn,ct,m),void 0!==l&&function My(n,i,l){const m=n.projection=[];for(let v=0;v<i.length;v++){const E=l[v];m.push(null!=E?Array.from(E):null)}}(Ln,this.ngContentSelectors,l),wn=function wy(n,i,l,m,v,E){const L=as(),te=v[sn],ae=Oi(L,v);ln(te,v,L,l,null,m);for(let Ue=0;Ue<l.length;Ue++)lr(jr(v,te,L.directiveStart+Ue,L),v);ii(te,v,L),ae&&lr(ae,v);const Ie=jr(v,te,L.directiveStart+L.componentOffset,L);if(n[Ne]=v[Ne]=Ie,null!==E)for(const Ue of E)Ue(Ie,i);return np(te,L,n),Ie}(Gs,Zn,ci,yn,cn,[Ty]),ah(Ut,cn,null)}finally{Wo()}return new yy(this.componentType,wn,$l(Ln,cn),cn,Ln)}}class yy extends _u{constructor(i,l,m,v,E){super(),this.location=m,this._rootLView=v,this._tNode=E,this.instance=l,this.hostView=this.changeDetectorRef=new gy(v),this.componentType=i}setInput(i,l){const m=this._tNode.inputs;let v;if(null!==m&&(v=m[i])){const E=this._rootLView;Cu(E[sn],E,v,i,l),Br(es(this._tNode.index,E))}}get injector(){return new Ts(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function Ty(){const n=as();ho(Xt()[sn],n)}function bf(n){let i=function $m(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),l=!0;const m=[n];for(;i;){let v;if(ts(n))v=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new W(903,!1);v=i.\u0275dir}if(v){if(l){m.push(v);const L=n;L.inputs=Cf(n.inputs),L.declaredInputs=Cf(n.declaredInputs),L.outputs=Cf(n.outputs);const te=v.hostBindings;te&&Ay(n,te);const ae=v.viewQuery,Ie=v.contentQueries;if(ae&&Dy(n,ae),Ie&&Iy(n,Ie),w(n.inputs,v.inputs),w(n.declaredInputs,v.declaredInputs),w(n.outputs,v.outputs),ts(v)&&v.data.animation){const Ue=n.data;Ue.animation=(Ue.animation||[]).concat(v.data.animation)}}const E=v.features;if(E)for(let L=0;L<E.length;L++){const te=E[L];te&&te.ngInherit&&te(n),te===bf&&(l=!1)}}i=Object.getPrototypeOf(i)}!function Ey(n){let i=0,l=null;for(let m=n.length-1;m>=0;m--){const v=n[m];v.hostVars=i+=v.hostVars,v.hostAttrs=vs(v.hostAttrs,l=vs(l,v.hostAttrs))}}(m)}function Cf(n){return n===Dn?{}:n===En?[]:n}function Dy(n,i){const l=n.viewQuery;n.viewQuery=l?(m,v)=>{i(m,v),l(m,v)}:i}function Iy(n,i){const l=n.contentQueries;n.contentQueries=l?(m,v,E)=>{i(m,v,E),l(m,v,E)}:i}function Ay(n,i){const l=n.hostBindings;n.hostBindings=l?(m,v)=>{i(m,v),l(m,v)}:i}function lp(n){return!!xf(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function xf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function fl(n,i,l){return n[i]=l}function fh(n,i){return n[i]}function ro(n,i,l){return!Object.is(n[i],l)&&(n[i]=l,!0)}function xu(n,i,l,m){const v=ro(n,i,l);return ro(n,i+1,m)||v}function cp(n,i,l,m,v){const E=xu(n,i,l,m);return ro(n,i+2,v)||E}function xa(n,i,l,m,v,E){const L=xu(n,i,l,m);return xu(n,i+2,v,E)||L}function wf(n,i,l,m){const v=Xt();return ro(v,no(),i)&&(di(),yr(Wi(),v,n,i,l,m)),wf}function cd(n,i,l,m){return ro(n,no(),l)?i+fe(l)+m:vi}function ng(n,i,l,m,v,E,L,te){const ae=Xt(),Ie=di(),Ue=n+Ii,ct=Ie.firstCreatePass?function Hy(n,i,l,m,v,E,L,te,ae){const Ie=i.consts,Ue=Ic(i,n,4,L||null,tr(Ie,te));fn(i,l,Ue,tr(Ie,ae)),ho(i,Ue);const ct=Ue.tView=uh(2,Ue,m,v,E,i.directiveRegistry,i.pipeRegistry,null,i.schemas,Ie);return null!==i.queries&&(i.queries.template(i,Ue),ct.queries=i.queries.embeddedTView(Ue)),Ue}(Ue,Ie,ae,i,l,m,v,E,L):Ie.data[Ue];Ps(ct,!1);const Dt=ae[hn].createComment("");ia(Ie,ae,Dt,ct),lr(Dt,ae),xo(ae,ae[Ue]=dh(Dt,ae,Dt,ct)),ks(ct)&&ip(Ie,ae,ct),null!=L&&ch(ae,ct,te)}function ig(n){return fr(function Ma(){return Kn.lFrame.contextLView}(),Ii+n)}function Sf(n,i,l){const m=Xt();return ro(m,no(),i)&&Ke(di(),Wi(),m,n,i,m[hn],l,!1),Sf}function Mf(n,i,l,m,v){const L=v?"class":"style";Cu(n,l,i.inputs[L],L,m)}function up(n,i,l,m){const v=Xt(),E=di(),L=Ii+n,te=v[hn],ae=E.firstCreatePass?function Uy(n,i,l,m,v,E){const L=i.consts,ae=Ic(i,n,2,m,tr(L,v));return fn(i,l,ae,tr(L,E)),null!==ae.attrs&&op(ae,ae.attrs,!1),null!==ae.mergedAttrs&&op(ae,ae.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,ae),ae}(L,E,v,i,l,m):E.data[L],Ie=v[L]=ic(te,i,function Da(){return Kn.lFrame.currentNamespace}()),Ue=ks(ae);return Ps(ae,!0),Zd(te,Ie,ae),32!=(32&ae.flags)&&ia(E,v,Ie,ae),0===function ge(){return Kn.lFrame.elementDepthCount}()&&lr(Ie,v),function ce(){Kn.lFrame.elementDepthCount++}(),Ue&&(ip(E,v,ae),np(E,ae,v)),null!==m&&ch(v,ae),up}function dp(){let n=as();zo()?Uo():(n=n.parent,Ps(n,!1));const i=n;!function Ze(){Kn.lFrame.elementDepthCount--}();const l=di();return l.firstCreatePass&&(ho(l,n),As(n)&&l.queries.elementEnd(n)),null!=i.classesWithoutHost&&function Ri(n){return 0!=(8&n.flags)}(i)&&Mf(l,i,Xt(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function bi(n){return 0!=(16&n.flags)}(i)&&Mf(l,i,Xt(),i.stylesWithoutHost,!1),dp}function Tf(n,i,l,m){return up(n,i,l,m),dp(),Tf}function hp(n,i,l){const m=Xt(),v=di(),E=n+Ii,L=v.firstCreatePass?function $y(n,i,l,m,v){const E=i.consts,L=tr(E,m),te=Ic(i,n,8,"ng-container",L);return null!==L&&op(te,L,!0),fn(i,l,te,tr(E,v)),null!==i.queries&&i.queries.elementStart(i,te),te}(E,v,m,i,l):v.data[E];Ps(L,!0);const te=m[E]=m[hn].createComment("");return ia(v,m,te,L),lr(te,m),ks(L)&&(ip(v,m,L),np(v,L,m)),null!=l&&ch(m,L),hp}function pp(){let n=as();const i=di();return zo()?Uo():(n=n.parent,Ps(n,!1)),i.firstCreatePass&&(ho(i,n),As(n)&&i.queries.elementEnd(n)),pp}function Ef(n,i,l){return hp(n,i,l),pp(),Ef}function sg(){return Xt()}function Df(n){return!!n&&"function"==typeof n.then}function rg(n){return!!n&&"function"==typeof n.subscribe}const og=rg;function If(n,i,l,m){const v=Xt(),E=di(),L=as();return function lg(n,i,l,m,v,E,L){const te=ks(m),Ie=n.firstCreatePass&&pl(n),Ue=i[Ne],ct=Tr(i);let Dt=!0;if(3&m.type||L){const wn=Oi(m,i),Ln=L?L(wn):wn,Zn=ct.length,ci=L?yi=>L($n(yi[m.index])):m.index;let yn=null;if(!L&&te&&(yn=function Zy(n,i,l,m){const v=n.cleanup;if(null!=v)for(let E=0;E<v.length-1;E+=2){const L=v[E];if(L===l&&v[E+1]===m){const te=i[we],ae=v[E+2];return te.length>ae?te[ae]:null}"string"==typeof L&&(E+=2)}return null}(n,i,v,m.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=E,yn.__ngLastListenerFn__=E,Dt=!1;else{E=ug(m,i,Ue,E,!1);const yi=l.listen(Ln,v,E);ct.push(E,yi),Ie&&Ie.push(v,ci,Zn,Zn+1)}}else E=ug(m,i,Ue,E,!1);const Ut=m.outputs;let cn;if(Dt&&null!==Ut&&(cn=Ut[v])){const wn=cn.length;if(wn)for(let Ln=0;Ln<wn;Ln+=2){const Gs=i[cn[Ln]][cn[Ln+1]].subscribe(E),ur=ct.length;ct.push(E,Gs),Ie&&Ie.push(v,m.index,ur,-(ur+1))}}}(E,v,v[hn],L,n,i,m),If}function cg(n,i,l,m){try{return mn(6,i,l),!1!==l(m)}catch(v){return bu(n,v),!1}finally{mn(7,i,l)}}function ug(n,i,l,m,v){return function E(L){if(L===Function)return m;Br(n.componentOffset>-1?es(n.index,i):i);let ae=cg(i,l,m,L),Ie=E.__ngNextListenerFn__;for(;Ie;)ae=cg(i,l,Ie,L)&&ae,Ie=Ie.__ngNextListenerFn__;return v&&!1===ae&&(L.preventDefault(),L.returnValue=!1),ae}}function dg(n=1){return function ca(n){return(Kn.lFrame.contextLView=function Ja(n,i){for(;n>0;)i=i[Ni],n--;return i}(n,Kn.lFrame.contextLView))[Ne]}(n)}function jy(n,i){let l=null;const m=function Yp(n){const i=n.attrs;if(null!=i){const l=i.indexOf(5);if(!(1&l))return i[l+1]}return null}(n);for(let v=0;v<i.length;v++){const E=i[v];if("*"!==E){if(null===m?sh(n,E,!0):Qp(m,E))return v}else l=v}return l}function hg(n){const i=Xt()[xi][he];if(!i.projection){const m=i.projection=J(n?n.length:1,null),v=m.slice();let E=i.child;for(;null!==E;){const L=n?jy(E,n):0;null!==L&&(v[L]?v[L].projectionNext=E:m[L]=E,v[L]=E),E=E.next}}}function pg(n,i=0,l){const m=Xt(),v=di(),E=Ic(v,Ii+n,16,null,l||null);null===E.projection&&(E.projection=i),Uo(),32!=(32&E.flags)&&function ou(n,i,l){Al(i[hn],0,i,l,ol(n,l,i),al(l.parent||i[he],l,i))}(v,m,E)}function Af(n,i,l){return fp(n,"",i,"",l),Af}function fp(n,i,l,m,v){const E=Xt(),L=cd(E,i,l,m);return L!==vi&&Ke(di(),Wi(),E,n,L,E[hn],v,!1),fp}function mp(n,i){return n<<17|i<<2}function Ac(n){return n>>17&32767}function kf(n){return 2|n}function wu(n){return(131068&n)>>2}function Of(n,i){return-131069&n|i<<2}function Pf(n){return 1|n}function xg(n,i,l,m,v){const E=n[l+1],L=null===i;let te=m?Ac(E):wu(E),ae=!1;for(;0!==te&&(!1===ae||L);){const Ue=n[te+1];Qy(n[te],i)&&(ae=!0,n[te+1]=m?Pf(Ue):kf(Ue)),te=m?Ac(Ue):wu(Ue)}ae&&(n[l+1]=m?kf(E):Pf(E))}function Qy(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&qt(n,i)>=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wg(n){return n.substring(Er.key,Er.keyEnd)}function qy(n){return n.substring(Er.value,Er.valueEnd)}function Sg(n,i){const l=Er.textEnd;return l===i?-1:(i=Er.keyEnd=function t0(n,i,l){for(;i<l&&n.charCodeAt(i)>32;)i++;return i}(n,Er.key=i,l),_d(n,i,l))}function Mg(n,i){const l=Er.textEnd;let m=Er.key=_d(n,i,l);return l===m?-1:(m=Er.keyEnd=function n0(n,i,l){let m;for(;i<l&&(45===(m=n.charCodeAt(i))||95===m||(-33&m)>=65&&(-33&m)<=90||m>=48&&m<=57);)i++;return i}(n,m,l),m=Eg(n,m,l),m=Er.value=_d(n,m,l),m=Er.valueEnd=function s0(n,i,l){let m=-1,v=-1,E=-1,L=i,te=L;for(;L<l;){const ae=n.charCodeAt(L++);if(59===ae)return te;34===ae||39===ae?te=L=Dg(n,ae,L,l):i===L-4&&85===E&&82===v&&76===m&&40===ae?te=L=Dg(n,41,L,l):ae>32&&(te=L),E=v,v=m,m=-33&ae}return te}(n,m,l),Eg(n,m,l))}function Tg(n){Er.key=0,Er.keyEnd=0,Er.value=0,Er.valueEnd=0,Er.textEnd=n.length}function _d(n,i,l){for(;i<l&&n.charCodeAt(i)<=32;)i++;return i}function Eg(n,i,l,m){return(i=_d(n,i,l))<l&&i++,i}function Dg(n,i,l,m){let v=-1,E=l;for(;E<m;){const L=n.charCodeAt(E++);if(L==i&&92!==v)return E;v=92==L&&92===v?0:L}throw new Error}function Rf(n,i,l){return Wa(n,i,l,!1),Rf}function Ff(n,i){return Wa(n,i,null,!0),Ff}function Ga(n){Ka(Og,r0,n,!1)}function r0(n,i){for(let l=function e0(n){return Tg(n),Mg(n,_d(n,0,Er.textEnd))}(i);l>=0;l=Mg(i,l))Og(n,wg(i),qy(i))}function Ig(n){Ka(d0,ml,n,!0)}function ml(n,i){for(let l=function Xy(n){return Tg(n),Sg(n,_d(n,0,Er.textEnd))}(i);l>=0;l=Sg(i,l))Ge(n,wg(i),!0)}function Wa(n,i,l,m){const v=Xt(),E=di(),L=gr(2);E.firstUpdatePass&&kg(E,n,L,m),i!==vi&&ro(v,L,i)&&Pg(E,E.data[_s()],v,v[hn],n,v[L+1]=function p0(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=I(so(n)))),n}(i,l),m,L)}function Ka(n,i,l,m){const v=di(),E=gr(2);v.firstUpdatePass&&kg(v,null,E,m);const L=Xt();if(l!==vi&&ro(L,E,l)){const te=v.data[_s()];if(Fg(te,m)&&!Ag(v,E)){let ae=m?te.classesWithoutHost:te.stylesWithoutHost;null!==ae&&(l=P(ae,l||"")),Mf(v,te,L,l,m)}else!function h0(n,i,l,m,v,E,L,te){v===vi&&(v=En);let ae=0,Ie=0,Ue=0<v.length?v[0]:null,ct=0<E.length?E[0]:null;for(;null!==Ue||null!==ct;){const Dt=ae<v.length?v[ae+1]:void 0,Ut=Ie<E.length?E[Ie+1]:void 0;let wn,cn=null;Ue===ct?(ae+=2,Ie+=2,Dt!==Ut&&(cn=ct,wn=Ut)):null===ct||null!==Ue&&Ue<ct?(ae+=2,cn=Ue):(Ie+=2,cn=ct,wn=Ut),null!==cn&&Pg(n,i,l,m,cn,wn,L,te),Ue=ae<v.length?v[ae]:null,ct=Ie<E.length?E[Ie]:null}}(v,te,L,L[hn],L[E+1],L[E+1]=function u0(n,i,l){if(null==l||""===l)return En;const m=[],v=so(l);if(Array.isArray(v))for(let E=0;E<v.length;E++)n(m,v[E],!0);else if("object"==typeof v)for(const E in v)v.hasOwnProperty(E)&&n(m,E,v[E]);else"string"==typeof v&&i(m,v);return m}(n,i,l),m,E)}}function Ag(n,i){return i>=n.expandoStartIndex}function kg(n,i,l,m){const v=n.data;if(null===v[l+1]){const E=v[_s()],L=Ag(n,l);Fg(E,m)&&null===i&&!L&&(i=!1),i=function o0(n,i,l,m){const v=function Rs(n){const i=Kn.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}(n);let E=m?i.residualClasses:i.residualStyles;if(null===v)0===(m?i.classBindings:i.styleBindings)&&(l=mh(l=Lf(null,n,i,l,m),i.attrs,m),E=null);else{const L=i.directiveStylingLast;if(-1===L||n[L]!==v)if(l=Lf(v,n,i,l,m),null===E){let ae=function a0(n,i,l){const m=l?i.classBindings:i.styleBindings;if(0!==wu(m))return n[Ac(m)]}(n,i,m);void 0!==ae&&Array.isArray(ae)&&(ae=Lf(null,n,i,ae[1],m),ae=mh(ae,i.attrs,m),function l0(n,i,l,m){n[Ac(l?i.classBindings:i.styleBindings)]=m}(n,i,m,ae))}else E=function c0(n,i,l){let m;const v=i.directiveEnd;for(let E=1+i.directiveStylingLast;E<v;E++)m=mh(m,n[E].hostAttrs,l);return mh(m,i.attrs,l)}(n,i,m)}return void 0!==E&&(m?i.residualClasses=E:i.residualStyles=E),l}(v,E,i,m),function Yy(n,i,l,m,v,E){let L=E?i.classBindings:i.styleBindings,te=Ac(L),ae=wu(L);n[m]=l;let Ue,Ie=!1;if(Array.isArray(l)?(Ue=l[1],(null===Ue||qt(l,Ue)>0)&&(Ie=!0)):Ue=l,v)if(0!==ae){const Dt=Ac(n[te+1]);n[m+1]=mp(Dt,te),0!==Dt&&(n[Dt+1]=Of(n[Dt+1],m)),n[te+1]=function Wy(n,i){return 131071&n|i<<17}(n[te+1],m)}else n[m+1]=mp(te,0),0!==te&&(n[te+1]=Of(n[te+1],m)),te=m;else n[m+1]=mp(ae,0),0===te?te=m:n[ae+1]=Of(n[ae+1],m),ae=m;Ie&&(n[m+1]=kf(n[m+1])),xg(n,Ue,m,!0),xg(n,Ue,m,!1),function Jy(n,i,l,m,v){const E=v?n.residualClasses:n.residualStyles;null!=E&&"string"==typeof i&&qt(E,i)>=0&&(l[m+1]=Pf(l[m+1]))}(i,Ue,n,m,E),L=mp(te,ae),E?i.classBindings=L:i.styleBindings=L}(v,E,i,l,L,m)}}function Lf(n,i,l,m,v){let E=null;const L=l.directiveEnd;let te=l.directiveStylingLast;for(-1===te?te=l.directiveStart:te++;te<L&&(E=i[te],m=mh(m,E.hostAttrs,v),E!==n);)te++;return null!==n&&(l.directiveStylingLast=te),m}function mh(n,i,l){const m=l?1:2;let v=-1;if(null!==i)for(let E=0;E<i.length;E++){const L=i[E];"number"==typeof L?v=L:v===m&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Ge(n,L,!!l||i[++E]))}return void 0===n?null:n}function Og(n,i,l){Ge(n,i,so(l))}function d0(n,i,l){const m=String(i);""!==m&&!m.includes(" ")&&Ge(n,m,l)}function Pg(n,i,l,m,v,E,L,te){if(!(3&i.type))return;const ae=n.data,Ie=ae[te+1],Ue=function Ky(n){return 1==(1&n)}(Ie)?Rg(ae,i,l,v,wu(Ie),L):void 0;gp(Ue)||(gp(E)||function Gy(n){return 2==(2&n)}(Ie)&&(E=Rg(ae,null,l,v,te,L)),function Ud(n,i,l,m,v){if(i)v?n.addClass(l,m):n.removeClass(l,m);else{let E=-1===m.indexOf("-")?void 0:Lo.DashCase;null==v?n.removeStyle(l,m,E):("string"==typeof v&&v.endsWith("!important")&&(v=v.slice(0,-10),E|=Lo.Important),n.setStyle(l,m,v,E))}}(m,L,ns(_s(),l),v,E))}function Rg(n,i,l,m,v,E){const L=null===i;let te;for(;v>0;){const ae=n[v],Ie=Array.isArray(ae),Ue=Ie?ae[1]:ae,ct=null===Ue;let Dt=l[v+1];Dt===vi&&(Dt=ct?En:void 0);let Ut=ct?kt(Dt,m):Ue===m?Dt:void 0;if(Ie&&!gp(Ut)&&(Ut=kt(ae,m)),gp(Ut)&&(te=Ut,L))return te;const cn=n[v+1];v=L?Ac(cn):wu(cn)}if(null!==i){let ae=E?i.residualClasses:i.residualStyles;null!=ae&&(te=kt(ae,m))}return te}function gp(n){return void 0!==n}function Fg(n,i){return 0!=(n.flags&(i?8:16))}function Lg(n,i=""){const l=Xt(),m=di(),v=n+Ii,E=m.firstCreatePass?Ic(m,v,1,i,null):m.data[v],L=l[v]=function $u(n,i){return n.createText(i)}(l[hn],i);ia(m,l,L,E),Ps(E,!1)}function Nf(n){return _p("",n,""),Nf}function _p(n,i,l){const m=Xt(),v=cd(m,n,i,l);return v!==vi&&Gl(m,_s(),v),_p}function Bf(n,i,l,m,v){const E=Xt(),L=function ud(n,i,l,m,v,E){const te=xu(n,_i(),l,v);return gr(2),te?i+fe(l)+m+fe(v)+E:vi}(E,n,i,l,m,v);return L!==vi&&Gl(E,_s(),L),Bf}function Vf(n,i,l,m,v,E,L){const te=Xt(),ae=function dd(n,i,l,m,v,E,L,te){const Ie=cp(n,_i(),l,v,L);return gr(3),Ie?i+fe(l)+m+fe(v)+E+fe(L)+te:vi}(te,n,i,l,m,v,E,L);return ae!==vi&&Gl(te,_s(),ae),Vf}function $g(n,i,l){Ka(Ge,ml,cd(Xt(),n,i,l),!0)}const Su=void 0;var O0=["en",[["a","p"],["AM","PM"],Su],[["AM","PM"],Su,Su],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Su,[["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"]],Su,[["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}",Su,"{1} 'at' {0}",Su],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function k0(n){const l=Math.floor(Math.abs(n)),m=n.toString().replace(/^[^.]*\.?/,"").length;return 1===l&&0===m?1:5}];let vd={};function Hf(n){const i=function P0(n){return n.toLowerCase().replace(/_/g,"-")}(n);let l=n_(i);if(l)return l;const m=i.split("-")[0];if(l=n_(m),l)return l;if("en"===m)return O0;throw new W(701,!1)}function t_(n){return Hf(n)[oi.PluralCase]}function n_(n){return n in vd||(vd[n]=Un.ng&&Un.ng.common&&Un.ng.common.locales&&Un.ng.common.locales[n]),vd[n]}var oi=(()=>((oi=oi||{})[oi.LocaleId=0]="LocaleId",oi[oi.DayPeriodsFormat=1]="DayPeriodsFormat",oi[oi.DayPeriodsStandalone=2]="DayPeriodsStandalone",oi[oi.DaysFormat=3]="DaysFormat",oi[oi.DaysStandalone=4]="DaysStandalone",oi[oi.MonthsFormat=5]="MonthsFormat",oi[oi.MonthsStandalone=6]="MonthsStandalone",oi[oi.Eras=7]="Eras",oi[oi.FirstDayOfWeek=8]="FirstDayOfWeek",oi[oi.WeekendRange=9]="WeekendRange",oi[oi.DateFormat=10]="DateFormat",oi[oi.TimeFormat=11]="TimeFormat",oi[oi.DateTimeFormat=12]="DateTimeFormat",oi[oi.NumberSymbols=13]="NumberSymbols",oi[oi.NumberFormats=14]="NumberFormats",oi[oi.CurrencyCode=15]="CurrencyCode",oi[oi.CurrencySymbol=16]="CurrencySymbol",oi[oi.CurrencyName=17]="CurrencyName",oi[oi.Currencies=18]="Currencies",oi[oi.Directionality=19]="Directionality",oi[oi.PluralCase=20]="PluralCase",oi[oi.ExtraData=21]="ExtraData",oi))();const yd="en-US";let i_=yd;function $f(n,i,l,m,v){if(n=z(n),Array.isArray(n))for(let E=0;E<n.length;E++)$f(n[E],i,l,m,v);else{const E=di(),L=Xt();let te=Tn(n)?n:z(n.provide),ae=Vl(n);const Ie=as(),Ue=1048575&Ie.providerIndexes,ct=Ie.directiveStart,Dt=Ie.providerIndexes>>20;if(Tn(n)||!n.multi){const Ut=new ut(ae,v,Dc),cn=jf(te,i,v?Ue:Ue+Dt,ct);-1===cn?(ka(po(Ie,L),E,te),Zf(E,n,i.length),i.push(te),Ie.directiveStart++,Ie.directiveEnd++,v&&(Ie.providerIndexes+=1048576),l.push(Ut),L.push(Ut)):(l[cn]=Ut,L[cn]=Ut)}else{const Ut=jf(te,i,Ue+Dt,ct),cn=jf(te,i,Ue,Ue+Dt),Ln=cn>=0&&l[cn];if(v&&!Ln||!v&&!(Ut>=0&&l[Ut])){ka(po(Ie,L),E,te);const Zn=function kb(n,i,l,m,v){const E=new ut(n,l,Dc);return E.multi=[],E.index=i,E.componentProviders=0,D_(E,v,m&&!l),E}(v?Ab:Ib,l.length,v,m,ae);!v&&Ln&&(l[cn].providerFactory=Zn),Zf(E,n,i.length,0),i.push(te),Ie.directiveStart++,Ie.directiveEnd++,v&&(Ie.providerIndexes+=1048576),l.push(Zn),L.push(Zn)}else Zf(E,n,Ut>-1?Ut:cn,D_(l[v?cn:Ut],ae,!v&&m));!v&&m&&Ln&&l[cn].componentProviders++}}}function Zf(n,i,l,m){const v=Tn(i),E=function Vn(n){return!!n.useClass}(i);if(v||E){const ae=(E?z(i.useClass):i).prototype.ngOnDestroy;if(ae){const Ie=n.destroyHooks||(n.destroyHooks=[]);if(!v&&i.multi){const Ue=Ie.indexOf(l);-1===Ue?Ie.push(l,[m,ae]):Ie[Ue+1].push(m,ae)}else Ie.push(l,ae)}}}function D_(n,i,l){return l&&n.componentProviders++,n.multi.push(i)-1}function jf(n,i,l,m){for(let v=l;v<m;v++)if(i[v]===n)return v;return-1}function Ib(n,i,l,m){return Gf(this.multi,[])}function Ab(n,i,l,m){const v=this.multi;let E;if(this.providerFactory){const L=this.providerFactory.componentProviders,te=jr(l,l[sn],this.providerFactory.index,m);E=te.slice(0,L),Gf(v,E);for(let ae=L;ae<te.length;ae++)E.push(te[ae])}else E=[],Gf(v,E);return E}function Gf(n,i){for(let l=0;l<n.length;l++)i.push((0,n[l])());return i}function I_(n,i=[]){return l=>{l.providersResolver=(m,v)=>function Db(n,i,l){const m=di();if(m.firstCreatePass){const v=ts(n);$f(l,m.data,m.blueprint,v,!0),$f(i,m.data,m.blueprint,v,!1)}}(m,v?v(n):n,i)}}class bd{}class A_{}function Ob(n,i){return new k_(n,i??null)}class k_ extends bd{constructor(i,l){super(),this._parent=l,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new zm(this);const m=Li(i);this._bootstrapComponents=Za(m.bootstrap),this._r3Injector=af(i,l,[{provide:bd,useValue:this},{provide:id,useValue:this.componentFactoryResolver}],I(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Wf extends A_{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i)}}class Pb extends bd{constructor(i,l,m){super(),this.componentFactoryResolver=new zm(this),this.instance=null;const v=new gi([...i,{provide:bd,useValue:this},{provide:id,useValue:this.componentFactoryResolver}],l||ws(),m,new Set(["environment"]));this.injector=v,v.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function Kf(n,i,l=null){return new Pb(n,i,l).injector}let Rb=(()=>{class n{constructor(l){this._injector=l,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(l){if(!l.standalone)return null;if(!this.cachedInjectors.has(l.id)){const m=ot(0,l.type),v=m.length>0?Kf([m],this._injector,`Standalone[${l.type.name}]`):null;this.cachedInjectors.set(l.id,v)}return this.cachedInjectors.get(l.id)}ngOnDestroy(){try{for(const l of this.cachedInjectors.values())null!==l&&l.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=mt({token:n,providedIn:"environment",factory:()=>new n(We(Ls))}),n})();function O_(n){n.getStandaloneInjector=i=>i.get(Rb).getOrCreateStandaloneInjector(n)}function V_(n,i,l){const m=Cs()+n,v=Xt();return v[m]===vi?fl(v,m,l?i.call(l):i()):fh(v,m)}function H_(n,i,l,m){return K_(Xt(),Cs(),n,i,l,m)}function z_(n,i,l,m,v){return Y_(Xt(),Cs(),n,i,l,m,v)}function U_(n,i,l,m,v,E){return function J_(n,i,l,m,v,E,L,te){const ae=i+l;return cp(n,ae,v,E,L)?fl(n,ae+3,te?m.call(te,v,E,L):m(v,E,L)):Ch(n,ae+3)}(Xt(),Cs(),n,i,l,m,v,E)}function $_(n,i,l,m,v,E,L){return Q_(Xt(),Cs(),n,i,l,m,v,E,L)}function Z_(n,i,l,m,v,E,L,te){const ae=Cs()+n,Ie=Xt(),Ue=xa(Ie,ae,l,m,v,E);return ro(Ie,ae+4,L)||Ue?fl(Ie,ae+5,te?i.call(te,l,m,v,E,L):i(l,m,v,E,L)):fh(Ie,ae+5)}function j_(n,i,l,m,v,E,L,te,ae){const Ie=Cs()+n,Ue=Xt(),ct=xa(Ue,Ie,l,m,v,E);return xu(Ue,Ie+4,L,te)||ct?fl(Ue,Ie+6,ae?i.call(ae,l,m,v,E,L,te):i(l,m,v,E,L,te)):fh(Ue,Ie+6)}function G_(n,i,l,m,v,E,L,te,ae,Ie){const Ue=Cs()+n,ct=Xt();let Dt=xa(ct,Ue,l,m,v,E);return cp(ct,Ue+4,L,te,ae)||Dt?fl(ct,Ue+7,Ie?i.call(Ie,l,m,v,E,L,te,ae):i(l,m,v,E,L,te,ae)):fh(ct,Ue+7)}function W_(n,i,l,m){return function q_(n,i,l,m,v,E){let L=i+l,te=!1;for(let ae=0;ae<v.length;ae++)ro(n,L++,v[ae])&&(te=!0);return te?fl(n,L,m.apply(E,v)):Ch(n,L)}(Xt(),Cs(),n,i,l,m)}function Ch(n,i){const l=n[i];return l===vi?void 0:l}function K_(n,i,l,m,v,E){const L=i+l;return ro(n,L,v)?fl(n,L+1,E?m.call(E,v):m(v)):Ch(n,L+1)}function Y_(n,i,l,m,v,E,L){const te=i+l;return xu(n,te,v,E)?fl(n,te+2,L?m.call(L,v,E):m(v,E)):Ch(n,te+2)}function Q_(n,i,l,m,v,E,L,te,ae){const Ie=i+l;return xa(n,Ie,v,E,L,te)?fl(n,Ie+4,ae?m.call(ae,v,E,L,te):m(v,E,L,te)):Ch(n,Ie+4)}function X_(n,i){const l=di();let m;const v=n+Ii;l.firstCreatePass?(m=function Zb(n,i){if(i)for(let l=i.length-1;l>=0;l--){const m=i[l];if(n===m.name)return m}}(i,l.pipeRegistry),l.data[v]=m,m.onDestroy&&(l.destroyHooks??(l.destroyHooks=[])).push(v,m.onDestroy)):m=l.data[v];const E=m.factory||(m.factory=Vs(m.type)),L=Sn(Dc);try{const te=Yo(!1),ae=E();return Yo(te),function zy(n,i,l,m){l>=n.data.length&&(n.data[l]=null,n.blueprint[l]=null),i[l]=m}(l,Xt(),v,ae),ae}finally{Sn(L)}}function ev(n,i,l){const m=n+Ii,v=Xt(),E=fr(v,m);return xh(v,m)?K_(v,Cs(),i,E.transform,l,E):E.transform(l)}function tv(n,i,l,m){const v=n+Ii,E=Xt(),L=fr(E,v);return xh(E,v)?Y_(E,Cs(),i,L.transform,l,m,L):L.transform(l,m)}function nv(n,i,l,m,v,E){const L=n+Ii,te=Xt(),ae=fr(te,L);return xh(te,L)?Q_(te,Cs(),i,ae.transform,l,m,v,E,ae):ae.transform(l,m,v,E)}function xh(n,i){return n[sn].data[i].pure}function Jf(n){return i=>{setTimeout(n,void 0,i)}}const gl=class Wb extends t.x{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,l,m){let v=i,E=l||(()=>null),L=m;if(i&&"object"==typeof i){const ae=i;v=ae.next?.bind(ae),E=ae.error?.bind(ae),L=ae.complete?.bind(ae)}this.__isAsync&&(E=Jf(E),v&&(v=Jf(v)),L&&(L=Jf(L)));const te=super.subscribe({next:v,error:E,complete:L});return i instanceof e.w0&&i.add(te),te}};function Kb(){return this._results[Symbol.iterator]()}class Qf{get changes(){return this._changes||(this._changes=new gl)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const l=Qf.prototype;l[Symbol.iterator]||(l[Symbol.iterator]=Kb)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,l){return this._results.reduce(i,l)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,l){const m=this;m.dirty=!1;const v=function Sr(n){return n.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Fc(n,i,l){if(n.length!==i.length)return!1;for(let m=0;m<n.length;m++){let v=n[m],E=i[m];if(l&&(v=l(v),E=l(E)),E!==v)return!1}return!0}(m._results,v,l))&&(m._results=v,m.length=v.length,m.last=v[this.length-1],m.first=v[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let wh=(()=>{class n{}return n.__NG_ELEMENT_ID__=Qb,n})();const Yb=wh,Jb=class extends Yb{constructor(i,l,m){super(),this._declarationLView=i,this._declarationTContainer=l,this.elementRef=m}createEmbeddedView(i,l){const m=this._declarationTContainer.tView,v=oh(this._declarationLView,m,i,16,null,m.declTNode,null,null,null,null,l||null);v[ms]=this._declarationLView[this._declarationTContainer.index];const L=this._declarationLView[Qn];return null!==L&&(v[Qn]=L.createEmbeddedView(m)),ah(m,v,i),new hh(v)}};function Qb(){return xp(as(),Xt())}function xp(n,i){return 4&n.type?new Jb(i,n,$l(n,i)):null}let wp=(()=>{class n{}return n.__NG_ELEMENT_ID__=qb,n})();function qb(){return rv(as(),Xt())}const Xb=wp,iv=class extends Xb{constructor(i,l,m){super(),this._lContainer=i,this._hostTNode=l,this._hostLView=m}get element(){return $l(this._hostTNode,this._hostLView)}get injector(){return new Ts(this._hostTNode,this._hostLView)}get parentInjector(){const i=Us(this._hostTNode,this._hostLView);if(zs(i)){const l=wr(i,this._hostLView),m=or(i);return new Ts(l[sn].data[m+8],l)}return new Ts(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const l=sv(this._lContainer);return null!==l&&l[i]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(i,l,m){let v,E;"number"==typeof m?v=m:null!=m&&(v=m.index,E=m.injector);const L=i.createEmbeddedView(l||{},E);return this.insert(L,v),L}createComponent(i,l,m,v,E){const L=i&&!function fo(n){return"function"==typeof n}(i);let te;if(L)te=l;else{const ct=l||{};te=ct.index,m=ct.injector,v=ct.projectableNodes,E=ct.environmentInjector||ct.ngModuleRef}const ae=L?i:new ph(Yn(i)),Ie=m||this.parentInjector;if(!E&&null==ae.ngModule){const Dt=(L?Ie:this.parentInjector).get(Ls,null);Dt&&(E=Dt)}const Ue=ae.create(Ie,v,void 0,E);return this.insert(Ue.hostView,te),Ue}insert(i,l){const m=i._lView,v=m[sn];if(function Or(n){return $i(n[hi])}(m)){const Ue=this.indexOf(i);if(-1!==Ue)this.detach(Ue);else{const ct=m[hi],Dt=new iv(ct,ct[he],ct[hi]);Dt.detach(Dt.indexOf(i))}}const E=this._adjustIndex(l),L=this._lContainer;!function il(n,i,l,m){const v=Xi+m,E=l.length;m>0&&(l[v-1][fs]=i),m<E-Xi?(i[fs]=l[v],Lc(l,Xi+m,i)):(l.push(i),i[fs]=null),i[hi]=l;const L=i[ms];null!==L&&l!==L&&function rc(n,i){const l=n[Ns];i[xi]!==i[hi][hi][xi]&&(n[Xs]=!0),null===l?n[Ns]=[i]:l.push(i)}(L,i);const te=i[Qn];null!==te&&te.insertView(n),i[Wn]|=64}(v,m,L,E);const te=uc(E,L),ae=m[hn],Ie=Kr(ae,L[Ti]);return null!==Ie&&function Vd(n,i,l,m,v,E){m[ki]=v,m[he]=i,cr(n,m,l,1,v,E)}(v,L[he],ae,m,Ie,te),i.attachToViewContainerRef(),Lc(qf(L),E,i),i}move(i,l){return this.insert(i,l)}indexOf(i){const l=sv(this._lContainer);return null!==l?l.indexOf(i):-1}remove(i){const l=this._adjustIndex(i,-1),m=sl(this._lContainer,l);m&&($(qf(this._lContainer),l),yo(m[sn],m))}detach(i){const l=this._adjustIndex(i,-1),m=sl(this._lContainer,l);return m&&null!=$(qf(this._lContainer),l)?new hh(m):null}_adjustIndex(i,l=0){return i??this.length+l}};function sv(n){return n[gs]}function qf(n){return n[gs]||(n[gs]=[])}function rv(n,i){let l;const m=i[n.index];if($i(m))l=m;else{let v;if(8&n.type)v=$n(m);else{const E=i[hn];v=E.createComment("");const L=Oi(n,i);Ha(E,Kr(E,L),v,function ba(n,i){return n.nextSibling(i)}(E,L),!1)}i[n.index]=l=dh(m,i,v,n),xo(i,l)}return new iv(l,n,i)}class Xf{constructor(i){this.queryList=i,this.matches=null}clone(){return new Xf(this.queryList)}setDirty(){this.queryList.setDirty()}}class em{constructor(i=[]){this.queries=i}createEmbeddedView(i){const l=i.queries;if(null!==l){const m=null!==i.contentQueries?i.contentQueries[0]:l.length,v=[];for(let E=0;E<m;E++){const L=l.getByIndex(E);v.push(this.queries[L.indexInDeclarationView].clone())}return new em(v)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let l=0;l<this.queries.length;l++)null!==fv(i,l).matches&&this.queries[l].setDirty()}}class ov{constructor(i,l,m=null){this.predicate=i,this.flags=l,this.read=m}}class tm{constructor(i=[]){this.queries=i}elementStart(i,l){for(let m=0;m<this.queries.length;m++)this.queries[m].elementStart(i,l)}elementEnd(i){for(let l=0;l<this.queries.length;l++)this.queries[l].elementEnd(i)}embeddedTView(i){let l=null;for(let m=0;m<this.length;m++){const v=null!==l?l.length:0,E=this.getByIndex(m).embeddedTView(i,v);E&&(E.indexInDeclarationView=m,null!==l?l.push(E):l=[E])}return null!==l?new tm(l):null}template(i,l){for(let m=0;m<this.queries.length;m++)this.queries[m].template(i,l)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class nm{constructor(i,l=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=l}elementStart(i,l){this.isApplyingToNode(l)&&this.matchTNode(i,l)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,l){this.elementStart(i,l)}embeddedTView(i,l){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,l),new nm(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const l=this._declarationNodeIndex;let m=i.parent;for(;null!==m&&8&m.type&&m.index!==l;)m=m.parent;return l===(null!==m?m.index:-1)}return this._appliesToNextNode}matchTNode(i,l){const m=this.metadata.predicate;if(Array.isArray(m))for(let v=0;v<m.length;v++){const E=m[v];this.matchTNodeWithReadOption(i,l,e1(l,E)),this.matchTNodeWithReadOption(i,l,Qo(l,i,E,!1,!1))}else m===wh?4&l.type&&this.matchTNodeWithReadOption(i,l,-1):this.matchTNodeWithReadOption(i,l,Qo(l,i,m,!1,!1))}matchTNodeWithReadOption(i,l,m){if(null!==m){const v=this.metadata.read;if(null!==v)if(v===vu||v===wp||v===wh&&4&l.type)this.addMatch(l.index,-2);else{const E=Qo(l,i,v,!1,!1);null!==E&&this.addMatch(l.index,E)}else this.addMatch(l.index,m)}}addMatch(i,l){null===this.matches?this.matches=[i,l]:this.matches.push(i,l)}}function e1(n,i){const l=n.localNames;if(null!==l)for(let m=0;m<l.length;m+=2)if(l[m]===i)return l[m+1];return null}function n1(n,i,l,m){return-1===l?function t1(n,i){return 11&n.type?$l(n,i):4&n.type?xp(n,i):null}(i,n):-2===l?function s1(n,i,l){return l===vu?$l(i,n):l===wh?xp(i,n):l===wp?rv(i,n):void 0}(n,i,m):jr(n,n[sn],l,i)}function av(n,i,l,m){const v=i[Qn].queries[m];if(null===v.matches){const E=n.data,L=l.matches,te=[];for(let ae=0;ae<L.length;ae+=2){const Ie=L[ae];te.push(Ie<0?null:n1(i,E[Ie],L[ae+1],l.metadata.read))}v.matches=te}return v.matches}function im(n,i,l,m){const v=n.queries.getByIndex(l),E=v.matches;if(null!==E){const L=av(n,i,v,l);for(let te=0;te<E.length;te+=2){const ae=E[te];if(ae>0)m.push(L[te/2]);else{const Ie=E[te+1],Ue=i[-ae];for(let ct=Xi;ct<Ue.length;ct++){const Dt=Ue[ct];Dt[ms]===Dt[hi]&&im(Dt[sn],Dt,Ie,m)}if(null!==Ue[Ns]){const ct=Ue[Ns];for(let Dt=0;Dt<ct.length;Dt++){const Ut=ct[Dt];im(Ut[sn],Ut,Ie,m)}}}}}return m}function lv(n){const i=Xt(),l=di(),m=Io();Ao(m+1);const v=fv(l,m);if(n.dirty&&function eo(n){return 4==(4&n[Wn])}(i)===(2==(2&v.metadata.flags))){if(null===v.matches)n.reset([]);else{const E=v.crossesNgTemplate?im(l,i,m,[]):av(l,i,v,m);n.reset(E,Oh),n.notifyOnChanges()}return!0}return!1}function cv(n,i,l){const m=di();m.firstCreatePass&&(pv(m,new ov(n,i,l),-1),2==(2&i)&&(m.staticViewQueries=!0)),hv(m,Xt(),i)}function uv(n,i,l,m){const v=di();if(v.firstCreatePass){const E=as();pv(v,new ov(i,l,m),E.index),function o1(n,i){const l=n.contentQueries||(n.contentQueries=[]);i!==(l.length?l[l.length-1]:-1)&&l.push(n.queries.length-1,i)}(v,n),2==(2&l)&&(v.staticContentQueries=!0)}hv(v,Xt(),l)}function dv(){return function r1(n,i){return n[Qn].queries[i].queryList}(Xt(),Io())}function hv(n,i,l){const m=new Qf(4==(4&l));
1r(n,i,m,m.destroy),null===i[Qn]&&(i[Qn]=new em),i[Qn].queries.push(new Xf(m))}function pv(n,i,l){null===n.queries&&(n.queries=new tm),n.queries.track(new nm(i,l))}function fv(n,i){return n.queries.getByIndex(i)}function mv(n,i){return xp(n,i)}function sm(n){return!!Li(n)}function Mp(...n){}const Pv=new Ui("Application Initializer");let Tp=(()=>{class n{constructor(l){this.appInits=l,this.resolve=Mp,this.reject=Mp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((m,v)=>{this.resolve=m,this.reject=v})}runInitializers(){if(this.initialized)return;const l=[],m=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let v=0;v<this.appInits.length;v++){const E=this.appInits[v]();if(Df(E))l.push(E);else if(og(E)){const L=new Promise((te,ae)=>{E.subscribe({complete:te,error:ae})});l.push(L)}}Promise.all(l).then(()=>{m()}).catch(v=>{this.reject(v)}),0===l.length&&m(),this.initialized=!0}}return n.\u0275fac=function(l){return new(l||n)(We(Pv,8))},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Rv=new Ui("AppId",{providedIn:"root",factory:function Fv(){return`${cm()}${cm()}${cm()}`}});function cm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lv=new Ui("Platform Initializer"),T1=new Ui("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),E1=new Ui("AnimationModuleType");let D1=(()=>{class n{log(l){console.log(l)}warn(l){console.warn(l)}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Ep=new Ui("LocaleId",{providedIn:"root",factory:()=>Ft(Ep,It.Optional|It.SkipSelf)||function I1(){return typeof $localize<"u"&&$localize.locale||yd}()}),A1=new Ui("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class k1{constructor(i,l){this.ngModuleFactory=i,this.componentFactories=l}}let O1=(()=>{class n{compileModuleSync(l){return new Wf(l)}compileModuleAsync(l){return Promise.resolve(this.compileModuleSync(l))}compileModuleAndAllComponentsSync(l){const m=this.compileModuleSync(l),E=Za(Li(l).declarations).reduce((L,te)=>{const ae=Yn(te);return ae&&L.push(new ph(ae)),L},[]);return new k1(m,E)}compileModuleAndAllComponentsAsync(l){return Promise.resolve(this.compileModuleAndAllComponentsSync(l))}clearCache(){}clearCacheFor(l){}getModuleId(l){}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const F1=(()=>Promise.resolve(0))();function um(n){typeof Zone>"u"?F1.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class wa{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:m=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new gl(!1),this.onMicrotaskEmpty=new gl(!1),this.onStable=new gl(!1),this.onError=new gl(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const v=this;v._nesting=0,v._outer=v._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(v._inner=v._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(v._inner=v._inner.fork(Zone.longStackTraceZoneSpec)),v.shouldCoalesceEventChangeDetection=!m&&l,v.shouldCoalesceRunChangeDetection=m,v.lastRequestAnimationFrameId=-1,v.nativeRequestAnimationFrame=function L1(){let n=Un.requestAnimationFrame,i=Un.cancelAnimationFrame;if(typeof Zone<"u"&&n&&i){const l=n[Zone.__symbol__("OriginalDelegate")];l&&(n=l);const m=i[Zone.__symbol__("OriginalDelegate")];m&&(i=m)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function V1(n){const i=()=>{!function B1(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Un,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,hm(n),n.isCheckStableRunning=!0,dm(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),hm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,m,v,E,L,te)=>{try{return Vv(n),l.invokeTask(v,E,L,te)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===E.type||n.shouldCoalesceRunChangeDetection)&&i(),Hv(n)}},onInvoke:(l,m,v,E,L,te,ae)=>{try{return Vv(n),l.invoke(v,E,L,te,ae)}finally{n.shouldCoalesceRunChangeDetection&&i(),Hv(n)}},onHasTask:(l,m,v,E)=>{l.hasTask(v,E),m===v&&("microTask"==E.change?(n._hasPendingMicrotasks=E.microTask,hm(n),dm(n)):"macroTask"==E.change&&(n.hasPendingMacrotasks=E.macroTask))},onHandleError:(l,m,v,E)=>(l.handleError(v,E),n.runOutsideAngular(()=>n.onError.emit(E)),!1)})}(v)}
vendor: 4,361 bytes, line 1
1static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wa.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(wa.isInAngularZone())throw new W(909,!1)}run(i,l,m){return this._inner.run(i,l,m)}runTask(i,l,m,v){const E=this._inner,L=E.scheduleEventTask("NgZoneEvent: "+v,i,N1,Mp,Mp);try{return E.runTask(L,l,m)}finally{E.cancelTask(L)}}runGuarded(i,l,m){return this._inner.runGuarded(i,l,m)}runOutsideAngular(i){return this._outer.run(i)}}const N1={};function dm(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function hm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function Vv(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Hv(n){n._nesting--,dm(n)}class H1{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new gl,this.onMicrotaskEmpty=new gl,this.onStable=new gl,this.onError=new gl}run(i,l,m){return i.apply(l,m)}runGuarded(i,l,m){return i.apply(l,m)}runOutsideAngular(i){return i()}runTask(i,l,m,v){return i.apply(l,m)}}const zv=new Ui(""),Uv=new Ui("");let pm,z1=(()=>{class n{constructor(l,m,v){this._ngZone=l,this.registry=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,pm||(function U1(n){pm=n}(v),v.addToWindow(m)),this._watchAngularEvents(),l.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wa.assertNotInAngularZone(),um(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())um(()=>{for(;0!==this._callbacks.length;){let l=this._callbacks.pop();clearTimeout(l.timeoutId),l.doneCb(this._didWork)}this._didWork=!1});else{let l=this.getPendingTasks();this._callbacks=this._callbacks.filter(m=>!m.updateCb||!m.updateCb(l)||(clearTimeout(m.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(l=>({source:l.source,creationLocation:l.creationLocation,data:l.data})):[]}addCallback(l,m,v){let E=-1;m&&m>0&&(E=setTimeout(()=>{this._callbacks=this._callbacks.filter(L=>L.timeoutId!==E),l(this._didWork,this.getPendingTasks())},m)),this._callbacks.push({doneCb:l,timeoutId:E,updateCb:v})}whenStable(l,m,v){if(v&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(l,m,v),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(l){this.registry.registerApplication(l,this)}unregisterApplication(l){this.registry.unregisterApplication(l)}findProviders(l,m,v){return[]}}return n.\u0275fac=function(l){return new(l||n)(We(wa),We($v),We(Uv))},n.\u0275prov=mt({token:n,factory:n.\u0275fac}),n})(),$v=(()=>{class n{constructor(){this._applications=new Map}registerApplication(l,m){this._applications.set(l,m)}unregisterApplication(l){this._applications.delete(l)}unregisterAllApplications(){this._applications.clear()}getTestability(l){return this._applications.get(l)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(l,m=!0){return pm?.findTestabilityInTree(this,l,m)??null}}return n.\u0275fac=function(l){return new(l||n)},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Wl=!1;let kc=null;
1const Zv=new Ui("AllowMultipleToken"),fm=new Ui("PlatformDestroyListeners"),jv=new Ui("appBootstrapListener");class j1{constructor(i,l){this.name=i,this.token=l}}function Wv(n,i,l=[]){const m=`Platform: ${i}`,v=new Ui(m);return(E=[])=>{let L=mm();if(!L||L.injector.get(Zv,!1)){const te=[...l,...E,{provide:v,useValue:!0}];n?n(te):function G1(n){if(kc&&!kc.get(Zv,!1))throw new W(400,!1);kc=n;const i=n.get(Yv);(function Gv(n){const i=n.get(Lv,null);i&&i.forEach(l=>l())})(n)}(function Kv(n=[],i){return Ec.create({name:i,providers:[{provide:Hn,useValue:"platform"},{provide:fm,useValue:new Set([()=>kc=null])},...n]})}(te,m))}return function K1(n){const i=mm();if(!i)throw new W(401,!1);return i}()}}function mm(){return kc?.get(Yv)??null}let Yv=(()=>{class n{constructor(l){this._injector=l,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(l,m){const v=function Qv(n,i){let l;return l="noop"===n?new H1:("zone.js"===n?void 0:n)||new wa(i),l}(m?.ngZone,function Jv(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(m)),E=[{provide:wa,useValue:v}];return v.run(()=>{const L=Ec.create({providers:E,parent:this.injector,name:l.moduleType.name}),te=l.create(L),ae=te.injector.get(Mc,null);if(!ae)throw new W(402,!1);return v.runOutsideAngular(()=>{const Ie=v.onError.subscribe({next:Ue=>{ae.handleError(Ue)}});te.onDestroy(()=>{Ip(this._modules,te),Ie.unsubscribe()})}),function qv(n,i,l){try{const m=l();return Df(m)?m.catch(v=>{throw i.runOutsideAngular(()=>n.handleError(v)),v}):m}catch(m){throw i.runOutsideAngular(()=>n.handleError(m)),m}}(ae,v,()=>{const Ie=te.injector.get(Tp);return Ie.runInitializers(),Ie.donePromise.then(()=>(function s_(n){me(n,"Expected localeId to be defined"),"string"==typeof n&&(i_=n.toLowerCase().replace(/_/g,"-"))}(te.injector.get(Ep,yd)||yd),this._moduleDoBootstrap(te),te))})})}bootstrapModule(l,m=[]){const v=Xv({},m);return function $1(n,i,l){const m=new Wf(l);return Promise.resolve(m)}(0,0,l).then(E=>this.bootstrapModuleFactory(E,v))}_moduleDoBootstrap(l){const m=l.injector.get(Dp);if(l._bootstrapComponents.length>0)l._bootstrapComponents.forEach(v=>m.bootstrap(v));else{if(!l.instance.ngDoBootstrap)throw new W(-403,!1);l.instance.ngDoBootstrap(m)}this._modules.push(l)}onDestroy(l){this._destroyListeners.push(l)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m());const l=this._injector.get(fm,null);l&&(l.forEach(m=>m()),l.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(l){return new(l||n)(We(Ec))},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Xv(n,i){return Array.isArray(i)?i.reduce(Xv,n):{...n,...i}}let Dp=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(l,m,v){this._zone=l,this._injector=m,this._exceptionHandler=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const E=new s.y(te=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{te.next(this._stable),te.complete()})}),L=new s.y(te=>{let ae;this._zone.runOutsideAngular(()=>{ae=this._zone.onStable.subscribe(()=>{wa.assertNotInAngularZone(),um(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,te.next(!0))})})});const Ie=this._zone.onUnstable.subscribe(()=>{wa.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{te.next(!1)}))});return()=>{ae.unsubscribe(),Ie.unsubscribe()}});this.isStable=(0,D.T)(E,L.pipe((0,x.B)()))}bootstrap(l,m){const v=l instanceof Ul;if(!this._injector.get(Tp).done){!v&&Qi(l);throw new W(405,Wl)}let L;L=v?l:this._injector.get(id).resolveComponentFactory(l),this.componentTypes.push(L.componentType);const te=function Z1(n){return n.isBoundToModule}(L)?void 0:this._injector.get(bd),Ie=L.create(Ec.NULL,[],m||L.selector,te),Ue=Ie.location.nativeElement,ct=Ie.injector.get(zv,
vendor: 11,541 bytes, line 1
1null);return ct?.registerApplication(Ue),Ie.onDestroy(()=>{this.detachView(Ie.hostView),Ip(this.components,Ie),ct?.unregisterApplication(Ue)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let l of this._views)l.detectChanges()}catch(l){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(l))}finally{this._runningTick=!1}}attachView(l){const m=l;this._views.push(m),m.attachToAppRef(this)}detachView(l){const m=l;Ip(this._views,m),m.detachFromAppRef()}_loadComponent(l){this.attachView(l.hostView),this.tick(),this.components.push(l);const m=this._injector.get(jv,[]);m.push(...this._bootstrapListeners),m.forEach(v=>v(l))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(l=>l()),this._views.slice().forEach(l=>l.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(l){return this._destroyListeners.push(l),()=>Ip(this._destroyListeners,l)}destroy(){if(this._destroyed)throw new W(406,!1);const l=this._injector;l.destroy&&!l.destroyed&&l.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(l){return new(l||n)(We(wa),We(Ls),We(Mc))},n.\u0275prov=mt({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ip(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}function J1(){return!1}function Q1(){}let q1=(()=>{class n{}return n.__NG_ELEMENT_ID__=X1,n})();function X1(n){return function eC(n,i,l){if(Bs(n)&&!l){const m=es(n.index,i);return new hh(m,m)}return 47&n.type?new hh(i[xi],i):null}(as(),Xt(),16==(16&n))}class sy{constructor(){}supports(i){return lp(i)}create(i){return new oC(i)}}const rC=(n,i)=>i;class oC{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||rC}forEachItem(i){let l;for(l=this._itHead;null!==l;l=l._next)i(l)}forEachOperation(i){let l=this._itHead,m=this._removalsHead,v=0,E=null;for(;l||m;){const L=!m||l&&l.currentIndex<oy(m,v,E)?l:m,te=oy(L,v,E),ae=L.currentIndex;if(L===m)v--,m=m._nextRemoved;else if(l=l._next,null==L.previousIndex)v++;else{E||(E=[]);const Ie=te-v,Ue=ae-v;if(Ie!=Ue){for(let Dt=0;Dt<Ie;Dt++){const Ut=Dt<E.length?E[Dt]:E[Dt]=0,cn=Ut+Dt;Ue<=cn&&cn<Ie&&(E[Dt]=Ut+1)}E[L.previousIndex]=Ue-Ie}}te!==ae&&i(L,te,ae)}}forEachPreviousItem(i){let l;for(l=this._previousItHead;null!==l;l=l._nextPrevious)i(l)}forEachAddedItem(i){let l;for(l=this._additionsHead;null!==l;l=l._nextAdded)i(l)}forEachMovedItem(i){let l;for(l=this._movesHead;null!==l;l=l._nextMoved)i(l)}forEachRemovedItem(i){let l;for(l=this._removalsHead;null!==l;l=l._nextRemoved)i(l)}forEachIdentityChange(i){let l;for(l=this._identityChangesHead;null!==l;l=l._nextIdentityChange)i(l)}diff(i){if(null==i&&(i=[]),!lp(i))throw new W(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let v,E,L,l=this._itHead,m=!1;if(Array.isArray(i)){this.length=i.length;for(let te=0;te<this.length;te++)E=i[te],L=this._trackByFn(te,E),null!==l&&Object.is(l.trackById,L)?(m&&(l=this._verifyReinsertion(l,E,L,te)),Object.is(l.item,E)||this._addIdentityChange(l,E)):(l=this._mismatch(l,E,L,te),m=!0),l=l._next}else v=0,function Ny(n,i){if(Array.isArray(n))for(let l=0;l<n.length;l++)i(n[l]);else{const l=n[Symbol.iterator]();let m;for(;!(m=l.next()).done;)i(m.value)}}(i,te=>{L=this._trackByFn(v,te),null!==l&&Object.is(l.trackById,L)?(m&&(l=this._verifyReinsertion(l,te,L,v)),Object.is(l.item,te)||this._addIdentityChange(l,te)):(l=this._mismatch(l,te,L,v),m=!0),l=l._next,v++}),this.length=v;return this._truncate(l),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,l,m,v){let E;return null===i?E=this._itTail:(E=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null))?(Object.is(i.item,l)||this._addIdentityChange(i,l),this._reinsertAfter(i,E,v)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(m,v))?(Object.is(i.item,l)||this._addIdentityChange(i,l),this._moveAfter(i,E,v)):i=this._addAfter(new aC(l,m),E,v),i}_verifyReinsertion(i,l,m,v){let E=null===this._unlinkedRecords?null:this._unlinkedRecords.get(m,null);return null!==E?i=this._reinsertAfter(E,i._prev,v):i.currentIndex!=v&&(i.currentIndex=v,this._addToMoves(i,v)),i}_truncate(i){for(;null!==i;){const l=i._next;this._addToRemovals(this._unlink(i)),i=l}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(i,l,m){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const v=i._prevRemoved,E=i._nextRemoved;return null===v?this._removalsHead=E:v._nextRemoved=E,null===E?this._removalsTail=v:E._prevRemoved=v,this._insertAfter(i,l,m),this._addToMoves(i,m),i}_moveAfter(i,l,m){return this._unlink(i),this._insertAfter(i,l,m),this._addToMoves(i,m),i}_addAfter(i,l,m){return this._insertAfter(i,l,m),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,l,m){const v=null===l?this._itHead:l._next;return i._next=v,i._prev=l,null===v?this._itTail=i:v._prev=i,null===l?this._itHead=i:l._next=i,null===this._linkedRecords&&(this._linkedRecords=new ry),this._linkedRecords.put(i),i.currentIndex=m,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const l=i._prev,m=i._next;return null===l?this._itHead=m:l._next=m,null===m?this._itTail=l:m._prev=l,i}_addToMoves(i,l){return i.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ry),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,l){return i.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class aC{constructor(i,l){this.item=i,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class lC{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,l){let m;for(m=this._head;null!==m;m=m._nextDup)if((null===l||l<=m.currentIndex)&&Object.is(m.trackById,i))return m;return null}remove(i){const l=i._prevDup,m=i._nextDup;return null===l?this._head=m:l._nextDup=m,null===m?this._tail=l:m._prevDup=l,null===this._head}}class ry{constructor(){this.map=new Map}put(i){const l=i.trackById;let m=this.map.get(l);m||(m=new lC,this.map.set(l,m)),m.add(i)}get(i,l){const v=this.map.get(i);return v?v.get(i,l):null}remove(i){const l=i.trackById;return this.map.get(l).remove(i)&&this.map.delete(l),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function oy(n,i,l){const m=n.previousIndex;if(null===m)return m;let v=0;return l&&m<l.length&&(v=l[m]),m+i+v}class ay{constructor(){}supports(i){return i instanceof Map||xf(i)}create(){return new cC}}class cC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(i){let l;for(l=this._mapHead;null!==l;l=l._next)i(l)}forEachPreviousItem(i){let l;for(l=this._previousMapHead;null!==l;l=l._nextPrevious)i(l)}forEachChangedItem(i){let l;for(l=this._changesHead;null!==l;l=l._nextChanged)i(l)}forEachAddedItem(i){let l;for(l=this._additionsHead;null!==l;l=l._nextAdded)i(l)}forEachRemovedItem(i){let l;for(l=this._removalsHead;null!==l;l=l._nextRemoved)i(l)}diff(i){if(i){if(!(i instanceof Map||xf(i)))throw new W(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let l=this._mapHead;if(this._appendAfter=null,this._forEach(i,(m,v)=>{if(l&&l.key===v)this._maybeAddToChanges(l,m),this._appendAfter=l,l=l._next;else{const E=this._getOrCreateRecordForKey(v,m);l=this._insertBeforeOrAppend(l,E)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let m=l;null!==m;m=m._nextRemoved)m===this._mapHead&&(this._mapHead=null),this._records.delete(m.key),m._nextRemoved=m._next,m.previousValue=m.currentValue,m.currentValue=null,m._prev=null,m._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,l){if(i){const m=i._prev;return l._next=i,l._prev=m,i._prev=l,m&&(m._next=l),i===this._mapHead&&(this._mapHead=l),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(i,l){if(this._records.has(i)){const v=this._records.get(i);this._maybeAddToChanges(v,l);const E=v._prev,L=v._next;return E&&(E._next=L),L&&(L._prev=E),v._next=null,v._prev=null,v}const m=new uC(i);return this._records.set(i,m),m.currentValue=l,this._addToAdditions(m),m}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,l){Object.is(l,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=l,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}
1_forEach(i,l){i instanceof Map?i.forEach(l):Object.keys(i).forEach(m=>l(i[m],m))}}class uC{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ly(){return new bm([new sy])}let bm=(()=>{class n{constructor(l){this.factories=l}static create(l,m){if(null!=m){const v=m.factories.slice();l=l.concat(v)}return new n(l)}static extend(l){return{provide:n,useFactory:m=>n.create(l,m||ly()),deps:[[n,new Xo,new xl]]}}find(l){const m=this.factories.find(v=>v.supports(l));if(null!=m)return m;throw new W(901,!1)}}return n.\u0275prov=mt({token:n,providedIn:"root",factory:ly}),n})();function cy(){return new Cm([new ay])}let Cm=(()=>{class n{constructor(l){this.factories=l}static create(l,m){if(m){const v=m.factories.slice();l=l.concat(v)}return new n(l)}static extend(l){return{provide:n,useFactory:m=>n.create(l,m||cy()),deps:[[n,new Xo,new xl]]}}find(l){const m=this.factories.find(v=>v.supports(l));if(m)return m;throw new W(901,!1)}}return n.\u0275prov=mt({token:n,providedIn:"root",factory:cy}),n})();const pC=Wv(null,"core",[]);let fC=(()=>{class n{constructor(l){}}return n.\u0275fac=function(l){return new(l||n)(We(Dp))},n.\u0275mod=Js({type:n}),n.\u0275inj=tn({}),n})();function mC(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}},4006:(o,u,a)=>{"use strict";a.d(u,{Cf:()=>Y,EJ:()=>Os,F:()=>he,Fj:()=>ne,JJ:()=>Yt,JL:()=>It,JU:()=>I,Kr:()=>Ar,On:()=>qs,Q7:()=>H,UX:()=>Hs,YN:()=>er,_Y:()=>Ii,a5:()=>xn,c5:()=>pi,kI:()=>Q,nD:()=>ui,qu:()=>Or,sg:()=>ts,u:()=>Gi,u5:()=>Kn});var t=a(4650),e=a(6895),s=a(457),D=a(4128),x=a(4004);let M=(()=>{class Ce{constructor(ce,Ze){this._renderer=ce,this._elementRef=Ze,this.onChange=Gt=>{},this.onTouched=()=>{}}setProperty(ce,Ze){this._renderer.setProperty(this._elementRef.nativeElement,ce,Ze)}registerOnTouched(ce){this.onTouched=ce}registerOnChange(ce){this.onChange=ce}setDisabledState(ce){this.setProperty("disabled",ce)}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(t.Qsj),t.Y36(t.SBq))},Ce.\u0275dir=t.lG2({type:Ce}),Ce})(),w=(()=>{class Ce extends M{}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,features:[t.qOj]}),Ce})();const I=new t.OlP("NgValueAccessor"),k={provide:I,useExisting:(0,t.Gpc)(()=>ne),multi:!0},F=new t.OlP("CompositionEventMode");let ne=(()=>{class Ce extends M{constructor(ce,Ze,Gt){super(ce,Ze),this._compositionMode=Gt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function z(){const Ce=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(Ce.toLowerCase())}())}writeValue(ce){this.setProperty("value",ce??"")}_handleInput(ce){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ce)}_compositionStart(){this._composing=!0}_compositionEnd(ce){this._composing=!1,this._compositionMode&&this.onChange(ce)}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(F,8))},Ce.\u0275dir=t.lG2({type:Ce,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(ce,Ze){1&ce&&t.NdJ("input",function(Nn){return Ze._handleInput(Nn.target.value)})("blur",function(){return Ze.onTouched()})("compositionstart",function(){return Ze._compositionStart()})("compositionend",function(Nn){return Ze._compositionEnd(Nn.target.value)})},features:[t._Bn([k]),t.qOj]}),Ce})();const B=!1;function G(Ce){return null==Ce||("string"==typeof Ce||Array.isArray(Ce))&&0===Ce.length}function W(Ce){return null!=Ce&&"number"==typeof Ce.length}const Y=new t.OlP("NgValidators"),fe=new t.OlP("NgAsyncValidators"),N=/^(?=.{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 Q{static min(ge){return function O(Ce){return ge=>{if(G(ge.value)||G(Ce))return null;const ce=parseFloat(ge.value);return!isNaN(ce)&&ce<Ce?{min:{min:Ce,actual:ge.value}}:null}}(ge)}static max(ge){return function ee(Ce){return ge=>{if(G(ge.value)||G(Ce))return null;const ce=parseFloat(ge.value);return!isNaN(ce)&&ce>Ce?{max:{max:Ce,actual:ge.value}}:null}}(ge)}static required(ge){return ue(ge)}static requiredTrue(ge){return function _e(Ce){return!0===Ce.value?null:{required:!0}}(ge)}static email(ge){return function be(Ce){return G(Ce.value)||N.test(Ce.value)?null:{email:!0}}(ge)}static minLength(ge){return function Qe(Ce){return ge=>G(ge.value)||!W(ge.value)?null:ge.value.length<Ce?{minlength:{requiredLength:Ce,actualLength:ge.value.length}}:null}(ge)}static maxLength(ge){return ze(ge)}static pattern(ge){return Oe(ge)}static nullValidator(ge){return null}static compose(ge){return at(ge)}static composeAsync(ge){return ve(ge)}}function ue(Ce){return G(Ce.value)?{required:!0}:null}function ze(Ce){return ge=>W(ge.value)&&ge.value.length>Ce?{maxlength:{requiredLength:Ce,actualLength:ge.value.length}}:null}function Oe(Ce){if(!Ce)return K;let ge,ce;return"string"==typeof Ce?(ce="","^"!==Ce.charAt(0)&&(ce+="^"),ce+=Ce,"$"!==Ce.charAt(Ce.length-1)&&(ce+="$"),ge=new RegExp(ce)):(ce=Ce.toString(),ge=Ce),Ze=>{if(G(Ze.value))return null;const Gt=Ze.value;return ge.test(Gt)?null:{pattern:{requiredPattern:ce,actualValue:Gt}}}}function K(Ce){return null}function X(Ce){return null!=Ce}function V(Ce){const ge=(0,t.QGY)(Ce)?(0,s.D)(Ce):Ce;if(B&&!(0,t.CqO)(ge)){let ce="Expected async validator to return Promise or Observable.";throw"object"==typeof Ce&&(ce+=" Are you using a synchronous validator where an async validator is expected?"),new t.vHH(-1101,ce)}return ge}function q(Ce){let ge={};return Ce.forEach(ce=>{ge=null!=ce?{...ge,...ce}:ge}),0===Object.keys(ge).length?null:ge}function Ee(Ce,ge){return ge.map(ce=>ce(Ce))}function nt(Ce){return Ce.map(ge=>function ye(Ce){return!Ce.validate}(ge)?ge:ce=>ge.validate(ce))}function at(Ce){if(!Ce)return null;const ge=Ce.filter(X);return 0==ge.length?null:function(ce){return q(Ee(ce,ge))}}function me(Ce){return null!=Ce?at(nt(Ce)):null}function ve(Ce){if(!Ce)return null;const ge=Ce.filter(X);return 0==ge.length?null:function(ce){const Ze=Ee(ce,ge).map(V);return(0,D.D)(Ze).pipe((0,x.U)(q))}}function je(Ce){return null!=Ce?ve(nt(Ce)):null}function Xe(Ce,ge){return null===Ce?[ge]:Array.isArray(Ce)?[...Ce,ge]:[Ce,ge]}function rt(Ce){return Ce._rawValidators}function mt(Ce){return Ce._rawAsyncValidators}function $t(Ce){return Ce?Array.isArray(Ce)?Ce:[Ce]:[]}function tn(Ce,ge){return Array.isArray(Ce)?Ce.includes(ge):Ce===ge}function yt(Ce,ge){const ce=$t(ge);return $t(Ce).forEach(Gt=>{tn(ce,Gt)||ce.push(Gt)}
1),ce}function bt(Ce,ge){return $t(ge).filter(ce=>!tn(Ce,ce))}class Ye{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(ge){this._rawValidators=ge||[],this._composedValidatorFn=me(this._rawValidators)}_setAsyncValidators(ge){this._rawAsyncValidators=ge||[],this._composedAsyncValidatorFn=je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ge){this._onDestroyCallbacks.push(ge)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ge=>ge()),this._onDestroyCallbacks=[]}reset(ge){this.control&&this.control.reset(ge)}hasError(ge,ce){return!!this.control&&this.control.hasError(ge,ce)}getError(ge,ce){return this.control?this.control.getError(ge,ce):null}}class Nt extends Ye{get formDirective(){return null}get path(){return null}}class xn extends Ye{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pn{constructor(ge){this._cd=ge}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Yt=(()=>{class Ce extends pn{constructor(ce){super(ce)}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(xn,2))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ce,Ze){2&ce&&t.ekj("ng-untouched",Ze.isUntouched)("ng-touched",Ze.isTouched)("ng-pristine",Ze.isPristine)("ng-dirty",Ze.isDirty)("ng-valid",Ze.isValid)("ng-invalid",Ze.isInvalid)("ng-pending",Ze.isPending)},features:[t.qOj]}),Ce})(),It=(()=>{class Ce extends pn{constructor(ce){super(ce)}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(Nt,10))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ce,Ze){2&ce&&t.ekj("ng-untouched",Ze.isUntouched)("ng-touched",Ze.isTouched)("ng-pristine",Ze.isPristine)("ng-dirty",Ze.isDirty)("ng-valid",Ze.isValid)("ng-invalid",Ze.isInvalid)("ng-pending",Ze.isPending)("ng-submitted",Ze.isSubmitted)},features:[t.qOj]}),Ce})();function Bt(Ce,ge){return Ce?`with name: '${ge}'`:`at index: ${ge}`}const Be=!1,Te="VALID",We="INVALID",ft="PENDING",Ft="DISABLED";function Pt(Ce){return(xt(Ce)?Ce.validators:Ce)||null}function wt(Ce,ge){return(xt(ge)?ge.asyncValidators:Ce)||null}function xt(Ce){return null!=Ce&&!Array.isArray(Ce)&&"object"==typeof Ce}function $e(Ce,ge,ce){const Ze=Ce.controls;if(!(ge?Object.keys(Ze):Ze).length)throw new t.vHH(1e3,Be?function jt(Ce){return`\n There are no form controls registered with this ${Ce?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(ge):"");if(!Ze[ce])throw new t.vHH(1001,Be?function _t(Ce,ge){return`Cannot find form control ${Bt(Ce,ge)}`}(ge,ce):"")}function ht(Ce,ge,ce){Ce._forEachChild((Ze,Gt)=>{if(void 0===ce[Gt])throw new t.vHH(1002,Be?function dt(Ce,ge){return`Must supply a value for form control ${Bt(Ce,ge)}`}(ge,Gt):"")})}class Ht{constructor(ge,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ge),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(ge){this._rawValidators=this._composedValidatorFn=ge}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ge){this._rawAsyncValidators=this._composedAsyncValidatorFn=ge}get parent(){return this._parent}get valid(){return this.status===Te}get invalid(){return this.status===We}get pending(){return this.status==ft}get disabled(){return this.status===Ft}get enabled(){return this.status!==Ft}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ge){this._assignValidators(ge)}setAsyncValidators(ge){this._assignAsyncValidators(ge)}
vendor: 4,828 bytes, line 1
1addValidators(ge){this.setValidators(yt(ge,this._rawValidators))}addAsyncValidators(ge){this.setAsyncValidators(yt(ge,this._rawAsyncValidators))}removeValidators(ge){this.setValidators(bt(ge,this._rawValidators))}removeAsyncValidators(ge){this.setAsyncValidators(bt(ge,this._rawAsyncValidators))}hasValidator(ge){return tn(this._rawValidators,ge)}hasAsyncValidator(ge){return tn(this._rawAsyncValidators,ge)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ge={}){this.touched=!0,this._parent&&!ge.onlySelf&&this._parent.markAsTouched(ge)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ge=>ge.markAllAsTouched())}markAsUntouched(ge={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!ge.onlySelf&&this._parent._updateTouched(ge)}markAsDirty(ge={}){this.pristine=!1,this._parent&&!ge.onlySelf&&this._parent.markAsDirty(ge)}markAsPristine(ge={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!ge.onlySelf&&this._parent._updatePristine(ge)}markAsPending(ge={}){this.status=ft,!1!==ge.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ge.onlySelf&&this._parent.markAsPending(ge)}disable(ge={}){const ce=this._parentMarkedDirty(ge.onlySelf);this.status=Ft,this.errors=null,this._forEachChild(Ze=>{Ze.disable({...ge,onlySelf:!0})}),this._updateValue(),!1!==ge.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ge,skipPristineCheck:ce}),this._onDisabledChange.forEach(Ze=>Ze(!0))}enable(ge={}){const ce=this._parentMarkedDirty(ge.onlySelf);this.status=Te,this._forEachChild(Ze=>{Ze.enable({...ge,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ge.emitEvent}),this._updateAncestors({...ge,skipPristineCheck:ce}),this._onDisabledChange.forEach(Ze=>Ze(!1))}_updateAncestors(ge){this._parent&&!ge.onlySelf&&(this._parent.updateValueAndValidity(ge),ge.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ge){this._parent=ge}getRawValue(){return this.value}updateValueAndValidity(ge={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Te||this.status===ft)&&this._runAsyncValidator(ge.emitEvent)),!1!==ge.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ge.onlySelf&&this._parent.updateValueAndValidity(ge)}_updateTreeValidity(ge={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(ge)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ge.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ft:Te}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ge){if(this.asyncValidator){this.status=ft,this._hasOwnPendingAsyncValidator=!0;const ce=V(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe(Ze=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ze,{emitEvent:ge})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ge,ce={}){this.errors=ge,this._updateControlsErrors(!1!==ce.emitEvent)}get(ge){let ce=ge;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce((Ze,Gt)=>Ze&&Ze._find(Gt),this)}getError(ge,ce){const Ze=ce?this.get(ce):this;return Ze&&Ze.errors?Ze.errors[ge]:null}hasError(ge,ce){return!!this.getError(ge,ce)}get root(){let ge=this;for(;ge._parent;)ge=ge._parent;return ge}_updateControlsErrors(ge){this.status=this._calculateStatus(),ge&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ge)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Ft:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ft)?ft:this._anyControlsHaveStatus(We)?We:Te}_anyControlsHaveStatus(ge){return this._anyControls(ce=>ce.status===ge)}_anyControlsDirty(){return this._anyControls(ge=>ge.dirty)}_anyControlsTouched(){return this._anyControls(ge=>ge.touched)}_updatePristine(ge={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ge.onlySelf&&this._parent._updatePristine(ge)}_updateTouched(ge={}){this.touched=this._anyControlsTouched(),this._parent&&!ge.onlySelf&&this._parent._updateTouched(ge)}_registerOnCollectionChange(ge){this._onCollectionChange=ge}_setUpdateStrategy(ge){xt(ge)&&null!=ge.updateOn&&(this._updateOn=ge.updateOn)}_parentMarkedDirty(ge){return!ge&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}
vendor: 6,765 bytes, line 1
1_find(ge){return null}_assignValidators(ge){this._rawValidators=Array.isArray(ge)?ge.slice():ge,this._composedValidatorFn=function pt(Ce){return Array.isArray(Ce)?me(Ce):Ce||null}(this._rawValidators)}_assignAsyncValidators(ge){this._rawAsyncValidators=Array.isArray(ge)?ge.slice():ge,this._composedAsyncValidatorFn=function lt(Ce){return Array.isArray(Ce)?je(Ce):Ce||null}(this._rawAsyncValidators)}}class Jt extends Ht{constructor(ge,ce,Ze){super(Pt(ce),wt(Ze,ce)),this.controls=ge,this._initObservables(),this._setUpdateStrategy(ce),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ge,ce){return this.controls[ge]?this.controls[ge]:(this.controls[ge]=ce,ce.setParent(this),ce._registerOnCollectionChange(this._onCollectionChange),ce)}addControl(ge,ce,Ze={}){this.registerControl(ge,ce),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}removeControl(ge,ce={}){this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),delete this.controls[ge],this.updateValueAndValidity({emitEvent:ce.emitEvent}),this._onCollectionChange()}setControl(ge,ce,Ze={}){this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),delete this.controls[ge],ce&&this.registerControl(ge,ce),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}contains(ge){return this.controls.hasOwnProperty(ge)&&this.controls[ge].enabled}setValue(ge,ce={}){ht(this,!0,ge),Object.keys(ge).forEach(Ze=>{$e(this,!0,Ze),this.controls[Ze].setValue(ge[Ze],{onlySelf:!0,emitEvent:ce.emitEvent})}),this.updateValueAndValidity(ce)}patchValue(ge,ce={}){null!=ge&&(Object.keys(ge).forEach(Ze=>{const Gt=this.controls[Ze];Gt&&Gt.patchValue(ge[Ze],{onlySelf:!0,emitEvent:ce.emitEvent})}),this.updateValueAndValidity(ce))}reset(ge={},ce={}){this._forEachChild((Ze,Gt)=>{Ze.reset(ge[Gt],{onlySelf:!0,emitEvent:ce.emitEvent})}),this._updatePristine(ce),this._updateTouched(ce),this.updateValueAndValidity(ce)}getRawValue(){return this._reduceChildren({},(ge,ce,Ze)=>(ge[Ze]=ce.getRawValue(),ge))}_syncPendingControls(){let ge=this._reduceChildren(!1,(ce,Ze)=>!!Ze._syncPendingControls()||ce);return ge&&this.updateValueAndValidity({onlySelf:!0}),ge}_forEachChild(ge){Object.keys(this.controls).forEach(ce=>{const Ze=this.controls[ce];Ze&&ge(Ze,ce)})}_setUpControls(){this._forEachChild(ge=>{ge.setParent(this),ge._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ge){for(const[ce,Ze]of Object.entries(this.controls))if(this.contains(ce)&&ge(Ze))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ce,Ze,Gt)=>((Ze.enabled||this.disabled)&&(ce[Gt]=Ze.value),ce))}_reduceChildren(ge,ce){let Ze=ge;return this._forEachChild((Gt,Nn)=>{Ze=ce(Ze,Gt,Nn)}),Ze}_allControlsDisabled(){for(const ge of Object.keys(this.controls))if(this.controls[ge].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ge){return this.controls.hasOwnProperty(ge)?this.controls[ge]:null}}class At extends Jt{}const qe=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Tt}),Tt="always";function Qt(Ce,ge){return[...ge.path,Ce]}function nn(Ce,ge,ce=Tt){ei(Ce,ge),ge.valueAccessor.writeValue(Ce.value),(Ce.disabled||"always"===ce)&&ge.valueAccessor.setDisabledState?.(Ce.disabled),function Js(Ce,ge){ge.valueAccessor.registerOnChange(ce=>{Ce._pendingValue=ce,Ce._pendingChange=!0,Ce._pendingDirty=!0,"change"===Ce.updateOn&&Mi(Ce,ge)})}(Ce,ge),function bs(Ce,ge){const ce=(Ze,Gt)=>{ge.valueAccessor.writeValue(Ze),Gt&&ge.viewToModelUpdate(Ze)};Ce.registerOnChange(ce),ge._registerOnDestroy(()=>{Ce._unregisterOnChange(ce)})}(Ce,ge),function Ss(Ce,ge){ge.valueAccessor.registerOnTouched(()=>{Ce._pendingTouched=!0,"blur"===Ce.updateOn&&Ce._pendingChange&&Mi(Ce,ge),"submit"!==Ce.updateOn&&Ce.markAsTouched()})}(Ce,ge),function ni(Ce,ge){if(ge.valueAccessor.setDisabledState){const ce=Ze=>{ge.valueAccessor.setDisabledState(Ze)};Ce.registerOnDisabledChange(ce),ge._registerOnDestroy(()=>{Ce._unregisterOnDisabledChange(ce)})}}(Ce,ge)}function dn(Ce,ge,ce=!0){const Ze=()=>{};ge.valueAccessor&&(ge.valueAccessor.registerOnChange(Ze),ge.valueAccessor.registerOnTouched(Ze)),rs(Ce,ge),Ce&&(ge._invokeOnDestroyCallbacks(),Ce._registerOnCollectionChange(()=>{}))}function ai(Ce,ge){Ce.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(ge)})}function ei(Ce,ge){const ce=rt(Ce);null!==ge.validator?Ce.setValidators(Xe(ce,ge.validator)):"function"==typeof ce&&Ce.setValidators([ce]);const Ze=mt(Ce);null!==ge.asyncValidator?Ce.setAsyncValidators(Xe(Ze,ge.asyncValidator)):"function"==typeof Ze&&Ce.setAsyncValidators([Ze]);const Gt=()=>Ce.updateValueAndValidity();ai(ge._rawValidators,Gt),ai(ge._rawAsyncValidators,Gt)}function rs(Ce,ge){let ce=!1;if(null!==Ce){if(null!==ge.validator){const Gt=rt(Ce);if(Array.isArray(Gt)&&Gt.length>0){const Nn=Gt.filter(Hi=>Hi!==ge.validator);Nn.length!==Gt.length&&(ce=!0,Ce.setValidators(Nn))}}if(null!==ge.asyncValidator){const Gt=mt(Ce);if(Array.isArray(Gt)&&Gt.length>0){const Nn=Gt.filter(Hi=>Hi!==ge.asyncValidator);Nn.length!==Gt.length&&(ce=!0,Ce.setAsyncValidators(Nn))}}}const Ze=()=>{};return ai(ge._rawValidators,Ze),ai(ge._rawAsyncValidators,Ze),ce}function Mi(Ce,ge){Ce._pendingDirty&&Ce.markAsDirty(),Ce.setValue(Ce._pendingValue,{emitModelToViewChange:!1}),ge.viewToModelUpdate(Ce._pendingValue),Ce._pendingChange=!1}function Is(Ce,ge){ei(Ce,ge)}function ps(Ce,ge){if(!Ce.hasOwnProperty("model"))return!1;const ce=Ce.model;return!!ce.isFirstChange()||!Object.is(ge,ce.currentValue)}function ki(Ce,ge){Ce._syncPendingControls(),ge.forEach(ce=>{const Ze=ce.control;"submit"===Ze.updateOn&&Ze._pendingChange&&(ce.viewToModelUpdate(Ze._pendingValue),Ze._pendingChange=!1)})}function sn(Ce,ge){if(!ge)return null;let ce,Ze,Gt;return Array.isArray(ge),ge.forEach(Nn=>{Nn.constructor===ne?ce=Nn:function Ms(Ce){return Object.getPrototypeOf(Ce.constructor)===w}(Nn)?Ze=Nn:Gt=Nn}),Gt||Ze||ce||null}const fs={provide:Nt,useExisting:(0,t.Gpc)(()=>he)},Ve=(()=>Promise.resolve())();let he=(()=>{class Ce extends Nt{constructor(ce,Ze,Gt){super(),this.callSetDisabledState=Gt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Jt({},me(ce),je(Ze))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ce){Ve.then(()=>{const Ze=this._findContainer(ce.path);ce.control=Ze.registerControl(ce.name,ce.control),nn(ce.control,ce,this.callSetDisabledState),ce.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ce)})}getControl(ce){return this.form.get(ce.path)}
1removeControl(ce){Ve.then(()=>{const Ze=this._findContainer(ce.path);Ze&&Ze.removeControl(ce.name),this._directives.delete(ce)})}addFormGroup(ce){Ve.then(()=>{const Ze=this._findContainer(ce.path),Gt=new Jt({});Is(Gt,ce),Ze.registerControl(ce.name,Gt),Gt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ce){Ve.then(()=>{const Ze=this._findContainer(ce.path);Ze&&Ze.removeControl(ce.name)})}getFormGroup(ce){return this.form.get(ce.path)}updateModel(ce,Ze){Ve.then(()=>{this.form.get(ce.path).setValue(Ze)})}setValue(ce){this.control.setValue(ce)}onSubmit(ce){return this.submitted=!0,ki(this.form,this._directives),this.ngSubmit.emit(ce),"dialog"===ce?.target?.method}onReset(){this.resetForm()}resetForm(ce){this.form.reset(ce),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ce){return ce.pop(),ce.length?this.form.get(ce):this.form}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(Y,10),t.Y36(fe,10),t.Y36(qe,8))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ce,Ze){1&ce&&t.NdJ("submit",function(Nn){return Ze.onSubmit(Nn)})("reset",function(){return Ze.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([fs]),t.qOj]}),Ce})();function we(Ce,ge){const ce=Ce.indexOf(ge);ce>-1&&Ce.splice(ce,1)}function Ne(Ce){return"object"==typeof Ce&&null!==Ce&&2===Object.keys(Ce).length&&"value"in Ce&&"disabled"in Ce}const vt=class extends Ht{constructor(ge=null,ce,Ze){super(Pt(ce),wt(Ze,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ge),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=Ne(ge)?ge.value:ge)}setValue(ge,ce={}){this.value=this._pendingValue=ge,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach(Ze=>Ze(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(ge,ce={}){this.setValue(ge,ce)}reset(ge=this.defaultValue,ce={}){this._applyFormState(ge),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(ge){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ge){this._onChange.push(ge)}_unregisterOnChange(ge){we(this._onChange,ge)}registerOnDisabledChange(ge){this._onDisabledChange.push(ge)}_unregisterOnDisabledChange(ge){we(this._onDisabledChange,ge)}_forEachChild(ge){}_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(ge){Ne(ge)?(this.value=this._pendingValue=ge.value,ge.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ge}},Qn={provide:xn,useExisting:(0,t.Gpc)(()=>qs)},ir=(()=>Promise.resolve())();let qs=(()=>{class Ce extends xn{constructor(ce,Ze,Gt,Nn,Hi,Xt){super(),this._changeDetectorRef=Hi,this.callSetDisabledState=Xt,this.control=new vt,this._registered=!1,this.update=new t.vpe,this._parent=ce,this._setValidators(Ze),this._setAsyncValidators(Gt),this.valueAccessor=sn(0,Nn)}ngOnChanges(ce){if(this._checkForErrors(),!this._registered||"name"in ce){if(this._registered&&(this._checkName(),this.formDirective)){const Ze=ce.name.previousValue;this.formDirective.removeControl({name:Ze,path:this._getPath(Ze)})}this._setUpControl()}"isDisabled"in ce&&this._updateDisabled(ce),ps(ce,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(ce){this.viewModel=ce,this.update.emit(ce)}_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(){nn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ce){ir.then(()=>{this.control.setValue(ce,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ce){const Ze=ce.isDisabled.currentValue,Gt=0!==Ze&&(0,t.D6c)(Ze);ir.then(()=>{Gt&&!this.control.disabled?this.control.disable():!Gt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ce){return this._parent?Qt(ce,this._parent):[ce]}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(Nt,9),t.Y36(Y,10),t.Y36(fe,10),t.Y36(I,10),t.Y36(t.sBO,8),t.Y36(qe,8))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([Qn]),t.qOj,t.TTD]}),Ce})(),Ii=(()=>{class Ce{}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ce})(),gs=(()=>{class Ce{}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({}),Ce})();const $i=new t.OlP("NgModelWithFormControlWarning"),ks={provide:Nt,useExisting:(0,t.Gpc)(()=>ts)};let ts=(()=>{class Ce extends Nt{constructor(ce,Ze,Gt){super(),this.callSetDisabledState=Gt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(ce),this._setAsyncValidators(Ze)}ngOnChanges(ce){this._checkFormPresent(),ce.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ce){const Ze=this.form.get(ce.path);return nn(Ze,ce,this.callSetDisabledState),Ze.updateValueAndValidity({emitEvent:!1}),this.directives.push(ce),Ze}getControl(ce){return this.form.get(ce.path)}removeControl(ce){dn(ce.control||null,ce,!1),function Wn(Ce,ge){const ce=Ce.indexOf(ge);ce>-1&&Ce.splice(ce,1)}(this.directives,ce)}addFormGroup(ce){this._setUpFormContainer(ce)}removeFormGroup(ce){this._cleanUpFormContainer(ce)}getFormGroup(ce){return this.form.get(ce.path)}addFormArray(ce){this._setUpFormContainer(ce)}removeFormArray(ce){this._cleanUpFormContainer(ce)}getFormArray(ce){return this.form.get(ce.path)}updateModel(ce,Ze){this.form.get(ce.path).setValue(Ze)}onSubmit(ce){return this.submitted=!0,ki(this.form,this.directives),this.ngSubmit.emit(ce),"dialog"===ce?.target?.method}onReset(){this.resetForm()}resetForm(ce){this.form.reset(ce),this.submitted=!1}_updateDomValue(){this.directives.forEach(ce=>{const Ze=ce.control,Gt=this.form.get(ce.path);Ze!==Gt&&(dn(Ze||null,ce),(Ce=>Ce instanceof vt)(Gt)&&(nn(Gt,ce,this.callSetDisabledState),ce.control=Gt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ce){const Ze=this.form.get(ce.path);Is(Ze,ce),Ze.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ce){if(this.form){const Ze=this.form.get(ce.path);Ze&&function Yn(Ce,ge){return rs(Ce,ge)}(Ze,ce)&&Ze.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ei(this.form,this),this._oldForm&&rs(this._oldForm,this)}_checkFormPresent(){}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(Y,10),t.Y36(fe,10),t.Y36(qe,8))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","formGroup",""]],hostBindings:function(ce,Ze){1&ce&&t.NdJ("submit",function(Nn){return Ze.onSubmit(Nn)})("reset",function(){return Ze.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ks]),t.qOj,t.TTD]}),Ce})();const dr={provide:xn,useExisting:(0,t.Gpc)(()=>Gi)};let Gi=(()=>{class Ce extends xn{set isDisabled(ce){}constructor(ce,Ze,Gt,Nn,Hi){super(),this._ngModelWarningConfig=Hi,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=ce,this._setValidators(Ze),this._setAsyncValidators(Gt),this.valueAccessor=sn(0,Nn)}ngOnChanges(ce){this._added||this._setUpControl(),ps(ce,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ce){this.viewModel=ce,this.update.emit(ce)}get path(){return Qt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ce._ngModelWarningSentOnce=!1,Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(Nt,13),t.Y36(Y,10),t.Y36(fe,10),t.Y36(I,10),t.Y36($i,8))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([dr]),t.qOj,t.TTD]}),Ce})();const Ki={provide:I,useExisting:(0,t.Gpc)(()=>Os),multi:!0};function rr(Ce,ge){return null==Ce?`${ge}`:(ge&&"object"==typeof ge&&(ge="Object"),`${Ce}: ${ge}`.slice(0,50))}let Os=(()=>{class Ce extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ce){this._compareWith=ce}writeValue(ce){this.value=ce;const Gt=rr(this._getOptionId(ce),ce);this.setProperty("value",Gt)}registerOnChange(ce){this.onChange=Ze=>{this.value=this._getOptionValue(Ze),ce(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(ce){for(const Ze of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ze),ce))return Ze;return null}_getOptionValue(ce){const Ze=function Hr(Ce){return Ce.split(":")[0]}(ce);return this._optionMap.has(Ze)?this._optionMap.get(Ze):ce}}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ce,Ze){1&ce&&t.NdJ("change",function(Nn){return Ze.onCh
1ange(Nn.target.value)})("blur",function(){return Ze.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([Ki]),t.qOj]}),Ce})(),er=(()=>{class Ce{constructor(ce,Ze,Gt){this._element=ce,this._renderer=Ze,this._select=Gt,this._select&&(this.id=this._select._registerOption())}set ngValue(ce){null!=this._select&&(this._select._optionMap.set(this.id,ce),this._setElementValue(rr(this.id,ce)),this._select.writeValue(this._select.value))}set value(ce){this._setElementValue(ce),this._select&&this._select.writeValue(this._select.value)}_setElementValue(ce){this._renderer.setProperty(this._element.nativeElement,"value",ce)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Os,9))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ce})();const zr={provide:I,useExisting:(0,t.Gpc)(()=>hr),multi:!0};function Ir(Ce,ge){return null==Ce?`${ge}`:("string"==typeof ge&&(ge=`'${ge}'`),ge&&"object"==typeof ge&&(ge="Object"),`${Ce}: ${ge}`.slice(0,50))}let hr=(()=>{class Ce extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ce){this._compareWith=ce}writeValue(ce){let Ze;if(this.value=ce,Array.isArray(ce)){const Gt=ce.map(Nn=>this._getOptionId(Nn));Ze=(Nn,Hi)=>{Nn._setSelected(Gt.indexOf(Hi.toString())>-1)}}else Ze=(Gt,Nn)=>{Gt._setSelected(!1)};this._optionMap.forEach(Ze)}registerOnChange(ce){this.onChange=Ze=>{const Gt=[],Nn=Ze.selectedOptions;if(void 0!==Nn){const Hi=Nn;for(let Xt=0;Xt<Hi.length;Xt++){const xr=this._getOptionValue(Hi[Xt].value);Gt.push(xr)}}else{const Hi=Ze.options;for(let Xt=0;Xt<Hi.length;Xt++){const di=Hi[Xt];if(di.selected){const xr=this._getOptionValue(di.value);Gt.push(xr)}}}this.value=Gt,ce(Gt)}}_registerOption(ce){const Ze=(this._idCounter++).toString();return this._optionMap.set(Ze,ce),Ze}_getOptionId(ce){for(const Ze of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Ze)._value,ce))return Ze;return null}_getOptionValue(ce){const Ze=function Qr(Ce){return Ce.split(":")[0]}(ce);return this._optionMap.has(Ze)?this._optionMap.get(Ze)._value:ce}}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(ce,Ze){1&ce&&t.NdJ("change",function(Nn){return Ze.onChange(Nn.target)})("blur",function(){return Ze.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([zr]),t.qOj]}),Ce})(),Ar=(()=>{class Ce{constructor(ce,Ze,Gt){this._element=ce,this._renderer=Ze,this._select=Gt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(ce){null!=this._select&&(this._value=ce,this._setElementValue(Ir(this.id,ce)),this._select.writeValue(this._select.value))}set value(ce){this._select?(this._value=ce,this._setElementValue(Ir(this.id,ce)),this._select.writeValue(this._select.value)):this._setElementValue(ce)}_setElementValue(ce){this._renderer.setProperty(this._element.nativeElement,"value",ce)}_setSelected(ce){this._renderer.setProperty(this._element.nativeElement,"selected",ce)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ce.\u0275fac=function(ce){return new(ce||Ce)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(hr,9))},Ce.\u0275dir=t.lG2({type:Ce,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ce})();let Ws=(()=>{class Ce{constructor(){this._validator=K}ngOnChanges(ce){if(this.inputName in ce){const Ze=this.normalizeInput(ce[this.inputName].currentValue);this._enabled=this.enabled(Ze),this._validator=this._enabled?this.createValidator(Ze):K,this._onChange&&this._onChange()}}validate(ce){return this._validator(ce)}registerOnValidatorChange(ce){this._onChange=ce}enabled(ce){return null!=ce}}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275dir=t.lG2({type:Ce,features:[t.TTD]}),Ce})();const He={provide:Y,useExisting:(0,t.Gpc)(()=>H),multi:!0};let H=(()=>{class Ce extends Ws{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.D6c,this.createValidator=ce=>ue}enabled(ce){return ce}}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ce,Ze){2&ce&&t.uIk("required",Ze._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([He]),t.qOj]}),Ce})();const kn={provide:Y,useExisting:(0,t.Gpc)(()=>ui),multi:!0};let ui=(()=>{class Ce extends Ws{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=ce=>function ao(Ce){return"number"==typeof Ce?Ce:parseInt(Ce,10)}(ce),this.createValidator=ce=>ze(ce)}}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(ce,Ze){2&ce&&t.uIk("maxlength",Ze._enabled?Ze.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t._Bn([kn]),t.qOj]}),Ce})();const $n={provide:Y,useExisting:(0,t.Gpc)(()=>pi),multi:!0};let pi=(()=>{class Ce extends Ws{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=ce=>ce,this.createValidator=ce=>Oe(ce)}}return Ce.\u0275fac=function(){let ge;return function(Ze){return(ge||(ge=t.n5z(Ce)))(Ze||Ce)}}(),Ce.\u0275dir=t.lG2({type:Ce,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(ce,Ze){2&ce&&t.uIk("pattern",Ze._enabled?Ze.pattern:null)},inputs:{pattern:"pattern"},features:[t._Bn([$n]),t.qOj]}),Ce})(),$r=(()=>{class Ce{}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[gs]}),Ce})();class fr extends Ht{constructor(ge,ce,Ze){super(Pt(ce),wt(Ze,ce)),this.controls=ge,this._initOb
1servables(),this._setUpdateStrategy(ce),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ge){return this.controls[this._adjustIndex(ge)]}push(ge,ce={}){this.controls.push(ge),this._registerControl(ge),this.updateValueAndValidity({emitEvent:ce.emitEvent}),this._onCollectionChange()}insert(ge,ce,Ze={}){this.controls.splice(ge,0,ce),this._registerControl(ce),this.updateValueAndValidity({emitEvent:Ze.emitEvent})}removeAt(ge,ce={}){let Ze=this._adjustIndex(ge);Ze<0&&(Ze=0),this.controls[Ze]&&this.controls[Ze]._registerOnCollectionChange(()=>{}),this.controls.splice(Ze,1),this.updateValueAndValidity({emitEvent:ce.emitEvent})}setControl(ge,ce,Ze={}){let Gt=this._adjustIndex(ge);Gt<0&&(Gt=0),this.controls[Gt]&&this.controls[Gt]._registerOnCollectionChange(()=>{}),this.controls.splice(Gt,1),ce&&(this.controls.splice(Gt,0,ce),this._registerControl(ce)),this.updateValueAndValidity({emitEvent:Ze.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ge,ce={}){ht(this,!1,ge),ge.forEach((Ze,Gt)=>{$e(this,!1,Gt),this.at(Gt).setValue(Ze,{onlySelf:!0,emitEvent:ce.emitEvent})}),this.updateValueAndValidity(ce)}patchValue(ge,ce={}){null!=ge&&(ge.forEach((Ze,Gt)=>{this.at(Gt)&&this.at(Gt).patchValue(Ze,{onlySelf:!0,emitEvent:ce.emitEvent})}),this.updateValueAndValidity(ce))}reset(ge=[],ce={}){this._forEachChild((Ze,Gt)=>{Ze.reset(ge[Gt],{onlySelf:!0,emitEvent:ce.emitEvent})}),this._updatePristine(ce),this._updateTouched(ce),this.updateValueAndValidity(ce)}getRawValue(){return this.controls.map(ge=>ge.getRawValue())}clear(ge={}){this.controls.length<1||(this._forEachChild(ce=>ce._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ge.emitEvent}))}_adjustIndex(ge){return ge<0?ge+this.length:ge}_syncPendingControls(){let ge=this.controls.reduce((ce,Ze)=>!!Ze._syncPendingControls()||ce,!1);return ge&&this.updateValueAndValidity({onlySelf:!0}),ge}_forEachChild(ge){this.controls.forEach((ce,Ze)=>{ge(ce,Ze)})}_updateValue(){this.value=this.controls.filter(ge=>ge.enabled||this.disabled).map(ge=>ge.value)}_anyControls(ge){return this.controls.some(ce=>ce.enabled&&ge(ce))}_setUpControls(){this._forEachChild(ge=>this._registerControl(ge))}_allControlsDisabled(){for(const ge of this.controls)if(ge.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ge){ge.setParent(this),ge._registerOnCollectionChange(this._onCollectionChange)}_find(ge){return this.at(ge)??null}}function mr(Ce){return!!Ce&&(void 0!==Ce.asyncValidators||void 0!==Ce.validators||void 0!==Ce.updateOn)}let Or=(()=>{class Ce{constructor(){this.useNonNullable=!1}get nonNullable(){const ce=new Ce;return ce.useNonNullable=!0,ce}group(ce,Ze=null){const Gt=this._reduceControls(ce);let Nn={};return mr(Ze)?Nn=Ze:null!==Ze&&(Nn.validators=Ze.validator,Nn.asyncValidators=Ze.asyncValidator),new Jt(Gt,Nn)}record(ce,Ze=null){const Gt=this._reduceControls(ce);return new At(Gt,Ze)}control(ce,Ze,Gt){let Nn={};return this.useNonNullable?(mr(Ze)?Nn=Ze:(Nn.validators=Ze,Nn.asyncValidators=Gt),new vt(ce,{...Nn,nonNullable:!0})):new vt(ce,Ze,Gt)}array(ce,Ze,Gt){const Nn=ce.map(Hi=>this._createControl(Hi));return new fr(Nn,Ze,Gt)}_reduceControls(ce){const Ze={};return Object.keys(ce).forEach(Gt=>{Ze[Gt]=this._createControl(ce[Gt])}),Ze}_createControl(ce){return ce instanceof vt||ce instanceof Ht?ce:Array.isArray(ce)?this.control(ce[0],ce.length>1?ce[1]:null,ce.length>2?ce[2]:null):this.control(ce)}}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275prov=t.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),Kn=(()=>{class Ce{static withConfig(ce){return{ngModule:Ce,providers:[{provide:qe,useValue:ce.callSetDisabledState??Tt}]}}}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[$r]}),Ce})(),Hs=(()=>{class Ce{static withConfig(ce){return{ngModule:Ce,providers:[{provide:$i,useValue:ce.warnOnNgModelWithFormControl??"always"},{provide:qe,useValue:ce.callSetDisabledState??Tt}]}}}return Ce.\u0275fac=function(ce){return new(ce||Ce)},Ce.\u0275mod=t.oAB({type:Ce}),Ce.\u0275inj=t.cJS({imports:[$r]}),Ce})()},1481:(o,u,a)=>{"use strict";a.d(u,{Dx:()=>Jn,H7:()=>Ht,b2:()=>Rn,q6:()=>zt,se:()=>X});var t=a(6895),e=a(4650);class s extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class D extends s{static makeCurrent(){(0,t.HT)(new D)}onAndCancel(Ct,qe,Tt){return Ct.addEventListener(qe,Tt,!1),()=>{Ct.removeEventListener(qe,Tt,!1)}}dispatchEvent(Ct,qe){Ct.dispatchEvent(qe)}remove(Ct){Ct.parentNode&&Ct.parentNode.removeChild(Ct)}createElement(Ct,qe){return(qe=qe||this.getDefaultDocument()).createElement(Ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ct){return Ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ct){return Ct instanceof DocumentFragment}getGlobalEventTarget(Ct,qe){return"window"===qe?window:"document"===qe?Ct:"body"===qe?Ct.body:null}getBaseHref(Ct){const qe=function M(){return x=x||document.querySelector("base"),x?x.getAttribute("href"):null}();return null==qe?null:function I(At){w=w||document.createElement("a"),w.setAttribute("href",At);const Ct=w.pathname;return"/"===Ct.charAt(0)?Ct:`/${Ct}`}(qe)}resetBaseElement(){x=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ct){return(0,t.Mx)(document.cookie,Ct)}}let w,x=null;const P=new e.OlP("TRANSITION_ID"),k=[{provide:e.ip1,useFactory:function S(At,Ct,qe){return()=>{qe.get(e.CZH).donePromise.then(()=>{const Tt=(0,t.q)(),Qt=Ct.querySelectorAll(`style[ng-transition="${At}"]`);for(let nn=0;nn<Qt.length;nn++)Tt.remove(Qt[nn])})}},deps:[P,t.K0,e.zs3],multi:!0}];let F=(()=>{class At{build(){return new XMLHttpRequest}}return At.\u0275fac=function(qe){return new(qe||At)},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();const ne=new e.OlP("EventManagerPlugins");let B=(()=>{class At{constructor(qe,Tt){this._zone=Tt,this._eventNameToPlugin=new Map,qe.forEach(Qt=>{Qt.manager=this}),this._plugins=qe.slice().reverse()}addEventListener(qe,Tt,Qt){return this._findPluginFor(Tt).addEventListener(qe,Tt,Qt)}addGlobalEventListener(qe,Tt,Qt){return this._findPluginFor(Tt).addGlobalEventListener(qe,Tt,Qt)}getZone(){return this._zone}_findPluginFor(qe){const Tt=this._eventNameToPlugin.get(qe);if(Tt)return Tt;const Qt=this._plugins;for(let nn=0;nn<Qt.length;nn++){const dn=Qt[nn];if(dn.supports(qe))return this._eventNameToPlugin.set(qe,dn),dn}throw new Error(`No event manager plugin found for event ${qe}`)}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(ne),e.LFG
1(e.R0b))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();class G{constructor(Ct){this._doc=Ct}addGlobalEventListener(Ct,qe,Tt){const Qt=(0,t.q)().getGlobalEventTarget(this._doc,Ct);if(!Qt)throw new Error(`Unsupported event target ${Qt} for event ${qe}`);return this.addEventListener(Qt,qe,Tt)}}let W=(()=>{class At{constructor(){this.usageCount=new Map}addStyles(qe){for(const Tt of qe)1===this.changeUsageCount(Tt,1)&&this.onStyleAdded(Tt)}removeStyles(qe){for(const Tt of qe)0===this.changeUsageCount(Tt,-1)&&this.onStyleRemoved(Tt)}onStyleRemoved(qe){}onStyleAdded(qe){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(qe,Tt){const Qt=this.usageCount;let nn=Qt.get(qe)??0;return nn+=Tt,nn>0?Qt.set(qe,nn):Qt.delete(qe),nn}ngOnDestroy(){for(const qe of this.getAllStyles())this.onStyleRemoved(qe);this.usageCount.clear()}}return At.\u0275fac=function(qe){return new(qe||At)},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})(),Y=(()=>{class At extends W{constructor(qe){super(),this.doc=qe,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(qe){for(const Tt of this.hostNodes)this.addStyleToHost(Tt,qe)}onStyleRemoved(qe){const Tt=this.styleRef;Tt.get(qe)?.forEach(nn=>nn.remove()),Tt.delete(qe)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(qe){this.hostNodes.add(qe);for(const Tt of this.getAllStyles())this.addStyleToHost(qe,Tt)}removeHost(qe){this.hostNodes.delete(qe)}addStyleToHost(qe,Tt){const Qt=this.doc.createElement("style");Qt.textContent=Tt,qe.appendChild(Qt);const nn=this.styleRef.get(Tt);nn?nn.push(Qt):this.styleRef.set(Tt,[Qt])}resetHostNodes(){const qe=this.hostNodes;qe.clear(),qe.add(this.doc.head)}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(t.K0))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();const fe={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/MathML/"},N=/%COMP%/g,O="%COMP%",ee=`_nghost-${O}`,ue=`_ngcontent-${O}`,be=new e.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Oe(At,Ct){return Ct.flat(100).map(qe=>qe.replace(N,At))}function K(At){return Ct=>{if("__ngUnwrap__"===Ct)return At;!1===At(Ct)&&(Ct.preventDefault(),Ct.returnValue=!1)}}let X=(()=>{class At{constructor(qe,Tt,Qt,nn){this.eventManager=qe,this.sharedStylesHost=Tt,this.appId=Qt,this.removeStylesOnCompDestory=nn,this.rendererByCompId=new Map,this.defaultRenderer=new V(qe)}createRenderer(qe,Tt){if(!qe||!Tt)return this.defaultRenderer;const Qt=this.getOrCreateRenderer(qe,Tt);return Qt instanceof me?Qt.applyToHost(qe):Qt instanceof at&&Qt.applyStyles(),Qt}getOrCreateRenderer(qe,Tt){const Qt=this.rendererByCompId;let nn=Qt.get(Tt.id);if(!nn){const dn=this.eventManager,ai=this.sharedStylesHost,ni=this.removeStylesOnCompDestory;switch(Tt.encapsulation){case e.ifc.Emulated:nn=new me(dn,ai,Tt,this.appId,ni);break;case e.ifc.ShadowDom:return new nt(dn,ai,qe,Tt);default:nn=new at(dn,ai,Tt,ni)}nn.onDestroy=()=>Qt.delete(Tt.id),Qt.set(Tt.id,nn)}return nn}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(B),e.LFG(Y),e.LFG(e.AFp),e.LFG(be))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();class V{constructor(Ct){this.eventManager=Ct,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ct,qe){return qe?document.createElementNS(fe[qe]||qe,Ct):document.createElement(Ct)}createComment(Ct){return document.createComment(Ct)}createText(Ct){return document.createTextNode(Ct)}appendChild(Ct,qe){(ye(Ct)?Ct.content:Ct).appendChild(qe)}insertBefore(Ct,qe,Tt){Ct&&(ye(Ct)?Ct.content:Ct).insertBefore(qe,Tt)}removeChild(Ct,qe){Ct&&Ct.removeChild(qe)}selectRootElement(Ct,qe){let Tt="string"==typeof Ct?document.querySelector(Ct):Ct;if(!Tt)throw new Error(`The selector "${Ct}" did not match any elements`);return qe||(Tt.textContent=""),Tt}parentNode(Ct){return Ct.parentNode}nextSibling(Ct){return Ct.nextSibling}setAttribute(Ct,qe,Tt,Qt){if(Qt){qe=Qt+":"+qe;const nn=fe[Qt];nn?Ct.setAttributeNS(nn,qe,Tt):Ct.setAttribute(qe,Tt)}else Ct.setAttribute(qe,Tt)}removeAttribute(Ct,qe,Tt){if(Tt){const Qt=fe[Tt];Qt?Ct.removeAttributeNS(Qt,qe):Ct.removeAttribute(`${Tt}:${qe}`)}else Ct.removeAttribute(qe)}addClass(Ct,qe){Ct.classList.add(qe)}removeClass(Ct,qe){Ct.classList.remove(qe)}setStyle(Ct,qe,Tt,Qt){Qt&(e.JOm.DashCase|e.JOm.Important)?Ct.style.setProperty(qe,Tt,Qt&e.JOm.Important?"important":""):Ct.style[qe]=Tt}removeStyle(Ct,qe,Tt){Tt&e.JOm.DashCase?Ct.style.removeProperty(qe):Ct.style[qe]=""}setProperty(Ct,qe,Tt){Ct[qe]=Tt}setValue(Ct,qe){Ct.nodeValue=qe}listen(Ct,qe,Tt){return"string"==typeof Ct?this.eventManager.addGlobalEventListener(Ct,qe,K(Tt)):this.eventManager.addEventListener(Ct,qe,K(Tt))}}function ye(At){return"TEMPLATE"===At.tagName&&void 0!==At.content}class nt extends V{constructor(Ct,qe,Tt,Qt){super(Ct),this.sharedStylesHost=qe,this.hostEl=Tt,this.shadowRoot=Tt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const nn=Oe(Qt.id,Qt.styles);for(const dn of nn){const ai=document.createElement("style");ai.textContent=dn,this.shadowRoot.appendChild(ai)}}nodeOrShadowRoot(Ct){return Ct===this.hostEl?this.shadowRoot:Ct}appendChild(Ct,qe){return super.appendChild(this.nodeOrShadowRoot(Ct),qe)}insertBefore(Ct,qe,Tt){return super.insertBefore(this.nodeOrShadowRoot(Ct),qe,Tt)}removeChild(Ct,qe){return super.removeChild(this.nodeOrShadowRoot(Ct),qe)}parentNode(Ct){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ct)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class at extends V{constructor(Ct,qe,Tt,Qt,nn=Tt.id){super(Ct),this.sharedStylesHost=qe,this.removeStylesOnCompDestory=Qt,this.rendererUsageCount=0,this.styles=Oe(nn,Tt.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class me extends at{constructor(Ct,qe,Tt,Qt,nn){const dn=Qt+"-"+Tt.id;super(Ct,qe,Tt,nn,dn),this.contentAttr=function Qe(At){return ue.replace(N,At)}(dn),this.hostAttr=function ze(At){return ee.replace(N,At)}(dn)}applyToHost(Ct){this.applyStyles(),this.setAttribute(Ct,this.hostAttr,"")}createElement(Ct,qe){const Tt=super.createElement(Ct,qe);return super.setAttribute(Tt,this.contentAttr,""),Tt}}let ve=(()=>{class At extends G{constructor(qe){super(qe)}supports(qe){return!0}addEventListener(qe,Tt,Qt){return qe.addEventListener(Tt,Qt,!1),()=>this.removeEventListener(qe,Tt,Qt)}removeEventListener(qe,Tt,Qt){return qe.removeEventListener(Tt,Qt)}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(t.K0))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();const je=["alt","control","meta","shift"],Xe={"\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"},rt={alt:At=>At.altKey,control:At=>At.ctrlKey,meta:At=>
1At.metaKey,shift:At=>At.shiftKey};let mt=(()=>{class At extends G{constructor(qe){super(qe)}supports(qe){return null!=At.parseEventName(qe)}addEventListener(qe,Tt,Qt){const nn=At.parseEventName(Tt),dn=At.eventCallback(nn.fullKey,Qt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(qe,nn.domEventName,dn))}static parseEventName(qe){const Tt=qe.toLowerCase().split("."),Qt=Tt.shift();if(0===Tt.length||"keydown"!==Qt&&"keyup"!==Qt)return null;const nn=At._normalizeKey(Tt.pop());let dn="",ai=Tt.indexOf("code");if(ai>-1&&(Tt.splice(ai,1),dn="code."),je.forEach(ei=>{const rs=Tt.indexOf(ei);rs>-1&&(Tt.splice(rs,1),dn+=ei+".")}),dn+=nn,0!=Tt.length||0===nn.length)return null;const ni={};return ni.domEventName=Qt,ni.fullKey=dn,ni}static matchEventFullKeyCode(qe,Tt){let Qt=Xe[qe.key]||qe.key,nn="";return Tt.indexOf("code.")>-1&&(Qt=qe.code,nn="code."),!(null==Qt||!Qt)&&(Qt=Qt.toLowerCase()," "===Qt?Qt="space":"."===Qt&&(Qt="dot"),je.forEach(dn=>{dn!==Qt&&(0,rt[dn])(qe)&&(nn+=dn+".")}),nn+=Qt,nn===Tt)}static eventCallback(qe,Tt,Qt){return nn=>{At.matchEventFullKeyCode(nn,qe)&&Qt.runGuarded(()=>Tt(nn))}}static _normalizeKey(qe){return"esc"===qe?"escape":qe}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(t.K0))},At.\u0275prov=e.Yz7({token:At,factory:At.\u0275fac}),At})();const zt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function Nt(){D.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function pn(){return(0,e.RDi)(document),document},deps:[]}]),Yt=new e.OlP(""),It=[{provide:e.rWj,useClass:class z{addToWindow(Ct){e.dqk.getAngularTestability=(Tt,Qt=!0)=>{const nn=Ct.findTestabilityInTree(Tt,Qt);if(null==nn)throw new Error("Could not find testability for element.");return nn},e.dqk.getAllAngularTestabilities=()=>Ct.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ct.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Tt=>{const Qt=e.dqk.getAllAngularTestabilities();let nn=Qt.length,dn=!1;const ai=function(ni){dn=dn||ni,nn--,0==nn&&Tt(dn)};Qt.forEach(function(ni){ni.whenStable(ai)})})}findTestabilityInTree(Ct,qe,Tt){return null==qe?null:Ct.getTestability(qe)??(Tt?(0,t.q)().isShadowRoot(qe)?this.findTestabilityInTree(Ct,qe.host,!0):this.findTestabilityInTree(Ct,qe.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],bn=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function xn(){return new e.qLn},deps:[]},{provide:ne,useClass:ve,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:ne,useClass:mt,multi:!0,deps:[t.K0]},{provide:X,useClass:X,deps:[B,Y,e.AFp,be]},{provide:e.FYo,useExisting:X},{provide:W,useExisting:Y},{provide:Y,useClass:Y,deps:[t.K0]},{provide:B,useClass:B,deps:[ne,e.R0b]},{provide:t.JF,useClass:F,deps:[]},[]];let Rn=(()=>{class At{constructor(qe){}static withServerTransition(qe){return{ngModule:At,providers:[{provide:e.AFp,useValue:qe.appId},{provide:P,useExisting:e.AFp},k]}}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(Yt,12))},At.\u0275mod=e.oAB({type:At}),At.\u0275inj=e.cJS({providers:[...bn,...It],imports:[t.ez,e.hGG]}),At})(),Jn=(()=>{class At{constructor(qe){this._doc=qe}getTitle(){return this._doc.title}setTitle(qe){this._doc.title=qe||""}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(t.K0))},At.\u0275prov=e.Yz7({token:At,factory:function(qe){let Tt=null;return Tt=qe?new qe:function Un(){return new Jn((0,e.LFG)(t.K0))}(),Tt},providedIn:"root"}),At})();typeof window<"u"&&window;let Ht=(()=>{class At{}return At.\u0275fac=function(qe){return new(qe||At)},At.\u0275prov=e.Yz7({token:At,factory:function(qe){let Tt=null;return Tt=qe?new(qe||At):e.LFG(Dn),Tt},providedIn:"root"}),At})(),Dn=(()=>{class At extends Ht{constructor(qe){super(),this._doc=qe}sanitize(qe,Tt){if(null==Tt)return null;switch(qe){case e.q3G.NONE:return Tt;case e.q3G.HTML:return(0,e.qzn)(Tt,"HTML")?(0,e.z3N)(Tt):(0,e.EiD)(this._doc,String(Tt)).toString();case e.q3G.STYLE:return(0,e.qzn)(Tt,"Style")?(0,e.z3N)(Tt):Tt;case e.q3G.SCRIPT:if((0,e.qzn)(Tt,"Script"))return(0,e.z3N)(Tt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.qzn)(Tt,"URL")?(0,e.z3N)(Tt):(0,e.mCW)(String(Tt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Tt,"ResourceURL"))return(0,e.z3N)(Tt);throw new Error(`unsafe value used in a resource URL context (see ${e.JZr})`);default:throw new Error(`Unexpected SecurityContext ${qe} (see ${e.JZr})`)}}bypassSecurityTrustHtml(qe){return(0,e.JVY)(qe)}bypassSecurityTrustStyle(qe){return(0,e.L6k)(qe)}bypassSecurityTrustScript(qe){return(0,e.eBb)(qe)}bypassSecurityTrustUrl(qe){return(0,e.LAX)(qe)}bypassSecurityTrustResourceUrl(qe){return(0,e.pB0)(qe)}}return At.\u0275fac=function(qe){return new(qe||At)(e.LFG(t.K0))},At.\u0275prov=e.Yz7({token:At,factory:function(qe){let Tt=null;return Tt=qe?new qe:function Jt(At){return new Dn(At.get(t.K0))}(e.LFG(e.zs3)),Tt},providedIn:"root"}),At})()},2510:(o,u,a)=>{"use strict";a.d(u,{gz:()=>sr,m2:()=>vt,F0:()=>Us,rH:()=>Oa,Od:()=>Pa,Bz:()=>Tu,lC:()=>Xr});var t=a(4650),e=a(457),s=a(9646),D=a(1135),x=a(6805),M=a(9841),w=a(7272),I=a(9770),P=a(9635),S=a(2843),k=a(9751),z=a(515),F=a(727),ne=a(4482),B=a(5403);function G(){return(0,ne.e)(($,J)=>{let R=null;$._refCount++;const oe=(0,B.x)(J,void 0,void 0,void 0,()=>{if(!$||$._refCount<=0||0<--$._refCount)return void(R=null);const Se=$._connection,Pe=R;R=null,Se&&(!Pe||Se===Pe)&&Se.unsubscribe(),J.unsubscribe()});$.subscribe(oe),oe.closed||(R=$.connect())})}class W extends k.y{constructor(J,R){super(),this.source=J,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,ne.A)(J)&&(this.lift=J.lift)}
1_subscribe(J){return this.getSubject().subscribe(J)}getSubject(){const J=this._subject;return(!J||J.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:J}=this;this._subject=this._connection=null,J?.unsubscribe()}connect(){let J=this._connection;if(!J){J=this._connection=new F.w0;const R=this.getSubject();J.add(this.source.subscribe((0,B.x)(R,void 0,()=>{this._teardown(),R.complete()},oe=>{this._teardown(),R.error(oe)},()=>this._teardown()))),J.closed&&(this._connection=null,J=F.w0.EMPTY)}return J}refCount(){return G()(this)}}var Y=a(7579),fe=a(6895),N=a(4004),Q=a(3900),O=a(5698),ee=a(8675),ue=a(9300),_e=a(6099),be=a(590),Qe=a(4351),ze=a(8505),Oe=a(262);function X($,J){return(0,ne.e)(function K($,J,R,oe,Se){return(Pe,Ge)=>{let kt=R,qt=J,Pn=0;Pe.subscribe((0,B.x)(Ge,Fn=>{const Ci=Pn++;qt=kt?$(qt,Fn,Ci):(kt=!0,Fn),oe&&Ge.next(qt)},Se&&(()=>{kt&&Ge.next(qt),Ge.complete()})))}}($,J,arguments.length>=2,!0))}function V($){return $<=0?()=>z.E:(0,ne.e)((J,R)=>{let oe=[];J.subscribe((0,B.x)(R,Se=>{oe.push(Se),$<oe.length&&oe.shift()},()=>{for(const Se of oe)R.next(Se);R.complete()},void 0,()=>{oe=null}))})}var q=a(8068),Ee=a(6590),ye=a(4671);function nt($,J){const R=arguments.length>=2;return oe=>oe.pipe($?(0,ue.h)((Se,Pe)=>$(Se,Pe,oe)):ye.y,V(1),R?(0,Ee.d)(J):(0,q.T)(()=>new x.K))}var at=a(2529),me=a(9718),ve=a(8746),je=a(8189),Xe=a(1481);const rt="primary",mt=Symbol("RouteTitle");class $t{constructor(J){this.params=J||{}}has(J){return Object.prototype.hasOwnProperty.call(this.params,J)}get(J){if(this.has(J)){const R=this.params[J];return Array.isArray(R)?R[0]:R}return null}getAll(J){if(this.has(J)){const R=this.params[J];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function tn($){return new $t($)}function yt($,J,R){const oe=R.path.split("/");if(oe.length>$.length||"full"===R.pathMatch&&(J.hasChildren()||oe.length<$.length))return null;const Se={};for(let Pe=0;Pe<oe.length;Pe++){const Ge=oe[Pe],kt=$[Pe];if(Ge.startsWith(":"))Se[Ge.substring(1)]=kt;else if(Ge!==kt.path)return null}return{consumed:$.slice(0,oe.length),posParams:Se}}function Ye($,J){const R=$?Object.keys($):void 0,oe=J?Object.keys(J):void 0;if(!R||!oe||R.length!=oe.length)return!1;let Se;for(let Pe=0;Pe<R.length;Pe++)if(Se=R[Pe],!Nt($[Se],J[Se]))return!1;return!0}function Nt($,J){if(Array.isArray($)&&Array.isArray(J)){if($.length!==J.length)return!1;const R=[...$].sort(),oe=[...J].sort();return R.every((Se,Pe)=>oe[Pe]===Se)}return $===J}function xn($){return Array.prototype.concat.apply([],$)}function pn($){return $.length>0?$[$.length-1]:null}function zt($,J){for(const R in $)$.hasOwnProperty(R)&&J($[R],R)}function Yt($){return(0,t.CqO)($)?$:(0,t.QGY)($)?(0,e.D)(Promise.resolve($)):(0,s.of)($)}const It=!1,bn={exact:function mi($,J,R){if(!Bt($.segments,J.segments)||!Vt($.segments,J.segments,R)||$.numberOfChildren!==J.numberOfChildren)return!1;for(const oe in J.children)if(!$.children[oe]||!mi($.children[oe],J.children[oe],R))return!1;return!0},subset:Jn},Rn={exact:function vn($,J){return Ye($,J)},subset:function Un($,J){return Object.keys(J).length<=Object.keys($).length&&Object.keys(J).every(R=>Nt($[R],J[R]))},ignored:()=>!0};function Sn($,J,R){return bn[R.paths]($.root,J.root,R.matrixParams)&&Rn[R.queryParams]($.queryParams,J.queryParams)&&!("exact"===R.fragment&&$.fragment!==J.fragment)}function Jn($,J,R){return Mt($,J,J.segments,R)}function Mt($,J,R,oe){if($.segments.length>R.length){const Se=$.segments.slice(0,R.length);return!(!Bt(Se,R)||J.hasChildren()||!Vt(Se,R,oe))}if($.segments.length===R.length){if(!Bt($.segments,R)||!Vt($.segments,R,oe))return!1;for(const Se in J.children)if(!$.children[Se]||!Jn($.children[Se],J.children[Se],oe))return!1;return!0}{const Se=R.slice(0,$.segments.length),Pe=R.slice($.segments.length);return!!(Bt($.segments,Se)&&Vt($.segments,Se,oe)&&$.children[rt])&&Mt($.children[rt],J,Pe,oe)}}function Vt($,J,R){return J.every((oe,Se)=>Rn[R]($[Se].parameters,oe.parameters))}class Z{constructor(J=new re([],{}),R={},oe=null){this.root=J,this.queryParams=R,this.fragment=oe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tn(this.queryParams)),this._queryParamMap}toString(){return Be.serialize(this)}}class re{constructor(J,R){this.segments=J,this.children=R,this.parent=null,zt(R,(oe,Se)=>oe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Te(this)}}class pe{constructor(J,R){this.path=J,this.parameters=R}get parameterMap(){return this._parameterMap||(this._parameterMap=tn(this.parameters)),this._parameterMap}toString(){return xt(this)}}function Bt($,J){return $.length===J.length&&$.every((R,oe)=>R.path===J[oe].path)}let _t=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:function(){return new dt},providedIn:"root"}),$})();class dt{parse(J){const R=new qe(J);return new Z(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(J){const R=`/${We(J.root,!0)}`,oe=function ht($){const J=Object.keys($).map(R=>{const oe=$[R];return Array.isArray(oe)?oe.map(Se=>`${Ft(R)}=${Ft(Se)}`).join("&"):`${Ft(R)}=${Ft(oe)}`}).filter(R=>!!R);return J.length?`?${J.join("&")}`:""}(J.queryParams);return`${R}${oe}${"string"==typeof J.fragment?`#${function Pt($){return encodeURI($)}(J.fragment)}`:""}`}}const Be=new dt;function Te($){return $.segments.map(J=>xt(J)).join("/")}function We($,J){if(!$.hasChildren())return Te($);if(J){const R=$.children[rt]?We($.children[rt],!1):"",oe=[];return zt($.children,(Se,Pe)=>{Pe!==rt&&oe.push(`${Pe}:${We(Se,!1)}`)}),oe.length>0?`${R}(${oe.join("//")})`:R}{const R=function jt($,J){let R=[];return zt($.children,(oe,Se)=>{Se===rt&&(R=R.concat(J(oe,Se)))}),zt($.children,(oe,Se)=>{Se!==rt&&(R=R.concat(J(oe,Se)))}),R}($,(oe,Se)=>Se===rt?[We($.children[rt],!1)]:[`${Se}:${We(oe,!1)}`]);return 1===Object.keys($.children).length&&null!=$.children[rt]?`${Te($)}
1/${R[0]}`:`${Te($)}/(${R.join("//")})`}}function ft($){return encodeURIComponent($).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft($){return ft($).replace(/%3B/gi,";")}function pt($){return ft($).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wt($){return decodeURIComponent($)}function lt($){return wt($.replace(/\+/g,"%20"))}function xt($){return`${pt($.path)}${function $e($){return Object.keys($).map(J=>`;${pt(J)}=${pt($[J])}`).join("")}($.parameters)}`}const Ht=/^[^\/()?;=#]+/;function Jt($){const J=$.match(Ht);return J?J[0]:""}const Dn=/^[^=?&#]+/,At=/^[^&#]+/;class qe{constructor(J){this.url=J,this.remaining=J}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new re([],{}):new re([],this.parseChildren())}parseQueryParams(){const J={};if(this.consumeOptional("?"))do{this.parseQueryParam(J)}while(this.consumeOptional("&"));return J}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const J=[];for(this.peekStartsWith("(")||J.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),J.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let oe={};return this.peekStartsWith("(")&&(oe=this.parseParens(!1)),(J.length>0||Object.keys(R).length>0)&&(oe[rt]=new re(J,R)),oe}parseSegment(){const J=Jt(this.remaining);if(""===J&&this.peekStartsWith(";"))throw new t.vHH(4009,It);return this.capture(J),new pe(wt(J),this.parseMatrixParams())}parseMatrixParams(){const J={};for(;this.consumeOptional(";");)this.parseParam(J);return J}parseParam(J){const R=Jt(this.remaining);if(!R)return;this.capture(R);let oe="";if(this.consumeOptional("=")){const Se=Jt(this.remaining);Se&&(oe=Se,this.capture(oe))}J[wt(R)]=wt(oe)}parseQueryParam(J){const R=function En($){const J=$.match(Dn);return J?J[0]:""}(this.remaining);if(!R)return;this.capture(R);let oe="";if(this.consumeOptional("=")){const Ge=function Ct($){const J=$.match(At);return J?J[0]:""}(this.remaining);Ge&&(oe=Ge,this.capture(oe))}const Se=lt(R),Pe=lt(oe);if(J.hasOwnProperty(Se)){let Ge=J[Se];Array.isArray(Ge)||(Ge=[Ge],J[Se]=Ge),Ge.push(Pe)}else J[Se]=Pe}parseParens(J){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const oe=Jt(this.remaining),Se=this.remaining[oe.length];if("/"!==Se&&")"!==Se&&";"!==Se)throw new t.vHH(4010,It);let Pe;oe.indexOf(":")>-1?(Pe=oe.slice(0,oe.indexOf(":")),this.capture(Pe),this.capture(":")):J&&(Pe=rt);const Ge=this.parseChildren();R[Pe]=1===Object.keys(Ge).length?Ge[rt]:new re([],Ge),this.consumeOptional("//")}return R}peekStartsWith(J){return this.remaining.startsWith(J)}consumeOptional(J){return!!this.peekStartsWith(J)&&(this.remaining=this.remaining.substring(J.length),!0)}capture(J){if(!this.consumeOptional(J))throw new t.vHH(4011,It)}}function Tt($){return $.segments.length>0?new re([],{[rt]:$}):$}function Qt($){const J={};for(const oe of Object.keys($.children)){const Pe=Qt($.children[oe]);(Pe.segments.length>0||Pe.hasChildren())&&(J[oe]=Pe)}return function nn($){if(1===$.numberOfChildren&&$.children[rt]){const J=$.children[rt];return new re($.segments.concat(J.segments),J.children)}return $}(new re($.segments,J))}function dn($){return $ instanceof Z}const ai=!1;function Js($,J,R,oe,Se){if(0===R.length)return bs(J.root,J.root,J.root,oe,Se);const Pe=function Ji($){if("string"==typeof $[0]&&1===$.length&&"/"===$[0])return new Yn(!0,0,$);let J=0,R=!1;const oe=$.reduce((Se,Pe,Ge)=>{if("object"==typeof Pe&&null!=Pe){if(Pe.outlets){const kt={};return zt(Pe.outlets,(qt,Pn)=>{kt[Pn]="string"==typeof qt?qt.split("/"):qt}),[...Se,{outlets:kt}]}if(Pe.segmentPath)return[...Se,Pe.segmentPath]}return"string"!=typeof Pe?[...Se,Pe]:0===Ge?(Pe.split("/").forEach((kt,qt)=>{0==qt&&"."===kt||(0==qt&&""===kt?R=!0:".."===kt?J++:""!=kt&&Se.push(kt))}),Se):[...Se,Pe]},[]);return new Yn(R,J,oe)}(R);return Pe.toRoot()?bs(J.root,J.root,new re([],{}),oe,Se):function Ge(qt){const Pn=function Li($,J,R,oe){if($.isAbsolute)return new Ai(J.root,!0,0);if(-1===oe)return new Ai(R,R===J.root,0);return function ls($,J,R){let oe=$,Se=J,Pe=R;for(;Pe>Se;){if(Pe-=Se,oe=oe.parent,!oe)throw new t.vHH(4005,ai&&"Invalid number of '../'");Se=oe.segments.length}return new Ai(oe,!1,Se-Pe)}(R,oe+(Ss($.commands[0])?0:1),$.numberOfDoubleDots)}(Pe,J,$.snapshot?._urlSegment,qt),Fn=Pn.processChildren?ki(Pn.segmentGroup,Pn.index,Pe.commands):Ms(Pn.segmentGroup,Pn.index,Pe.commands);return bs(J.root,Pn.segmentGroup,Fn,oe,Se)}($.snapshot?._lastPathIndex)}function Ss($){return"object"==typeof $&&null!=$&&!$.outlets&&!$.segmentPath}function Mi($){return"object"==typeof $&&null!=$&&$.outlets}function bs($,J,R,oe,Se){let Ge,Pe={};oe&&zt(oe,(qt,Pn)=>{Pe[Pn]=Array.isArray(qt)?qt.map(Fn=>`${Fn}`):`${qt}`}),Ge=$===J?R:Is($,J,R);const kt=Tt(Qt(Ge));return new Z(kt,Pe,Se)}function Is($,J,R){const oe={};return zt($.children,(Se,Pe)=>{oe[Pe]=Se===J?R:Is(Se,J,R)}),new re($.segments,oe)}class Yn{constructor(J,R,oe){if(this.isAbsolute=J,this.numberOfDoubleDots=R,this.commands=oe,J&&oe.length>0&&Ss(oe[0]))throw new t.vHH(4003,ai&&"Root segment cannot have matrix parameters");const Se=oe.find(Mi);if(Se&&Se!==pn(oe))throw new t.vHH(4004,ai&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ai{constructor(J,R,oe){this.segmentGroup=J,this.processChildren=R,this.index=oe}}function Ms($,J,R){if($||($=new re([],{})),0===$.segments.length&&$.hasChildren())return ki($,J,R);const oe=function sn($,J,R){let oe=0,Se=J;const Pe={match:!1,pathIndex:0,commandIndex:0};for(;Se<$.segments.length;){if(oe>=R.length)return Pe;
1const Ge=$.segments[Se],kt=R[oe];if(Mi(kt))break;const qt=`${kt}`,Pn=oe<R.length-1?R[oe+1]:null;if(Se>0&&void 0===qt)break;if(qt&&Pn&&"object"==typeof Pn&&void 0===Pn.outlets){if(!Ve(qt,Pn,Ge))return Pe;oe+=2}else{if(!Ve(qt,{},Ge))return Pe;oe++}Se++}return{match:!0,pathIndex:Se,commandIndex:oe}}($,J,R),Se=R.slice(oe.commandIndex);if(oe.match&&oe.pathIndex<$.segments.length){const Pe=new re($.segments.slice(0,oe.pathIndex),{});return Pe.children[rt]=new re($.segments.slice(oe.pathIndex),$.children),ki(Pe,0,Se)}return oe.match&&0===Se.length?new re($.segments,{}):oe.match&&!$.hasChildren()?Wn($,J,R):oe.match?ki($,0,Se):Wn($,J,R)}function ki($,J,R){if(0===R.length)return new re($.segments,{});{const oe=function ps($){return Mi($[0])?$[0].outlets:{[rt]:$}}(R),Se={};if(!oe[rt]&&$.children[rt]&&1===$.numberOfChildren&&0===$.children[rt].segments.length){const Pe=ki($.children[rt],J,R);return new re($.segments,Pe.children)}return zt(oe,(Pe,Ge)=>{"string"==typeof Pe&&(Pe=[Pe]),null!==Pe&&(Se[Ge]=Ms($.children[Ge],J,Pe))}),zt($.children,(Pe,Ge)=>{void 0===oe[Ge]&&(Se[Ge]=Pe)}),new re($.segments,Se)}}function Wn($,J,R){const oe=$.segments.slice(0,J);let Se=0;for(;Se<R.length;){const Pe=R[Se];if(Mi(Pe)){const qt=hi(Pe.outlets);return new re(oe,qt)}if(0===Se&&Ss(R[0])){oe.push(new pe($.segments[J].path,fs(R[0]))),Se++;continue}const Ge=Mi(Pe)?Pe.outlets[rt]:`${Pe}`,kt=Se<R.length-1?R[Se+1]:null;Ge&&kt&&Ss(kt)?(oe.push(new pe(Ge,fs(kt))),Se+=2):(oe.push(new pe(Ge,{})),Se++)}return new re(oe,{})}function hi($){const J={};return zt($,(R,oe)=>{"string"==typeof R&&(R=[R]),null!==R&&(J[oe]=Wn(new re([],{}),0,R))}),J}function fs($){const J={};return zt($,(R,oe)=>J[oe]=`${R}`),J}function Ve($,J,R){return $==R.path&&Ye(J,R.parameters)}const he="imperative";class we{constructor(J,R){this.id=J,this.url=R}}class Ne extends we{constructor(J,R,oe="imperative",Se=null){super(J,R),this.type=0,this.navigationTrigger=oe,this.restoredState=Se}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class vt extends we{constructor(J,R,oe){super(J,R),this.urlAfterRedirects=oe,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rn extends we{constructor(J,R,oe,Se){super(J,R),this.reason=oe,this.code=Se,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hn extends we{constructor(J,R,oe,Se){super(J,R),this.reason=oe,this.code=Se,this.type=16}}class Gn extends we{constructor(J,R,oe,Se){super(J,R),this.error=oe,this.target=Se,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Xn extends we{constructor(J,R,oe,Se){super(J,R),this.urlAfterRedirects=oe,this.state=Se,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ji extends we{constructor(J,R,oe,Se){super(J,R),this.urlAfterRedirects=oe,this.state=Se,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ni extends we{constructor(J,R,oe,Se,Pe){super(J,R),this.urlAfterRedirects=oe,this.state=Se,this.shouldActivate=Pe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xi extends we{constructor(J,R,oe,Se){super(J,R),this.urlAfterRedirects=oe,this.state=Se,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ms extends we{constructor(J,R,oe,Se){super(J,R),this.urlAfterRedirects=oe,this.state=Se,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qs{constructor(J){this.route=J,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qn{constructor(J){this.route=J,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ir{constructor(J){this.snapshot=J,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qs{constructor(J){this.snapshot=J,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ii{constructor(J){this.snapshot=J,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(J){this.snapshot=J,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor(J,R,oe){this.routerEvent=J,this.position=R,this.anchor=oe,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let gs=(()=>{class ${createUrlTree(R,oe,Se,Pe,Ge,kt){return Js(R||oe.root,Se,Pe,Ge,kt)}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})(),Xi=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:function(J){return gs.\u0275fac(J)},providedIn:"root"}),$})();class Yr{constructor(J){this._root=J}get root(){return this._root.value}
1parent(J){const R=this.pathFromRoot(J);return R.length>1?R[R.length-2]:null}children(J){const R=os(J,this._root);return R?R.children.map(oe=>oe.value):[]}firstChild(J){const R=os(J,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(J){const R=$i(J,this._root);return R.length<2?[]:R[R.length-2].children.map(Se=>Se.value).filter(Se=>Se!==J)}pathFromRoot(J){return $i(J,this._root).map(R=>R.value)}}function os($,J){if($===J.value)return J;for(const R of J.children){const oe=os($,R);if(oe)return oe}return null}function $i($,J){if($===J.value)return[J];for(const R of J.children){const oe=$i($,R);if(oe.length)return oe.unshift(J),oe}return[]}class As{constructor(J,R){this.value=J,this.children=R}toString(){return`TreeNode(${this.value})`}}function Bs($){const J={};return $&&$.children.forEach(R=>J[R.value.outlet]=R),J}class ks extends Yr{constructor(J,R){super(J),this.snapshot=R,Gi(this,J)}toString(){return this.snapshot.toString()}}function ts($,J){const R=function Jr($,J){const Ge=new Vr([],{},{},"",{},rt,J,null,$.root,-1,{});return new dr("",new As(Ge,[]))}($,J),oe=new D.X([new pe("",{})]),Se=new D.X({}),Pe=new D.X({}),Ge=new D.X({}),kt=new D.X(""),qt=new sr(oe,Se,Ge,kt,Pe,rt,J,R.root);return qt.snapshot=R.root,new ks(new As(qt,[]),R)}class sr{constructor(J,R,oe,Se,Pe,Ge,kt,qt){this.url=J,this.params=R,this.queryParams=oe,this.fragment=Se,this.data=Pe,this.outlet=Ge,this.component=kt,this.title=this.data?.pipe((0,N.U)(Pn=>Pn[mt]))??(0,s.of)(void 0),this._futureSnapshot=qt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,N.U)(J=>tn(J)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,N.U)(J=>tn(J)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function oo($,J="emptyOnly"){const R=$.pathFromRoot;let oe=0;if("always"!==J)for(oe=R.length-1;oe>=1;){const Se=R[oe],Pe=R[oe-1];if(Se.routeConfig&&""===Se.routeConfig.path)oe--;else{if(Pe.component)break;oe--}}return function Dr($){return $.reduce((J,R)=>({params:{...J.params,...R.params},data:{...J.data,...R.data},resolve:{...R.data,...J.resolve,...R.routeConfig?.data,...R._resolvedData}}),{params:{},data:{},resolve:{}})}(R.slice(oe))}class Vr{get title(){return this.data?.[mt]}constructor(J,R,oe,Se,Pe,Ge,kt,qt,Pn,Fn,Ci){this.url=J,this.params=R,this.queryParams=oe,this.fragment=Se,this.data=Pe,this.outlet=Ge,this.component=kt,this.routeConfig=qt,this._urlSegment=Pn,this._lastPathIndex=Fn,this._resolve=Ci}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=tn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(oe=>oe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dr extends Yr{constructor(J,R){super(R),this.url=J,Gi(this,R)}toString(){return Ki(this._root)}}function Gi($,J){J.value._routerState=$,J.children.forEach(R=>Gi($,R))}function Ki($){const J=$.children.length>0?` { ${$.children.map(Ki).join(", ")} } `:"";return`${$.value}${J}`}function rr($){if($.snapshot){const J=$.snapshot,R=$._futureSnapshot;$.snapshot=R,Ye(J.queryParams,R.queryParams)||$.queryParams.next(R.queryParams),J.fragment!==R.fragment&&$.fragment.next(R.fragment),Ye(J.params,R.params)||$.params.next(R.params),function bt($,J){if($.length!==J.length)return!1;for(let R=0;R<$.length;++R)if(!Ye($[R],J[R]))return!1;return!0}(J.url,R.url)||$.url.next(R.url),Ye(J.data,R.data)||$.data.next(R.data)}else $.snapshot=$._futureSnapshot,$.data.next($._futureSnapshot.data)}function Hr($,J){const R=Ye($.params,J.params)&&function Re($,J){return Bt($,J)&&$.every((R,oe)=>Ye(R.parameters,J[oe].parameters))}($.url,J.url);return R&&!(!$.parent!=!J.parent)&&(!$.parent||Hr($.parent,J.parent))}function er($,J,R){if(R&&$.shouldReuseRoute(J.value,R.value.snapshot)){const oe=R.value;oe._futureSnapshot=J.value;const Se=function zr($,J,R){return J.children.map(oe=>{for(const Se of R.children)if($.shouldReuseRoute(oe.value,Se.value.snapshot))return er($,oe,Se);return er($,oe)})}($,J,R);return new As(oe,Se)}{if($.shouldAttach(J.value)){const Pe=$.retrieve(J.value);if(null!==Pe){const Ge=Pe.route;return Ge.value._futureSnapshot=J.value,Ge.children=J.children.map(kt=>er($,kt)),Ge}}const oe=function Ir($){return new sr(new D.X($.url),new D.X($.params),new D.
1X($.queryParams),new D.X($.fragment),new D.X($.data),$.outlet,$.component,$)}(J.value),Se=J.children.map(Pe=>er($,Pe));return new As(oe,Se)}}const Qr="ngNavigationCancelingError";function qr($,J){const{redirectTo:R,navigationBehaviorOptions:oe}=dn(J)?{redirectTo:J,navigationBehaviorOptions:void 0}:J,Se=hr(!1,0,J);return Se.url=R,Se.navigationBehaviorOptions=oe,Se}function hr($,J,R){const oe=new Error("NavigationCancelingError: "+($||""));return oe[Qr]=!0,oe.cancellationCode=J,R&&(oe.url=R),oe}function Ar($){return ao($)&&dn($.url)}function ao($){return $&&$[Qr]}class Mo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ws,this.attachRef=null}}let Ws=(()=>{class ${constructor(){this.contexts=new Map}onChildOutletCreated(R,oe){const Se=this.getOrCreateContext(R);Se.outlet=oe,this.contexts.set(R,Se)}onChildOutletDestroyed(R){const oe=this.getContext(R);oe&&(oe.outlet=null,oe.attachRef=null)}onOutletDeactivated(){const R=this.contexts;return this.contexts=new Map,R}onOutletReAttached(R){this.contexts=R}getOrCreateContext(R){let oe=this.getContext(R);return oe||(oe=new Mo,this.contexts.set(R,oe)),oe}getContext(R){return this.contexts.get(R)||null}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const Vs=!1;let Xr=(()=>{class ${constructor(){this.activated=null,this._activatedRoute=null,this.name=rt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Ws),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb)}ngOnChanges(R){if(R.name){const{firstChange:oe,previousValue:Se}=R.name;if(oe)return;this.isTrackedInParentContexts(Se)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Se)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(R){return this.parentContexts.getContext(R)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const R=this.parentContexts.getContext(this.name);R?.route&&(R.attachRef?this.attach(R.attachRef,R.route):this.activateWith(R.route,R.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,Vs);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,Vs);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,Vs);this.location.detach();const R=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(R.instance),R}attach(R,oe){this.activated=R,this._activatedRoute=oe,this.location.insert(R.hostView),this.attachEvents.emit(R.instance)}deactivate(){if(this.activated){const R=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(R)}}activateWith(R,oe){if(this.isActivated)throw new t.vHH(4013,Vs);this._activatedRoute=R;const Se=this.location,Ge=R.snapshot.component,kt=this.parentContexts.getOrCreateContext(this.name).children,qt=new pr(R,kt,Se.injector);if(oe&&function kr($){return!!$.resolveComponentFactory}(oe)){const Pn=oe.resolveComponentFactory(Ge);this.activated=Se.createComponent(Pn,Se.length,qt)}else this.activated=Se.createComponent(Ge,{index:Se.length,injector:qt,environmentInjector:oe??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275dir=t.lG2({type:$,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]}),$})();class pr{constructor(J,R,oe){this.route=J,this.childContexts=R,this.parent=oe}get(J,R){return J===sr?this.route:J===Ws?this.childContexts:this.parent.get(J,R)}}let He=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(R,oe){1&R&&t._UZ(0,"router-outlet")},dependencies:[Xr],encapsulation:2}),$})();function gt($,J){return $.providers&&!$._injector&&($._injector=(0,t.MMx)($.providers,J,`Route: ${$.path}`)),$._injector??J}function $n($){const J=$.children&&$.children.map($n),R=J?{...$,children:J}:{...$};return!R.component&&!R.loadComponent&&(J||R.loadChildren)&&R.outlet&&R.outlet!==rt&&(R.component=He),R}function pi($){return $.outlet||rt}function ns($,J){const R=$.filter(oe=>pi(oe)===J);return R.push(...$.filter(oe=>pi(oe)!==J)),R}function Oi($){if(!$)return null;if($.routeConfig?._injector)return $.routeConfig._injector;for(let J=$.parent;J;J=J.parent){const R=J.routeConfig;if(R?._loadedInjector)return R._loadedInjector;if(R?._injector)return R._injector}return null}class $r{constructor(J,R,oe,Se){this.routeReuseStrategy=J,this.futureState=R,this.currState=oe,this.forwardEvent=Se}activate(J){const R=this.futureState._root,oe=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,oe,J),rr(this.futureState.root),this.activateChildRoutes(R,oe,J)}deactivateChildRoutes(J,R,oe){const Se=Bs(R);
1J.children.forEach(Pe=>{const Ge=Pe.value.outlet;this.deactivateRoutes(Pe,Se[Ge],oe),delete Se[Ge]}),zt(Se,(Pe,Ge)=>{this.deactivateRouteAndItsChildren(Pe,oe)})}deactivateRoutes(J,R,oe){const Se=J.value,Pe=R?R.value:null;if(Se===Pe)if(Se.component){const Ge=oe.getContext(Se.outlet);Ge&&this.deactivateChildRoutes(J,R,Ge.children)}else this.deactivateChildRoutes(J,R,oe);else Pe&&this.deactivateRouteAndItsChildren(R,oe)}deactivateRouteAndItsChildren(J,R){J.value.component&&this.routeReuseStrategy.shouldDetach(J.value.snapshot)?this.detachAndStoreRouteSubtree(J,R):this.deactivateRouteAndOutlet(J,R)}detachAndStoreRouteSubtree(J,R){const oe=R.getContext(J.value.outlet),Se=oe&&J.value.component?oe.children:R,Pe=Bs(J);for(const Ge of Object.keys(Pe))this.deactivateRouteAndItsChildren(Pe[Ge],Se);if(oe&&oe.outlet){const Ge=oe.outlet.detach(),kt=oe.children.onOutletDeactivated();this.routeReuseStrategy.store(J.value.snapshot,{componentRef:Ge,route:J,contexts:kt})}}deactivateRouteAndOutlet(J,R){const oe=R.getContext(J.value.outlet),Se=oe&&J.value.component?oe.children:R,Pe=Bs(J);for(const Ge of Object.keys(Pe))this.deactivateRouteAndItsChildren(Pe[Ge],Se);oe&&(oe.outlet&&(oe.outlet.deactivate(),oe.children.onOutletDeactivated()),oe.attachRef=null,oe.resolver=null,oe.route=null)}activateChildRoutes(J,R,oe){const Se=Bs(R);J.children.forEach(Pe=>{this.activateRoutes(Pe,Se[Pe.value.outlet],oe),this.forwardEvent(new Mn(Pe.value.snapshot))}),J.children.length&&this.forwardEvent(new qs(J.value.snapshot))}activateRoutes(J,R,oe){const Se=J.value,Pe=R?R.value:null;if(rr(Se),Se===Pe)if(Se.component){const Ge=oe.getOrCreateContext(Se.outlet);this.activateChildRoutes(J,R,Ge.children)}else this.activateChildRoutes(J,R,oe);else if(Se.component){const Ge=oe.getOrCreateContext(Se.outlet);if(this.routeReuseStrategy.shouldAttach(Se.snapshot)){const kt=this.routeReuseStrategy.retrieve(Se.snapshot);this.routeReuseStrategy.store(Se.snapshot,null),Ge.children.onOutletReAttached(kt.contexts),Ge.attachRef=kt.componentRef,Ge.route=kt.route.value,Ge.outlet&&Ge.outlet.attach(kt.componentRef,kt.route.value),rr(kt.route.value),this.activateChildRoutes(J,null,Ge.children)}else{const kt=Oi(Se.snapshot),qt=kt?.get(t._Vd)??null;Ge.attachRef=null,Ge.route=Se,Ge.resolver=qt,Ge.injector=kt,Ge.outlet&&Ge.outlet.activateWith(Se,Ge.injector),this.activateChildRoutes(J,null,Ge.children)}}else this.activateChildRoutes(J,null,oe)}}class fr{constructor(J){this.path=J,this.route=this.path[this.path.length-1]}}class es{constructor(J,R){this.component=J,this.route=R}}function eo($,J,R){const oe=$._root;return tr(oe,J?J._root:null,R,[oe.value])}function Or($,J){const R=Symbol(),oe=J.get($,R);return oe===R?"function"!=typeof $||(0,t.Z0I)($)?J.get($):$:oe}function tr($,J,R,oe,Se={canDeactivateChecks:[],canActivateChecks:[]}){const Pe=Bs(J);return $.children.forEach(Ge=>{(function Cr($,J,R,oe,Se={canDeactivateChecks:[],canActivateChecks:[]}){const Pe=$.value,Ge=J?J.value:null,kt=R?R.getContext($.value.outlet):null;if(Ge&&Pe.routeConfig===Ge.routeConfig){const qt=function To($,J,R){if("function"==typeof R)return R($,J);switch(R){case"pathParamsChange":return!Bt($.url,J.url);case"pathParamsOrQueryParamsChange":return!Bt($.url,J.url)||!Ye($.queryParams,J.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hr($,J)||!Ye($.queryParams,J.queryParams);default:return!Hr($,J)}}(Ge,Pe,Pe.routeConfig.runGuardsAndResolvers);qt?Se.canActivateChecks.push(new fr(oe)):(Pe.data=Ge.data,Pe._resolvedData=Ge._resolvedData),tr($,J,Pe.component?kt?kt.children:null:R,oe,Se),qt&&kt&&kt.outlet&&kt.outlet.isActivated&&Se.canDeactivateChecks.push(new es(kt.outlet.component,Ge))}else Ge&&Kn(J,kt,Se),Se.canActivateChecks.push(new fr(oe)),tr($,null,Pe.component?kt?kt.children:null:R,oe,Se)})(Ge,Pe[Ge.value.outlet],R,oe.concat([Ge.value]),Se),delete Pe[Ge.value.outlet]}),zt(Pe,(Ge,kt)=>Kn(Ge,R.getContext(kt),Se)),Se}function Kn($,J,R){const oe=Bs($),Se=$.value;zt(oe,(Pe,Ge)=>{Kn(Pe,Se.component?J?J.children.getContext(Ge):null:J,R)}),R.canDeactivateChecks.push(new es(Se.component&&J&&J.outlet&&J.outlet.isActivated?J.outlet.component:null,Se))}function Hs($){return"function"==typeof $}function di($){return $ instanceof x.K||"EmptyError"===$?.name}const xr=Symbol("INITIAL_VALUE");function to(){return(0,Q.w)($=>(0,M.a)($.map(J=>J.pipe((0,O.q)(1),(0,ee.O)(xr)))).pipe((0,N.U)(J=>{for(const R of J)if(!0!==R){if(R===xr)return xr;if(!1===R||R instanceof Z)return R}return!0}),(0,ue.h)(J=>J!==xr),(0,O.q)(1)))}function Cs($){return(0,P.z)((0,ze.b)(J=>{if(dn(J))throw qr(0,J)}),(0,N.U)(J=>!0===J))}const Pr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no($,J,R,oe,Se){const Pe=gr($,J,R);return Pe.matched?function _i($,J,R,oe){const Se=J.canMatch;if(!Se||0===Se.length)return(0,s.of)(!0);const Pe=Se.map(Ge=>{const kt=Or(Ge,$);return Yt(function Nn($){return $&&Hs($.canMatch)}(kt)?kt.canMatch(J,R):$.runInContext(()=>kt(J,R)))});return(0,s.of)(Pe).pipe(to(),Cs())}(oe=gt(J,oe),J,R).pipe((0,N.U)(Ge=>!0===Ge?Pe:{...Pr})):(0,s.of)(Pe)}function gr($,J,R){if(""===J.path)return"full"===J.pathMatch&&($.hasChildren()||R.length>0)?{...Pr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const Se=(J.matcher||yt)(R,$,J);if(!Se)return{...Pr};const Pe={};zt(Se.posParams,(kt,qt)=>{Pe[qt]=kt.path});const Ge=Se.consumed.length>0?{...Pe,...Se.consumed[Se.consumed.length-1].parameters}:Pe;return{matched:!0,consumedSegments:Se.consumed,remainingSegments:R.slice(Se.consumed.length),parameters:Ge,positionalParamSegments:Se.posParams??{}}}function io($,J,R,oe){if(R.length>0&&function co($,J,R){return R.some(oe=>Rs($,J,oe)&&pi(oe)!==rt)}($,R,oe)){const Pe=new re(J,function lo($,J,R,oe){const Se={};Se[rt]=oe,oe._sourceSegment=$,oe._segmentIndexShift=J.length;for(const Pe of R)if(""===Pe.path&&pi(Pe)!==rt){const Ge=new re([],{});Ge._sourceSegment=$,Ge._segmentIndexShift=J.length,Se[pi(Pe)]=Ge}return Se}($,J,oe,new re(R,$.children)));return Pe._sourceSegment=$,Pe._segmentIndexShift=J.length,{segmentGroup:Pe,slicedSegments:[]}}if(0===R.length&&function Rr($,J,R){return R.some(oe=>Rs($,J,oe))}($,R,oe)){const Pe=new re($.segments,function Do($,J,R,oe,Se){const Pe={};
1for(const Ge of oe)if(Rs($,R,Ge)&&!Se[pi(Ge)]){const kt=new re([],{});kt._sourceSegment=$,kt._segmentIndexShift=J.length,Pe[pi(Ge)]=kt}return{...Se,...Pe}}($,J,R,oe,$.children));return Pe._sourceSegment=$,Pe._segmentIndexShift=J.length,{segmentGroup:Pe,slicedSegments:R}}const Se=new re($.segments,$.children);return Se._sourceSegment=$,Se._segmentIndexShift=J.length,{segmentGroup:Se,slicedSegments:R}}function Rs($,J,R){return(!($.hasChildren()||J.length>0)||"full"!==R.pathMatch)&&""===R.path}function Io($,J,R,oe){return!!(pi($)===oe||oe!==rt&&Rs(J,R,$))&&("**"===$.path||gr(J,$,R).matched)}function Ao($,J,R){return 0===J.length&&!$.children[R]}const Zo=!1;class uo{constructor(J){this.segmentGroup=J||null}}class jo{constructor(J){this.urlTree=J}}function Zr($){return(0,S._)(new uo($))}function Go($){return(0,S._)(new jo($))}class ca{constructor(J,R,oe,Se,Pe){this.injector=J,this.configLoader=R,this.urlSerializer=oe,this.urlTree=Se,this.config=Pe,this.allowRedirects=!0}apply(){const J=io(this.urlTree.root,[],[],this.config).segmentGroup,R=new re(J.segments,J.children);return this.expandSegmentGroup(this.injector,this.config,R,rt).pipe((0,N.U)(Pe=>this.createUrlTree(Qt(Pe),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Oe.K)(Pe=>{if(Pe instanceof jo)return this.allowRedirects=!1,this.match(Pe.urlTree);throw Pe instanceof uo?this.noMatchError(Pe):Pe}))}match(J){return this.expandSegmentGroup(this.injector,this.config,J.root,rt).pipe((0,N.U)(Se=>this.createUrlTree(Qt(Se),J.queryParams,J.fragment))).pipe((0,Oe.K)(Se=>{throw Se instanceof uo?this.noMatchError(Se):Se}))}noMatchError(J){return new t.vHH(4002,Zo)}createUrlTree(J,R,oe){const Se=Tt(J);return new Z(Se,R,oe)}expandSegmentGroup(J,R,oe,Se){return 0===oe.segments.length&&oe.hasChildren()?this.expandChildren(J,R,oe).pipe((0,N.U)(Pe=>new re([],Pe))):this.expandSegment(J,oe,R,oe.segments,Se,!0)}expandChildren(J,R,oe){const Se=[];for(const Pe of Object.keys(oe.children))"primary"===Pe?Se.unshift(Pe):Se.push(Pe);return(0,e.D)(Se).pipe((0,Qe.b)(Pe=>{const Ge=oe.children[Pe],kt=ns(R,Pe);return this.expandSegmentGroup(J,kt,Ge,Pe).pipe((0,N.U)(qt=>({segment:qt,outlet:Pe})))}),X((Pe,Ge)=>(Pe[Ge.outlet]=Ge.segment,Pe),{}),nt())}expandSegment(J,R,oe,Se,Pe,Ge){return(0,e.D)(oe).pipe((0,Qe.b)(kt=>this.expandSegmentAgainstRoute(J,R,oe,kt,Se,Pe,Ge).pipe((0,Oe.K)(Pn=>{if(Pn instanceof uo)return(0,s.of)(null);throw Pn}))),(0,be.P)(kt=>!!kt),(0,Oe.K)((kt,qt)=>{if(di(kt))return Ao(R,Se,Pe)?(0,s.of)(new re([],{})):Zr(R);throw kt}))}expandSegmentAgainstRoute(J,R,oe,Se,Pe,Ge,kt){return Io(Se,R,Pe,Ge)?void 0===Se.redirectTo?this.matchSegmentAgainstRoute(J,R,Se,Pe,Ge):kt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(J,R,oe,Se,Pe,Ge):Zr(R):Zr(R)}expandSegmentAgainstRouteUsingRedirect(J,R,oe,Se,Pe,Ge){return"**"===Se.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(J,oe,Se,Ge):this.expandRegularSegmentAgainstRouteUsingRedirect(J,R,oe,Se,Pe,Ge)}expandWildCardWithParamsAgainstRouteUsingRedirect(J,R,oe,Se){const Pe=this.applyRedirectCommands([],oe.redirectTo,{});return oe.redirectTo.startsWith("/")?Go(Pe):this.lineralizeSegments(oe,Pe).pipe((0,_e.z)(Ge=>{const kt=new re(Ge,{});return this.expandSegment(J,kt,R,Ge,Se,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(J,R,oe,Se,Pe,Ge){const{matched:kt,consumedSegments:qt,remainingSegments:Pn,positionalParamSegments:Fn}=gr(R,Se,Pe);if(!kt)return Zr(R);const Ci=this.applyRedirectCommands(qt,Se.redirectTo,Fn);return Se.redirectTo.startsWith("/")?Go(Ci):this.lineralizeSegments(Se,Ci).pipe((0,_e.z)($s=>this.expandSegment(J,R,oe,$s.concat(Pn),Ge,!1)))}matchSegmentAgainstRoute(J,R,oe,Se,Pe){return"**"===oe.path?(J=gt(oe,J),oe.loadChildren?(oe._loadedRoutes?(0,s.of)({routes:oe._loadedRoutes,injector:oe._loadedInjector}):this.configLoader.loadChildren(J,oe)).pipe((0,N.U)(kt=>(oe._loadedRoutes=kt.routes,oe._loadedInjector=kt.injector,new re(Se,{})))):(0,s.of)(new re(Se,{}))):no(R,oe,Se,J).pipe((0,Q.w)(({matched:Ge,consumedSegments:kt,remainingSegments:qt})=>Ge?this.getChildConfig(J=oe._injector??J,oe,Se).pipe((0,_e.z)(Fn=>{const Ci=Fn.injector??J,$s=Fn.routes,{segmentGroup:go,slicedSegments:_o}
1=io(R,kt,qt,$s),Fo=new re(go.segments,go.children);if(0===_o.length&&Fo.hasChildren())return this.expandChildren(Ci,$s,Fo).pipe((0,N.U)(va=>new re(kt,va)));if(0===$s.length&&0===_o.length)return(0,s.of)(new re(kt,{}));const Wr=pi(oe)===Pe;return this.expandSegment(Ci,Fo,$s,_o,Wr?rt:Pe,!0).pipe((0,N.U)(_a=>new re(kt.concat(_a.segments),_a.children)))})):Zr(R)))}getChildConfig(J,R,oe){return R.children?(0,s.of)({routes:R.children,injector:J}):R.loadChildren?void 0!==R._loadedRoutes?(0,s.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function $o($,J,R,oe){const Se=J.canLoad;if(void 0===Se||0===Se.length)return(0,s.of)(!0);const Pe=Se.map(Ge=>{const kt=Or(Ge,$);return Yt(function ge($){return $&&Hs($.canLoad)}(kt)?kt.canLoad(J,R):$.runInContext(()=>kt(J,R)))});return(0,s.of)(Pe).pipe(to(),Cs())}(J,R,oe).pipe((0,_e.z)(Se=>Se?this.configLoader.loadChildren(J,R).pipe((0,ze.b)(Pe=>{R._loadedRoutes=Pe.routes,R._loadedInjector=Pe.injector})):function Ea($){return(0,S._)(hr(Zo,3))}())):(0,s.of)({routes:[],injector:J})}lineralizeSegments(J,R){let oe=[],Se=R.root;for(;;){if(oe=oe.concat(Se.segments),0===Se.numberOfChildren)return(0,s.of)(oe);if(Se.numberOfChildren>1||!Se.children[rt])return J.redirectTo,(0,S._)(new t.vHH(4e3,Zo));Se=Se.children[rt]}}applyRedirectCommands(J,R,oe){return this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),J,oe)}applyRedirectCreateUrlTree(J,R,oe,Se){const Pe=this.createSegmentGroup(J,R.root,oe,Se);return new Z(Pe,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(J,R){const oe={};return zt(J,(Se,Pe)=>{if("string"==typeof Se&&Se.startsWith(":")){const kt=Se.substring(1);oe[Pe]=R[kt]}else oe[Pe]=Se}),oe}createSegmentGroup(J,R,oe,Se){const Pe=this.createSegments(J,R.segments,oe,Se);let Ge={};return zt(R.children,(kt,qt)=>{Ge[qt]=this.createSegmentGroup(J,kt,oe,Se)}),new re(Pe,Ge)}createSegments(J,R,oe,Se){return R.map(Pe=>Pe.path.startsWith(":")?this.findPosParam(J,Pe,Se):this.findOrReturn(Pe,oe))}findPosParam(J,R,oe){const Se=oe[R.path.substring(1)];if(!Se)throw new t.vHH(4001,Zo);return Se}findOrReturn(J,R){let oe=0;for(const Se of R){if(Se.path===J.path)return R.splice(oe),Se;oe++}return J}}class cs{}class ua{constructor(J,R,oe,Se,Pe,Ge,kt){this.injector=J,this.rootComponentType=R,this.config=oe,this.urlTree=Se,this.url=Pe,this.paramsInheritanceStrategy=Ge,this.urlSerializer=kt}recognize(){const J=io(this.urlTree.root,[],[],this.config.filter(R=>void 0===R.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,J,rt).pipe((0,N.U)(R=>{if(null===R)return null;const oe=new Vr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rt,this.rootComponentType,null,this.urlTree.root,-1,{}),Se=new As(oe,R),Pe=new dr(this.url,Se);return this.inheritParamsAndData(Pe._root),Pe}))}inheritParamsAndData(J){const R=J.value,oe=oo(R,this.paramsInheritanceStrategy);R.params=Object.freeze(oe.params),R.data=Object.freeze(oe.data),J.children.forEach(Se=>this.inheritParamsAndData(Se))}processSegmentGroup(J,R,oe,Se){return 0===oe.segments.length&&oe.hasChildren()?this.processChildren(J,R,oe):this.processSegment(J,R,oe,oe.segments,Se)}processChildren(J,R,oe){return(0,e.D)(Object.keys(oe.children)).pipe((0,Qe.b)(Se=>{const Pe=oe.children[Se],Ge=ns(R,Se);return this.processSegmentGroup(J,Ge,Pe,Se)}),X((Se,Pe)=>Se&&Pe?(Se.push(...Pe),Se):null),(0,at.o)(Se=>null!==Se),(0,Ee.d)(null),nt(),(0,N.U)(Se=>{if(null===Se)return null;const Pe=ha(Se);return function da($){$.sort((J,R)=>J.value.outlet===rt?-1:R.value.outlet===rt?1:J.value.outlet.localeCompare(R.value.outlet))}(Pe),Pe}))}processSegment(J,R,oe,Se,Pe){return(0,e.D)(R).pipe((0,Qe.b)(Ge=>this.processSegmentAgainstRoute(Ge._injector??J,Ge,oe,Se,Pe)),(0,be.P)(Ge=>!!Ge),(0,Oe.K)(Ge=>{if(di(Ge))return Ao(oe,Se,Pe)?(0,s.of)([]):(0,s.of)(null);throw Ge}))}processSegmentAgainstRoute(J,R,oe,Se,Pe){if(R.redirectTo||!Io(R,oe,Se,Pe))return(0,s.of)(null);let Ge;if("**"===R.path){const kt=Se.length>0?pn(Se).parameters:{},qt=Oo(oe)+Se.length,Pn=new Vr(Se,kt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,De(R),pi(R),R.component??R._loadedComponent??null,R,ko(oe),qt,de(R));Ge=(0,s.of)({snapshot:Pn,consumedSegments:[],remainingSegments:[]})}else Ge=no(oe,R,Se,J).pipe((0,N.U)(({matched:kt,consumedSegments:qt,remainingSegments:Pn,parameters:Fn})=>{if(!kt)return null;const Ci=Oo(oe)+qt.length;return{snapshot:new Vr(qt,Fn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,De(R),pi(R),R.component??R._loadedComponent??null,R,ko(oe),Ci,de(R)),consumedSegments:qt,remainingSegments:Pn}}));return Ge.pipe((0,Q.w)(kt=>{if(null===kt)return(0,s.of)(null);const{snapshot:qt,consumedSegments:Pn,remainingSegments:Fn}=kt;J=R._injector??J;const Ci=R._loadedInjector??J,$s=function Qa($){return $.children?$.children:$.loadChildren?$._loadedRoutes:[]}(R),{segmentGroup:go,slicedSegments:_o}=io(oe,Pn,Fn,$s.filter(Wr=>void 0===Wr.redirectTo));if(0===_o.length&&go.hasChildren())return this.processChildren(Ci,$s,go).pipe((0,N.U)(Wr=>
1null===Wr?null:[new As(qt,Wr)]));if(0===$s.length&&0===_o.length)return(0,s.of)([new As(qt,[])]);const Fo=pi(R)===Pe;return this.processSegment(Ci,$s,go,_o,Fo?rt:Pe).pipe((0,N.U)(Wr=>null===Wr?null:[new As(qt,Wr)]))}))}}function Da($){const J=$.value.routeConfig;return J&&""===J.path&&void 0===J.redirectTo}function ha($){const J=[],R=new Set;for(const oe of $){if(!Da(oe)){J.push(oe);continue}const Se=J.find(Pe=>oe.value.routeConfig===Pe.value.routeConfig);void 0!==Se?(Se.children.push(...oe.children),R.add(Se)):J.push(oe)}for(const oe of R){const Se=ha(oe.children);J.push(new As(oe.value,Se))}return J.filter(oe=>!R.has(oe))}function ko($){let J=$;for(;J._sourceSegment;)J=J._sourceSegment;return J}function Oo($){let J=$,R=J._segmentIndexShift??0;for(;J._sourceSegment;)J=J._sourceSegment,R+=J._segmentIndexShift??0;return R-1}function De($){return $.data||{}}function de($){return $.resolve||{}}function Ri($){return"string"==typeof $.title||null===$.title}function bi($){return(0,Q.w)(J=>{const R=$(J);return R?(0,e.D)(R).pipe((0,N.U)(()=>J)):(0,s.of)(J)})}const Bi=new t.OlP("ROUTES");let Ei=(()=>{class ${constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(R){if(this.componentLoaders.get(R))return this.componentLoaders.get(R);if(R._loadedComponent)return(0,s.of)(R._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(R);const oe=Yt(R.loadComponent()).pipe((0,N.U)(_r),(0,ze.b)(Pe=>{this.onLoadEndListener&&this.onLoadEndListener(R),R._loadedComponent=Pe}),(0,ve.x)(()=>{this.componentLoaders.delete(R)})),Se=new W(oe,()=>new Y.x).pipe(G());return this.componentLoaders.set(R,Se),Se}loadChildren(R,oe){if(this.childrenLoaders.get(oe))return this.childrenLoaders.get(oe);if(oe._loadedRoutes)return(0,s.of)({routes:oe._loadedRoutes,injector:oe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(oe);const Pe=this.loadModuleFactoryOrRoutes(oe.loadChildren).pipe((0,N.U)(kt=>{this.onLoadEndListener&&this.onLoadEndListener(oe);let qt,Pn,Fn=!1;Array.isArray(kt)?Pn=kt:(qt=kt.create(R).injector,Pn=xn(qt.get(Bi,[],t.XFs.Self|t.XFs.Optional)));return{routes:Pn.map($n),injector:qt}}),(0,ve.x)(()=>{this.childrenLoaders.delete(oe)})),Ge=new W(Pe,()=>new Y.x).pipe(G());return this.childrenLoaders.set(oe,Ge),Ge}loadModuleFactoryOrRoutes(R){return Yt(R()).pipe((0,N.U)(_r),(0,_e.z)(oe=>oe instanceof t.YKP||Array.isArray(oe)?(0,s.of)(oe):(0,e.D)(this.compiler.compileModuleAsync(oe))))}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();function _r($){return function us($){return $&&"object"==typeof $&&"default"in $}($)?$.default:$}let vr=(()=>{class ${get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Y.x,this.configLoader=(0,t.f3M)(Ei),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(_t),this.rootContexts=(0,t.f3M)(Ws),this.navigationId=0,this.afterPreactivation=()=>(0,s.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Se=>this.events.next(new Qn(Se)),this.configLoader.onLoadStartListener=Se=>this.events.next(new Qs(Se))}complete(){this.transitions?.complete()}handleNavigationRequest(R){const oe=++this.navigationId;this.transitions?.next({...this.transitions.value,...R,id:oe})}setupNavigations(R){return this.transitions=new D.X({id:0,targetPageId:0,currentUrlTree:R.currentUrlTree,currentRawUrl:R.currentUrlTree,extractedUrl:R.urlHandlingStrategy.extract(R.currentUrlTree),urlAfterRedirects:R.urlHandlingStrategy.extract(R.currentUrlTree),rawUrl:R.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:he,restoredState:null,currentSnapshot:R.routerState.snapshot,targetSnapshot:null,currentRouterState:R.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ue.h)(oe=>0!==oe.id),(0,N.U)(oe=>({...oe,extractedUrl:R.urlHandlingStrategy.extract(oe.rawUrl)})),(0,Q.w)(oe=>{let Se=!1,Pe=!1;return(0,s.of)(oe).pipe((0,ze.b)(Ge=>{this.currentNavigation={id:Ge.id,initialUrl:Ge.rawUrl,extractedUrl:Ge.extractedUrl,trigger:Ge.source,extras:Ge.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Q.w)(Ge=>{const kt=R.browserUrlTree.toString(),qt=!R.navigated||Ge.extractedUrl.toString()!==kt||kt!==R.currentUrlTree.toString();if(!qt&&"reload"!==(Ge.extras.onSameUrlNavigation??R.onSameUrlNavigation)){const Fn="";return this.events.next(new hn(Ge.id,R.serializeUrl(oe.rawUrl),Fn,0)),R.rawUrlTree=Ge.rawUrl,Ge.resolve(null),z.E}if(R.urlHandlingStrategy.shouldProcessUrl(Ge.rawUrl))return zs(Ge.source)&&(R.browserUrlTree=Ge.extractedUrl),(0,s.of)(Ge).pipe((0,Q.w)(Fn=>{const Ci=this.transitions?.getValue();return this.events.next(new Ne(Fn.id,this.urlSerializer.serialize(Fn.extractedUrl),Fn.source,Fn.restoredState)),Ci!==this.transitions?.getValue()?z.E:Promise.resolve(Fn)}),function Ja($,J,R,oe){return(0,Q.w)(Se=>function Wo($,J,R,oe,Se){return new ca($,J,R,oe,Se).apply()}($,J,R,Se.extractedUrl,oe).pipe((0,N.U)(Pe=>({...Se,urlAfterRedirects:Pe}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,R.config),(0,ze.b)(Fn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Fn.urlAfterRedirects},oe.urlAfterRedirects=Fn.urlAfterRedirects}),function Le($,J,R,oe,Se){return(0,_e.z)(Pe=>function Ko($,J,R,oe,Se,Pe,Ge="emptyOnly"){return new ua($,J,R,oe,Se,Ge,Pe).recognize().pipe((0,Q.w)(kt=>null===kt?function Wi($){return new k.y(J=>J.error($))}(new cs):(0,s.of)(kt)))}($,J,R,Pe.urlAfterRedirects,oe.serialize(Pe.urlAfterRedirects),oe,Se).pipe((0,N.U)(Ge=>({...Pe,targetSnapshot:Ge}))))}(this.environmentInjector,this.rootComponentType,R.config,this.urlSerializer,R.paramsInheritanceStrategy),(0,ze.b)(Fn=>{if(oe.targetSnapshot=Fn.targetSnapshot,"eager"===R.urlUpdateStrategy){if(!Fn.extras.skipLocationChange){const $s=R.urlHandlingStrategy.merge(Fn.urlAfterRedirects,Fn.rawUrl);R.setBrowserUrl($s,Fn)}R.browserUrlTree=Fn.urlAfterRedirects}const Ci=new Xn(Fn.id,this.urlSerializer.serialize(Fn.extractedUrl),this.urlSerializer.serialize(Fn.urlAfterRedirects),Fn.targetSnapshot);this.events.next(Ci)}));if(qt&&R.urlHandlingStrategy.shouldProcessUrl(R.rawUrlTree)){const{id:Fn,extractedUrl:Ci,source:$s,restoredState:go,extras:_o}=Ge,Fo=new Ne(Fn,this.urlSerializer.serialize(Ci),$s,go);this.events.next(Fo);const Wr=ts(Ci,this.rootComponentType).snapshot;return oe={...Ge,targetSnapshot:Wr,urlAfterRedirects:Ci,extras:{..._o,skipLocationChange:!1,replaceUrl:!1}},(0,s.of)(oe)}{const Fn="";return this.events.next(new hn(Ge.id,R.serializeUrl(oe.extractedUrl),Fn,1)),R.rawUrlTree=Ge.rawUrl,Ge.resolve(null),z.E}}),(0,ze.b)(Ge=>{const kt=new ji(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot);this.events.next(kt)}),(0,N.U)(Ge=>oe={...Ge,guards:eo(Ge.targetSnapshot,Ge.currentSnapshot,this.rootContexts)}),function as($,J){return(0,_e.z)(R=>{const{targetSnapshot:oe,currentSnapshot:Se,guards:{canActivateChecks:Pe,canDeactivateChecks:Ge}}=R;return 0===Ge.length&&0===Pe.length?(0,s.of)({...R,guardsResult:!0}
1):function Sa($,J,R,oe){return(0,e.D)($).pipe((0,_e.z)(Se=>function la($,J,R,oe,Se){const Pe=J&&J.routeConfig?J.routeConfig.canDeactivate:null;if(!Pe||0===Pe.length)return(0,s.of)(!0);const Ge=Pe.map(kt=>{const qt=Oi(J)??Se,Pn=Or(kt,qt);return Yt(function Gt($){return $&&Hs($.canDeactivate)}(Pn)?Pn.canDeactivate($,J,R,oe):qt.runInContext(()=>Pn($,J,R,oe))).pipe((0,be.P)())});return(0,s.of)(Ge).pipe(to())}(Se.component,Se.route,R,J,oe)),(0,be.P)(Se=>!0!==Se,!0))}(Ge,oe,Se,$).pipe((0,_e.z)(kt=>kt&&function Ce($){return"boolean"==typeof $}(kt)?function Eo($,J,R,oe){return(0,e.D)(J).pipe((0,Qe.b)(Se=>(0,w.z)(function zo($,J){return null!==$&&J&&J(new ir($)),(0,s.of)(!0)}(Se.route.parent,oe),function Ps($,J){return null!==$&&J&&J(new Ii($)),(0,s.of)(!0)}(Se.route,oe),function Ma($,J,R){const oe=J[J.length-1],Pe=J.slice(0,J.length-1).reverse().map(Ge=>function mr($){const J=$.routeConfig?$.routeConfig.canActivateChild:null;return J&&0!==J.length?{node:$,guards:J}:null}(Ge)).filter(Ge=>null!==Ge).map(Ge=>(0,I.P)(()=>{const kt=Ge.guards.map(qt=>{const Pn=Oi(Ge.node)??R,Fn=Or(qt,Pn);return Yt(function Ze($){return $&&Hs($.canActivateChild)}(Fn)?Fn.canActivateChild(oe,$):Pn.runInContext(()=>Fn(oe,$))).pipe((0,be.P)())});return(0,s.of)(kt).pipe(to())}));return(0,s.of)(Pe).pipe(to())}($,Se.path,R),function Uo($,J,R){const oe=J.routeConfig?J.routeConfig.canActivate:null;if(!oe||0===oe.length)return(0,s.of)(!0);const Se=oe.map(Pe=>(0,I.P)(()=>{const Ge=Oi(J)??R,kt=Or(Pe,Ge);return Yt(function ce($){return $&&Hs($.canActivate)}(kt)?kt.canActivate(J,$):Ge.runInContext(()=>kt(J,$))).pipe((0,be.P)())}));return(0,s.of)(Se).pipe(to())}($,Se.route,R))),(0,be.P)(Se=>!0!==Se,!0))}(oe,Pe,$,J):(0,s.of)(kt)),(0,N.U)(kt=>({...R,guardsResult:kt})))})}(this.environmentInjector,Ge=>this.events.next(Ge)),(0,ze.b)(Ge=>{if(oe.guardsResult=Ge.guardsResult,dn(Ge.guardsResult))throw qr(0,Ge.guardsResult);const kt=new Ni(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot,!!Ge.guardsResult);this.events.next(kt)}),(0,ue.h)(Ge=>!!Ge.guardsResult||(R.restoreHistory(Ge),this.cancelNavigationTransition(Ge,"",3),!1)),bi(Ge=>{if(Ge.guards.canActivateChecks.length)return(0,s.of)(Ge).pipe((0,ze.b)(kt=>{const qt=new xi(kt.id,this.urlSerializer.serialize(kt.extractedUrl),this.urlSerializer.serialize(kt.urlAfterRedirects),kt.targetSnapshot);this.events.next(qt)}),(0,Q.w)(kt=>{let qt=!1;return(0,s.of)(kt).pipe(function ut($,J){return(0,_e.z)(R=>{const{targetSnapshot:oe,guards:{canActivateChecks:Se}}=R;if(!Se.length)return(0,s.of)(R);let Pe=0;return(0,e.D)(Se).pipe((0,Qe.b)(Ge=>function Wt($,J,R,oe){const Se=$.routeConfig,Pe=$._resolve;return void 0!==Se?.title&&!Ri(Se)&&(Pe[mt]=Se.title),function an($,J,R,oe){const Se=function Bn($){return[...Object.keys($),...Object.getOwnPropertySymbols($)]}($);if(0===Se.length)return(0,s.of)({});const Pe={};return(0,e.D)(Se).pipe((0,_e.z)(Ge=>function zi($,J,R,oe){const Se=Oi(J)??oe,Pe=Or($,Se);return Yt(Pe.resolve?Pe.resolve(J,R):Se.runInContext(()=>Pe(J,R)))}($[Ge],J,R,oe).pipe((0,be.P)(),(0,ze.b)(kt=>{Pe[Ge]=kt}))),V(1),(0,me.h)(Pe),(0,Oe.K)(Ge=>di(Ge)?z.E:(0,S._)(Ge)))}(Pe,$,J,oe).pipe((0,N.U)(Ge=>($._resolvedData=Ge,$.data=oo($,R).resolve,Se&&Ri(Se)&&($.data[mt]=Se.title),null)))}(Ge.route,oe,$,J)),(0,ze.b)(()=>Pe++),V(1),(0,_e.z)(Ge=>Pe===Se.length?(0,s.of)(R):z.E))})}(R.paramsInheritanceStrategy,this.environmentInjector),(0,ze.b)({next:()=>qt=!0,complete:()=>{qt||(R.restoreHistory(kt),this.cancelNavigationTransition(kt,"",2))}}))}),(0,ze.b)(kt=>{const qt=new ms(kt.id,this.urlSerializer.serialize(kt.extractedUrl),this.urlSerializer.serialize(kt.urlAfterRedirects),kt.targetSnapshot);this.events.next(qt)}))}),bi(Ge=>{const kt=qt=>{const Pn=[];qt.routeConfig?.loadComponent&&!qt.routeConfig._loadedComponent&&Pn.push(this.configLoader.loadComponent(qt.routeConfig).pipe((0,ze.b)(Fn=>{qt.component=Fn}),(0,N.U)(()=>{})));for(const Fn of qt.children)Pn.push(...kt(Fn));return Pn};return(0,M.a)(kt(Ge.targetSnapshot.root)).pipe((0,Ee.d)(),(0,O.q)(1))}),bi(()=>this.afterPreactivation()),(0,N.U)(Ge=>{const kt=function Os($,J,R){const oe=er($,J._root,R?R._root:void 0);return new ks(oe,J)}(R.routeReuseStrategy,Ge.targetSnapshot,Ge.currentRouterState);return oe={...Ge,targetRouterState:kt}}),(0,ze.b)(Ge=>{R.currentUrlTree=Ge.urlAfterRedirects,R.rawUrlTree=R.urlHandlingStrategy.merge(Ge.urlAfterRedirects,Ge.rawUrl),R.routerState=Ge.targetRouterState,"deferred"===R.urlUpdateStrategy&&(Ge.extras.skipLocationChange||R.setBrowserUrl(R.rawUrlTree,Ge),R.browserUrlTree=Ge.urlAfterRedirects)}),(($,J,R)=>(0,N.U)(oe=>(new $r(J,oe.targetRouterState,oe.currentRouterState,R).activate($),oe)))(this.rootContexts,R.routeReuseStrategy,Ge=>this.events.next(Ge)),(0,O.q)(1),(0,ze.b)({next:Ge=>{Se=!0,this.lastSuccessfulNavigation=this.currentNavigation,R.navigated=!0,this.events.next(new vt(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(R.currentUrlTree))),R.titleStrategy?.updateTitle(Ge.targetRouterState.snapshot),Ge.resolve(!0)},complete:()=>{Se=!0}}),(0,ve.x)(()=>{Se||Pe||this.cancelNavigationTransition(oe,"",1),this.currentNavigation?.id===oe.id&&(this.currentNavigation=null)}),(0,Oe.K)(Ge=>
1{if(Pe=!0,ao(Ge)){Ar(Ge)||(R.navigated=!0,R.restoreHistory(oe,!0));const kt=new rn(oe.id,this.urlSerializer.serialize(oe.extractedUrl),Ge.message,Ge.cancellationCode);if(this.events.next(kt),Ar(Ge)){const qt=R.urlHandlingStrategy.merge(Ge.url,R.rawUrlTree),Pn={skipLocationChange:oe.extras.skipLocationChange,replaceUrl:"eager"===R.urlUpdateStrategy||zs(oe.source)};R.scheduleNavigation(qt,he,null,Pn,{resolve:oe.resolve,reject:oe.reject,promise:oe.promise})}else oe.resolve(!1)}else{R.restoreHistory(oe,!0);const kt=new Gn(oe.id,this.urlSerializer.serialize(oe.extractedUrl),Ge,oe.targetSnapshot??void 0);this.events.next(kt);try{oe.resolve(R.errorHandler(Ge))}catch(qt){oe.reject(qt)}}return z.E}))}))}cancelNavigationTransition(R,oe,Se){const Pe=new rn(R.id,this.urlSerializer.serialize(R.extractedUrl),oe,Se);this.events.next(Pe),R.resolve(!1)}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();function zs($){return $!==he}let or=(()=>{class ${buildTitle(R){let oe,Se=R.root;for(;void 0!==Se;)oe=this.getResolvedTitleForRoute(Se)??oe,Se=Se.children.find(Pe=>Pe.outlet===rt);return oe}getResolvedTitleForRoute(R){return R.data[mt]}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:function(){return(0,t.f3M)(Fr)},providedIn:"root"}),$})(),Fr=(()=>{class $ extends or{constructor(R){super(),this.title=R}updateTitle(R){const oe=this.buildTitle(R);void 0!==oe&&this.title.setTitle(oe)}}return $.\u0275fac=function(R){return new(R||$)(t.LFG(Xe.Dx))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),wr=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:function(){return(0,t.f3M)(Yo)},providedIn:"root"}),$})();class Ia{shouldDetach(J){return!1}store(J,R){}shouldAttach(J){return!1}retrieve(J){return null}shouldReuseRoute(J,R){return J.routeConfig===R.routeConfig}}let Yo=(()=>{class $ extends Ia{}return $.\u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z($)))(oe||$)}}(),$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const Jo=new t.OlP("",{providedIn:"root",factory:()=>({})});let pa=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:function(){return(0,t.f3M)(_l)},providedIn:"root"}),$})(),_l=(()=>{class ${shouldProcessUrl(R){return!0}extract(R){return R}merge(R,oe){return R}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();function Aa($){throw $}function po($,J,R){return J.parse("/")}const Po={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},qa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Us=(()=>{class ${get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this.options=(0,t.f3M)(Jo,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Aa,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||po,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(pa),this.routeReuseStrategy=(0,t.f3M)(wr),this.urlCreationStrategy=(0,t.f3M)(Xi),this.titleStrategy=(0,t.f3M)(or),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=xn((0,t.f3M)(Bi,{optional:!0})??[]),this.navigationTransitions=(0,t.f3M)(vr),this.urlSerializer=(0,t.f3M)(_t),this.location=(0,t.f3M)(fe.Ye),this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Z,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ts(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(R=>{this.lastSuccessfulId=R.id,this.currentPageId=this.browserPageId??0},R=>{this.console.warn(`Unhandled Navigation Error: ${R}`)})}resetRootComponentType(R){this.routerState.root.component=R,this.navigationTransitions.rootComponentType=R}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const R=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),he,R)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(R=>{const oe="popstate"===R.type?"popstate":"hashchange";"popstate"===oe&&setTimeout(()=>{this.navigateToSyncWithBrowser(R.url,oe,R.state)},0)}))}navigateToSyncWithBrowser(R,oe,Se){const Pe={replaceUrl:!0},Ge=Se?.navigationId?Se:null;if(Se){const qt={...Se};delete qt.navigationId,delete qt.\u0275routerPageId,0!==Object.keys(qt).length&&(Pe.state=qt)}const kt=this.parseUrl(R);this.scheduleNavigation(kt,oe,Ge,Pe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(R){this.config=R.map($n),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(R,oe={}){const{relativeTo:Se,queryParams:Pe,fragment:Ge,queryParamsHandling:kt,preserveFragment:qt}=oe,Pn=qt?this.currentUrlTree.fragment:Ge;let Fn=null;switch(kt){case"merge":Fn={...this.currentUrlTree.queryParams,...Pe};break;case"preserve":Fn=this.currentUrlTree.queryParams;break;default:Fn=Pe||null}return null!==Fn&&(Fn=this.removeEmptyProps(Fn)),this.urlCreationStrategy.createUrlTree(Se,this.routerState,this.currentUrlTree,R,Fn,Pn??null)}navigateByUrl(R,oe={skipLocationChange:!1}){const Se=dn(R)?R:this.parseUrl(R),Pe=this.urlHandlingStrategy.merge(Se,this.rawUrlTree);return this.scheduleNavigation(Pe,he,null,oe)}navigate(R,oe={skipLocationChange:!1}){return function ka($){for(let J=0;J<$.length;J++){const R=$[J];if(null==R)throw new t.vHH(4008,false)}}(R),this.navigateByUrl(this.createUrlTree(R,oe),oe)}serializeUrl(R){return this.urlSerializer.serialize(R)}parseUrl(R){let oe;try{oe=this.urlSerializer.parse(R)}catch(Se){oe=this.malformedUriErrorHandler(Se,this.urlSerializer,R)}return oe}isActive(R,oe){let Se;if(Se=!0===oe?{...Po}:!1===oe?{...qa}:oe,dn(R))return Sn(this.currentUrlTree,R,Se);const Pe=this.parseUrl(R);return Sn(this.currentUrlTree,Pe,Se)}removeEmptyProps(R){return Object.keys(R).reduce((oe,Se)=>{const Pe=R[Se];return null!=Pe&&(oe[Se]=Pe),oe},{})}scheduleNavigation(R,oe,Se,Pe,Ge){if(this.disposed)return Promise.resolve(!1);let kt,qt,Pn,Fn;return Ge?(kt=Ge.resolve,qt=Ge.reject,Pn=Ge.promise):Pn=new Promise((Ci,$s)=>{kt=Ci,qt=$s}),Fn="computed"===this.canceledNavigationResolution?Se&&Se.\u0275routerPageId?Se.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Fn,source:oe,restoredState:Se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:R,extras:Pe,resolve:kt,reject:qt,promise:Pn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Pn.catch(Ci=>Promise.reject(Ci))}setBrowserUrl(R,oe){const Se=this.urlSerializer.serialize(R);if(this.location.isCurrentPathEqualTo(Se)||oe.extras.replaceUrl){const Ge={...oe.extras.state,...this.generateNgRouterState(oe.id,this.browserPageId)};this.location.replaceState(Se,"",Ge)}else{const Pe={...oe.extras.state,...this.generateNgRouterState(oe.id,oe.targetPageId)};this.location.go(Se,"",Pe)}}restoreHistory(R,oe=!1){if("computed"===this.canceledNavigationResolution){const Pe=this.currentPageId-(this.browserPageId??this.currentPageId);0!==Pe?this.location.historyGo(Pe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Pe&&(this.resetState(R),this.browserUrlTree=R.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(oe&&this.resetState(R),this.resetUrlToCurrentUrlTree())}resetState(R){this.routerState=R.currentRouterState,this.currentUrlTree=R.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,R.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(R,oe){return"computed"===this.canceledNavigationResolution?{navigationId:R,\u0275routerPageId:oe}:{navigationId:R}}}return $.\u0275fac=function(R){return new(R||$)},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Oa=(()=>{class ${constructor(R,oe,Se,Pe,Ge,kt){this.router=R,this.route=oe,this.tabIndexAttribute=Se,this.renderer=Pe,this.el=Ge,this.locationStrategy=kt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Y.x;const qt=Ge.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===qt||"area"===qt,this.isAnchorElement?this.subscription=R.events.subscribe(Pn=>{Pn instanceof vt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(R){this._preserveFragment=(0,t.D6c)(R)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(R){this._skipLocationChange=(0,t.D6c)(R)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(R){this._replaceUrl=(0,t.D6c)(R)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(R){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",R)}ngOnChanges(R){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(R){null!=R?(this.commands=Array.isArray(R)?R:[R],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(R,oe,Se,Pe,Ge){return!!(null===this.urlTree||this.isAnchorElement&&(0!==R||oe||Se||Pe||Ge||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const R=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(R,oe){const Se=this.renderer,Pe=this.el.nativeElement;null!==oe?Se.setAttribute(Pe,R,oe):Se.removeAttribute(Pe,R)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return $.\u0275fac=function(R){return new(R||$)(t.Y36(Us),t.Y36(sr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(fe.S$))},$.\u0275dir=t.lG2({type:$,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(R,oe){1&R&&t.NdJ("click",function(Pe){return oe.onClick(Pe.button,Pe.ctrlKey,Pe.shiftKey,Pe.altKey,Pe.metaKey)}),2&R&&t.uIk("target",oe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]}),$})(),Pa=(()=>{class ${get isActive(){return this._isActive}constructor(R,oe,Se,Pe,Ge){this.router=R,this.element=oe,this.renderer=Se,this.cdr=Pe,this.link=Ge,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=R.events.subscribe(kt=>{kt instanceof vt&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,(0,s.of)(null)).pipe((0,je.J)()).subscribe(R=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const R=[...this.links.toArray(),this.link].filter(oe=>!!oe).map(oe=>oe.onChanges);this.linkInputChangesSubscription=(0,e.D)(R).pipe((0,je.J)()).subscribe(oe=>{this._isActive!==this.isLinkActive(this.router)(oe)&&this.update()})}set routerLinkActive(R){const oe=Array.isArray(R)?R:R.split(" ");this.classes=oe.filter(Se=>!!Se)}ngOnChanges(R){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const R=this.hasActiveLinks();this._isActive!==R&&(this._isActive=R,this.cdr.markForCheck(),this.classes.forEac
1h(oe=>{R?this.renderer.addClass(this.element.nativeElement,oe):this.renderer.removeClass(this.element.nativeElement,oe)}),R&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(R))})}isLinkActive(R){const oe=function Ro($){return!!$.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Se=>!!Se.urlTree&&R.isActive(Se.urlTree,oe)}hasActiveLinks(){const R=this.isLinkActive(this.router);return this.link&&R(this.link)||this.links.some(R)}}return $.\u0275fac=function(R){return new(R||$)(t.Y36(Us),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Oa,8))},$.\u0275dir=t.lG2({type:$,selectors:[["","routerLinkActive",""]],contentQueries:function(R,oe,Se){if(1&R&&t.Suo(Se,Oa,5),2&R){let Pe;t.iGM(Pe=t.CRH())&&(oe.links=Pe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]}),$})();class Ra{}let Qo=(()=>{class ${constructor(R,oe,Se,Pe,Ge){this.router=R,this.injector=Se,this.preloadingStrategy=Pe,this.loader=Ge}setUpPreloading(){this.subscription=this.router.events.pipe((0,ue.h)(R=>R instanceof vt),(0,Qe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(R,oe){const Se=[];for(const Pe of oe){Pe.providers&&!Pe._injector&&(Pe._injector=(0,t.MMx)(Pe.providers,R,`Route: ${Pe.path}`));const Ge=Pe._injector??R,kt=Pe._loadedInjector??Ge;(Pe.loadChildren&&!Pe._loadedRoutes&&void 0===Pe.canLoad||Pe.loadComponent&&!Pe._loadedComponent)&&Se.push(this.preloadConfig(Ge,Pe)),(Pe.children||Pe._loadedRoutes)&&Se.push(this.processRoutes(kt,Pe.children??Pe._loadedRoutes))}return(0,e.D)(Se).pipe((0,je.J)())}preloadConfig(R,oe){return this.preloadingStrategy.preload(oe,()=>{let Se;Se=oe.loadChildren&&void 0===oe.canLoad?this.loader.loadChildren(R,oe):(0,s.of)(null);const Pe=Se.pipe((0,_e.z)(Ge=>null===Ge?(0,s.of)(void 0):(oe._loadedRoutes=Ge.routes,oe._loadedInjector=Ge.injector,this.processRoutes(Ge.injector??R,Ge.routes))));if(oe.loadComponent&&!oe._loadedComponent){const Ge=this.loader.loadComponent(oe);return(0,e.D)([Pe,Ge]).pipe((0,je.J)())}return Pe})}}return $.\u0275fac=function(R){return new(R||$)(t.LFG(Us),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Ra),t.LFG(Ei))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const jr=new t.OlP("");let Gr=(()=>{class ${constructor(R,oe,Se,Pe,Ge={}){this.urlSerializer=R,this.transitions=oe,this.viewportScroller=Se,this.zone=Pe,this.options=Ge,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ge.scrollPositionRestoration=Ge.scrollPositionRestoration||"disabled",Ge.anchorScrolling=Ge.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(R=>{R instanceof Ne?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=R.navigationTrigger,this.restoredId=R.restoredState?R.restoredState.navigationId:0):R instanceof vt&&(this.lastId=R.id,this.scheduleScrollEvent(R,this.urlSerializer.parse(R.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(R=>{R instanceof qi&&(R.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(R.position):R.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(R.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(R,oe){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qi(R,"popstate"===this.lastSource?this.store[this.restoredId]:null,oe))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return $.\u0275fac=function(R){t.$Z()},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();var ys=(()=>((ys=ys||{})[ys.COMPLETE=0]="COMPLETE",ys[ys.FAILED=1]="FAILED",ys[ys.REDIRECTING=2]="REDIRECTING",ys))();const Ts=!1;function Je($,J){return{\u0275kind:$,\u0275providers:J}}const St=new t.OlP("",{providedIn:"root",factory:()=>!1});function ri(){const $=(0,t.f3M)(t.zs3);return J=>{const R=$.get(t.z2F);if(J!==R.components[0])return;const oe=$.get(Us),Se=$.get(Pi);1===$.get(qn)&&oe.initialNavigation(),$.get(qo,null,t.XFs.Optional)?.setUpPreloading(),$.get(jr,null,t.XFs.Optional)?.init(),oe.resetRootComponentType(R.componentTypes[0]),Se.closed||(Se.next(),Se.complete(),Se.unsubscribe())}}const Pi=new t.OlP(Ts?"bootstrap done indicator":"",{factory:()=>new Y.x}),qn=new t.OlP(Ts?"initial navigation":"",{providedIn:"root",factory:()=>1});function Es(){let $=[];return $=Ts?[{provide:t.Xts,multi:!0,useFactory:()=>{const J=(0,t.f3M)(Us);return()=>J.events.subscribe(R=>{console.group?.(`Router Event: ${R.constructor.name}`),console.log(function Xs($){if(!("type"in $))return`Unknown Router Event: ${$.constructor.name}`;switch($.type){case 14:return`ActivationEnd(path: '${$.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${$.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${$.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${$.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}', state: ${$.state}, shouldActivate: ${$.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}', state: ${$.state})`;case 2:return`NavigationCancel(id: ${$.id}, url: '${$.url}')`;case 16:return`NavigationSkipped(id: ${$.id}, url: '${$.url}')`;case 1:return`NavigationEnd(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${$.id}, url: '${$.url}', error: ${$.error})`;case 0:return`NavigationStart(id: ${$.id}, url: '${$.url}')`;case 6:return`ResolveEnd(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}', state: ${$.state})`;case 5:return`ResolveStart(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}', state: ${$.state})`;case 10:return`RouteConfigLoadEnd(path: ${$.route.path})`;case 9:return`RouteConfigLoadStart(path: ${$.route.path})`;case 4:return`RoutesRecognized(id: ${$.id}, url: '${$.url}', urlAfterRedirects: '${$.urlAfterRedirects}', state: ${$.state})`;case 15:return`Scroll(anchor: '${$.anchor}', position: '${$.position?`${$.position[0]}, ${$.position[1]}`:null}')`}}(R)),console.log(R),console.groupEnd?.()})}}]:[],Je(1,$)}const qo=new t.OlP(Ts?"router preloader":"");function Ui($){return Je(0,[{provide:qo,useExisting:Qo},{provide:Ra,useExisting:$}])}const ma=!1,Oc=new t.OlP(ma?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Pc=[fe.Ye,{provide:_t,useClass:dt},Us,Ws,{provide:sr,useFactory:function La($){return $.routerState.root},deps:[Us]},Ei,ma?{provide:St,useValue:!0}:[]];function ga(){return new t.PXZ("Router",Us)}let Tu=(()=>{class ${constructor(R){}static forRoot(R,oe){return{ngModule:$,providers:[Pc,ma&&oe?.enableTracing?Es().\u0275providers:[],{provide:Bi,multi:!0,useValue:R}
1,{provide:Oc,useFactory:fo,deps:[[Us,new t.FiY,new t.tp0]]},{provide:Jo,useValue:oe||{}},oe?.useHash?{provide:fe.S$,useClass:fe.Do}:{provide:fe.S$,useClass:fe.b0},{provide:jr,useFactory:()=>{const $=(0,t.f3M)(fe.EM),J=(0,t.f3M)(t.R0b),R=(0,t.f3M)(Jo),oe=(0,t.f3M)(vr),Se=(0,t.f3M)(_t);return R.scrollOffset&&$.setOffset(R.scrollOffset),new Gr(Se,oe,$,J,R)}},oe?.preloadingStrategy?Ui(oe.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:ga},oe?.initialNavigation?Fc(oe):[],[{provide:Sr,useFactory:ri},{provide:t.tb,multi:!0,useExisting:Sr}]]}}static forChild(R){return{ngModule:$,providers:[{provide:Bi,multi:!0,useValue:R}]}}}return $.\u0275fac=function(R){return new(R||$)(t.LFG(Oc,8))},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[He]}),$})();function fo($){if(ma&&$)throw new t.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Fc($){return["disabled"===$.initialNavigation?Je(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const J=(0,t.f3M)(Us);return()=>{J.setUpLocationChangeListener()}}},{provide:qn,useValue:2}]).\u0275providers:[],"enabledBlocking"===$.initialNavigation?Je(2,[{provide:qn,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:J=>{const R=J.get(fe.V_,Promise.resolve());return()=>R.then(()=>new Promise(oe=>{const Se=J.get(Us),Pe=J.get(Pi);(function Fa($,J){$.events.pipe((0,ue.h)(R=>R instanceof vt||R instanceof rn||R instanceof Gn||R instanceof hn),(0,N.U)(R=>R instanceof vt||R instanceof hn?ys.COMPLETE:R instanceof rn&&(0===R.code||1===R.code)?ys.REDIRECTING:ys.FAILED),(0,ue.h)(R=>R!==ys.REDIRECTING),(0,O.q)(1)).subscribe(()=>{J()})})(Se,()=>{oe(!0)}),J.get(vr).afterPreactivation=()=>(oe(!0),Pe.closed?(0,s.of)(void 0):Pe),Se.initialNavigation()}))}}]).\u0275providers:[]]}const Sr=new t.OlP(ma?"Router Initializer":"")},3234:(o,u,a)=>{"use strict";a.d(u,{Z:()=>e});var t=a(7600);t.kL.register(...t.zX);const e=t.kL},7600:(o,u,a)=>{"use strict";function t(){}a.d(u,{kL:()=>Uc,ce:()=>Qn,zX:()=>gu});const e=function(){let h=0;return function(){return h++}}();function s(h){return null===h||typeof h>"u"}function D(h){if(Array.isArray&&Array.isArray(h))return!0;const d=Object.prototype.toString.call(h);return"[object"===d.slice(0,7)&&"Array]"===d.slice(-6)}function x(h){return null!==h&&"[object Object]"===Object.prototype.toString.call(h)}const M=h=>("number"==typeof h||h instanceof Number)&&isFinite(+h);function w(h,d){return M(h)?h:d}function I(h,d){return typeof h>"u"?d:h}const S=(h,d)=>"string"==typeof h&&h.endsWith("%")?parseFloat(h)/100*d:+h;function k(h,d,c){if(h&&"function"==typeof h.call)return h.apply(c,d)}function z(h,d,c,p){let _,b,T;if(D(h))if(b=h.length,p)for(_=b-1;_>=0;_--)d.call(c,h[_],_);else for(_=0;_<b;_++)d.call(c,h[_],_);else if(x(h))for(T=Object.keys(h),b=T.length,_=0;_<b;_++)d.call(c,h[T[_]],T[_])}function F(h,d){let c,p,_,b;if(!h||!d||h.length!==d.length)return!1;for(c=0,p=h.length;c<p;++c)if(_=h[c],b=d[c],_.datasetIndex!==b.datasetIndex||_.index!==b.index)return!1;return!0}function ne(h){if(D(h))return h.map(ne);if(x(h)){const d=Object.create(null),c=Object.keys(h),p=c.length;let _=0;for(;_<p;++_)d[c[_]]=ne(h[c[_]]);return d}return h}function B(h){return-1===["__proto__","prototype","constructor"].indexOf(h)}function G(h,d,c,p){if(!B(h))return;const _=d[h],b=c[h];x(_)&&x(b)?W(_,b,p):d[h]=ne(b)}function W(h,d,c){const p=D(d)?d:[d],_=p.length;if(!x(h))return h;const b=(c=c||{}).merger||G;for(let T=0;T<_;++T){if(!x(d=p[T]))continue;const A=Object.keys(d);for(let U=0,ie=A.length;U<ie;++U)b(A[U],h,d,c)}return h}function Y(h,d){return W(h,d,{merger:fe})}function fe(h,d,c){if(!B(h))return;const p=d[h],_=c[h];x(p)&&x(_)?Y(p,_):Object.prototype.hasOwnProperty.call(d,h)||(d[h]=ne(_))}const Q={"":h=>h,x:h=>h.x,y:h=>h.y};function O(h,d){return(Q[d]||(Q[d]=function ee(h){const d=function ue(h){const d=h.split("."),c=[];let p="";for(const _ of d)p+=_,p.endsWith("\\")?p=p.slice(0,-1)+".":(c.push(p),p="");return c}(h);return c=>{for(const p of d){if(""===p)break;c=c&&c[p]}return c}}(d)))(h)}function _e(h){return h.charAt(0).toUpperCase()+h.slice(1)}const be=h=>typeof h<"u",Qe=h=>"function"==typeof h,ze=(h,d)=>
vendor: 5,397 bytes, line 1
1{if(h.size!==d.size)return!1;for(const c of h)if(!d.has(c))return!1;return!0},K=Math.PI,X=2*K,V=X+K,q=Number.POSITIVE_INFINITY,Ee=K/180,ye=K/2,nt=K/4,at=2*K/3,me=Math.log10,ve=Math.sign;function je(h){const d=Math.round(h);h=mt(h,d,h/1e3)?d:h;const c=Math.pow(10,Math.floor(me(h))),p=h/c;return(p<=1?1:p<=2?2:p<=5?5:10)*c}function rt(h){return!isNaN(parseFloat(h))&&isFinite(h)}function mt(h,d,c){return Math.abs(h-d)<c}function tn(h,d,c){let p,_,b;for(p=0,_=h.length;p<_;p++)b=h[p][c],isNaN(b)||(d.min=Math.min(d.min,b),d.max=Math.max(d.max,b))}function yt(h){return h*(K/180)}function bt(h){return h*(180/K)}function Ye(h){if(!M(h))return;let d=1,c=0;for(;Math.round(h*d)/d!==h;)d*=10,c++;return c}function Nt(h,d){const c=d.x-h.x,p=d.y-h.y,_=Math.sqrt(c*c+p*p);let b=Math.atan2(p,c);return b<-.5*K&&(b+=X),{angle:b,distance:_}}function xn(h,d){return Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2))}function pn(h,d){return(h-d+V)%X-K}function _n(h){return(h%X+X)%X}function zt(h,d,c,p){const _=_n(h),b=_n(d),T=_n(c),A=_n(b-_),U=_n(T-_),ie=_n(_-b),Me=_n(_-T);return _===b||_===T||p&&b===T||A>U&&ie<Me}function Yt(h,d,c){return Math.max(d,Math.min(c,h))}function bn(h,d,c,p=1e-6){return h>=Math.min(d,c)-p&&h<=Math.max(d,c)+p}function Rn(h,d,c){c=c||(T=>h[T]<d);let b,p=h.length-1,_=0;for(;p-_>1;)b=_+p>>1,c(b)?_=b:p=b;return{lo:_,hi:p}}const Sn=(h,d,c,p)=>Rn(h,c,p?_=>h[_][d]<=c:_=>h[_][d]<c),vn=(h,d,c)=>Rn(h,c,p=>h[p][d]>=c),Un=["push","pop","shift","splice","unshift"];function Mt(h,d){const c=h._chartjs;if(!c)return;const p=c.listeners,_=p.indexOf(d);-1!==_&&p.splice(_,1),!(p.length>0)&&(Un.forEach(b=>{delete h[b]}),delete h._chartjs)}function Vt(h){const d=new Set;let c,p;for(c=0,p=h.length;c<p;++c)d.add(h[c]);return d.size===p?h:Array.from(d)}const re=typeof window>"u"?function(h){return h()}:window.requestAnimationFrame;function pe(h,d,c){const p=c||(T=>Array.prototype.slice.call(T));let _=!1,b=[];return function(...T){b=p(T),_||(_=!0,re.call(window,()=>{_=!1,h.apply(d,b)}))}}const Bt=h=>"start"===h?"left":"end"===h?"right":"center",jt=(h,d,c)=>"start"===h?d:"end"===h?c:(d+c)/2;function dt(h,d,c){const p=d.length;let _=0,b=p;if(h._sorted){const{iScale:T,_parsed:A}=h,U=T.axis,{min:ie,max:Me,minDefined:ke,maxDefined:tt}=T.getUserBounds();ke&&(_=Yt(Math.min(Sn(A,T.axis,ie).lo,c?p:Sn(d,U,T.getPixelForValue(ie)).lo),0,p-1)),b=tt?Yt(Math.max(Sn(A,T.axis,Me,!0).hi+1,c?0:Sn(d,U,T.getPixelForValue(Me),!0).hi+1),_,p)-_:p-_}return{start:_,count:b}}function Be(h){const{xScale:d,yScale:c,_scaleRanges:p}=h,_={xmin:d.min,xmax:d.max,ymin:c.min,ymax:c.max};if(!p)return h._scaleRanges=_,!0;const b=p.xmin!==d.min||p.xmax!==d.max||p.ymin!==c.min||p.ymax!==c.max;return Object.assign(p,_),b}const Te=h=>0===h||1===h,We=(h,d,c)=>-Math.pow(2,10*(h-=1))*Math.sin((h-d)*X/c),ft=(h,d,c)=>Math.pow(2,-10*h)*Math.sin((h-d)*X/c)+1,Ft={linear:h=>h,easeInQuad:h=>h*h,easeOutQuad:h=>-h*(h-2),easeInOutQuad:h=>(h/=.5)<1?.5*h*h:-.5*(--h*(h-2)-1),easeInCubic:h=>h*h*h,easeOutCubic:h=>(h-=1)*h*h+1,easeInOutCubic:h=>(h/=.5)<1?.5*h*h*h:.5*((h-=2)*h*h+2),easeInQuart:h=>h*h*h*h,easeOutQuart:h=>-((h-=1)*h*h*h-1),easeInOutQuart:h=>(h/=.5)<1?.5*h*h*h*h:-.5*((h-=2)*h*h*h-2),easeInQuint:h=>h*h*h*h*h,easeOutQuint:h=>(h-=1)*h*h*h*h+1,easeInOutQuint:h=>(h/=.5)<1?.5*h*h*h*h*h:.5*((h-=2)*h*h*h*h+2),easeInSine:h=>1-Math.cos(h*ye),easeOutSine:h=>Math.sin(h*ye),easeInOutSine:h=>-.5*(Math.cos(K*h)-1),easeInExpo:h=>0===h?0:Math.pow(2,10*(h-1)),easeOutExpo:h=>1===h?1:1-Math.pow(2,-10*h),easeInOutExpo:h=>Te(h)?h:h<.5?.5*Math.pow(2,10*(2*h-1)):.5*(2-Math.pow(2,-10*(2*h-1))),easeInCirc:h=>h>=1?h:-(Math.sqrt(1-h*h)-1),easeOutCirc:h=>Math.sqrt(1-(h-=1)*h),easeInOutCirc:h=>(h/=.5)<1?-.5*(Math.sqrt(1-h*h)-1):.5*(Math.sqrt(1-(h-=2)*h)+1),easeInElastic:h=>Te(h)?h:We(h,.075,.3),easeOutElastic:h=>Te(h)?h:ft(h,.075,.3),easeInOutElastic:h=>Te(h)?h:h<.5?.5*We(2*h,.1125,.45):.5+.5*ft(2*h-1,.1125,.45),easeInBack:h=>h*h*(2.70158*h-1.70158),easeOutBack:h=>(h-=1)*h*(2.70158*h+1.70158)+1,easeInOutBack(h){let d=1.70158;return(h/=.5)<1?h*h*((1+(d*=1.525))*h-d)*.5:.5*((h-=2)*h*((1+(d*=1.525))*h+d)+2)},easeInBounce:h=>1-Ft.easeOutBounce(1-h),easeOutBounce:h=>h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375,easeInOutBounce:h=>h<.5?.5*Ft.easeInBounce(2*h):.5*Ft.easeOutBounce(2*h-1)+.5};function Pt(h){return h+.5|0}const pt=(h,d,c)=>Math.max(Math.min(h,c),d);function wt(h){return pt(Pt(2.55*h),0,255)}function lt(h){return pt(Pt(255*h),0,255)}function xt(h){return pt(Pt(h/2.55)/100,0,1)}function $e(h){return pt(Pt(100*h),0,100)}const ht={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},Ht=[..."0123456789ABCDEF"],Jt=h=>Ht[15&h],Dn=h=>Ht[(240&h)>>4]+Ht[15&h],En=h=>(240&h)>>4==(15&h),Qt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function nn(h,d,c){const p=d*Math.min(c,1-c),_=(b,T=(b+h/30)%12)=>c-p*Math.max(Math.min(T-3,9-T,1),-1);return[_(0),_(8),_(4)]}function dn(h,d,c){const p=(_,b=(_+h/60)%6)=>c-c*d*Math.max(Math.min(b,4-b,1),0);return[p(5),p(3),p(1)]}function ai(h,d,c){const p=nn(h,1,.5);let _;for(d+c>1&&(_=1/(d+c),d*=_,c*=_),_=0;_<3;_++)p[_]*=1-d-c,p[_]+=d;return p}function ei(h){const c=h.r/255,p=h.g/255,_=h.b/255,b=Math.max(c,p,_),T=Math.min(c,p,_),A=(b+T)/2;let U,ie,Me;return b!==T&&(Me=b-T,ie=A>
vendor: 4,767 bytes, line 1
1.5?Me/(2-b-T):Me/(b+T),U=function ni(h,d,c,p,_){return h===_?(d-c)/p+(d<c?6:0):d===_?(c-h)/p+2:(h-d)/p+4}(c,p,_,Me,b),U=60*U+.5),[0|U,ie||0,A]}function rs(h,d,c,p){return(Array.isArray(d)?h(d[0],d[1],d[2]):h(d,c,p)).map(lt)}function Js(h,d,c){return rs(nn,h,d,c)}function bs(h){return(h%360+360)%360}const Ai={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"},Qi={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 ls;const Ms=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Wn=h=>h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055,hi=h=>h<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4);function Ve(h,d,c){if(h){let p=ei(h);p[d]=Math.max(0,Math.min(p[d]+p[d]*c,0===d?360:1)),p=Js(p),h.r=p[0],h.g=p[1],h.b=p[2]}}function he(h,d){return h&&Object.assign(d||{},h)}function we(h){var d={r:0,g:0,b:0,a:255};return Array.isArray(h)?h.length>=3&&(d={r:h[0],g:h[1],b:h[2],a:255},h.length>3&&(d.a=lt(h[3]))):(d=he(h,{r:0,g:0,b:0,a:1})).a=lt(d.a),d}function Ne(h){return"r"===h.charAt(0)?function ki(h){const d=Ms.exec(h);let p,_,b,c=255;if(d){if(d[7]!==p){const T=+d[7];c=d[8]?wt(T):pt(255*T,0,255)}return p=+d[1],_=+d[3],b=+d[5],p=255&(d[2]?wt(p):pt(p,0,255)),_=255&(d[4]?wt(_):pt(_,0,255)),b=255&(d[6]?wt(b):pt(b,0,255)),{r:p,g:_,b,a:c}}}(h):function Is(h){const d=Qt.exec(h);let p,c=255;if(!d)return;d[5]!==p&&(c=d[6]?wt(+d[5]):lt(+d[5]));const _=bs(+d[2]),b=+d[3]/100,T=+d[4]/100;return p="hwb"===d[1]?function Ss(h,d,c){return rs(ai,h,d,c)}(_,b,T):"hsv"===d[1]?function Mi(h,d,c){return rs(dn,h,d,c)}(_,b,T):Js(_,b,T),{r:p[0],g:p[1],b:p[2],a:c}}(h)}class vt{constructor(d){if(d instanceof vt)return d;const c=typeof d;let p;"object"===c?p=we(d):"string"===c&&(p=function Ct(h){var c,d=h.length;return"#"===h[0]&&(4===d||5===d?c={r:255&17*ht[h[1]],g:255&17*ht[h[2]],b:255&17*ht[h[3]],a:5===d?17*ht[h[4]]:255}:(7===d||9===d)&&(c={r:ht[h[1]]<<4|ht[h[2]],g:ht[h[3]]<<4|ht[h[4]],b:ht[h[5]]<<4|ht[h[6]],a:9===d?ht[h[7]]<<4|ht[h[8]]:255})),c}(d)||function ps(h){ls||(ls=function Li(){const h={},d=Object.keys(Qi),c=Object.keys(Ai);let p,_,b,T,A;for(p=0;p<d.length;p++){for(T=A=d[p],_=0;_<c.length;_++)b=c[_],A=A.replace(b,Ai[b]);b=parseInt(Qi[T],16),h[A]=[b>>16&255,b>>8&255,255&b]}return h}(),ls.transparent=[0,0,0,0]);const d=ls[h.toLowerCase()];return d&&{r:d[0],g:d[1],b:d[2],a:4===d.length?d[3]:255}}
vendor: 3,154 bytes, line 1
1(d)||Ne(d)),this._rgb=p,this._valid=!!p}get valid(){return this._valid}get rgb(){var d=he(this._rgb);return d&&(d.a=xt(d.a)),d}set rgb(d){this._rgb=we(d)}rgbString(){return this._valid?function sn(h){return h&&(h.a<255?`rgba(${h.r}, ${h.g}, ${h.b}, ${xt(h.a)})`:`rgb(${h.r}, ${h.g}, ${h.b})`)}(this._rgb):void 0}hexString(){return this._valid?function Tt(h){var d=(h=>En(h.r)&&En(h.g)&&En(h.b)&&En(h.a))(h)?Jt:Dn;return h?"#"+d(h.r)+d(h.g)+d(h.b)+((h,d)=>h<255?d(h):"")(h.a,d):void 0}(this._rgb):void 0}hslString(){return this._valid?function Ji(h){if(!h)return;const d=ei(h),c=d[0],p=$e(d[1]),_=$e(d[2]);return h.a<255?`hsla(${c}, ${p}%, ${_}%, ${xt(h.a)})`:`hsl(${c}, ${p}%, ${_}%)`}(this._rgb):void 0}mix(d,c){if(d){const p=this.rgb,_=d.rgb;let b;const T=c===b?.5:c,A=2*T-1,U=p.a-_.a,ie=((A*U==-1?A:(A+U)/(1+A*U))+1)/2;b=1-ie,p.r=255&ie*p.r+b*_.r+.5,p.g=255&ie*p.g+b*_.g+.5,p.b=255&ie*p.b+b*_.b+.5,p.a=T*p.a+(1-T)*_.a,this.rgb=p}return this}interpolate(d,c){return d&&(this._rgb=function fs(h,d,c){const p=hi(xt(h.r)),_=hi(xt(h.g)),b=hi(xt(h.b));return{r:lt(Wn(p+c*(hi(xt(d.r))-p))),g:lt(Wn(_+c*(hi(xt(d.g))-_))),b:lt(Wn(b+c*(hi(xt(d.b))-b))),a:h.a+c*(d.a-h.a)}}(this._rgb,d._rgb,c)),this}clone(){return new vt(this.rgb)}alpha(d){return this._rgb.a=lt(d),this}clearer(d){return this._rgb.a*=1-d,this}greyscale(){const d=this._rgb,c=Pt(.3*d.r+.59*d.g+.11*d.b);return d.r=d.g=d.b=c,this}opaquer(d){return this._rgb.a*=1+d,this}negate(){const d=this._rgb;return d.r=255-d.r,d.g=255-d.g,d.b=255-d.b,this}lighten(d){return Ve(this._rgb,2,d),this}darken(d){return Ve(this._rgb,2,-d),this}saturate(d){return Ve(this._rgb,1,d),this}desaturate(d){return Ve(this._rgb,1,-d),this}rotate(d){return function Yn(h,d){var c=ei(h);c[0]=bs(c[0]+d),c=Js(c),h.r=c[0],h.g=c[1],h.b=c[2]}(this._rgb,d),this}}function rn(h){return new vt(h)}function hn(h){if(h&&"object"==typeof h){const d=h.toString();return"[object CanvasPattern]"===d||"[object CanvasGradient]"===d}return!1}function Gn(h){return hn(h)?h:rn(h)}function Xn(h){return hn(h)?h:rn(h).saturate(.5).darken(.1).hexString()}const ji=Object.create(null),Ni=Object.create(null);function xi(h,d){if(!d)return h;const c=d.split(".");for(let p=0,_=c.length;p<_;++p){const b=c[p];h=h[b]||(h[b]=Object.create(null))}return h}function ms(h,d,c){return"string"==typeof d?W(xi(h,d),c):W(xi(h,""),d)}var Qn=new class Qs{constructor(d){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=c=>c.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={},this.hoverBackgroundColor=(c,p)=>Xn(p.backgroundColor),this.hoverBorderColor=(c,p)=>Xn(p.borderColor),this.hoverColor=(c,p)=>Xn(p.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={}
vendor: 4,215 bytes, line 1
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(d)}set(d,c){return ms(this,d,c)}get(d){return xi(this,d)}describe(d,c){return ms(Ni,d,c)}override(d,c){return ms(ji,d,c)}route(d,c,p,_){const b=xi(this,d),T=xi(this,p),A="_"+c;Object.defineProperties(b,{[A]:{value:b[c],writable:!0},[c]:{enumerable:!0,get(){const U=this[A],ie=T[_];return x(U)?Object.assign({},ie,U):I(U,ie)},set(U){this[A]=U}}})}}({_scriptable:h=>!h.startsWith("on"),_indexable:h=>"events"!==h,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function qs(h,d,c,p,_){let b=d[_];return b||(b=d[_]=h.measureText(_).width,c.push(_)),b>p&&(p=b),p}function Ii(h,d,c,p){let _=(p=p||{}).data=p.data||{},b=p.garbageCollect=p.garbageCollect||[];p.font!==d&&(_=p.data={},b=p.garbageCollect=[],p.font=d),h.save(),h.font=d;let T=0;const A=c.length;let U,ie,Me,ke,tt;for(U=0;U<A;U++)if(ke=c[U],null!=ke&&!0!==D(ke))T=qs(h,_,b,T,ke);else if(D(ke))for(ie=0,Me=ke.length;ie<Me;ie++)tt=ke[ie],null!=tt&&!D(tt)&&(T=qs(h,_,b,T,tt));h.restore();const st=b.length/2;if(st>c.length){for(U=0;U<st;U++)delete _[b[U]];b.splice(0,st)}return T}function Mn(h,d,c){const p=h.currentDevicePixelRatio,_=0!==c?Math.max(c/2,.5):0;return Math.round((d-_)*p)/p+_}function qi(h,d){(d=d||h.getContext("2d")).save(),d.resetTransform(),d.clearRect(0,0,h.width,h.height),d.restore()}function Xs(h,d,c,p){Ti(h,d,c,p,null)}function Ti(h,d,c,p,_){let b,T,A,U,ie,Me;const ke=d.pointStyle,tt=d.rotation,st=d.radius;let ot=(tt||0)*Ee;if(ke&&"object"==typeof ke&&(b=ke.toString(),"[object HTMLImageElement]"===b||"[object HTMLCanvasElement]"===b))return h.save(),h.translate(c,p),h.rotate(ot),h.drawImage(ke,-ke.width/2,-ke.height/2,ke.width,ke.height),void h.restore();if(!(isNaN(st)||st<=0)){switch(h.beginPath(),ke){default:_?h.ellipse(c,p,_/2,st,0,0,X):h.arc(c,p,st,0,X),h.closePath();break;case"triangle":h.moveTo(c+Math.sin(ot)*st,p-Math.cos(ot)*st),ot+=at,h.lineTo(c+Math.sin(ot)*st,p-Math.cos(ot)*st),ot+=at,h.lineTo(c+Math.sin(ot)*st,p-Math.cos(ot)*st),h.closePath();break;case"rectRounded":ie=.516*st,U=st-ie,T=Math.cos(ot+nt)*U,A=Math.sin(ot+nt)*U,h.arc(c-T,p-A,ie,ot-K,ot-ye),h.arc(c+A,p-T,ie,ot-ye,ot),h.arc(c+T,p+A,ie,ot,ot+ye),h.arc(c-A,p+T,ie,ot+ye,ot+K),h.closePath();break;case"rect":if(!tt){U=Math.SQRT1_2*st,Me=_?_/2:U,h.rect(c-Me,p-U,2*Me,2*U);break}ot+=nt;case"rectRot":T=Math.cos(ot)*st,A=Math.sin(ot)*st,h.moveTo(c-T,p-A),h.lineTo(c+A,p-T),h.lineTo(c+T,p+A),h.lineTo(c-A,p+T),h.closePath();break;case"crossRot":ot+=nt;case"cross":T=Math.cos(ot)*st,A=Math.sin(ot)*st,h.moveTo(c-T,p-A),h.lineTo(c+T,p+A),h.moveTo(c+A,p-T),h.lineTo(c-A,p+T);break;case"star":T=Math.cos(ot)*st,A=Math.sin(ot)*st,h.moveTo(c-T,p-A),h.lineTo(c+T,p+A),h.moveTo(c+A,p-T),h.lineTo(c-A,p+T),ot+=nt,T=Math.cos(ot)*st,A=Math.sin(ot)*st,h.moveTo(c-T,p-A),h.lineTo(c+T,p+A),h.moveTo(c+A,p-T),h.lineTo(c-A,p+T);break;case"line":T=_?_/2:Math.cos(ot)*st,A=Math.sin(ot)*st,h.moveTo(c-T,p-A),h.lineTo(c+T,p+A);break;case"dash":h.moveTo(c,p),h.lineTo(c+Math.cos(ot)*st,p+Math.sin(ot)*st)}h.fill(),d.borderWidth>0&&h.stroke()}}function gs(h,d,c){return c=c||.5,!d||h&&h.x>d.left-c&&h.x<d.right+c&&h.y>d.top-c&&h.y<d.bottom+c}function Ns(h,d){h.save(),h.beginPath(),h.rect(d.left,d.top,d.right-d.left,d.bottom-d.top),h.clip()}function Xi(h){h.restore()}function Yr(h,d,c,p,_){if(!d)return h.lineTo(c.x,c.y);if("middle"===_){const b=(d.x+c.x)/2;h.lineTo(b,d.y),h.lineTo(b,c.y)}else"after"===_!=!!p?h.lineTo(d.x,c.y):h.lineTo(c.x,d.y);h.lineTo(c.x,c.y)}function os(h,d,c,p){if(!d)return h.lineTo(c.x,c.y);h.bezierCurveTo(p?d.cp1x:d.cp2x,p?d.cp1y:d.cp2y,p?c.cp2x:c.cp1x,p?c.cp2y:c.cp1y,c.x,c.y)}function $i(h,d,c,p,_,b={}){const T=D(d)?d:[d],A=b.strokeWidth>0&&""!==b.strokeColor;let U,ie;for(h.save(),h.font=_.string,function As(h,d){d.translation&&h.translate(d.translation[0],d.translation[1]),s(d.rotation)||h.rotate(d.rotation),d.color&&(h.fillStyle=d.color),d.textAlign&&(h.textAlign=d.textAlign),d.textBaseline&&(h.textBaseline=d.textBaseline)}(h,b),U=0;U<T.length;++U)ie=T[U],A&&(b.strokeColor&&(h.strokeStyle=b.strokeColor),s(b.strokeWidth)||(h.lineWidth=b.strokeWidth),h.strokeText(ie,c,p,b.maxWidth)),h.fillText(ie,c,p,b.maxWidth),Bs(h,c,p,ie,b),p+=_.lineHeight;
vendor: 4,658 bytes, line 1
1h.restore()}function Bs(h,d,c,p,_){if(_.strikethrough||_.underline){const b=h.measureText(p),T=d-b.actualBoundingBoxLeft,A=d+b.actualBoundingBoxRight,ie=c+b.actualBoundingBoxDescent,Me=_.strikethrough?(c-b.actualBoundingBoxAscent+ie)/2:ie;h.strokeStyle=h.fillStyle,h.beginPath(),h.lineWidth=_.decorationWidth||2,h.moveTo(T,Me),h.lineTo(A,Me),h.stroke()}}function ks(h,d){const{x:c,y:p,w:_,h:b,radius:T}=d;h.arc(c+T.topLeft,p+T.topLeft,T.topLeft,-ye,K,!0),h.lineTo(c,p+b-T.bottomLeft),h.arc(c+T.bottomLeft,p+b-T.bottomLeft,T.bottomLeft,K,ye,!0),h.lineTo(c+_-T.bottomRight,p+b),h.arc(c+_-T.bottomRight,p+b-T.bottomRight,T.bottomRight,ye,0,!0),h.lineTo(c+_,p+T.topRight),h.arc(c+_-T.topRight,p+T.topRight,T.topRight,0,-ye,!0),h.lineTo(c+T.topLeft,p)}const ts=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),Jr=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function sr(h,d){const c=(""+h).match(ts);if(!c||"normal"===c[1])return 1.2*d;switch(h=+c[2],c[3]){case"px":return h;case"%":h/=100}return d*h}const oo=h=>+h||0;function Dr(h,d){const c={},p=x(d),_=p?Object.keys(d):d,b=x(h)?p?T=>I(h[T],h[d[T]]):T=>h[T]:()=>h;for(const T of _)c[T]=oo(b(T));return c}function Vr(h){return Dr(h,{top:"y",right:"x",bottom:"y",left:"x"})}function dr(h){return Dr(h,["topLeft","topRight","bottomLeft","bottomRight"])}function Gi(h){const d=Vr(h);return d.width=d.left+d.right,d.height=d.top+d.bottom,d}function Ki(h,d){let c=I((h=h||{}).size,(d=d||Qn.font).size);"string"==typeof c&&(c=parseInt(c,10));let p=I(h.style,d.style);p&&!(""+p).match(Jr)&&(console.warn('Invalid font style specified: "'+p+'"'),p="");const _={family:I(h.family,d.family),lineHeight:sr(I(h.lineHeight,d.lineHeight),c),size:c,style:p,weight:I(h.weight,d.weight),string:""};return _.string=function ir(h){return!h||s(h.size)||s(h.family)?null:(h.style?h.style+" ":"")+(h.weight?h.weight+" ":"")+h.size+"px "+h.family}(_),_}function rr(h,d,c,p){let b,T,A,_=!0;for(b=0,T=h.length;b<T;++b)if(A=h[b],void 0!==A&&(void 0!==d&&"function"==typeof A&&(A=A(d),_=!1),void 0!==c&&D(A)&&(A=A[c%A.length],_=!1),void 0!==A))return p&&!_&&(p.cacheable=!1),A}function Os(h,d){return Object.assign(Object.create(h),d)}function er(h,d=[""],c=h,p,_=(()=>h[0])){be(p)||(p=H("_fallback",h));const b={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:h,_rootScopes:c,_fallback:p,_getTarget:_,override:T=>er([T,...h],d,c,p)};return new Proxy(b,{deleteProperty:(T,A)=>(delete T[A],delete T._keys,delete h[0][A],!0),get:(T,A)=>hr(T,A,()=>function gt(h,d,c,p){let _;for(const b of d)if(_=H(Qr(b,h),c),be(_))return qr(h,_)?pr(c,p,h,_):_}(A,d,h,T)),getOwnPropertyDescriptor:(T,A)=>Reflect.getOwnPropertyDescriptor(T._scopes[0],A),getPrototypeOf:()=>Reflect.getPrototypeOf(h[0]),has:(T,A)=>xe(T).includes(A),ownKeys:T=>xe(T),set(T,A,U){const ie=T._storage||(T._storage=_());return T[A]=ie[A]=U,delete T._keys,!0}})}function zr(h,d,c,p){const _={_cacheable:!1,_proxy:h,_context:d,_subProxy:c,_stack:new Set,_descriptors:Ir(h,p),setContext:b=>zr(h,b,c,p),override:b=>zr(h.override(b),d,c,p)};return new Proxy(_,{deleteProperty:(b,T)=>(delete b[T],delete h[T],!0),get:(b,T,A)=>hr(b,T,()=>function Ar(h,d,c){const{_proxy:p,_context:_,_subProxy:b,_descriptors:T}=h;let A=p[d];return Qe(A)&&T.isScriptable(d)&&(A=function ao(h,d,c,p){const{_proxy:_,_context:b,_subProxy:T,_stack:A}=c;if(A.has(h))throw new Error("Recursion detected: "+Array.from(A).join("->")+"->"+h);return A.add(h),d=d(b,T||p),A.delete(h),qr(h,d)&&(d=pr(_._scopes,_,h,d)),d}(d,A,h,c)),D(A)&&A.length&&(A=function Mo(h,d,c,p){const{_proxy:_,_context:b,_subProxy:T,_descriptors:A}=c;if(be(b.index)&&p(h))d=d[b.index%d.length];else if(x(d[0])){const U=d,ie=_._scopes.filter(Me=>Me!==U);d=[];for(const Me of U){const ke=pr(ie,_,h,Me);d.push(zr(ke,b,T&&T[h],A))}}return d}(d,A,h,T.isIndexable)),qr(d,A)&&(A=zr(A,_,b&&b[d],T)),A}(b,T,A)),getOwnPropertyDescriptor:(b,T)=>b._descriptors.allKeys?Reflect.has(h,T)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(h,T),getPrototypeOf:()=>Reflect.getPrototypeOf(h),has:(b,T)=>Reflect.has(h,T),ownKeys:()=>Reflect.ownKeys(h),set:(b,T,A)=>(h[T]=A,delete b[T],!0)})}function Ir(h,d={scriptable:!0,indexable:!0}){const{_scriptable:c=d.scriptable,_indexable:p=d.indexable,_allKeys:_=d.allKeys}=h;return{allKeys:_,scriptable:c,indexable:p,isScriptable:Qe(c)?c:()=>c,isIndexable:Qe(p)?p:()=>p}}const Qr=(h,d)=>h?h+_e(d):d,qr=(h,d)=>x(d)&&"adapters"!==h&&(null===Object.getPrototypeOf(d)||d.constructor===Object);function hr(h,d,c){if(Object.prototype.hasOwnProperty.call(h,d))return h[d];const p=c();return h[d]=p,p}function Ws(h,d,c){return Qe(h)?h(d,c):h}const Vs=(h,d)=>
1!0===h?d:"string"==typeof h?O(d,h):void 0;function Xr(h,d,c,p,_){for(const b of d){const T=Vs(c,b);if(T){h.add(T);const A=Ws(T._fallback,c,_);if(be(A)&&A!==c&&A!==p)return A}else if(!1===T&&be(p)&&c!==p)return null}return!1}function pr(h,d,c,p){const _=d._rootScopes,b=Ws(d._fallback,c,p),T=[...h,..._],A=new Set;A.add(p);let U=kr(A,T,c,b||c,p);return!(null===U||be(b)&&b!==c&&(U=kr(A,T,b,U,p),null===U))&&er(Array.from(A),[""],_,b,()=>function He(h,d,c){const p=h._getTarget();d in p||(p[d]={});const _=p[d];return D(_)&&x(c)?c:_}(d,c,p))}function kr(h,d,c,p,_){for(;c;)c=Xr(h,d,c,p,_);return c}function H(h,d){for(const c of d){if(!c)continue;const p=c[h];if(be(p))return p}}function xe(h){let d=h._keys;return d||(d=h._keys=function Fe(h){const d=new Set;for(const c of h)for(const p of Object.keys(c).filter(_=>!_.startsWith("_")))d.add(p);return Array.from(d)}(h._scopes)),d}function et(h,d,c,p){const{iScale:_}=h,{key:b="r"}=this._parsing,T=new Array(p);let A,U,ie,Me;for(A=0,U=p;A<U;++A)ie=A+c,Me=d[ie],T[A]={r:_.parse(O(Me,b),ie)};return T}const en=Number.EPSILON||1e-14,mn=(h,d)=>d<h.length&&!h[d].skip&&h[d],kn=h=>"x"===h?"y":"x";function ui(h,d,c,p){const _=h.skip?d:h,b=d,T=c.skip?d:c,A=xn(b,_),U=xn(T,b);let ie=A/(A+U),Me=U/(A+U);ie=isNaN(ie)?0:ie,Me=isNaN(Me)?0:Me;const ke=p*ie,tt=p*Me;return{previous:{x:b.x-ke*(T.x-_.x),y:b.y-ke*(T.y-_.y)},next:{x:b.x+tt*(T.x-_.x),y:b.y+tt*(T.y-_.y)}}}function Oi(h,d,c){return Math.max(Math.min(h,c),d)}function $r(h,d,c,p,_){let b,T,A,U;if(d.spanGaps&&(h=h.filter(ie=>!ie.skip)),"monotone"===d.cubicInterpolationMode)!function ns(h,d="x"){const c=kn(d),p=h.length,_=Array(p).fill(0),b=Array(p);let T,A,U,ie=mn(h,0);for(T=0;T<p;++T)if(A=U,U=ie,ie=mn(h,T+1),U){if(ie){const Me=ie[d]-U[d];_[T]=0!==Me?(ie[c]-U[c])/Me:0}b[T]=A?ie?ve(_[T-1])!==ve(_[T])?0:(_[T-1]+_[T])/2:_[T-1]:_[T]}(function $n(h,d,c){const p=h.length;let _,b,T,A,U,ie=mn(h,0);for(let Me=0;Me<p-1;++Me)if(U=ie,ie=mn(h,Me+1),U&&ie){if(mt(d[Me],0,en)){c[Me]=c[Me+1]=0;continue}_=c[Me]/d[Me],b=c[Me+1]/d[Me],A=Math.pow(_,2)+Math.pow(b,2),!(A<=9)&&(T=3/Math.sqrt(A),c[Me]=_*T*d[Me],c[Me+1]=b*T*d[Me])}})(h,_,b),function pi(h,d,c="x"){const p=kn(c),_=h.length;let b,T,A,U=mn(h,0);for(let ie=0;ie<_;++ie){if(T=A,A=U,U=mn(h,ie+1),!A)continue;const Me=A[c],ke=A[p];T&&(b=(Me-T[c])/3,A[`cp1${c}`]=Me-b,A[`cp1${p}`]=ke-b*d[ie]),U&&(b=(U[c]-Me)/3,A[`cp2${c}`]=Me+b,A[`cp2${p}`]=ke+b*d[ie])}}(h,b,d)}(h,_);else{let ie=p?h[h.length-1]:h[0];for(b=0,T=h.length;b<T;++b)A=h[b],U=ui(ie,A,h[Math.min(b+1,T-(p?0:1))%T],d.tension),A.cp1x=U.previous.x,A.cp1y=U.previous.y,A.cp2x=U.next.x,A.cp2y=U.next.y,ie=A}d.capBezierPoints&&function Ur(h,d){let c,p,_,b,T,A=gs(h[0],d);for(c=0,p=h.length;c<p;++c)T=b,b=A,A=c<p-1&&gs(h[c+1],d),b&&(_=h[c],T&&(_.cp1x=Oi(_.cp1x,d.left,d.right),_.cp1y=Oi(_.cp1y,d.top,d.bottom)),A&&(_.cp2x=Oi(_.cp2x,d.left,d.right),_.cp2y=Oi(_.cp2y,d.top,d.bottom)))}(h,c)}function fr(){return typeof window<"u"&&typeof document<"u"}function es(h){let d=h.parentNode;return d&&"[object ShadowRoot]"===d.toString()&&(d=d.host),d}function eo(h,d,c){let p;return"string"==typeof h?(p=parseInt(h,10),-1!==h.indexOf("%")&&(p=p/100*d.parentNode[c])):p=h,p}const mr=h=>window.getComputedStyle(h,null),tr=["top","right","bottom","left"];function Cr(h,d,c){const p={};c=c?"-"+c:"";for(let _=0;_<4;_++){const b=tr[_];p[b]=parseFloat(h[d+"-"+b+c])||0}return p.width=p.left+p.right,p.height=p.top+p.bottom,p}const To=(h,d,c)=>(h>0||d>0)&&(!c||!c.shadowRoot);function Hs(h,d){if("native"in h)return h;const{canvas:c,currentDevicePixelRatio:p}=d,_=mr(c),b="border-box"===_.boxSizing,T=Cr(_,"padding"),A=Cr(_,"border","width"),{x:U,y:ie,box:Me}=function Kn(h,d){const c=h.touches,p=c&&c.length?c[0]:h,{offsetX:_,offsetY:b}=p;let A,U,T=!1;if(To(_,b,h.target))A=_,U=b;else{const ie=d.getBoundingClientRect();A=p.clientX-ie.left,U=p.clientY-ie.top,T=!0}return{x:A,y:U,box:T}}(h,c),ke=T.left+(Me&&A.left),tt=T.top+(Me&&A.top);let{width:st,height:ot}=d;return b&&(st-=T.width+A.width,ot-=T.height+A.height),{x:Math.round((U-ke)/st*c.width/p),y:Math.round((ie-tt)/ot*c.height/p)}}const ge=h=>Math.round(10*h)/10;function Ze(h,d,c){const p=d||1,_=Math.floor(h.height*p),b=Math.floor(h.width*p);h.height=_/p,h.width=b/p;const T=h.canvas;
1return T.style&&(c||!T.style.height&&!T.style.width)&&(T.style.height=`${h.height}px`,T.style.width=`${h.width}px`),(h.currentDevicePixelRatio!==p||T.height!==_||T.width!==b)&&(h.currentDevicePixelRatio=p,T.height=_,T.width=b,h.ctx.setTransform(p,0,0,p,0,0),!0)}const Gt=function(){let h=!1;try{const d={get passive(){return h=!0,!1}};window.addEventListener("test",null,d),window.removeEventListener("test",null,d)}catch{}return h}();function Nn(h,d){const c=function Or(h,d){return mr(h).getPropertyValue(d)}(h,d),p=c&&c.match(/^(\d+)(\.\d+)?px$/);return p?+p[1]:void 0}function Hi(h,d,c,p){return{x:h.x+c*(d.x-h.x),y:h.y+c*(d.y-h.y)}}function Xt(h,d,c,p){return{x:h.x+c*(d.x-h.x),y:"middle"===p?c<.5?h.y:d.y:"after"===p?c<1?h.y:d.y:c>0?d.y:h.y}}function di(h,d,c,p){const _={x:h.cp2x,y:h.cp2y},b={x:d.cp1x,y:d.cp1y},T=Hi(h,_,c),A=Hi(_,b,c),U=Hi(b,d,c),ie=Hi(T,A,c),Me=Hi(A,U,c);return Hi(ie,Me,c)}const xr=new Map;function as(h,d,c){return function to(h,d){d=d||{};const c=h+JSON.stringify(d);let p=xr.get(c);return p||(p=new Intl.NumberFormat(h,d),xr.set(c,p)),p}(d,c).format(h)}const Sa=function(h,d){return{x:c=>h+h+d-c,setWidth(c){d=c},textAlign:c=>"center"===c?c:"right"===c?"left":"right",xPlus:(c,p)=>c-p,leftForLtr:(c,p)=>c-p}},Eo=function(){return{x:h=>h,setWidth(h){},textAlign:h=>h,xPlus:(h,d)=>h+d,leftForLtr:(h,d)=>h}};function Ps(h,d,c){return h?Sa(d,c):Eo()}function zo(h,d){let c,p;("ltr"===d||"rtl"===d)&&(c=h.canvas.style,p=[c.getPropertyValue("direction"),c.getPropertyPriority("direction")],c.setProperty("direction",d,"important"),h.prevTextDirection=p)}function Uo(h,d){void 0!==d&&(delete h.prevTextDirection,h.canvas.style.setProperty("direction",d[0],d[1]))}function Ma(h){return"angle"===h?{between:zt,compare:pn,normalize:_n}:{between:bn,compare:(d,c)=>d-c,normalize:d=>d}}function la({start:h,end:d,count:c,loop:p,style:_}){return{start:h%c,end:d%c,loop:p&&(d-h+1)%c==0,style:_}}function Cs(h,d,c){if(!c)return[h];const{property:p,start:_,end:b}=c,T=d.length,{compare:A,between:U,normalize:ie}=Ma(p),{start:Me,end:ke,loop:tt,style:st}=function $o(h,d,c){const{property:p,start:_,end:b}=c,{between:T,normalize:A}=Ma(p),U=d.length;let tt,st,{start:ie,end:Me,loop:ke}=h;if(ke){for(ie+=U,Me+=U,tt=0,st=U;tt<st&&T(A(d[ie%U][p]),_,b);++tt)ie--,Me--;ie%=U,Me%=U}return Me<ie&&(Me+=U),{start:ie,end:Me,loop:ke,style:h.style}}(h,d,c),ot=[];let Kt,on,Cn,Et=!1,Lt=null;for(let Vn=Me,Hn=Me;Vn<=ke;++Vn)on=d[Vn%T],!on.skip&&(Kt=ie(on[p]),Kt!==Cn&&(Et=U(Kt,_,b),null===Lt&&(Et||U(_,Cn,Kt)&&0!==A(_,Cn))&&(Lt=0===A(Kt,_)?Vn:Hn),null!==Lt&&(!Et||0===A(b,Kt)||U(b,Cn,Kt))&&(ot.push(la({start:Lt,end:Vn,loop:tt,count:T,style:st})),Lt=null),Hn=Vn,Cn=Kt));return null!==Lt&&ot.push(la({start:Lt,end:ke,loop:tt,count:T,style:st})),ot}function _i(h,d){const c=[],p=h.segments;for(let _=0;_<p.length;_++){const b=Cs(p[_],h.points,d);b.length&&c.push(...b)}return c}function lo(h){return{backgroundColor:h.backgroundColor,borderCapStyle:h.borderCapStyle,borderDash:h.borderDash,borderDashOffset:h.borderDashOffset,borderJoinStyle:h.borderJoinStyle,borderWidth:h.borderWidth,borderColor:h.borderColor}}function co(h,d){return d&&JSON.stringify(h)!==JSON.stringify(d)}var Rs=new class Rr{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(d,c,p,_){const T=c.duration;c.listeners[_].forEach(A=>A({chart:d,initial:c.initial,numSteps:T,currentStep:Math.min(p-c.start,T)}))}_refresh(){this._request||(this._running=!0,this._request=re.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(d=Date.now()){let c=0;this._charts.forEach((p,_)=>{if(!p.running||!p.items.length)return;const b=p.items;let U,T=b.length-1,A=!1;for(;T>=0;--T)U=b[T],U._active?(U._total>p.duration&&(p.duration=U._total),U.tick(d),A=!0):(b[T]=b[b.length-1],b.pop());A&&(_.draw(),this._notify(_,p,d,"progress")),b.length||(p.running=!1,this._notify(_,p,d,"complete"),p.initial=!1),c+=b.length}),this._lastDate=d,0===c&&(this._running=!1)}_getAnims(d){const c=this._charts;let p=c.get(d);return p||(p={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},c.set(d,p)),p}listen(d,c,p){this._getAnims(d).listeners[c].push(p)}add(d,c){!c||!c.length||this._getAnims(d).items.push(...c)}has(d){return this._getAnims(d).items.length>0}start(d){const c=this._charts.get(d);c&&(c.running=!0,c.start=Date.now(),c.duration=c.items.reduce((p,_)=>Math.max(p,_._duration),0),this._refresh())}running(d){if(!this._running)return!1;const c=this._charts.get(d);return!(!c||!c.running||!c.items.length)}stop(d){const c=this._charts.get(d);if(!c||!c.items.length)return;const p=c.items;let _=p.length-1;for(;_>=0;--_)p[_].cancel();c.items=[],this._notify(d,c,Date.now(),"complete")}
vendor: 10,310 bytes, line 1
1remove(d){return this._charts.delete(d)}};const Io="transparent",Ao={boolean:(h,d,c)=>c>.5?d:h,color(h,d,c){const p=Gn(h||Io),_=p.valid&&Gn(d||Io);return _&&_.valid?_.mix(p,c).hexString():d},number:(h,d,c)=>h+(d-h)*c};class Zo{constructor(d,c,p,_){const b=c[p];_=rr([d.to,_,b,d.from]);const T=rr([d.from,b,_]);this._active=!0,this._fn=d.fn||Ao[d.type||typeof T],this._easing=Ft[d.easing]||Ft.linear,this._start=Math.floor(Date.now()+(d.delay||0)),this._duration=this._total=Math.floor(d.duration),this._loop=!!d.loop,this._target=c,this._prop=p,this._from=T,this._to=_,this._promises=void 0}active(){return this._active}update(d,c,p){if(this._active){this._notify(!1);const _=this._target[this._prop],b=p-this._start,T=this._duration-b;this._start=p,this._duration=Math.floor(Math.max(T,d.duration)),this._total+=b,this._loop=!!d.loop,this._to=rr([d.to,c,_,d.from]),this._from=rr([d.from,_,c])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(d){const c=d-this._start,p=this._duration,_=this._prop,b=this._from,T=this._loop,A=this._to;let U;if(this._active=b!==A&&(T||c<p),!this._active)return this._target[_]=A,void this._notify(!0);c<0?this._target[_]=b:(U=c/p%2,U=T&&U>1?2-U:U,U=this._easing(Math.min(1,Math.max(0,U))),this._target[_]=this._fn(b,A,U))}wait(){const d=this._promises||(this._promises=[]);return new Promise((c,p)=>{d.push({res:c,rej:p})})}_notify(d){const c=d?"res":"rej",p=this._promises||[];for(let _=0;_<p.length;_++)p[_][c]()}}Qn.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Zr=Object.keys(Qn.animation);Qn.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:h=>"onProgress"!==h&&"onComplete"!==h&&"fn"!==h}),Qn.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qn.describe("animations",{_fallback:"animation"}),Qn.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:h=>0|h}}}});class Go{constructor(d,c){this._chart=d,this._properties=new Map,this.configure(c)}configure(d){if(!x(d))return;const c=this._properties;Object.getOwnPropertyNames(d).forEach(p=>{const _=d[p];if(!x(_))return;const b={};for(const T of Zr)b[T]=_[T];(D(_.properties)&&_.properties||[p]).forEach(T=>{(T===p||!c.has(T))&&c.set(T,b)})})}_animateOptions(d,c){const p=c.options,_=function Ea(h,d){if(!d)return;let c=h.options;if(c)return c.$shared&&(h.options=c=Object.assign({},c,{$shared:!1,$animations:{}})),c;h.options=d}(d,p);if(!_)return[];const b=this._createAnimations(_,p);return p.$shared&&function Ta(h,d){const c=[],p=Object.keys(d);for(let _=0;_<p.length;_++){const b=h[p[_]];b&&b.active()&&c.push(b.wait())}return Promise.all(c)}(d.options.$animations,p).then(()=>{d.options=p},()=>{}),b}_createAnimations(d,c){const p=this._properties,_=[],b=d.$animations||(d.$animations={}),T=Object.keys(c),A=Date.now();let U;for(U=T.length-1;U>=0;--U){const ie=T[U];if("$"===ie.charAt(0))continue;if("options"===ie){_.push(...this._animateOptions(d,c));continue}const Me=c[ie];let ke=b[ie];const tt=p.get(ie);if(ke){if(tt&&ke.active()){ke.update(tt,Me,A);continue}ke.cancel()}tt&&tt.duration?(b[ie]=ke=new Zo(tt,d,ie,Me),_.push(ke)):d[ie]=Me}return _}update(d,c){if(0===this._properties.size)return void Object.assign(d,c);const p=this._createAnimations(d,c);return p.length?(Rs.add(this._chart,p),!0):void 0}}function Wo(h,d){const c=h&&h.options||{},p=c.reverse,_=void 0===c.min?d:0,b=void 0===c.max?d:0;return{start:p?b:_,end:p?_:b}}function _s(h,d){const c=[],p=h._getSortedDatasetMetas(d);let _,b;for(_=0,b=p.length;_<b;++_)c.push(p[_].index);return c}function cs(h,d,c,p={}){const _=h.keys,b="single"===p.mode;let T,A,U,ie;if(null!==d){for(T=0,A=_.length;T<A;++T){if(U=+_[T],U===c){if(p.all)continue;break}ie=h.values[U],M(ie)&&(b||0===d||ve(d)===ve(ie))&&(d+=ie)}return d}}function Ko(h,d){const c=h&&h.options.stacked;return c||void 0===c&&void 0!==d.stack}function Qa(h,d,c){const p=h[d]||(h[d]={});return p[c]||(p[c]={})}function Da(h,d,c,p){for(const _ of d.getMatchingVisibleMetas(p).reverse()){const b=h[_.index];if(c&&b>0||!c&&b<0)return _.index}return null}function ha(h,d){const{chart:c,_cachedMeta:p}=h,_=c._stacks||(c._stacks={}),{iScale:b,vScale:T,index:A}=p,U=b.axis,ie=T.axis,Me=function ua(h,d,c){return`${h.id}.${d.id}.${c.stack||c.type}`}(b,T,p),ke=d.length;let tt;for(let st=0;st<ke;++st){const ot=d[st],{[U]:Et,[ie]:Lt}=ot;tt=(ot._stacks||(ot._stacks={}))[ie]=Qa(_,Me,Et),tt[A]=Lt,tt._top=Da(tt,T,!0,p.type),tt._bottom=Da(tt,T,!1,p.type)}}function ho(h,d){const c=h.scales;return Object.keys(c).filter(p=>c[p].axis===d).shift()}function se(h,d){const c=h.controller.index,p=h.vScale&&h.vScale.axis;if(p){d=d||h._parsed;for(const _ of d){const b=_._stacks;if(!b||void 0===b[p]||void 0===b[p][c])return;delete b[p][c]}}}const De=h=>"reset"===h||"none"===h,de=(h,d)=>d?h:Object.assign({},h);let ut=(()=>{class h{constructor(c,p){this.chart=c,this._ctx=c.ctx,this.index=p,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.initialize()}initialize(){const c=this._cachedMeta;this.configure(),this.linkScales(),c._stacked=Ko(c.vScale,c),this.addElements()}updateIndex(c){this.index!==c&&se(this._cachedMeta),this.index=c}linkScales(){const c=this.chart,p=this._cachedMeta,_=this.getDataset(),b=(tt,st,ot,Et)=>"x"===tt?st:"r"===tt?Et:ot,T=p.xAxisID=I(_.xAxisID,ho(c,"x")),A=p.yAxisID=I(_.yAxisID,ho(c,"y")),U=p.rAxisID=I(_.rAxisID,ho(c,"r")),ie=p.indexAxis,Me=p.iAxisID=b(ie,T,A,U),ke=p.vAxisID=b(ie,A,T,U);p.xScale=this.getScaleForId(T),p.yScale=this.getScaleForId(A),p.rScale=this.getScaleForId(U),p.iScale=this.getScaleForId(Me),p.vScale=this.getScaleForId(ke)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(c){return this.chart.scales[c]}_getOtherScale(c){const p=this._cachedMeta;return c===p.iScale?p.vScale:p.iScale}reset(){this._update("reset")}_destroy(){const c=this._cachedMeta;this._data&&Mt(this._data,this),c._stacked&&se(c)}_dataCheck(){const c=this.getDataset(),p=c.data||(c.data=[]),_=this._data;if(x(p))this._data=function Wi(h){const d=Object.keys(h),c=new Array(d.length);let p,_,b;for(p=0,_=d.length;p<_;++p)b=d[p],c[p]={x:b,y:h[b]};return c}(p);else if(_!==p){if(_){Mt(_,this);const b=this._cachedMeta;se(b),b._parsed=[]}p&&Object.isExtensible(p)&&function Jn(h,d){h._chartjs?h._chartjs.listeners.push(d):(Object.defineProperty(h,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[d]}}),Un.forEach(c=>{const p="_onData"+_e(c),_=h[c];Object.defineProperty(h,c,{configurable:!0,enumerable:!1,value(...b){const T=_.apply(this,b);return h._chartjs.listeners.forEach(A=>{"function"==typeof A[p]&&A[p](...b)}),T}})}))}(p,this),this._syncList=[],this._data=p}}addElements(){const c=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(c.dataset=new this.datasetElementType)}buildOrUpdateElements(c){const p=this._cachedMeta,_=this.getDataset();let b=!1;this._dataCheck();const T=p._stacked;p._stacked=Ko(p.vScale,p),p.stack!==_.stack&&(b=!0,se(p),p.stack=_.stack),this._resyncElements(c),(b||T!==p._stacked)&&ha(this,p._parsed)}configure(){const c=this.chart.config,p=c.datasetScopeKeys(this._type),_=c.getOptionScopes(this.getDataset(),p,!0);this.options=c.createResolver(_,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(c,p){const{_cachedMeta:_,_data:b}=this,{iScale:T,_stacked:A}=_,U=T.axis;let ke,tt,st,ie=0===c&&p===b.length||_._sorted,Me=c>0&&_._parsed[c-1];if(!1===this._parsing)_._parsed=b,_._sorted=!0,st=b;else{st=D(b[c])?this.parseArrayData(_,b,c,p):x(b[c])?this.parseObjectData(_,b,c,p):this.parsePrimitiveData(_,b,c,p);const ot=()=>null===tt[U]||Me&&tt[U]<Me[U];for(ke=0;ke<p;++ke)_._parsed[ke+c]=tt=st[ke],ie&&(ot()&&(ie=!1),Me=tt);_._sorted=ie}A&&ha(this,st)}parsePrimitiveData(c,p,_,b){const{iScale:T,vScale:A}=c,U=T.axis,ie=A.axis,Me=T.getLabels(),ke=T===A,tt=new Array(b);let st,ot,Et;for(st=0,ot=b;st<ot;++st)Et=st+_,tt[st]={[U]:ke||T.parse(Me[Et],Et),[ie]:A.parse(p[Et],Et)};return tt}parseArrayData(c,p,_,b){const{xScale:T,yScale:A}=c,U=new Array(b);let ie,Me,ke,tt;for(ie=0,Me=b;ie<Me;++ie)ke=ie+_,tt=p[ke],U[ie]={x:T.parse(tt[0],ke),y:A.parse(tt[1],ke)};return U}parseObjectData(c,p,_,b){const{xScale:T,yScale:A}=c,{xAxisKey:U="x",yAxisKey:ie="y"}=this._parsing,Me=new Array(b);let ke,tt,st,ot;for(ke=0,tt=b;ke<tt;++ke)st=ke+_,ot=p[st],Me[ke]={x:T.parse(O(ot,U),st),y:A.parse(O(ot,ie),st)};return Me}getParsed(c){return this._cachedMeta._parsed[c]}getDataElement(c){return this._cachedMeta.data[c]}applyStack(c,p,_){const T=this._cachedMeta,A=p[c.axis];return cs({keys:_s(this.chart,!0),values:p._stacks[c.axis]},A,T.index,{mode:_})}updateRangeFromParsed(c,p,_,b){const T=_[p.axis];let A=null===T?NaN:T;const U=b&&_._stacks[p.axis];b&&U&&(b.values=U,A=cs(b,T,this._cachedMeta.index)),c.min=Math.min(c.min,A),c.max=Math.max(c.max,A)}getMinMax(c,p){const _=this._cachedMeta,b=_._parsed,T=_._sorted&&c===_.iScale,A=b.length,U=this._getOtherScale(c),ie=((h,d,c)=>h&&!d.hidden&&d._stacked&&{keys:_s(this.chart,!0),values:null})(p,_),Me={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:ke,max:tt}=function da(h){const{min:d,max:c,minDefined:p,maxDefined:_}=h.getUserBounds();return{min:p?d:Number.NEGATIVE_INFINITY,max:_?c:Number.POSITIVE_INFINITY}}(U);let st,ot;function Et(){ot=b[st];const Lt=ot[U.axis];return!M(ot[c.axis])||ke>Lt||tt<Lt}for(st=0;st<A&&(Et()||(this.updateRangeFromParsed(Me,c,ot,ie),!T));++st);if(T)for(st=A-1;st>=0;--st)if(!Et()){this.updateRangeFromParsed(Me,c,ot,ie);break}return Me}getAllParsedValues(c){const p=this._cachedMeta._parsed,_=[];let b,T,A;for(b=0,T=p.length;b<T;++b)A=p[b][c.axis],M(A)&&_.push(A);return _}getMaxOverflow(){return!1}
vendor: 5,341 bytes, line 1
1getLabelAndValue(c){const p=this._cachedMeta,_=p.iScale,b=p.vScale,T=this.getParsed(c);return{label:_?""+_.getLabelForValue(T[_.axis]):"",value:b?""+b.getLabelForValue(T[b.axis]):""}}_update(c){const p=this._cachedMeta;this.update(c||"default"),p._clip=function Ja(h){let d,c,p,_;return x(h)?(d=h.top,c=h.right,p=h.bottom,_=h.left):d=c=p=_=h,{top:d,right:c,bottom:p,left:_,disabled:!1===h}}(I(this.options.clip,function ca(h,d,c){if(!1===c)return!1;const p=Wo(h,c),_=Wo(d,c);return{top:_.end,right:p.end,bottom:_.start,left:p.start}}(p.xScale,p.yScale,this.getMaxOverflow())))}update(c){}draw(){const c=this._ctx,_=this._cachedMeta,b=_.data||[],T=this.chart.chartArea,A=[],U=this._drawStart||0,ie=this._drawCount||b.length-U,Me=this.options.drawActiveElementsOnTop;let ke;for(_.dataset&&_.dataset.draw(c,T,U,ie),ke=U;ke<U+ie;++ke){const tt=b[ke];tt.hidden||(tt.active&&Me?A.push(tt):tt.draw(c,T))}for(ke=0;ke<A.length;++ke)A[ke].draw(c,T)}getStyle(c,p){const _=p?"active":"default";return void 0===c&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(_):this.resolveDataElementOptions(c||0,_)}getContext(c,p,_){const b=this.getDataset();let T;if(c>=0&&c<this._cachedMeta.data.length){const A=this._cachedMeta.data[c];T=A.$context||(A.$context=function Oo(h,d,c){return Os(h,{active:!1,dataIndex:d,parsed:void 0,raw:void 0,element:c,index:d,mode:"default",type:"data"})}(this.getContext(),c,A)),T.parsed=this.getParsed(c),T.raw=b.data[c],T.index=T.dataIndex=c}else T=this.$context||(this.$context=function ko(h,d){return Os(h,{active:!1,dataset:void 0,datasetIndex:d,index:d,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),T.dataset=b,T.index=T.datasetIndex=this.index;return T.active=!!p,T.mode=_,T}resolveDatasetElementOptions(c){return this._resolveElementOptions(this.datasetElementType.id,c)}resolveDataElementOptions(c,p){return this._resolveElementOptions(this.dataElementType.id,p,c)}_resolveElementOptions(c,p="default",_){const b="active"===p,T=this._cachedDataOpts,A=c+"-"+p,U=T[A],ie=this.enableOptionSharing&&be(_);if(U)return de(U,ie);const Me=this.chart.config,ke=Me.datasetElementScopeKeys(this._type,c),tt=b?[`${c}Hover`,"hover",c,""]:[c,""],st=Me.getOptionScopes(this.getDataset(),ke),ot=Object.keys(Qn.elements[c]),Lt=Me.resolveNamedOptions(st,ot,()=>this.getContext(_,b),tt);return Lt.$shared&&(Lt.$shared=ie,T[A]=Object.freeze(de(Lt,ie))),Lt}_resolveAnimations(c,p,_){const b=this.chart,T=this._cachedDataOpts,A=`animation-${p}`,U=T[A];if(U)return U;let ie;if(!1!==b.options.animation){const ke=this.chart.config,tt=ke.datasetAnimationScopeKeys(this._type,p),st=ke.getOptionScopes(this.getDataset(),tt);ie=ke.createResolver(st,this.getContext(c,_,p))}const Me=new Go(b,ie&&ie.animations);return ie&&ie._cacheable&&(T[A]=Object.freeze(Me)),Me}getSharedOptions(c){if(c.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},c))}includeOptions(c,p){return!p||De(c)||this.chart._animationsDisabled}_getSharedOptions(c,p){const _=this.resolveDataElementOptions(c,p),b=this._sharedOptions,T=this.getSharedOptions(_),A=this.includeOptions(p,T)||T!==b;return this.updateSharedOptions(T,p,_),{sharedOptions:T,includeOptions:A}}updateElement(c,p,_,b){De(b)?Object.assign(c,_):this._resolveAnimations(p,b).update(c,_)}updateSharedOptions(c,p,_){c&&!De(p)&&this._resolveAnimations(void 0,p).update(c,_)}_setStyle(c,p,_,b){c.active=b;const T=this.getStyle(p,b);this._resolveAnimations(p,_,b).update(c,{options:!b&&this.getSharedOptions(T)||T})}removeHoverStyle(c,p,_){this._setStyle(c,_,"active",!1)}setHoverStyle(c,p,_){this._setStyle(c,_,"active",!0)}_removeDatasetHoverStyle(){const c=this._cachedMeta.dataset;c&&this._setStyle(c,void 0,"active",!1)}_setDatasetHoverStyle(){const c=this._cachedMeta.dataset;c&&this._setStyle(c,void 0,"active",!0)}_resyncElements(c){const p=this._data,_=this._cachedMeta.data;for(const[U,ie,Me]of this._syncList)this[U](ie,Me);this._syncList=[];const b=_.length,T=p.length,A=Math.min(T,b);A&&this.parse(0,A),T>b?this._insertElements(b,T-b,c):T<b&&this._removeElements(T,b-T)}_insertElements(c,p,_=!0){const b=this._cachedMeta,T=b.data,A=c+p;let U;const ie=Me=>{for(Me.length+=p,U=Me.length-1;U>=A;U--)Me[U]=Me[U-p]};for(ie(T),U=c;U<A;++U)T[U]=new this.dataElementType;this._parsing&&ie(b._parsed),this.parse(c,p),_&&this.updateElements(T,c,p,"reset")}updateElements(c,p,_,b){}_removeElements(c,p){const _=this._cachedMeta;if(this._parsing){const b=_._parsed.splice(c,p);_._stacked&&se(_,b)}_.data.splice(c,p)}_sync(c){if(this._parsing)this._syncList.push(c);else{const[p,_,b]=c;this[p](_,b)}this.chart._dataChanges.push([this.index,...c])}_onDataPush(){const c=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-c,c])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(c,p){p&&this._sync(["_removeElements",c,p]);const _=arguments.length-2;_&&this._sync(["_insertElements",c,_])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}return h.defaults={},h})();function an(h){const d=h.iScale,c=function Wt(h,d){if(!h._cache.$bar){const c=h.getMatchingVisibleMetas(d);let p=[];for(let _=0,b=c.length;_<b;_++)p=p.concat(c[_].controller.getAllParsedValues(h));h._cache.$bar=Vt(p.sort((_,b)=>_-b))}return h._cache.$bar}
vendor: 8,470 bytes, line 1
1(d,h.type);let _,b,T,A,p=d._length;const U=()=>{32767===T||-32768===T||(be(A)&&(p=Math.min(p,Math.abs(T-A)||p)),A=T)};for(_=0,b=c.length;_<b;++_)T=d.getPixelForValue(c[_]),U();for(A=void 0,_=0,b=d.ticks.length;_<b;++_)T=d.getPixelForTick(_),U();return p}function bi(h,d,c,p){return D(h)?function Ri(h,d,c,p){const _=c.parse(h[0],p),b=c.parse(h[1],p),T=Math.min(_,b),A=Math.max(_,b);let U=T,ie=A;Math.abs(T)>Math.abs(A)&&(U=A,ie=T),d[c.axis]=ie,d._custom={barStart:U,barEnd:ie,start:_,end:b,min:T,max:A}}(h,d,c,p):d[c.axis]=c.parse(h,p),d}function fi(h,d,c,p){const _=h.iScale,b=h.vScale,T=_.getLabels(),A=_===b,U=[];let ie,Me,ke,tt;for(ie=c,Me=c+p;ie<Me;++ie)tt=d[ie],ke={},ke[_.axis]=A||_.parse(T[ie],ie),U.push(bi(tt,ke,b,ie));return U}function Bi(h){return h&&void 0!==h.barStart&&void 0!==h.barEnd}function _r(h,d,c,p){let _=d.borderSkipped;const b={};if(!_)return void(h.borderSkipped=b);if(!0===_)return void(h.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:T,end:A,reverse:U,top:ie,bottom:Me}=function us(h){let d,c,p,_,b;return h.horizontal?(d=h.base>h.x,c="left",p="right"):(d=h.base<h.y,c="bottom",p="top"),d?(_="end",b="start"):(_="start",b="end"),{start:c,end:p,reverse:d,top:_,bottom:b}}(h);"middle"===_&&c&&(h.enableBorderRadius=!0,(c._top||0)===p?_=ie:(c._bottom||0)===p?_=Me:(b[vs(Me,T,A,U)]=!0,_=ie)),b[vs(_,T,A,U)]=!0,h.borderSkipped=b}function vs(h,d,c,p){return p?(h=function vr(h,d,c){return h===d?c:h===c?d:h}(h,d,c),h=zs(h,c,d)):h=zs(h,d,c),h}function zs(h,d,c){return"start"===h?d:"end"===h?c:h}function or(h,{inflateAmount:d},c){h.inflateAmount="auto"===d?1===c?.33:0:d}ut.prototype.datasetElementType=null,ut.prototype.dataElementType=null;let Fr=(()=>{class h extends ut{parsePrimitiveData(c,p,_,b){return fi(c,p,_,b)}parseArrayData(c,p,_,b){return fi(c,p,_,b)}parseObjectData(c,p,_,b){const{iScale:T,vScale:A}=c,{xAxisKey:U="x",yAxisKey:ie="y"}=this._parsing,Me="x"===T.axis?U:ie,ke="x"===A.axis?U:ie,tt=[];let st,ot,Et,Lt;for(st=_,ot=_+b;st<ot;++st)Lt=p[st],Et={},Et[T.axis]=T.parse(O(Lt,Me),st),tt.push(bi(O(Lt,ke),Et,A,st));return tt}updateRangeFromParsed(c,p,_,b){super.updateRangeFromParsed(c,p,_,b);const T=_._custom;T&&p===this._cachedMeta.vScale&&(c.min=Math.min(c.min,T.min),c.max=Math.max(c.max,T.max))}getMaxOverflow(){return 0}getLabelAndValue(c){const p=this._cachedMeta,{iScale:_,vScale:b}=p,T=this.getParsed(c),A=T._custom,U=Bi(A)?"["+A.start+", "+A.end+"]":""+b.getLabelForValue(T[b.axis]);return{label:""+_.getLabelForValue(T[_.axis]),value:U}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(c){const p=this._cachedMeta;this.updateElements(p.data,0,p.data.length,c)}updateElements(c,p,_,b){const T="reset"===b,{index:A,_cachedMeta:{vScale:U}}=this,ie=U.getBasePixel(),Me=U.isHorizontal(),ke=this._getRuler(),{sharedOptions:tt,includeOptions:st}=this._getSharedOptions(p,b);for(let ot=p;ot<p+_;ot++){const Et=this.getParsed(ot),Lt=T||s(Et[U.axis])?{base:ie,head:ie}:this._calculateBarValuePixels(ot),Kt=this._calculateBarIndexPixels(ot,ke),on=(Et._stacks||{})[U.axis],Cn={horizontal:Me,base:Lt.base,enableBorderRadius:!on||Bi(Et._custom)||A===on._top||A===on._bottom,x:Me?Lt.head:Kt.center,y:Me?Kt.center:Lt.head,height:Me?Kt.size:Math.abs(Lt.size),width:Me?Math.abs(Lt.size):Kt.size};st&&(Cn.options=tt||this.resolveDataElementOptions(ot,c[ot].active?"active":b));const gn=Cn.options||c[ot].options;_r(Cn,gn,on,A),or(Cn,gn,ke.ratio),this.updateElement(c[ot],ot,Cn,b)}}_getStacks(c,p){const{iScale:_}=this._cachedMeta,b=_.getMatchingVisibleMetas(this._type).filter(ie=>ie.controller.options.grouped),T=_.options.stacked,A=[],U=ie=>{const Me=ie.controller.getParsed(p),ke=Me&&Me[ie.vScale.axis];if(s(ke)||isNaN(ke))return!0};for(const ie of b)if((void 0===p||!U(ie))&&((!1===T||-1===A.indexOf(ie.stack)||void 0===T&&void 0===ie.stack)&&A.push(ie.stack),ie.index===c))break;return A.length||A.push(void 0),A}_getStackCount(c){return this._getStacks(void 0,c).length}_getStackIndex(c,p,_){const b=this._getStacks(c,_),T=void 0!==p?b.indexOf(p):-1;return-1===T?b.length-1:T}_getRuler(){const c=this.options,p=this._cachedMeta,_=p.iScale,b=[];let T,A;for(T=0,A=p.data.length;T<A;++T)b.push(_.getPixelForValue(this.getParsed(T)[_.axis],T));const U=c.barThickness;return{min:U||an(p),pixels:b,start:_._startPixel,end:_._endPixel,stackCount:this._getStackCount(),scale:_,grouped:c.grouped,ratio:U?1:c.categoryPercentage*c.barPercentage}}_calculateBarValuePixels(c){const{_cachedMeta:{vScale:p,_stacked:_},options:{base:b,minBarLength:T}}=this,A=b||0,U=this.getParsed(c),ie=U._custom,Me=Bi(ie);let ot,Et,ke=U[p.axis],tt=0,st=_?this.applyStack(p,U,_):ke;st!==ke&&(tt=st-ke,st=ke),Me&&(ke=ie.barStart,st=ie.barEnd-ie.barStart,0!==ke&&ve(ke)!==ve(ie.barEnd)&&(tt=0),tt+=ke);const Lt=s(b)||Me?tt:b;let Kt=p.getPixelForValue(Lt);if(ot=this.chart.getDataVisibility(c)?p.getPixelForValue(tt+st):Kt,Et=ot-Kt,Math.abs(Et)<T){Et=function Ei(h,d,c){return 0!==h?ve(h):(d.isHorizontal()?1:-1)*(d.min>=c?1:-1)}(Et,p,A)*T,ke===A&&(Kt-=Et/2);const on=p.getPixelForDecimal(0),Cn=p.getPixelForDecimal(1),gn=Math.min(on,Cn),un=Math.max(on,Cn);Kt=Math.max(Math.min(Kt,un),gn),ot=Kt+Et}if(Kt===p.getPixelForValue(A)){const on=ve(Et)*p.getLineWidthForValue(A)/2;Kt+=on,Et-=on}return{size:Et,base:Kt,head:ot,center:ot+Et/2}}_calculateBarIndexPixels(c,p){const _=p.scale,b=this.options,T=b.skipNull,A=I(b.maxBarThickness,1/0);let U,ie;if(p.grouped){const Me=T?this._getStackCount(c):p.stackCount,ke="flex"===b.barThickness?function zi(h,d,c,p){const _=d.pixels,b=_[h];let T=h>0?_[h-1]:null,A=h<_.length-1?_[h+1]:null;const U=c.categoryPercentage;null===T&&(T=b-(null===A?d.end-d.start:A-b)),null===A&&(A=b+b-T);const ie=b-(b-Math.min(T,A))/2*U;return{chunk:Math.abs(A-T)/2*U/p,ratio:c.barPercentage,start:ie}}(c,p,b,Me):function Bn(h,d,c,p){const _=c.barThickness;let b,T;return s(_)?(b=d.min*c.categoryPercentage,T=c.barPercentage):(b=_*p,T=1),{chunk:b/p,ratio:T,start:d.pixels[h]-b/2}}(c,p,b,Me),tt=this._getStackIndex(this.index,this._cachedMeta.stack,T?c:void 0);U=ke.start+ke.chunk*tt+ke.chunk/2,ie=Math.min(A,ke.chunk*ke.ratio)}else U=_.getPixelForValue(this.getParsed(c)[_.axis],c),ie=Math.min(A,p.min*p.ratio);return{base:U-ie/2,head:U+ie/2,center:U,size:ie}}draw(){const c=this._cachedMeta,p=c.vScale,_=c.data,b=_.length;let T=0;for(;T<b;++T)null!==this.getParsed(T)[p.axis]&&_[T].draw(this._ctx)}}return h.id="bar",h.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},h.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}},h})(),wr=(()=>{class h extends ut{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(c,p,_,b){const T=super.parsePrimitiveData(c,p,_,b);for(let A=0;A<T.length;A++)T[A]._custom=this.resolveDataElementOptions(A+_).radius;return T}parseArrayData(c,p,_,b){const T=super.parseArrayData(c,p,_,b);for(let A=0;A<T.length;A++)T[A]._custom=I(p[_+A][2],this.resolveDataElementOptions(A+_).radius);return T}parseObjectData(c,p,_,b){const T=super.parseObjectData(c,p,_,b);for(let A=0;A<T.length;A++){const U=p[_+A];T[A]._custom=I(U&&U.r&&+U.r,this.resolveDataElementOptions(A+_).radius)}return T}getMaxOverflow(){const c=this._cachedMeta.data;let p=0;for(let _=c.length-1;_>=0;--_)p=Math.max(p,c[_].size(this.resolveDataElementOptions(_))/2);return p>0&&p}getLabelAndValue(c){const p=this._cachedMeta,{xScale:_,yScale:b}=p,T=this.getParsed(c),A=_.getLabelForValue(T.x),U=b.getLabelForValue(T.y),ie=T._custom;return{label:p.label,value:"("+A+", "+U+(ie?", "+ie:"")+")"}}update(c){const p=this._cachedMeta.data;this.updateElements(p,0,p.length,c)}updateElements(c,p,_,b){const T="reset"===b,{iScale:A,vScale:U}=this._cachedMeta,{sharedOptions:ie,includeOptions:Me}=this._getSharedOptions(p,b),ke=A.axis,tt=U.axis;for(let st=p;st<p+_;st++){const ot=c[st],Et=!T&&this.getParsed(st),Lt={},Kt=Lt[ke]=T?A.getPixelForDecimal(.5):A.getPixelForValue(Et[ke]),on=Lt[tt]=T?U.getBasePixel():U.getPixelForValue(Et[tt]);Lt.skip=isNaN(Kt)||isNaN(on),Me&&(Lt.options=ie||this.resolveDataElementOptions(st,ot.active?"active":b),T&&(Lt.options.radius=0)),this.updateElement(ot,st,Lt,b)}}resolveDataElementOptions(c,p){const _=this.getParsed(c);let b=super.resolveDataElementOptions(c,p);b.$shared&&(b=Object.assign({},b,{$shared:!1}));const T=b.radius;
vendor: 4,767 bytes, line 1
1return"active"!==p&&(b.radius=0),b.radius+=I(_&&_._custom,T),b}}return h.id="bubble",h.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},h.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}},h})(),Yo=(()=>{class h extends ut{constructor(c,p){super(c,p),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(c,p){const _=this.getDataset().data,b=this._cachedMeta;if(!1===this._parsing)b._parsed=_;else{let A,U,T=ie=>+_[ie];if(x(_[c])){const{key:ie="value"}=this._parsing;T=Me=>+O(_[Me],ie)}for(A=c,U=c+p;A<U;++A)b._parsed[A]=T(A)}}_getRotation(){return yt(this.options.rotation-90)}_getCircumference(){return yt(this.options.circumference)}_getRotationExtents(){let c=X,p=-X;for(let _=0;_<this.chart.data.datasets.length;++_)if(this.chart.isDatasetVisible(_)){const b=this.chart.getDatasetMeta(_).controller,T=b._getRotation(),A=b._getCircumference();c=Math.min(c,T),p=Math.max(p,T+A)}return{rotation:c,circumference:p-c}}update(c){const p=this.chart,{chartArea:_}=p,b=this._cachedMeta,T=b.data,A=this.getMaxBorderWidth()+this.getMaxOffset(T)+this.options.spacing,U=Math.max((Math.min(_.width,_.height)-A)/2,0),ie=Math.min(((h,d)=>"string"==typeof h&&h.endsWith("%")?parseFloat(h)/100:h/d)(this.options.cutout,U),1),Me=this._getRingWeight(this.index),{circumference:ke,rotation:tt}=this._getRotationExtents(),{ratioX:st,ratioY:ot,offsetX:Et,offsetY:Lt}=function Ia(h,d,c){let p=1,_=1,b=0,T=0;if(d<X){const A=h,U=A+d,ie=Math.cos(A),Me=Math.sin(A),ke=Math.cos(U),tt=Math.sin(U),st=(Cn,gn,un)=>zt(Cn,A,U,!0)?1:Math.max(gn,gn*c,un,un*c),ot=(Cn,gn,un)=>zt(Cn,A,U,!0)?-1:Math.min(gn,gn*c,un,un*c),Et=st(0,ie,ke),Lt=st(ye,Me,tt),Kt=ot(K,ie,ke),on=ot(K+ye,Me,tt);p=(Et-Kt)/2,_=(Lt-on)/2,b=-(Et+Kt)/2,T=-(Lt+on)/2}return{ratioX:p,ratioY:_,offsetX:b,offsetY:T}}(tt,ke,ie),Cn=Math.max(Math.min((_.width-A)/st,(_.height-A)/ot)/2,0),gn=S(this.options.radius,Cn),In=(gn-Math.max(gn*ie,0))/this._getVisibleDatasetWeightTotal();this.offsetX=Et*gn,this.offsetY=Lt*gn,b.total=this.calculateTotal(),this.outerRadius=gn-In*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-In*Me,0),this.updateElements(T,0,T.length,c)}_circumference(c,p){const _=this.options,b=this._cachedMeta,T=this._getCircumference();return p&&_.animation.animateRotate||!this.chart.getDataVisibility(c)||null===b._parsed[c]||b.data[c].hidden?0:this.calculateCircumference(b._parsed[c]*T/X)}updateElements(c,p,_,b){const T="reset"===b,A=this.chart,U=A.chartArea,ke=(U.left+U.right)/2,tt=(U.top+U.bottom)/2,st=T&&A.options.animation.animateScale,ot=st?0:this.innerRadius,Et=st?0:this.outerRadius,{sharedOptions:Lt,includeOptions:Kt}=this._getSharedOptions(p,b);let Cn,on=this._getRotation();for(Cn=0;Cn<p;++Cn)on+=this._circumference(Cn,T);for(Cn=p;Cn<p+_;++Cn){const gn=this._circumference(Cn,T),un=c[Cn],In={x:ke+this.offsetX,y:tt+this.offsetY,startAngle:on,endAngle:on+gn,circumference:gn,outerRadius:Et,innerRadius:ot};Kt&&(In.options=Lt||this.resolveDataElementOptions(Cn,un.active?"active":b)),on+=gn,this.updateElement(un,Cn,In,b)}}calculateTotal(){const c=this._cachedMeta,p=c.data;let b,_=0;for(b=0;b<p.length;b++){const T=c._parsed[b];null!==T&&!isNaN(T)&&this.chart.getDataVisibility(b)&&!p[b].hidden&&(_+=Math.abs(T))}return _}calculateCircumference(c){const p=this._cachedMeta.total;return p>0&&!isNaN(c)?X*(Math.abs(c)/p):0}getLabelAndValue(c){const _=this.chart,b=_.data.labels||[],T=as(this._cachedMeta._parsed[c],_.options.locale);return{label:b[c]||"",value:T}}getMaxBorderWidth(c){let p=0;const _=this.chart;let b,T,A,U,ie;if(!c)for(b=0,T=_.data.datasets.length;b<T;++b)if(_.isDatasetVisible(b)){A=_.getDatasetMeta(b),c=A.data,U=A.controller;break}if(!c)return 0;for(b=0,T=c.length;b<T;++b)ie=U.resolveDataElementOptions(b),"inner"!==ie.borderAlign&&(p=Math.max(p,ie.borderWidth||0,ie.hoverBorderWidth||0));return p}getMaxOffset(c){let p=0;for(let _=0,b=c.length;_<b;++_){const T=this.resolveDataElementOptions(_);p=Math.max(p,T.offset||0,T.hoverOffset||0)}return p}_getRingWeightOffset(c){let p=0;for(let _=0;_<c;++_)this.chart.isDatasetVisible(_)&&(p+=this._getRingWeight(_));return p}_getRingWeight(c){return Math.max(I(this.chart.data.datasets[c].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}return h.id="doughnut",h.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"]}}
vendor: 5,077 bytes, line 1
1,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},h.descriptors={_scriptable:d=>"spacing"!==d,_indexable:d=>"spacing"!==d},h.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(d){const c=d.data;if(c.labels.length&&c.datasets.length){const{labels:{pointStyle:p}}=d.legend.options;return c.labels.map((_,b)=>{const A=d.getDatasetMeta(0).controller.getStyle(b);return{text:_,fillStyle:A.backgroundColor,strokeStyle:A.borderColor,lineWidth:A.borderWidth,pointStyle:p,hidden:!d.getDataVisibility(b),index:b}})}return[]}},onClick(d,c,p){p.chart.toggleDataVisibility(c.index),p.chart.update()}},tooltip:{callbacks:{title:()=>"",label(d){let c=d.label;const p=": "+d.formattedValue;return D(c)?(c=c.slice(),c[0]+=p):c+=p,c}}}}},h})(),Kl=(()=>{class h extends ut{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(c){const p=this._cachedMeta,{dataset:_,data:b=[],_dataset:T}=p,A=this.chart._animationsDisabled;let{start:U,count:ie}=dt(p,b,A);this._drawStart=U,this._drawCount=ie,Be(p)&&(U=0,ie=b.length),_._chart=this.chart,_._datasetIndex=this.index,_._decimated=!!T._decimated,_.points=b;const Me=this.resolveDatasetElementOptions(c);this.options.showLine||(Me.borderWidth=0),Me.segment=this.options.segment,this.updateElement(_,void 0,{animated:!A,options:Me},c),this.updateElements(b,U,ie,c)}updateElements(c,p,_,b){const T="reset"===b,{iScale:A,vScale:U,_stacked:ie,_dataset:Me}=this._cachedMeta,{sharedOptions:ke,includeOptions:tt}=this._getSharedOptions(p,b),st=A.axis,ot=U.axis,{spanGaps:Et,segment:Lt}=this.options,Kt=rt(Et)?Et:Number.POSITIVE_INFINITY,on=this.chart._animationsDisabled||T||"none"===b;let Cn=p>0&&this.getParsed(p-1);for(let gn=p;gn<p+_;++gn){const un=c[gn],In=this.getParsed(gn),Tn=on?un:{},Vn=s(In[ot]),Hn=Tn[st]=A.getPixelForValue(In[st],gn),wi=Tn[ot]=T||Vn?U.getBasePixel():U.getPixelForValue(ie?this.applyStack(U,In,ie):In[ot],gn);Tn.skip=isNaN(Hn)||isNaN(wi)||Vn,Tn.stop=gn>0&&Math.abs(In[st]-Cn[st])>Kt,Lt&&(Tn.parsed=In,Tn.raw=Me.data[gn]),tt&&(Tn.options=ke||this.resolveDataElementOptions(gn,un.active?"active":b)),on||this.updateElement(un,gn,Tn,b),Cn=In}}getMaxOverflow(){const c=this._cachedMeta,p=c.dataset,_=p.options&&p.options.borderWidth||0,b=c.data||[];if(!b.length)return _;const T=b[0].size(this.resolveDataElementOptions(0)),A=b[b.length-1].size(this.resolveDataElementOptions(b.length-1));return Math.max(_,T,A)/2}draw(){const c=this._cachedMeta;c.dataset.updateControlPoints(this.chart.chartArea,c.iScale.axis),super.draw()}}return h.id="line",h.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},h.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},h})(),Jo=(()=>{class h extends ut{constructor(c,p){super(c,p),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(c){const _=this.chart,b=_.data.labels||[],T=as(this._cachedMeta._parsed[c].r,_.options.locale);return{label:b[c]||"",value:T}}parseObjectData(c,p,_,b){return et.bind(this)(c,p,_,b)}update(c){const p=this._cachedMeta.data;this._updateRadius(),this.updateElements(p,0,p.length,c)}getMinMax(){const p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((_,b)=>{const T=this.getParsed(b).r;!isNaN(T)&&this.chart.getDataVisibility(b)&&(T<p.min&&(p.min=T),T>p.max&&(p.max=T))}),p}_updateRadius(){const c=this.chart,p=c.chartArea,_=c.options,b=Math.min(p.right-p.left,p.bottom-p.top),T=Math.max(b/2,0),U=(T-Math.max(_.cutoutPercentage?T/100*_.cutoutPercentage:1,0))/c.getVisibleDatasetCount();this.outerRadius=T-U*this.index,this.innerRadius=this.outerRadius-U}updateElements(c,p,_,b){const T="reset"===b,A=this.chart,ie=A.options.animation,Me=this._cachedMeta.rScale,ke=Me.xCenter,tt=Me.yCenter,st=Me.getIndexAngle(0)-.5*K;let Et,ot=st;const Lt=360/this.countVisibleElements();for(Et=0;Et<p;++Et)ot+=this._computeAngle(Et,b,Lt);for(Et=p;Et<p+_;Et++){const Kt=c[Et];let on=ot,Cn=ot+this._computeAngle(Et,b,Lt),gn=A.getDataVisibility(Et)?Me.getDistanceFromCenterForValue(this.getParsed(Et).r):0;ot=Cn,T&&(ie.animateScale&&(gn=0),ie.animateRotate&&(on=Cn=st));const un={x:ke,y:tt,innerRadius:0,outerRadius:gn,startAngle:on,endAngle:Cn,options:this.resolveDataElementOptions(Et,Kt.active?"active":b)};this.updateElement(Kt,Et,un,b)}}countVisibleElements(){let p=0;return this._cachedMeta.data.forEach((_,b)=>{!isNaN(this.getParsed(b).r)&&this.chart.getDataVisibility(b)&&p++}),p}_computeAngle(c,p,_){return this.chart.getDataVisibility(c)?yt(this.resolveDataElementOptions(c,p).angle||_):0}}return h.id="polarArea",h.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},h.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(d){const c=d.data;if(c.labels.length&&c.datasets.length){const{labels:{pointStyle:p}}=d.legend.options;return c.labels.map((_,b)=>{const A=d.getDatasetMeta(0).controller.getStyle(b);
1return{text:_,fillStyle:A.backgroundColor,strokeStyle:A.borderColor,lineWidth:A.borderWidth,pointStyle:p,hidden:!d.getDataVisibility(b),index:b}})}return[]}},onClick(d,c,p){p.chart.toggleDataVisibility(c.index),p.chart.update()}},tooltip:{callbacks:{title:()=>"",label:d=>d.chart.data.labels[d.dataIndex]+": "+d.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},h})(),pa=(()=>{class h extends Yo{}return h.id="pie",h.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},h})(),_l=(()=>{class h extends ut{getLabelAndValue(c){const p=this._cachedMeta.vScale,_=this.getParsed(c);return{label:p.getLabels()[c],value:""+p.getLabelForValue(_[p.axis])}}parseObjectData(c,p,_,b){return et.bind(this)(c,p,_,b)}update(c){const p=this._cachedMeta,_=p.dataset,b=p.data||[],T=p.iScale.getLabels();if(_.points=b,"resize"!==c){const A=this.resolveDatasetElementOptions(c);this.options.showLine||(A.borderWidth=0),this.updateElement(_,void 0,{_loop:!0,_fullLoop:T.length===b.length,options:A},c)}this.updateElements(b,0,b.length,c)}updateElements(c,p,_,b){const T=this._cachedMeta.rScale,A="reset"===b;for(let U=p;U<p+_;U++){const ie=c[U],Me=this.resolveDataElementOptions(U,ie.active?"active":b),ke=T.getPointPositionForValue(U,this.getParsed(U).r),tt=A?T.xCenter:ke.x,st=A?T.yCenter:ke.y,ot={x:tt,y:st,angle:ke.angle,skip:isNaN(tt)||isNaN(st),options:Me};this.updateElement(ie,U,ot,b)}}}return h.id="radar",h.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},h.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}},h})();class is{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(d){const{x:c,y:p}=this.getProps(["x","y"],d);return{x:c,y:p}}hasValue(){return rt(this.x)&&rt(this.y)}getProps(d,c){const p=this.$animations;if(!c||!p)return this;const _={};return d.forEach(b=>{_[b]=p[b]&&p[b].active()?p[b]._to:this[b]}),_}}is.defaults={},is.defaultRoutes=void 0;const Aa={values:h=>D(h)?h:""+h,numeric(h,d,c){if(0===h)return"0";const p=this.chart.options.locale;let _,b=h;if(c.length>1){const ie=Math.max(Math.abs(c[0].value),Math.abs(c[c.length-1].value));(ie<1e-4||ie>1e15)&&(_="scientific"),b=function po(h,d){let c=d.length>3?d[2].value-d[1].value:d[1].value-d[0].value;return Math.abs(c)>=1&&h!==Math.floor(h)&&(c=h-Math.floor(h)),c}(h,c)}const T=me(Math.abs(b)),A=Math.max(Math.min(-1*Math.floor(T),20),0),U={notation:_,minimumFractionDigits:A,maximumFractionDigits:A};return Object.assign(U,this.options.ticks.format),as(h,p,U)},logarithmic(h,d,c){if(0===h)return"0";const p=h/Math.pow(10,Math.floor(me(h)));return 1===p||2===p||5===p?Aa.numeric.call(this,h,d,c):""}};var Po={formatters:Aa};function Ro(h,d,c,p,_){const b=I(p,0),T=Math.min(I(_,h.length),h.length);let U,ie,Me,A=0;for(c=Math.ceil(c),_&&(U=_-p,c=U/Math.floor(U/c)),Me=b;Me<0;)A++,Me=Math.round(b+A*c);for(ie=Math.max(b,0);ie<T;ie++)ie===Me&&(d.push(h[ie]),A++,Me=Math.round(b+A*c))}Qn.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(h,d)=>d.lineWidth,tickColor:(h,d)=>d.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:Po.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qn.route("scale.ticks","color","","color"),Qn.route("scale.grid","color","","borderColor"),Qn.route("scale.grid","borderColor","","borderColor"),Qn.route("scale.title","color","","color"),Qn.describe("scale",{_fallback:!1,_scriptable:h=>!h.startsWith("before")&&!h.startsWith("after")&&"callback"!==h&&"parser"!==h,_indexable:h=>"borderDash"!==h&&"tickBorderDash"!==h}),Qn.describe("scales",{_fallback:"scale"}),Qn.describe("scale.ticks",{_scriptable:h=>"backdropPadding"!==h&&"callback"!==h,_indexable:h=>"backdropPadding"!==h});const vl=h=>"left"===h?"right":"right"===h?"left":h,yl=(h,d,c)=>"top"===d||"left"===d?h[d]+c:h[d]-c;function Qo(h,d){const c=[],p=h.length/d,_=h.length;let b=0;for(;b<_;b+=p)c.push(h[Math.floor(b)]);return c}
vendor: 10,309 bytes, line 1
1function jr(h,d,c){const p=h.ticks.length,_=Math.min(d,p-1),b=h._startPixel,T=h._endPixel,A=1e-6;let ie,U=h.getPixelForTick(_);if(!(c&&(ie=1===p?Math.max(U-b,T-U):0===d?(h.getPixelForTick(1)-U)/2:(U-h.getPixelForTick(_-1))/2,U+=_<d?ie:-ie,U<b-A||U>T+A)))return U}function ys(h){return h.drawTicks?h.tickLength:0}function Fa(h,d){if(!h.display)return 0;const c=Ki(h.font,d),p=Gi(h.padding);return(D(h.text)?h.text.length:1)*c.lineHeight+p.height}function La(h,d,c){let p=Bt(h);return(c&&"right"!==d||!c&&"right"===d)&&(p=vl(p)),p}class St extends is{constructor(d){super(),this.id=d.id,this.type=d.type,this.options=void 0,this.ctx=d.ctx,this.chart=d.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(d){this.options=d.setContext(this.getContext()),this.axis=d.axis,this._userMin=this.parse(d.min),this._userMax=this.parse(d.max),this._suggestedMin=this.parse(d.suggestedMin),this._suggestedMax=this.parse(d.suggestedMax)}parse(d,c){return d}getUserBounds(){let{_userMin:d,_userMax:c,_suggestedMin:p,_suggestedMax:_}=this;return d=w(d,Number.POSITIVE_INFINITY),c=w(c,Number.NEGATIVE_INFINITY),p=w(p,Number.POSITIVE_INFINITY),_=w(_,Number.NEGATIVE_INFINITY),{min:w(d,p),max:w(c,_),minDefined:M(d),maxDefined:M(c)}}getMinMax(d){let T,{min:c,max:p,minDefined:_,maxDefined:b}=this.getUserBounds();if(_&&b)return{min:c,max:p};const A=this.getMatchingVisibleMetas();for(let U=0,ie=A.length;U<ie;++U)T=A[U].controller.getMinMax(this,d),_||(c=Math.min(c,T.min)),b||(p=Math.max(p,T.max));return c=b&&c>p?p:c,p=_&&c>p?c:p,{min:w(c,w(p,c)),max:w(p,w(c,p))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const d=this.chart.data;return this.options.labels||(this.isHorizontal()?d.xLabels:d.yLabels)||d.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){k(this.options.beforeUpdate,[this])}update(d,c,p){const{beginAtZero:_,grace:b,ticks:T}=this.options,A=T.sampleSize;this.beforeUpdate(),this.maxWidth=d,this.maxHeight=c,this._margins=p=Object.assign({left:0,right:0,top:0,bottom:0},p),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+p.left+p.right:this.height+p.top+p.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function Hr(h,d,c){const{min:p,max:_}=h,b=S(d,(_-p)/2),T=(A,U)=>c&&0===A?0:A+U;return{min:T(p,-Math.abs(b)),max:T(_,b)}}(this,b,_),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const U=A<this.ticks.length;this._convertTicksToLabels(U?Qo(this.ticks,A):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),T.display&&(T.autoSkip||"auto"===T.source)&&(this.ticks=function qa(h,d){const c=h.options.ticks,p=c.maxTicksLimit||function Us(h){const d=h.options.offset,c=h._tickSize();return Math.floor(Math.min(h._length/c+(d?0:1),h._maxLength/c))}(h),_=c.major.enabled?function Oa(h){const d=[];let c,p;for(c=0,p=h.length;c<p;c++)h[c].major&&d.push(c);return d}(d):[],b=_.length,T=_[0],A=_[b-1],U=[];if(b>p)return function Pa(h,d,c,p){let T,_=0,b=c[0];for(p=Math.ceil(p),T=0;T<h.length;T++)T===b&&(d.push(h[T]),_++,b=c[_*p])}(d,U,_,b/p),U;const ie=function ka(h,d,c){const p=function Ra(h){const d=h.length;let c,p;if(d<2)return!1;for(p=h[0],c=1;c<d;++c)if(h[c]-h[c-1]!==p)return!1;return p}(h),_=d.length/c;if(!p)return Math.max(_,1);const b=function Xe(h){const d=[],c=Math.sqrt(h);let p;for(p=1;p<c;p++)h%p==0&&(d.push(p),d.push(h/p));return c===(0|c)&&d.push(c),d.sort((_,b)=>_-b).pop(),d}(p);for(let T=0,A=b.length-1;T<A;T++){const U=b[T];if(U>_)return U}return Math.max(_,1)}(_,d,p);if(b>0){let Me,ke;const tt=b>1?Math.round((A-T)/(b-1)):null;for(Ro(d,U,ie,s(tt)?0:T-tt,T),Me=0,ke=b-1;Me<ke;Me++)Ro(d,U,ie,_[Me],_[Me+1]);return Ro(d,U,ie,A,s(tt)?d.length:A+tt),U}return Ro(d,U,ie),U}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),U&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let c,p,d=this.options.reverse;this.isHorizontal()?(c=this.left,p=this.right):(c=this.top,p=this.bottom,d=!d),this._startPixel=c,this._endPixel=p,this._reversePixels=d,this._length=p-c,this._alignToPixels=this.options.alignToPixels}afterUpdate(){k(this.options.afterUpdate,[this])}beforeSetDimensions(){k(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(){k(this.options.afterSetDimensions,[this])}_callHooks(d){this.chart.notifyPlugins(d,this.getContext()),k(this.options[d],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){k(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(d){const c=this.options.ticks;let p,_,b;for(p=0,_=d.length;p<_;p++)b=d[p],b.label=k(c.callback,[b.value,p,d],this)}afterTickToLabelConversion(){k(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){k(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const d=this.options,c=d.ticks,p=this.ticks.length,_=c.minRotation||0,b=c.maxRotation;let A,U,ie,T=_;if(!this._isVisible()||!c.display||_>=b||p<=1||!this.isHorizontal())return void(this.labelRotation=_);const Me=this._getLabelSizes(),ke=Me.widest.width,tt=Me.highest.height,st=Yt(this.chart.width-ke,0,this.maxWidth);A=d.offset?this.maxWidth/p:st/(p-1),ke+6>A&&(A=st/(p-(d.offset?.5:1)),U=this.maxHeight-ys(d.grid)-c.padding-Fa(d.title,this.chart.options.font),ie=Math.sqrt(ke*ke+tt*tt),T=bt(Math.min(Math.asin(Yt((Me.highest.height+6)/A,-1,1)),Math.asin(Yt(U/ie,-1,1))-Math.asin(Yt(tt/ie,-1,1)))),T=Math.max(_,Math.min(b,T))),this.labelRotation=T}afterCalculateLabelRotation(){k(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){k(this.options.beforeFit,[this])}fit(){const d={width:0,height:0},{chart:c,options:{ticks:p,title:_,grid:b}}=this,T=this._isVisible(),A=this.isHorizontal();if(T){const U=Fa(_,c.options.font);if(A?(d.width=this.maxWidth,d.height=ys(b)+U):(d.height=this.maxHeight,d.width=ys(b)+U),p.display&&this.ticks.length){const{first:ie,last:Me,widest:ke,highest:tt}=this._getLabelSizes(),st=2*p.padding,ot=yt(this.labelRotation),Et=Math.cos(ot),Lt=Math.sin(ot);A?d.height=Math.min(this.maxHeight,d.height+(p.mirror?0:Lt*ke.width+Et*tt.height)+st):d.width=Math.min(this.maxWidth,d.width+(p.mirror?0:Et*ke.width+Lt*tt.height)+st),this._calculatePadding(ie,Me,Lt,Et)}}this._handleMargins(),A?(this.width=this._length=c.width-this._margins.left-this._margins.right,this.height=d.height):(this.width=d.width,this.height=this._length=c.height-this._margins.top-this._margins.bottom)}_calculatePadding(d,c,p,_){const{ticks:{align:b,padding:T},position:A}=this.options,U=0!==this.labelRotation,ie="top"!==A&&"x"===this.axis;if(this.isHorizontal()){const Me=this.getPixelForTick(0)-this.left,ke=this.right-this.getPixelForTick(this.ticks.length-1);let tt=0,st=0;U?ie?(tt=_*d.width,st=p*c.height):(tt=p*d.height,st=_*c.width):"start"===b?st=c.width:"end"===b?tt=d.width:"inner"!==b&&(tt=d.width/2,st=c.width/2),this.paddingLeft=Math.max((tt-Me+T)*this.width/(this.width-Me),0),this.paddingRight=Math.max((st-ke+T)*this.width/(this.width-ke),0)}else{let Me=c.height/2,ke=d.height/2;"start"===b?(Me=0,ke=d.height):"end"===b&&(Me=c.height,ke=0),this.paddingTop=Me+T,this.paddingBottom=ke+T}}_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(){k(this.options.afterFit,[this])}isHorizontal(){const{axis:d,position:c}=this.options;return"top"===c||"bottom"===c||"x"===d}isFullSize(){return this.options.fullSize}_convertTicksToLabels(d){let c,p;for(this.beforeTickToLabelConversion(),this.generateTickLabels(d),c=0,p=d.length;c<p;c++)s(d[c].label)&&(d.splice(c,1),p--,c--);this.afterTickToLabelConversion()}_getLabelSizes(){let d=this._labelSizes;if(!d){const c=this.options.ticks.sampleSize;let p=this.ticks;c<p.length&&(p=Qo(p,c)),this._labelSizes=d=this._computeLabelSizes(p,p.length)}return d}_computeLabelSizes(d,c){const{ctx:p,_longestTextCache:_}=this,b=[],T=[];let ie,Me,ke,tt,st,ot,Et,Lt,Kt,on,Cn,A=0,U=0;for(ie=0;ie<c;++ie){if(tt=d[ie].label,st=this._resolveTickFontOptions(ie),p.font=ot=st.string,Et=_[ot]=_[ot]||{data:{},gc:[]},Lt=st.lineHeight,Kt=on=0,s(tt)||D(tt)){if(D(tt))for(Me=0,ke=tt.length;Me<ke;++Me)Cn=tt[Me],!s(Cn)&&!D(Cn)&&(Kt=qs(p,Et.data,Et.gc,Kt,Cn),on+=Lt)}else Kt=qs(p,Et.data,Et.gc,Kt,tt),on=Lt;b.push(Kt),T.push(on),A=Math.max(Kt,A),U=Math.max(on,U)}!function Gr(h,d){z(h,c=>{const p=c.gc,_=p.length/2;let b;if(_>d){for(b=0;b<_;++b)delete c.data[p[b]];p.splice(0,_)}})}(_,c);const gn=b.indexOf(A),un=T.indexOf(U),In=Tn=>({width:b[Tn]||0,height:T[Tn]||0});
vendor: 10,640 bytes, line 1
1return{first:In(0),last:In(c-1),widest:In(gn),highest:In(un),widths:b,heights:T}}getLabelForValue(d){return d}getPixelForValue(d,c){return NaN}getValueForPixel(d){}getPixelForTick(d){const c=this.ticks;return d<0||d>c.length-1?null:this.getPixelForValue(c[d].value)}getPixelForDecimal(d){this._reversePixels&&(d=1-d);const c=this._startPixel+d*this._length;return function It(h){return Yt(h,-32768,32767)}(this._alignToPixels?Mn(this.chart,c,0):c)}getDecimalForPixel(d){const c=(d-this._startPixel)/this._length;return this._reversePixels?1-c:c}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:d,max:c}=this;return d<0&&c<0?c:d>0&&c>0?d:0}getContext(d){const c=this.ticks||[];if(d>=0&&d<c.length){const p=c[d];return p.$context||(p.$context=function bl(h,d,c){return Os(h,{tick:c,index:d,type:"tick"})}(this.getContext(),d,p))}return this.$context||(this.$context=function Ts(h,d){return Os(h,{scale:d,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const d=this.options.ticks,c=yt(this.labelRotation),p=Math.abs(Math.cos(c)),_=Math.abs(Math.sin(c)),b=this._getLabelSizes(),T=d.autoSkipPadding||0,A=b?b.widest.width+T:0,U=b?b.highest.height+T:0;return this.isHorizontal()?U*p>A*_?A/p:U/_:U*_<A*p?U/p:A/_}_isVisible(){const d=this.options.display;return"auto"!==d?!!d:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(d){const c=this.axis,p=this.chart,_=this.options,{grid:b,position:T}=_,A=b.offset,U=this.isHorizontal(),Me=this.ticks.length+(A?1:0),ke=ys(b),tt=[],st=b.setContext(this.getContext()),ot=st.drawBorder?st.borderWidth:0,Et=ot/2,Lt=function(gi){return Mn(p,gi,ot)};let Kt,on,Cn,gn,un,In,Tn,Vn,Hn,wi,Vi,Di;if("top"===T)Kt=Lt(this.bottom),In=this.bottom-ke,Vn=Kt-Et,wi=Lt(d.top)+Et,Di=d.bottom;else if("bottom"===T)Kt=Lt(this.top),wi=d.top,Di=Lt(d.bottom)-Et,In=Kt+Et,Vn=this.top+ke;else if("left"===T)Kt=Lt(this.right),un=this.right-ke,Tn=Kt-Et,Hn=Lt(d.left)+Et,Vi=d.right;else if("right"===T)Kt=Lt(this.left),Hn=d.left,Vi=Lt(d.right)-Et,un=Kt+Et,Tn=this.left+ke;else if("x"===c){if("center"===T)Kt=Lt((d.top+d.bottom)/2+.5);else if(x(T)){const gi=Object.keys(T)[0];Kt=Lt(this.chart.scales[gi].getPixelForValue(T[gi]))}wi=d.top,Di=d.bottom,In=Kt+Et,Vn=In+ke}else if("y"===c){if("center"===T)Kt=Lt((d.left+d.right)/2);else if(x(T)){const gi=Object.keys(T)[0];Kt=Lt(this.chart.scales[gi].getPixelForValue(T[gi]))}un=Kt-Et,Tn=un-ke,Hn=d.left,Vi=d.right}const ws=I(_.ticks.maxTicksLimit,Me),Ls=Math.max(1,Math.ceil(Me/ws));for(on=0;on<Me;on+=Ls){const gi=b.setContext(this.getContext(on)),hs=gi.lineWidth,Ds=gi.color,$a=gi.borderDash||[],Vl=gi.borderDashOffset,Co=gi.tickWidth,Sc=gi.tickColor,hl=gi.tickBorderDash||[],Hl=gi.tickBorderDashOffset;Cn=jr(this,on,A),void 0!==Cn&&(gn=Mn(p,Cn,hs),U?un=Tn=Hn=Vi=gn:In=Vn=wi=Di=gn,tt.push({tx1:un,ty1:In,tx2:Tn,ty2:Vn,x1:Hn,y1:wi,x2:Vi,y2:Di,width:hs,color:Ds,borderDash:$a,borderDashOffset:Vl,tickWidth:Co,tickColor:Sc,tickBorderDash:hl,tickBorderDashOffset:Hl}))}return this._ticksLength=Me,this._borderValue=Kt,tt}_computeLabelItems(d){const c=this.axis,p=this.options,{position:_,ticks:b}=p,T=this.isHorizontal(),A=this.ticks,{align:U,crossAlign:ie,padding:Me,mirror:ke}=b,tt=ys(p.grid),st=tt+Me,ot=ke?-Me:st,Et=-yt(this.labelRotation),Lt=[];let Kt,on,Cn,gn,un,In,Tn,Vn,Hn,wi,Vi,Di,ws="middle";if("top"===_)In=this.bottom-ot,Tn=this._getXAxisLabelAlignment();else if("bottom"===_)In=this.top+ot,Tn=this._getXAxisLabelAlignment();else if("left"===_){const gi=this._getYAxisLabelAlignment(tt);Tn=gi.textAlign,un=gi.x}else if("right"===_){const gi=this._getYAxisLabelAlignment(tt);Tn=gi.textAlign,un=gi.x}else if("x"===c){if("center"===_)In=(d.top+d.bottom)/2+st;else if(x(_)){const gi=Object.keys(_)[0];In=this.chart.scales[gi].getPixelForValue(_[gi])+st}Tn=this._getXAxisLabelAlignment()}else if("y"===c){if("center"===_)un=(d.left+d.right)/2-st;else if(x(_)){const gi=Object.keys(_)[0];un=this.chart.scales[gi].getPixelForValue(_[gi])}Tn=this._getYAxisLabelAlignment(tt).textAlign}"y"===c&&("start"===U?ws="top":"end"===U&&(ws="bottom"));const Ls=this._getLabelSizes();for(Kt=0,on=A.length;Kt<on;++Kt){Cn=A[Kt],gn=Cn.label;const gi=b.setContext(this.getContext(Kt));Vn=this.getPixelForTick(Kt)+b.labelOffset,Hn=this._resolveTickFontOptions(Kt),wi=Hn.lineHeight,Vi=D(gn)?gn.length:1;const hs=Vi/2,Ds=gi.color,$a=gi.textStrokeColor,Vl=gi.textStrokeWidth;let Sc,Co=Tn;if(T?(un=Vn,"inner"===Tn&&(Co=Kt===on-1?this.options.reverse?"left":"right":0===Kt?this.options.reverse?"right":"left":"center"),Di="top"===_?"near"===ie||0!==Et?-Vi*wi+wi/2:"center"===ie?-Ls.highest.height/2-hs*wi+wi:wi/2-Ls.highest.height:"near"===ie||0!==Et?wi/2:"center"===ie?Ls.highest.height/2-hs*wi:Ls.highest.height-Vi*wi,ke&&(Di*=-1)):(In=Vn,Di=(1-Vi)*wi/2),gi.showLabelBackdrop){const hl=Gi(gi.backdropPadding),Hl=Ls.heights[Kt],zl=Ls.widths[Kt];let _u=In+Di-hl.top,Ul=un-hl.left;switch(ws){case"middle":_u-=Hl/2;break;case"bottom":_u-=Hl}switch(Tn){case"center":Ul-=zl/2;break;case"right":Ul-=zl}Sc={left:Ul,top:_u,width:zl+hl.width,height:Hl+hl.height,color:gi.backdropColor}}Lt.push({rotation:Et,label:gn,font:Hn,color:Ds,strokeColor:$a,strokeWidth:Vl,textOffset:Di,textAlign:Co,textBaseline:ws,translation:[un,In],backdrop:Sc})}return Lt}_getXAxisLabelAlignment(){const{position:d,ticks:c}=this.options;if(-yt(this.labelRotation))return"top"===d?"left":"right";let _="center";return"start"===c.align?_="left":"end"===c.align?_="right":"inner"===c.align&&(_="inner"),_}_getYAxisLabelAlignment(d){const{position:c,ticks:{crossAlign:p,mirror:_,padding:b}}=this.options,A=d+b,U=this._getLabelSizes().widest.width;let ie,Me;return"left"===c?_?(Me=this.right+b,"near"===p?ie="left":"center"===p?(ie="center",Me+=U/2):(ie="right",Me+=U)):(Me=this.right-A,"near"===p?ie="right":"center"===p?(ie="center",Me-=U/2):(ie="left",Me=this.left)):"right"===c?_?(Me=this.left+b,"near"===p?ie="right":"center"===p?(ie="center",Me-=U/2):(ie="left",Me-=U)):(Me=this.left+A,"near"===p?ie="left":"center"===p?(ie="center",Me+=U/2):(ie="right",Me=this.right)):ie="right",{textAlign:ie,x:Me}}_computeLabelArea(){if(this.options.ticks.mirror)return;const d=this.chart,c=this.options.position;return"left"===c||"right"===c?{top:0,left:this.left,bottom:d.height,right:this.right}:"top"===c||"bottom"===c?{top:this.top,left:0,bottom:this.bottom,right:d.width}:void 0}drawBackground(){const{ctx:d,options:{backgroundColor:c},left:p,top:_,width:b,height:T}=this;c&&(d.save(),d.fillStyle=c,d.fillRect(p,_,b,T),d.restore())}getLineWidthForValue(d){const c=this.options.grid;if(!this._isVisible()||!c.display)return 0;const _=this.ticks.findIndex(b=>b.value===d);return _>=0?c.setContext(this.getContext(_)).lineWidth:0}drawGrid(d){const c=this.options.grid,p=this.ctx,_=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(d));let b,T;const A=(U,ie,Me)=>{!Me.width||!Me.color||(p.save(),p.lineWidth=Me.width,p.strokeStyle=Me.color,p.setLineDash(Me.borderDash||[]),p.lineDashOffset=Me.borderDashOffset,p.beginPath(),p.moveTo(U.x,U.y),p.lineTo(ie.x,ie.y),p.stroke(),p.restore())};if(c.display)for(b=0,T=_.length;b<T;++b){const U=_[b];c.drawOnChartArea&&A({x:U.x1,y:U.y1},{x:U.x2,y:U.y2},U),c.drawTicks&&A({x:U.tx1,y:U.ty1},{x:U.tx2,y:U.ty2},{color:U.tickColor,width:U.tickWidth,borderDash:U.tickBorderDash,borderDashOffset:U.tickBorderDashOffset})}}drawBorder(){const{chart:d,ctx:c,options:{grid:p}}=this,_=p.setContext(this.getContext()),b=p.drawBorder?_.borderWidth:0;if(!b)return;const T=p.setContext(this.getContext(0)).lineWidth,A=this._borderValue;let U,ie,Me,ke;this.isHorizontal()?(U=Mn(d,this.left,b)-b/2,ie=Mn(d,this.right,T)+T/2,Me=ke=A):(Me=Mn(d,this.top,b)-b/2,ke=Mn(d,this.bottom,T)+T/2,U=ie=A),c.save(),c.lineWidth=_.borderWidth,c.strokeStyle=_.borderColor,c.beginPath(),c.moveTo(U,Me),c.lineTo(ie,ke),c.stroke(),c.restore()}drawLabels(d){if(!this.options.ticks.display)return;const p=this.ctx,_=this._computeLabelArea();_&&Ns(p,_);const b=this._labelItems||(this._labelItems=this._computeLabelItems(d));let T,A;for(T=0,A=b.length;T<A;++T){const U=b[T],ie=U.font,Me=U.label;U.backdrop&&(p.fillStyle=U.backdrop.color,p.fillRect(U.backdrop.left,U.backdrop.top,U.backdrop.width,U.backdrop.height)),$i(p,Me,0,U.textOffset,ie,U)}_&&Xi(p)}drawTitle(){const{ctx:d,options:{position:c,title:p,reverse:_}}=this;if(!p.display)return;const b=Ki(p.font),T=Gi(p.padding),A=p.align;let U=b.lineHeight/2;"bottom"===c||"center"===c||x(c)?(U+=T.bottom,D(p.text)&&(U+=b.lineHeight*(p.text.length-1))):U+=T.top;const{titleX:ie,titleY:Me,maxWidth:ke,rotation:tt}=function Je(h,d,c,p){const{top:_,left:b,bottom:T,right:A,chart:U}=h,{chartArea:ie,scales:Me}=U;let tt,st,ot,ke=0;const Et=T-_,Lt=A-b;if(h.isHorizontal()){if(st=jt(p,b,A),x(c)){const Kt=Object.keys(c)[0];ot=Me[Kt].getPixelForValue(c[Kt])+Et-d}else ot="center"===c?(ie.bottom+ie.top)/2+Et-d:yl(h,c,d);tt=A-b}else{if(x(c)){const Kt=Object.keys(c)[0];st=Me[Kt].getPixelForValue(c[Kt])-Lt+d}else st="center"===c?(ie.left+ie.right)/2-Lt+d:yl(h,c,d);ot=jt(p,T,_),ke="left"===c?-ye:ye}return{titleX:st,titleY:ot,maxWidth:tt,rotation:ke}}(this,U,c,A);$i(d,p.text,0,0,b,{color:p.color,maxWidth:ke,rotation:tt,textAlign:La(A,c,_),textBaseline:"middle",translation:[ie,Me]})}draw(d){this._isVisible()&&(this.drawBackground(),this.drawGrid(d),this.drawBorder(),this.drawTitle(),this.drawLabels(d))}_layers(){const d=this.options,c=d.ticks&&d.ticks.z||0,p=I(d.grid&&d.grid.z,-1);return this._isVisible()&&this.draw===St.prototype.draw?[{z:p,draw:_=>{this.drawBackground(),this.drawGrid(_),this.drawTitle()}},{z:p+1,draw:()=>{this.drawBorder()}},{z:c,draw:_=>{this.drawLabels(_)}}]:[{z:c,draw:_=>{this.draw(_)}}]}getMatchingVisibleMetas(d){const c=this.chart.getSortedVisibleDatasetMetas(),p=this.axis+"AxisID",_=[];let b,T;for(b=0,T=c.length;b<T;++b){const A=c[b];A[p]===this.id&&(!d||A.type===d)&&_.push(A)}return _}_resolveTickFontOptions(d){return Ki(this.options.ticks.setContext(this.getContext(d)).font)}_maxDigits(){const d=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/d}}class Ot{constructor(d,c,p){this.type=d,this.scope=c,this.override=p,this.items=Object.create(null)}isForType(d){return Object.prototype.isPrototypeOf.call(this.type.prototype,d.prototype)}register(d){const c=Object.getPrototypeOf(d);let p;(function ri(h){return"id"in h&&"defaults"in h})(c)&&(p=this.register(c));const _=this.items,b=d.id,T=this.scope+"."+b;if(!b)throw new Error("class does not have id: "+d);return b in _||(_[b]=d,function An(h,d,c){const p=W(Object.create(null),[c?Qn.get(c):{},Qn.get(d),h.defaults]);Qn.set(d,p),h.defaultRoutes&&function li(h,d){Object.keys(d).forEac
1h(c=>{const p=c.split("."),_=p.pop(),b=[h].concat(p).join("."),T=d[c].split("."),A=T.pop(),U=T.join(".");Qn.route(b,_,U,A)})}(d,h.defaultRoutes),h.descriptors&&Qn.describe(d,h.descriptors)}(d,T,p),this.override&&Qn.override(d.id,d.overrides)),T}get(d){return this.items[d]}unregister(d){const c=this.items,p=d.id,_=this.scope;p in c&&delete c[p],_&&p in Qn[_]&&(delete Qn[_][p],this.override&&delete ji[p])}}var qn=new class Pi{constructor(){this.controllers=new Ot(ut,"datasets",!0),this.elements=new Ot(is,"elements"),this.plugins=new Ot(Object,"plugins"),this.scales=new Ot(St,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...d){this._each("register",d)}remove(...d){this._each("unregister",d)}addControllers(...d){this._each("register",d,this.controllers)}addElements(...d){this._each("register",d,this.elements)}addPlugins(...d){this._each("register",d,this.plugins)}addScales(...d){this._each("register",d,this.scales)}getController(d){return this._get(d,this.controllers,"controller")}getElement(d){return this._get(d,this.elements,"element")}getPlugin(d){return this._get(d,this.plugins,"plugin")}getScale(d){return this._get(d,this.scales,"scale")}removeControllers(...d){this._each("unregister",d,this.controllers)}removeElements(...d){this._each("unregister",d,this.elements)}removePlugins(...d){this._each("unregister",d,this.plugins)}removeScales(...d){this._each("unregister",d,this.scales)}_each(d,c,p){[...c].forEach(_=>{const b=p||this._getRegistryForType(_);p||b.isForType(_)||b===this.plugins&&_.id?this._exec(d,b,_):z(_,T=>{const A=p||this._getRegistryForType(T);this._exec(d,A,T)})})}_exec(d,c,p){const _=_e(d);k(p["before"+_],[],p),c[d](p),k(p["after"+_],[],p)}_getRegistryForType(d){for(let c=0;c<this._typedRegistries.length;c++){const p=this._typedRegistries[c];if(p.isForType(d))return p}return this.plugins}_get(d,c,p){const _=c.get(d);if(void 0===_)throw new Error('"'+d+'" is not a registered '+p+".");return _}},Fs=Object.freeze({__proto__:null,BarController:Fr,BubbleController:wr,DoughnutController:Yo,LineController:Kl,PolarAreaController:Jo,PieController:pa,RadarController:_l,ScatterController:(()=>{class h extends ut{update(c){const p=this._cachedMeta,{data:_=[]}=p,b=this.chart._animationsDisabled;let{start:T,count:A}=dt(p,_,b);if(this._drawStart=T,this._drawCount=A,Be(p)&&(T=0,A=_.length),this.options.showLine){const{dataset:U,_dataset:ie}=p;U._chart=this.chart,U._datasetIndex=this.index,U._decimated=!!ie._decimated,U.points=_;const Me=this.resolveDatasetElementOptions(c);Me.segment=this.options.segment,this.updateElement(U,void 0,{animated:!b,options:Me},c)}this.updateElements(_,T,A,c)}addElements(){const{showLine:c}=this.options;!this.datasetElementType&&c&&(this.datasetElementType=qn.getElement("line")),super.addElements()}updateElements(c,p,_,b){const T="reset"===b,{iScale:A,vScale:U,_stacked:ie,_dataset:Me}=this._cachedMeta,ke=this.resolveDataElementOptions(p,b),tt=this.getSharedOptions(ke),st=this.includeOptions(b,tt),ot=A.axis,Et=U.axis,{spanGaps:Lt,segment:Kt}=this.options,on=rt(Lt)?Lt:Number.POSITIVE_INFINITY,Cn=this.chart._animationsDisabled||T||"none"===b;let gn=p>0&&this.getParsed(p-1);for(let un=p;un<p+_;++un){const In=c[un],Tn=this.getParsed(un),Vn=Cn?In:{},Hn=s(Tn[Et]),wi=Vn[ot]=A.getPixelForValue(Tn[ot],un),Vi=Vn[Et]=T||Hn?U.getBasePixel():U.getPixelForValue(ie?this.applyStack(U,Tn,ie):Tn[Et],un);Vn.skip=isNaN(wi)||isNaN(Vi)||Hn,Vn.stop=un>0&&Math.abs(Tn[ot]-gn[ot])>on,Kt&&(Vn.parsed=Tn,Vn.raw=Me.data[un]),st&&(Vn.options=tt||this.resolveDataElementOptions(un,In.active?"active":b)),Cn||this.updateElement(In,un,Vn,b),gn=Tn}this.updateSharedOptions(tt,b,ke)}getMaxOverflow(){const c=this._cachedMeta,p=c.data||[];if(!this.options.showLine){let U=0;for(let ie=p.length-1;ie>=0;--ie)U=Math.max(U,p[ie].size(this.resolveDataElementOptions(ie))/2);return U>0&&U}const _=c.dataset,b=_.options&&_.options.borderWidth||0;if(!p.length)return b;const T=p[0].size(this.resolveDataElementOptions(0)),A=p[p.length-1].size(this.resolveDataElementOptions(p.length-1));return Math.max(b,T,A)/2}}return h.id="scatter",h.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},h.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:d=>"("+d.label+", "+d.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},h})()});function Es(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Ui={_date:(()=>{class h{constructor(c){this.options=c||{}}init(c){}formats(){return Es()}parse(c,p){return Es()}format(c,p){return Es()}add(c,p,_){return Es()}diff(c,p,_){return Es()}startOf(c,p,_){return Es()}endOf(c,p){return Es()}}return h.override=function(d){Object.assign(h.prototype,d)},h})()};function Cl(h,d,c,p){const{controller:_,data:b,_sorted:T}=h,A=_._cachedMeta.iScale;if(A&&d===A.axis&&"r"!==d&&T&&b.length){const U=A._reversePixels?vn:Sn;if(!p)return U(b,d,c);if(_._sharedOptions){const ie=b[0],Me="function"==typeof ie.getRange&&ie.getRange(d);if(Me){const ke=U(b,d,c-Me),tt=U(b,d,c+Me);return{lo:ke.lo,hi:tt.hi}}}}return{lo:0,hi:b.length-1}}function fa(h,d,c,p,_){const b=h.getSortedVisibleDatasetMetas(),T=c[d];for(let A=0,U=b.length;A<U;++A){const{index:ie,data:Me}=b[A],{lo:ke,hi:tt}=Cl(b[A],d,T,_);for(let st=ke;st<=tt;++st){const ot=Me[st];ot.skip||p(ot,ie,st)}}}function ma(h,d,c,p,_){const b=[];return!_&&!h.isPointInArea(d)||fa(h,c,d,function(A,U,ie){!_&&!gs(A,h.chartArea,0)||A.inRange(d.x,d.y,p)&&b.push({element:A,datasetIndex:U,index:ie})},!0),b}function Pc(h,d,c,p,_,b){return b||h.isPointInArea(d)?"r"!==c||p?function Oc(h,d,c,p,_,b){let T=[];
vendor: 20,245 bytes, line 1
1const A=function wd(h){const d=-1!==h.indexOf("x"),c=-1!==h.indexOf("y");return function(p,_){const b=d?Math.abs(p.x-_.x):0,T=c?Math.abs(p.y-_.y):0;return Math.sqrt(Math.pow(b,2)+Math.pow(T,2))}}(c);let U=Number.POSITIVE_INFINITY;return fa(h,c,d,function ie(Me,ke,tt){const st=Me.inRange(d.x,d.y,_);if(p&&!st)return;const ot=Me.getCenterPoint(_);if(!b&&!h.isPointInArea(ot)&&!st)return;const Lt=A(d,ot);Lt<U?(T=[{element:Me,datasetIndex:ke,index:tt}],U=Lt):Lt===U&&T.push({element:Me,datasetIndex:ke,index:tt})}),T}(h,d,c,p,_,b):function Sd(h,d,c,p){let _=[];return fa(h,c,d,function b(T,A,U){const{startAngle:ie,endAngle:Me}=T.getProps(["startAngle","endAngle"],p),{angle:ke}=Nt(T,{x:d.x,y:d.y});zt(ke,ie,Me)&&_.push({element:T,datasetIndex:A,index:U})}),_}(h,d,c,_):[]}function ga(h,d,c,p,_){const b=[],T="x"===c?"inXRange":"inYRange";let A=!1;return fa(h,c,d,(U,ie,Me)=>{U[T](d[c],_)&&(b.push({element:U,datasetIndex:ie,index:Me}),A=A||U.inRange(d.x,d.y,_))}),p&&!A?[]:b}var Tu={evaluateInteractionItems:fa,modes:{index(h,d,c,p){const _=Hs(d,h),b=c.axis||"x",T=c.includeInvisible||!1,A=c.intersect?ma(h,_,b,p,T):Pc(h,_,b,!1,p,T),U=[];return A.length?(h.getSortedVisibleDatasetMetas().forEach(ie=>{const Me=A[0].index,ke=ie.data[Me];ke&&!ke.skip&&U.push({element:ke,datasetIndex:ie.index,index:Me})}),U):[]},dataset(h,d,c,p){const _=Hs(d,h),b=c.axis||"xy",T=c.includeInvisible||!1;let A=c.intersect?ma(h,_,b,p,T):Pc(h,_,b,!1,p,T);if(A.length>0){const U=A[0].datasetIndex,ie=h.getDatasetMeta(U).data;A=[];for(let Me=0;Me<ie.length;++Me)A.push({element:ie[Me],datasetIndex:U,index:Me})}return A},point:(h,d,c,p)=>ma(h,Hs(d,h),c.axis||"xy",p,c.includeInvisible||!1),nearest:(h,d,c,p)=>Pc(h,Hs(d,h),c.axis||"xy",c.intersect,p,c.includeInvisible||!1),x:(h,d,c,p)=>ga(h,Hs(d,h),"x",c.intersect,p),y:(h,d,c,p)=>ga(h,Hs(d,h),"y",c.intersect,p)}};const Rc=["left","top","right","bottom"];function ds(h,d){return h.filter(c=>c.pos===d)}function Xa(h,d){return h.filter(c=>-1===Rc.indexOf(c.pos)&&c.box.axis===d)}function fo(h,d){return h.sort((c,p)=>{const _=d?p:c,b=d?c:p;return _.weight===b.weight?_.index-b.index:_.weight-b.weight})}function $(h,d,c,p){return Math.max(h[c],d[c])+Math.max(h[p],d[p])}function J(h,d){h.top=Math.max(h.top,d.top),h.left=Math.max(h.left,d.left),h.bottom=Math.max(h.bottom,d.bottom),h.right=Math.max(h.right,d.right)}function R(h,d,c,p){const{pos:_,box:b}=c,T=h.maxPadding;if(!x(_)){c.size&&(h[_]-=c.size);const ke=p[c.stack]||{size:0,count:1};ke.size=Math.max(ke.size,c.horizontal?b.height:b.width),c.size=ke.size/ke.count,h[_]+=c.size}b.getPadding&&J(T,b.getPadding());const A=Math.max(0,d.outerWidth-$(T,h,"left","right")),U=Math.max(0,d.outerHeight-$(T,h,"top","bottom")),ie=A!==h.w,Me=U!==h.h;return h.w=A,h.h=U,c.horizontal?{same:ie,other:Me}:{same:Me,other:ie}}function Se(h,d){const c=d.maxPadding;return function p(_){const b={left:0,top:0,right:0,bottom:0};return _.forEach(T=>{b[T]=Math.max(d[T],c[T])}),b}(h?["left","right"]:["top","bottom"])}function Pe(h,d,c,p){const _=[];let b,T,A,U,ie,Me;for(b=0,T=h.length,ie=0;b<T;++b){A=h[b],U=A.box,U.update(A.width||d.w,A.height||d.h,Se(A.horizontal,d));const{same:ke,other:tt}=R(d,c,A,p);ie|=ke&&_.length,Me=Me||tt,U.fullSize||_.push(A)}return ie&&Pe(_,d,c,p)||Me}function Ge(h,d,c,p,_){h.top=c,h.left=d,h.right=d+p,h.bottom=c+_,h.width=p,h.height=_}function kt(h,d,c,p){const _=c.padding;let{x:b,y:T}=d;for(const A of h){const U=A.box,ie=p[A.stack]||{count:1,placed:0,weight:1},Me=A.stackWeight/ie.weight||1;if(A.horizontal){const ke=d.w*Me,tt=ie.size||U.height;be(ie.start)&&(T=ie.start),U.fullSize?Ge(U,_.left,T,c.outerWidth-_.right-_.left,tt):Ge(U,d.left+ie.placed,T,ke,tt),ie.start=T,ie.placed+=ke,T=U.bottom}else{const ke=d.h*Me,tt=ie.size||U.width;be(ie.start)&&(b=ie.start),U.fullSize?Ge(U,b,_.top,tt,c.outerHeight-_.bottom-_.top):Ge(U,b,d.top+ie.placed,tt,ke),ie.start=b,ie.placed+=ke,b=U.right}}d.x=b,d.y=T}Qn.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var qt={addBox(h,d){h.boxes||(h.boxes=[]),d.fullSize=d.fullSize||!1,d.position=d.position||"top",d.weight=d.weight||0,d._layers=d._layers||function(){return[{z:0,draw(c){d.draw(c)}}]},h.boxes.push(d)},removeBox(h,d){const c=h.boxes?h.boxes.indexOf(d):-1;-1!==c&&h.boxes.splice(c,1)},configure(h,d,c){d.fullSize=c.fullSize,d.position=c.position,d.weight=c.weight},update(h,d,c,p){if(!h)return;const _=Gi(h.options.layout.padding),b=Math.max(d-_.width,0),T=Math.max(c-_.height,0),A=function Lc(h){const d=function Fc(h){const d=[];let c,p,_,b,T,A;for(c=0,p=(h||[]).length;c<p;++c)_=h[c],({position:b,options:{stack:T,stackWeight:A=1}}=_),d.push({index:c,box:_,pos:b,horizontal:_.isHorizontal(),weight:_.weight,stack:T&&b+T,stackWeight:A});return d}(h),c=fo(d.filter(ie=>ie.box.fullSize),!0),p=fo(ds(d,"left"),!0),_=fo(ds(d,"right")),b=fo(ds(d,"top"),!0),T=fo(ds(d,"bottom")),A=Xa(d,"x"),U=Xa(d,"y");return{fullSize:c,leftAndTop:p.concat(b),rightAndBottom:_.concat(U).concat(T).concat(A),chartArea:ds(d,"chartArea"),vertical:p.concat(_).concat(U),horizontal:b.concat(T).concat(A)}}(h.boxes),U=A.vertical,ie=A.horizontal;z(h.boxes,Et=>{"function"==typeof Et.beforeLayout&&Et.beforeLayout()});const Me=U.reduce((Et,Lt)=>Lt.box.options&&!1===Lt.box.options.display?Et:Et+1,0)||1,ke=Object.freeze({outerWidth:d,outerHeight:c,padding:_,availableWidth:b,availableHeight:T,vBoxMaxWidth:b/2/Me,hBoxMaxHeight:T/2}),tt=Object.assign({},_);J(tt,Gi(p));const st=Object.assign({maxPadding:tt,w:b,h:T,x:_.left,y:_.top},_),ot=function mo(h,d){const c=function Sr(h){const d={};for(const c of h){const{stack:p,pos:_,stackWeight:b}=c;if(!p||!Rc.includes(_))continue;const T=d[p]||(d[p]={count:0,placed:0,weight:0,size:0});T.count++,T.weight+=b}return d}(h),{vBoxMaxWidth:p,hBoxMaxHeight:_}=d;let b,T,A;for(b=0,T=h.length;b<T;++b){A=h[b];const{fullSize:U}=A.box,ie=c[A.stack],Me=ie&&A.stackWeight/ie.weight;A.horizontal?(A.width=Me?Me*p:U&&d.availableWidth,A.height=_):(A.width=p,A.height=Me?Me*_:U&&d.availableHeight)}return c}(U.concat(ie),ke);Pe(A.fullSize,st,ke,ot),Pe(U,st,ke,ot),Pe(ie,st,ke,ot)&&Pe(U,st,ke,ot),function oe(h){const d=h.maxPadding;function c(p){const _=Math.max(d[p]-h[p],0);return h[p]+=_,_}h.y+=c("top"),h.x+=c("left"),c("right"),c("bottom")}(st),kt(A.leftAndTop,st,ke,ot),st.x+=st.w,st.y+=st.h,kt(A.rightAndBottom,st,ke,ot),h.chartArea={left:st.left,top:st.top,right:st.left+st.w,bottom:st.top+st.h,height:st.h,width:st.w},z(A.chartArea,Et=>{const Lt=Et.box;Object.assign(Lt,h.chartArea),Lt.update(st.w,st.h,{left:0,top:0,right:0,bottom:0})})}};class Pn{acquireContext(d,c){}releaseContext(d){return!1}addEventListener(d,c,p){}removeEventListener(d,c,p){}getDevicePixelRatio(){return 1}getMaximumSize(d,c,p,_){return c=Math.max(0,c||d.width),p=p||d.height,{width:c,height:Math.max(0,_?Math.floor(c/_):p)}}isAttached(d){return!0}updateConfig(d){}}class Fn extends Pn{acquireContext(d){return d&&d.getContext&&d.getContext("2d")||null}updateConfig(d){d.options.animation=!1}}const Ci="$chartjs",$s={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},go=h=>null===h||""===h,Fo=!!Gt&&{passive:!0};function Yl(h,d,c){h.canvas.removeEventListener(d,c,Fo)}function va(h,d){for(const c of h)if(c===d||c.contains(d))return!0}function xl(h,d,c){const p=h.canvas,_=new MutationObserver(b=>{let T=!1;for(const A of b)T=T||va(A.addedNodes,p),T=T&&!va(A.removedNodes,p);T&&c()});return _.observe(document,{childList:!0,subtree:!0}),_}function Eu(h,d,c){const p=h.canvas,_=new MutationObserver(b=>{let T=!1;for(const A of b)T=T||va(A.removedNodes,p),T=T&&!va(A.addedNodes,p);T&&c()});return _.observe(document,{childList:!0,subtree:!0}),_}const Xo=new Map;let Du=0;function Nc(){const h=window.devicePixelRatio;h!==Du&&(Du=h,Xo.forEach((d,c)=>{c.currentDevicePixelRatio!==h&&d()}))}function Iu(h,d,c){const p=h.canvas,_=p&&es(p);if(!_)return;const b=pe((A,U)=>{const ie=_.clientWidth;c(A,U),ie<_.clientWidth&&c()},window),T=new ResizeObserver(A=>{const U=A[0],ie=U.contentRect.width,Me=U.contentRect.height;0===ie&&0===Me||b(ie,Me)});return T.observe(_),function wl(h,d){Xo.size||window.addEventListener("resize",Nc),Xo.set(h,d)}(h,b),T}function Bc(h,d,c){c&&c.disconnect(),"resize"===d&&function Jl(h){Xo.delete(h),Xo.size||window.removeEventListener("resize",Nc)}(h)}function Md(h,d,c){const p=h.canvas,_=pe(b=>{null!==h.ctx&&c(function _a(h,d){const c=$s[h.type]||h.type,{x:p,y:_}=Hs(h,d);return{type:c,chart:d,native:h,x:void 0!==p?p:null,y:void 0!==_?_:null}}(b,h))},h,b=>{const T=b[0];return[T,T.offsetX,T.offsetY]});return function Wr(h,d,c){h.addEventListener(d,c,Fo)}(p,d,_),_}class el extends Pn{acquireContext(d,c){const p=d&&d.getContext&&d.getContext("2d");return p&&p.canvas===d?(function _o(h,d){const c=h.style,p=h.getAttribute("height"),_=h.getAttribute("width");if(h[Ci]={initial:{height:p,width:_,style:{display:c.display,height:c.height,width:c.width}}},c.display=c.display||"block",c.boxSizing=c.boxSizing||"border-box",go(_)){const b=Nn(h,"width");void 0!==b&&(h.width=b)}if(go(p))if(""===h.style.height)h.height=h.width/(d||2);else{const b=Nn(h,"height");void 0!==b&&(h.height=b)}}(d,c),p):null}releaseContext(d){const c=d.canvas;if(!c[Ci])return!1;const p=c[Ci].initial;["height","width"].forEach(b=>{const T=p[b];s(T)?c.removeAttribute(b):c.setAttribute(b,T)});const _=p.style||{};return Object.keys(_).forEach(b=>{c.style[b]=_[b]}),c.width=c.width,delete c[Ci],!0}addEventListener(d,c,p){this.removeEventListener(d,c),(d.$proxies||(d.$proxies={}))[c]=({attach:xl,detach:Eu,resize:Iu}[c]||Md)(d,c,p)}removeEventListener(d,c){const p=d.$proxies||(d.$proxies={}),_=p[c];_&&(({attach:Bc,detach:Bc,resize:Bc}[c]||Yl)(d,c,_),p[c]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(d,c,p,_){return function ce(h,d,c,p){const _=mr(h),b=Cr(_,"margin"),T=eo(_.maxWidth,h,"clientWidth")||q,A=eo(_.maxHeight,h,"clientHeight")||q,U=function Ce(h,d,c){let p,_;if(void 0===d||void 0===c){const b=es(h);if(b){const T=b.getBoundingClientRect(),A=mr(b),U=Cr(A,"border","width"),ie=Cr(A,"padding");d=T.width-ie.width-U.width,c=T.height-ie.height-U.height,p=eo(A.maxWidth,b,"clientWidth"),_=eo(A.maxHeight,b,"clientHeight")}else d=h.clientWidth,c=h.clientHeight}return{width:d,height:c,maxWidth:p||q,maxHeight:_||q}}(h,d,c);let{width:ie,height:Me}=U;if("content-box"===_.boxSizing){const ke=Cr(_,"border","width"),tt=Cr(_,"padding");ie-=tt.width+ke.width,Me-=tt.height+ke.height}return ie=Math.max(0,ie-b.width),Me=Math.max(0,p?Math.floor(ie/p):Me-b.height),ie=ge(Math.min(ie,T,U.maxWidth)),Me=ge(Math.min(Me,A,U.maxHeight)),ie&&!Me&&(Me=ge(ie/2)),{width:ie,height:Me}}(d,c,p,_)}isAttached(d){const c=es(d);return!(!c||!c.isConnected)}}class Td{constructor(){this._init=[]}notify(d,c,p,_){"beforeInit"===c&&(this._init=this._createDescriptors(d,!0),this._notify(this._init,d,"install"));const b=_?this._descriptors(d).filter(_):this._descriptors(d),T=this._notify(b,d,c,p);return"afterDestroy"===c&&(this._notify(b,d,"stop"),this._notify(this._init,d,"uninstall")),T}_notify(d,c,p,_){_=_||{};for(const b of d){const T=b.plugin;if(!1===k(T[p],[c,_,b.options],T)&&_.cancelable)return!1}return!0}invalidate(){s(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(d){if(this._cache)return this._cache;const c=this._cache=this._createDescriptors(d);return this._notifyStateChanges(d),c}_createDescriptors(d,c){const p=d&&d.config,_=I(p.options&&p.options.plugins,{}),b=function Mh(h){const d={},c=[],p=Object.keys(qn.plugins.items);for(let b=0;b<p.length;b++)c.push(qn.getPlugin(p[b]));const _=h.plugins||[];for(let b=0;b<_.length;b++){const T=_[b];-1===c.indexOf(T)&&(c.push(T),d[T.id]=!0)}return{plugins:c,localIds:d}}(p);return!1!==_||c?function Ed(h,{plugins:d,localIds:c},p,_){const b=[],T=h.getContext();for(const A of d){const U=A.id,ie=Au(p[U],_);null!==ie&&b.push({plugin:A,options:Th(h.config,{plugin:A,local:c[U]},ie,T)})}return b}(d,b,_,c):[]}_notifyStateChanges(d){const c=this._oldCache||[],p=this._cache,_=(b,T)=>b.filter(A=>!T.some(U=>A.plugin.id===U.plugin.id));this._notify(_(c,p),d,"stop"),this._notify(_(p,c),d,"start")}}function Au(h,d){return d||!1!==h?!0===h?{}:h:null}function Th(h,{plugin:d,local:c},p,_){const b=h.pluginScopeKeys(d),T=h.getOptionScopes(p,b);return c&&d.defaults&&T.push(d.defaults),h.createResolver(T,_,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vc(h,d){return((d.datasets||{})[h]||{}).indexAxis||d.indexAxis||(Qn.datasets[h]||{}).indexAxis||"x"}function ql(h,d){return"x"===h||"y"===h?h:d.axis||function Ql(h){return"top"===h||"bottom"===h?"x":"left"===h||"right"===h?"y":void 0}(d.position)||h.charAt(0).toLowerCase()}function Xl(h){const d=h.options||(h.options={});d.plugins=I(d.plugins,{}),d.scales=function Eh(h,d){const c=ji[h.type]||{scales:{}},p=d.scales||{},_=Vc(h.type,d),b=Object.create(null),T=Object.create(null);return Object.keys(p).forEach(A=>{const U=p[A];if(!x(U))return console.error(`Invalid scale configuration for scale: ${A}`);if(U._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${A}`);const ie=ql(A,U),Me=function Id(h,d){return h===d?"_index_":"_value_"}(ie,_),ke=c.scales||{};b[ie]=b[ie]||A,T[A]=Y(Object.create(null),[{axis:ie},U,ke[ie],ke[Me]])}),h.data.datasets.forEach(A=>{const U=A.type||h.type,ie=A.indexAxis||Vc(U,d),ke=(ji[U]||{}).scales||{};Object.keys(ke).forEach(tt=>{const st=function Dd(h,d){let c=h;return"_index_"===h?c=d:"_value_"===h&&(c="x"===d?"y":"x"),c}(tt,ie),ot=A[st+"AxisID"]||b[st]||st;T[ot]=T[ot]||Object.create(null),Y(T[ot],[{axis:st},p[ot],ke[tt]])})}),Object.keys(T).forEach(A=>{const U=T[A];Y(U,[Qn.scales[U.type],Qn.scale])}),T}(h,d)}function Ad(h){return(h=h||{}).datasets=h.datasets||[],h.labels=h.labels||[],h}const kd=new Map,Ou=new Set;function ec(h,d){let c=kd.get(h);return c||(c=d(),kd.set(h,c),Ou.add(c)),c}const Na=(h,d,c)=>{const p=O(d,c);void 0!==p&&h.add(p)};class Dh{constructor(d){this._config=function ku(h){return(h=h||{}).data=Ad(h.data),Xl(h),h}(d),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(d){this._config.type=d}get data(){return this._config.data}set data(d){this._config.data=Ad(d)}get options(){return this._config.options}set options(d){this._config.options=d}get plugins(){return this._config.plugins}update(){const d=this._config;this.clearCache(),Xl(d)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(d){return ec(d,()=>[[`datasets.${d}`,""]])}datasetAnimationScopeKeys(d,c){return ec(`${d}.transition.${c}`,()=>[[`datasets.${d}.transitions.${c}`,`transitions.${c}`],[`datasets.${d}`,""]])}datasetElementScopeKeys(d,c){return ec(`${d}-${c}`,()=>[[`datasets.${d}.elements.${c}`,`datasets.${d}`,`elements.${c}`,""]])}pluginScopeKeys(d){const c=d.id;return ec(`${this.type}-plugin-${c}`,()=>[[`plugins.${c}`,...d.additionalOptionScopes||[]]])}_cachedScopes(d,c){const p=this._scopeCache;let _=p.get(d);return(!_||c)&&(_=new Map,p.set(d,_)),_}getOptionScopes(d,c,p){const{options:_,type:b}=this,T=this._cachedScopes(d,p),A=T.get(c);if(A)return A;const U=new Set;c.forEach(Me=>{d&&(U.add(d),Me.forEach(ke=>Na(U,d,ke))),Me.forEach(ke=>Na(U,_,ke)),Me.forEach(ke=>Na(U,ji[b]||{},ke)),Me.forEach(ke=>Na(U,Qn,ke)),Me.forEach(ke=>Na(U,Ni,ke))});const ie=Array.from(U);return 0===ie.length&&ie.push(Object.create(null)),Ou.has(c)&&T.set(c,ie),ie}chartOptionScopes(){const{options:d,type:c}=this;return[d,ji[c]||{},Qn.datasets[c]||{},{type:c},Qn,Ni]}resolveNamedOptions(d,c,p,_=[""]){const b={$shared:!0},{resolver:T,subPrefixes:A}=Od(this._resolverCache,d,_);let U=T;(function Ih(h,d){const{isScriptable:c,isIndexable:p}=Ir(h);for(const _ of d){const b=c(_),T=p(_),A=(T||b)&&h[_];if(b&&(Qe(A)||Hc(A))||T&&D(A))return!0}return!1})(T,c)&&(b.$shared=!1,U=zr(T,p=Qe(p)?p():p,this.createResolver(d,p,A)));for(const ie of c)b[ie]=U[ie];return b}createResolver(d,c,p=[""],_){const{resolver:b}=Od(this._resolverCache,d,p);return x(c)?zr(b,c,void 0,_):b}}function Od(h,d,c){let p=h.get(d);p||(p=new Map,h.set(d,p));const _=c.join();let b=p.get(_);return b||(b={resolver:er(d,c),subPrefixes:c.filter(A=>!A.toLowerCase().includes("hover"))},p.set(_,b)),b}const Hc=h=>x(h)&&Object.getOwnPropertyNames(h).reduce((d,c)=>d||Qe(h[c]),!1),Ah=["top","bottom","left","right","chartArea"];function Pd(h,d){return"top"===h||"bottom"===h||-1===Ah.indexOf(h)&&"x"===d}function Rd(h,d){return function(c,p){return c[h]===p[h]?c[d]-p[d]:c[h]-p[h]}}function Pu(h){const d=h.chart,c=d.options.animation;d.notifyPlugins("afterRender"),k(c&&c.onComplete,[h],d)}function Ru(h){const d=h.chart,c=d.options.animation;k(c&&c.onProgress,[h],d)}function tc(h){return fr()&&"string"==typeof h?h=document.getElementById(h):h&&h.length&&(h=h[0]),h&&h.canvas&&(h=h.canvas),h}const Ml={},zc=h=>{const d=tc(h);return Object.values(Ml).filter(c=>c.canvas===d).pop()};function Fu(h,d,c){const p=Object.keys(h);for(const _ of p){const b=+_;if(b>=d){const T=h[_];delete h[_],(c>0||b>d)&&(h[b+c]=T)}}}class Uc{constructor(d,c){const p=this.config=new Dh(c),_=tc(d),b=zc(_);if(b)throw new Error("Canvas is already in use. Chart with ID '"+b.id+"' must be destroyed before the canvas with ID '"+b.canvas.id+"' can be reused.");const T=p.createResolver(p.chartOptionScopes(),this.getContext());this.platform=new(p.platform||function Sl(h){return!fr()||typeof OffscreenCanvas<"u"&&h instanceof OffscreenCanvas?Fn:el}(_)),this.platform.updateConfig(p);const A=this.platform.acquireContext(_,T.aspectRatio),U=A&&A.canvas,ie=U&&U.height,Me=U&&U.width;this.id=e(),this.ctx=A,this.canvas=U,this.width=Me,this.height=ie,this._options=T,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 Td,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Re(h,d){let c;return function(...p){return d?(clearTimeout(c),c=setTimeout(h,d,p)):h.apply(this,p),d}}(ke=>this.update(ke),T.resizeDelay||0),this._dataChanges=[],Ml[this.id]=this,A&&U?(Rs.listen(this,"complete",Pu),Rs.listen(this,"progress",Ru),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:d,maintainAspectRatio:c},width:p,height:_,_aspectRatio:b}=this;return s(d)?c&&b?b:_?p/_:null:d}get data(){return this.config.data}set data(d){this.config.data=d}get options(){return this._options}set options(d){this.config.options=d}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ze(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qi(this.canvas,this.ctx),this}stop(){return Rs.stop(this),this}resize(d,c){Rs.running(this)?this._resizeBeforeDraw={width:d,height:c}:this._resize(d,c)}_resize(d,c){const p=this.options,T=this.platform.getMaximumSize(this.canvas,d,c,p.maintainAspectRatio&&this.aspectRatio),A=p.devicePixelRatio||this.platform.getDevicePixelRatio(),U=this.width?"resize":"attach";this.width=T.width,this.height=T.height,this._aspectRatio=this.aspectRatio,Ze(this,A,!0)&&(this.notifyPlugins("resize",{size:T}),k(p.onResize,[this,T],this),this.attached&&this._doResize(U)&&this.render())}ensureScalesHaveIDs(){z(this.options.scales||{},(p,_)=>{p.id=_})}buildOrUpdateScales(){const d=this.options,c=d.scales,p=this.scales,_=Object.keys(p).reduce((T,A)=>(T[A]=!1,T),{});let b=[];c&&(b=b.concat(Object.keys(c).map(T=>{const A=c[T],U=ql(T,A),ie="r"===U,Me="x"===U;return{options:A,dposition:ie?"chartArea":Me?"bottom":"left",dtype:ie?"radialLinear":Me?"category":"linear"}}))),z(b,T=>{const A=T.options,U=A.id,ie=ql(U,A),Me=I(A.type,T.dtype);(void 0===A.position||Pd(A.position,ie)!==Pd(T.dposition))&&(A.position=T.dposition),_[U]=!0;let ke=null;U in p&&p[U].type===Me?ke=p[U]:(ke=new(qn.getScale(Me))({id:U,type:Me,ctx:this.ctx,
vendor: 6,143 bytes, line 1
1chart:this}),p[ke.id]=ke),ke.init(A,d)}),z(_,(T,A)=>{T||delete p[A]}),z(p,T=>{qt.configure(this,T,T.options),qt.addBox(this,T)})}_updateMetasets(){const d=this._metasets,c=this.data.datasets.length,p=d.length;if(d.sort((_,b)=>_.index-b.index),p>c){for(let _=c;_<p;++_)this._destroyDatasetMeta(_);d.splice(c,p-c)}this._sortedMetasets=d.slice(0).sort(Rd("order","index"))}_removeUnreferencedMetasets(){const{_metasets:d,data:{datasets:c}}=this;d.length>c.length&&delete this._stacks,d.forEach((p,_)=>{0===c.filter(b=>b===p._dataset).length&&this._destroyDatasetMeta(_)})}buildOrUpdateControllers(){const d=[],c=this.data.datasets;let p,_;for(this._removeUnreferencedMetasets(),p=0,_=c.length;p<_;p++){const b=c[p];let T=this.getDatasetMeta(p);const A=b.type||this.config.type;if(T.type&&T.type!==A&&(this._destroyDatasetMeta(p),T=this.getDatasetMeta(p)),T.type=A,T.indexAxis=b.indexAxis||Vc(A,this.options),T.order=b.order||0,T.index=p,T.label=""+b.label,T.visible=this.isDatasetVisible(p),T.controller)T.controller.updateIndex(p),T.controller.linkScales();else{const U=qn.getController(A),{datasetElementType:ie,dataElementType:Me}=Qn.datasets[A];Object.assign(U.prototype,{dataElementType:qn.getElement(Me),datasetElementType:ie&&qn.getElement(ie)}),T.controller=new U(this,p),d.push(T.controller)}}return this._updateMetasets(),d}_resetElements(){z(this.data.datasets,(d,c)=>{this.getDatasetMeta(c).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(d){const c=this.config;c.update();const p=this._options=c.createResolver(c.chartOptionScopes(),this.getContext()),_=this._animationsDisabled=!p.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:d,cancelable:!0}))return;const b=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let T=0;for(let ie=0,Me=this.data.datasets.length;ie<Me;ie++){const{controller:ke}=this.getDatasetMeta(ie),tt=!_&&-1===b.indexOf(ke);ke.buildOrUpdateElements(tt),T=Math.max(+ke.getMaxOverflow(),T)}T=this._minPadding=p.layout.autoPadding?T:0,this._updateLayout(T),_||z(b,ie=>{ie.reset()}),this._updateDatasets(d),this.notifyPlugins("afterUpdate",{mode:d}),this._layers.sort(Rd("z","_idx"));const{_active:A,_lastEvent:U}=this;U?this._eventHandler(U,!0):A.length&&this._updateHoverStyles(A,A,!0),this.render()}_updateScales(){z(this.scales,d=>{qt.removeBox(this,d)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const d=this.options,c=new Set(Object.keys(this._listeners)),p=new Set(d.events);(!ze(c,p)||!!this._responsiveListeners!==d.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:d}=this,c=this._getUniformDataChanges()||[];for(const{method:p,start:_,count:b}of c)Fu(d,_,"_removeElements"===p?-b:b)}_getUniformDataChanges(){const d=this._dataChanges;if(!d||!d.length)return;this._dataChanges=[];const c=this.data.datasets.length,p=b=>new Set(d.filter(T=>T[0]===b).map((T,A)=>A+","+T.splice(1).join(","))),_=p(0);for(let b=1;b<c;b++)if(!ze(_,p(b)))return;return Array.from(_).map(b=>b.split(",")).map(b=>({method:b[1],start:+b[2],count:+b[3]}))}_updateLayout(d){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;qt.update(this,this.width,this.height,d);const c=this.chartArea,p=c.width<=0||c.height<=0;this._layers=[],z(this.boxes,_=>{p&&"chartArea"===_.position||(_.configure&&_.configure(),this._layers.push(..._._layers()))},this),this._layers.forEach((_,b)=>{_._idx=b}),this.notifyPlugins("afterLayout")}_updateDatasets(d){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:d,cancelable:!0})){for(let c=0,p=this.data.datasets.length;c<p;++c)this.getDatasetMeta(c).controller.configure();for(let c=0,p=this.data.datasets.length;c<p;++c)this._updateDataset(c,Qe(d)?d({datasetIndex:c}):d);this.notifyPlugins("afterDatasetsUpdate",{mode:d})}}_updateDataset(d,c){const p=this.getDatasetMeta(d),_={meta:p,index:d,mode:c,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",_)&&(p.controller._update(c),_.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",_))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Rs.has(this)?this.attached&&!Rs.running(this)&&Rs.start(this):(this.draw(),Pu({chart:this})))}draw(){let d;if(this._resizeBeforeDraw){const{width:p,height:_}=this._resizeBeforeDraw;this._resize(p,_),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const c=this._layers;for(d=0;d<c.length&&c[d].z<=0;++d)c[d].draw(this.chartArea);for(this._drawDatasets();d<c.length;++d)c[d].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(d){const c=this._sortedMetasets,p=[];let _,b;for(_=0,b=c.length;_<b;++_){const T=c[_];(!d||T.visible)&&p.push(T)}return p}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const d=this.getSortedVisibleDatasetMetas();for(let c=d.length-1;c>=0;--c)this._drawDataset(d[c]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(d){const c=this.ctx,p=d._clip,_=!p.disabled,b=this.chartArea,T={meta:d,index:d.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",T)&&(_&&Ns(c,{left:!1===p.left?0:b.left-p.left,right:!1===p.right?this.width:b.right+p.right,top:!1===p.top?0:b.top-p.top,bottom:!1===p.bottom?this.height:b.bottom+p.bottom}),d.controller.draw(),_&&Xi(c),T.cancelable=!1,this.notifyPlugins("afterDatasetDraw",T))}isPointInArea(d){return gs(d,this.chartArea,this._minPadding)}getElementsAtEventForMode(d,c,p,_){const b=Tu.modes[c];return"function"==typeof b?b(this,d,p,_):[]}getDatasetMeta(d){const c=this.data.datasets[d],p=this._metasets;let _=p.filter(b=>b&&b._dataset===c).pop();return _||(_={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:c&&c.order||0,index:d,_dataset:c,_parsed:[],_sorted:!1},p.push(_)),_}getContext(){return this.$context||(this.$context=Os(null,{chart:this,type:"chart"}))}
vendor: 5,456 bytes, line 1
1getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(d){const c=this.data.datasets[d];if(!c)return!1;const p=this.getDatasetMeta(d);return"boolean"==typeof p.hidden?!p.hidden:!c.hidden}setDatasetVisibility(d,c){this.getDatasetMeta(d).hidden=!c}toggleDataVisibility(d){this._hiddenIndices[d]=!this._hiddenIndices[d]}getDataVisibility(d){return!this._hiddenIndices[d]}_updateVisibility(d,c,p){const _=p?"show":"hide",b=this.getDatasetMeta(d),T=b.controller._resolveAnimations(void 0,_);be(c)?(b.data[c].hidden=!p,this.update()):(this.setDatasetVisibility(d,p),T.update(b,{visible:p}),this.update(A=>A.datasetIndex===d?_:void 0))}hide(d,c){this._updateVisibility(d,c,!1)}show(d,c){this._updateVisibility(d,c,!0)}_destroyDatasetMeta(d){const c=this._metasets[d];c&&c.controller&&c.controller._destroy(),delete this._metasets[d]}_stop(){let d,c;for(this.stop(),Rs.remove(this),d=0,c=this.data.datasets.length;d<c;++d)this._destroyDatasetMeta(d)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:d,ctx:c}=this;this._stop(),this.config.clearCache(),d&&(this.unbindEvents(),qi(d,c),this.platform.releaseContext(c),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Ml[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...d){return this.canvas.toDataURL(...d)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const d=this._listeners,c=this.platform,p=(b,T)=>{c.addEventListener(this,b,T),d[b]=T},_=(b,T,A)=>{b.offsetX=T,b.offsetY=A,this._eventHandler(b)};z(this.options.events,b=>p(b,_))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const d=this._responsiveListeners,c=this.platform,p=(U,ie)=>{c.addEventListener(this,U,ie),d[U]=ie},_=(U,ie)=>{d[U]&&(c.removeEventListener(this,U,ie),delete d[U])},b=(U,ie)=>{this.canvas&&this.resize(U,ie)};let T;const A=()=>{_("attach",A),this.attached=!0,this.resize(),p("resize",b),p("detach",T)};T=()=>{this.attached=!1,_("resize",b),this._stop(),this._resize(0,0),p("attach",A)},c.isAttached(this.canvas)?A():T()}unbindEvents(){z(this._listeners,(d,c)=>{this.platform.removeEventListener(this,c,d)}),this._listeners={},z(this._responsiveListeners,(d,c)=>{this.platform.removeEventListener(this,c,d)}),this._responsiveListeners=void 0}updateHoverStyle(d,c,p){const _=p?"set":"remove";let b,T,A,U;for("dataset"===c&&(b=this.getDatasetMeta(d[0].datasetIndex),b.controller["_"+_+"DatasetHoverStyle"]()),A=0,U=d.length;A<U;++A){T=d[A];const ie=T&&this.getDatasetMeta(T.datasetIndex).controller;ie&&ie[_+"HoverStyle"](T.element,T.datasetIndex,T.index)}}getActiveElements(){return this._active||[]}setActiveElements(d){const c=this._active||[],p=d.map(({datasetIndex:b,index:T})=>{const A=this.getDatasetMeta(b);if(!A)throw new Error("No dataset found at index "+b);return{datasetIndex:b,element:A.data[T],index:T}});!F(p,c)&&(this._active=p,this._lastEvent=null,this._updateHoverStyles(p,c))}notifyPlugins(d,c,p){return this._plugins.notify(this,d,c,p)}_updateHoverStyles(d,c,p){const _=this.options.hover,b=(U,ie)=>U.filter(Me=>!ie.some(ke=>Me.datasetIndex===ke.datasetIndex&&Me.index===ke.index)),T=b(c,d),A=p?d:b(d,c);T.length&&this.updateHoverStyle(T,_.mode,!1),A.length&&_.mode&&this.updateHoverStyle(A,_.mode,!0)}_eventHandler(d,c){const p={event:d,replay:c,cancelable:!0,inChartArea:this.isPointInArea(d)},_=T=>(T.options.events||this.options.events).includes(d.native.type);if(!1===this.notifyPlugins("beforeEvent",p,_))return;const b=this._handleEvent(d,c,p.inChartArea);return p.cancelable=!1,this.notifyPlugins("afterEvent",p,_),(b||p.changed)&&this.render(),this}_handleEvent(d,c,p){const{_active:_=[],options:b}=this,A=this._getActiveElements(d,_,p,c),U=function Oe(h){return"mouseup"===h.type||"click"===h.type||"contextmenu"===h.type}(d),ie=function Lo(h,d,c,p){return c&&"mouseout"!==h.type?p?d:h:null}(d,this._lastEvent,p,U);p&&(this._lastEvent=null,k(b.onHover,[d,A,this],this),U&&k(b.onClick,[d,A,this],this));const Me=!F(A,_);return(Me||c)&&(this._active=A,this._updateHoverStyles(A,_,c)),this._lastEvent=ie,Me}_getActiveElements(d,c,p,_){if("mouseout"===d.type)return[];if(!p)return c;const b=this.options.hover;return this.getElementsAtEventForMode(d,b.mode,b,_)}}const Lu=()=>z(Uc.instances,h=>h._plugins.invalidate()),ya=!0;function $c(h,d,c){const{startAngle:p,pixelMargin:_,x:b,y:T,outerRadius:A,innerRadius:U}=d;let ie=_/A;h.beginPath(),h.arc(b,T,A,p-ie,c+ie),U>_?(ie=_/U,h.arc(b,T,U,c+ie,p-ie,!0)):h.arc(b,T,_,c+ye,p-ye),h.closePath(),h.clip()}function tl(h,d,c,p){return{x:c+h*Math.cos(d),y:p+h*Math.sin(d)}}function jc(h,d,c,p,_,b){const{x:T,y:A,startAngle:U,pixelMargin:ie,innerRadius:Me}=d,ke=Math.max(d.outerRadius+p+c-ie,0),tt=Me>0?Me+p+c+ie:0;let st=0;const ot=_-U;if(p){const Ds=((Me>0?Me-p:0)+(ke>0?ke-p:0))/2;st=(ot-(0!==Ds?ot*Ds/(Ds+p):ot))/2}const Lt=(ot-Math.max(.001,ot*ke-c/K)/ke)/2,Kt=U+Lt+st,on=_-Lt-st,{outerStart:Cn,outerEnd:gn,innerStart:un,innerEnd:In}=function Fd(h,d,c,p){const _=function Zc(h){return Dr(h,["outerStart","outerEnd","innerStart","innerEnd"])}(h.options.borderRadius),b=(c-d)/2,T=Math.min(b,p*d/2),A=U=>{const ie=(c-Math.min(b,U))*p/2;return Yt(U,0,Math.min(b,ie))};return{outerStart:A(_.outerStart),outerEnd:A(_.outerEnd),innerStart:Yt(_.innerStart,0,T),innerEnd:Yt(_.innerEnd,0,T)}}(d,tt,ke,on-Kt),Tn=ke-Cn,Vn=ke-gn,Hn=Kt+Cn/Tn,wi=on-gn/Vn,Vi=tt+un,Di=tt+In,ws=Kt+un/Vi,Ls=on-In/Di;
1if(h.beginPath(),b){if(h.arc(T,A,ke,Hn,wi),gn>0){const Ds=tl(Vn,wi,T,A);h.arc(Ds.x,Ds.y,gn,wi,on+ye)}const gi=tl(Di,on,T,A);if(h.lineTo(gi.x,gi.y),In>0){const Ds=tl(Di,Ls,T,A);h.arc(Ds.x,Ds.y,In,on+ye,Ls+Math.PI)}if(h.arc(T,A,tt,on-In/tt,Kt+un/tt,!0),un>0){const Ds=tl(Vi,ws,T,A);h.arc(Ds.x,Ds.y,un,ws+Math.PI,Kt-ye)}const hs=tl(Tn,Kt,T,A);if(h.lineTo(hs.x,hs.y),Cn>0){const Ds=tl(Tn,Hn,T,A);h.arc(Ds.x,Ds.y,Cn,Kt-ye,Hn)}}else{h.moveTo(T,A);const gi=Math.cos(Hn)*ke+T,hs=Math.sin(Hn)*ke+A;h.lineTo(gi,hs);const Ds=Math.cos(wi)*ke+T,$a=Math.sin(wi)*ke+A;h.lineTo(Ds,$a)}h.closePath()}Object.defineProperties(Uc,{defaults:{enumerable:ya,value:Qn},instances:{enumerable:ya,value:Ml},overrides:{enumerable:ya,value:ji},registry:{enumerable:ya,value:qn},version:{enumerable:ya,value:"3.9.1"},getChart:{enumerable:ya,value:zc},register:{enumerable:ya,value:(...h)=>{qn.add(...h),Lu()}},unregister:{enumerable:ya,value:(...h)=>{qn.remove(...h),Lu()}}});class ar extends is{constructor(d){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,d&&Object.assign(this,d)}inRange(d,c,p){const _=this.getProps(["x","y"],p),{angle:b,distance:T}=Nt(_,{x:d,y:c}),{startAngle:A,endAngle:U,innerRadius:ie,outerRadius:Me,circumference:ke}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],p),tt=this.options.spacing/2,ot=I(ke,U-A)>=X||zt(b,A,U),Et=bn(T,ie+tt,Me+tt);return ot&&Et}getCenterPoint(d){const{x:c,y:p,startAngle:_,endAngle:b,innerRadius:T,outerRadius:A}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],d),{offset:U,spacing:ie}=this.options,Me=(_+b)/2,ke=(T+A+ie+U)/2;return{x:c+Math.cos(Me)*ke,y:p+Math.sin(Me)*ke}}tooltipPosition(d){return this.getCenterPoint(d)}draw(d){const{options:c,circumference:p}=this,_=(c.offset||0)/2,b=(c.spacing||0)/2,T=c.circular;if(this.pixelMargin="inner"===c.borderAlign?.33:0,this.fullCircles=p>X?Math.floor(p/X):0,0===p||this.innerRadius<0||this.outerRadius<0)return;d.save();let A=0;if(_){A=_/2;const ie=(this.startAngle+this.endAngle)/2;d.translate(Math.cos(ie)*A,Math.sin(ie)*A),this.circumference>=K&&(A=_)}d.fillStyle=c.backgroundColor,d.strokeStyle=c.borderColor;const U=function Nu(h,d,c,p,_){const{fullCircles:b,startAngle:T,circumference:A}=d;let U=d.endAngle;if(b){jc(h,d,c,p,T+X,_);for(let ie=0;ie<b;++ie)h.fill();isNaN(A)||(U=T+A%X,A%X==0&&(U+=X))}return jc(h,d,c,p,U,_),h.fill(),U}(d,this,A,b,T);(function Nd(h,d,c,p,_,b){const{options:T}=d,{borderWidth:A,borderJoinStyle:U}=T,ie="inner"===T.borderAlign;A&&(ie?(h.lineWidth=2*A,h.lineJoin=U||"round"):(h.lineWidth=A,h.lineJoin=U||"bevel"),d.fullCircles&&function Ld(h,d,c){const{x:p,y:_,startAngle:b,pixelMargin:T,fullCircles:A}=d,U=Math.max(d.outerRadius-T,0),ie=d.innerRadius+T;let Me;for(c&&$c(h,d,b+X),h.beginPath(),h.arc(p,_,ie,b+X,b,!0),Me=0;Me<A;++Me)h.stroke();for(h.beginPath(),h.arc(p,_,U,b,b+X),Me=0;Me<A;++Me)h.stroke()}(h,d,ie),ie&&$c(h,d,_),jc(h,d,c,p,_,b),h.stroke())})(d,this,A,b,U,T),d.restore()}}function Gc(h,d,c=d){h.lineCap=I(c.borderCapStyle,d.borderCapStyle),h.setLineDash(I(c.borderDash,d.borderDash)),h.lineDashOffset=I(c.borderDashOffset,d.borderDashOffset),h.lineJoin=I(c.borderJoinStyle,d.borderJoinStyle),h.lineWidth=I(c.borderWidth,d.borderWidth),h.strokeStyle=I(c.borderColor,d.borderColor)}function Bu(h,d,c){h.lineTo(c.x,c.y)}function lr(h,d,c={}){const p=h.length,{start:_=0,end:b=p-1}=c,{start:T,end:A}=d,U=Math.max(_,T),ie=Math.min(b,A);return{count:p,start:U,loop:d.loop,ilen:ie<U&&!(_<T&&b<T||_>A&&b>A)?p+ie-U:ie-U}}function Ba(h,d,c,p){const{points:_,options:b}=d,{count:T,start:A,loop:U,ilen:ie}=lr(_,c,p),Me=function Wc(h){return h.stepped?Yr:h.tension||"monotone"===h.cubicInterpolationMode?os:Bu}(b);let st,ot,Et,{move:ke=!0,reverse:tt}=p||{};for(st=0;st<=ie;++st)ot=_[(A+(tt?ie-st:st))%T],!ot.skip&&(ke?(h.moveTo(ot.x,ot.y),ke=!1):Me(h,Et,ot,tt,b.stepped),Et=ot);return U&&(ot=_[(A+(tt?ie:0))%T],Me(h,Et,ot,tt,b.stepped)),!!U}function ea(h,d,c,p){const _=d.points,{count:b,start:T,ilen:A}=lr(_,c,p),{move:U=!0,reverse:ie}=p||{};let tt,st,ot,Et,Lt,Kt,Me=0,ke=0;const on=gn=>(T+(ie?A-gn:gn))%b,Cn=()=>{Et!==Lt&&(h.lineTo(Me,Lt),h.lineTo(Me,Et),h.lineTo(Me,Kt))};for(U&&(st=_[on(0)],h.moveTo(st.x,st.y)),tt=0;tt<=A;++tt){if(st=_[on(tt)],st.skip)continue;const gn=st.x,un=st.y,In=0|gn;In===ot?(un<Et?Et=un:un>Lt&&(Lt=un),Me=(ke*Me+gn)/++ke):(Cn(),h.lineTo(gn,un),ot=In,ke=0,Et=Lt=un),Kt=un}Cn()}function Tl(h){const d=h.options;return h._decimated||h._loop||d.tension||"monotone"===d.cubicInterpolationMode||d.stepped||d.borderDash&&d.borderDash.length?Ba:ea}ar.id="arc",ar.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ar.defaultRoutes={backgroundColor:"backgroundColor"};const Lr="function"==typeof Path2D;let Va=(()=>{class h extends is{constructor(c){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,c&&Object.assign(this,c)}updateControlPoints(c,p){const _=this.options;!_.tension&&"monotone"!==_.cubicInterpolationMode||_.stepped||this._pointsUpdated||($r(this._points,_,c,_.spanGaps?this._loop:this._fullLoop,p),this._pointsUpdated=!0)}set points(c){this._points=c,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function gr(h,d){const c=h.points,p=h.options.spanGaps,_=c.length;if(!_)return[];const b=!!h._loop,{start:T,end:A}=function Pr(h,d,c,p){let _=0,b=d-1;if(c&&!p)for(;_<d&&!h[_].skip;)_++;for(;_<d&&h[_].skip;)_++;for(_%=d,c&&(b+=_);b>_&&h[b%d].skip;)b--;return b%=d,{start:_,end:b}}(c,_,b,p);return function io(h,d,c,p){return p&&p.setContext&&c?function Do(h,d,c,p){const _=h._chart.getContext(),b=lo(h.options),{_datasetIndex:T,options:{spanGaps:A}}=h,U=c.length,ie=[];let Me=b,ke=d[0].start,tt=ke;function st(ot,Et,Lt,Kt){const on=A?-1:1;if(ot!==Et){for(ot+=U;c[ot%U].skip;)ot-=on;for(;c[Et%U].skip;)Et+=on;ot%U!=Et%U&&(ie.push({start:ot%U,end:Et%U,loop:Lt,style:Kt}),Me=Kt,ke=Et%U)}}for(const ot of d){ke=A?ke:ot.start;let Lt,Et=c[ke%U];for(tt=ke+1;tt<=ot.end;tt++){const Kt=c[tt%U];Lt=lo(p.setContext(Os(_,{type:"segment",p0:Et,p1:Kt,p0DataIndex:(tt-1)%U,p1DataIndex:tt%U,datasetIndex:T}))),co(Lt,Me)&&st(ke,tt-1,ot.loop,Me),Et=Kt,Me=Lt}ke<tt-1&&st(ke,tt-1,ot.loop,Me)}return ie}(h,d,c,p):d}(h,!0===p?[{start:T,end:A,loop:b}
vendor: 13,468 bytes, line 1
1]:function no(h,d,c,p){const _=h.length,b=[];let U,T=d,A=h[d];for(U=d+1;U<=c;++U){const ie=h[U%_];ie.skip||ie.stop?A.skip||(b.push({start:d%_,end:(U-1)%_,loop:p=!1}),d=T=ie.stop?U:null):(T=U,A.skip&&(d=U)),A=ie}return null!==T&&b.push({start:d%_,end:T%_,loop:p}),b}(c,T,A<T?A+_:A,!!h._fullLoop&&0===T&&A===_-1),c,d)}(this,this.options.segment))}first(){const c=this.segments;return c.length&&this.points[c[0].start]}last(){const c=this.segments,_=c.length;return _&&this.points[c[_-1].end]}interpolate(c,p){const _=this.options,b=c[p],T=this.points,A=_i(this,{property:p,start:b,end:b});if(!A.length)return;const U=[],ie=function Kc(h){return h.stepped?Xt:h.tension||"monotone"===h.cubicInterpolationMode?di:Hi}(_);let Me,ke;for(Me=0,ke=A.length;Me<ke;++Me){const{start:tt,end:st}=A[Me],ot=T[tt],Et=T[st];if(ot===Et){U.push(ot);continue}const Kt=ie(ot,Et,Math.abs((b-ot[p])/(Et[p]-ot[p])),_.stepped);Kt[p]=c[p],U.push(Kt)}return 1===U.length?U[0]:U}pathSegment(c,p,_){return Tl(this)(c,this,p,_)}path(c,p,_){const b=this.segments,T=Tl(this);let A=this._loop;p=p||0,_=_||this.points.length-p;for(const U of b)A&=T(c,this,U,{start:p,end:p+_-1});return!!A}draw(c,p,_,b){(this.points||[]).length&&(this.options||{}).borderWidth&&(c.save(),function Vu(h,d,c,p){Lr&&!d.options.segment?function nc(h,d,c,p){let _=d._path;_||(_=d._path=new Path2D,d.path(_,c,p)&&_.closePath()),Gc(h,d.options),h.stroke(_)}(h,d,c,p):function Yc(h,d,c,p){const{segments:_,options:b}=d,T=Tl(d);for(const A of _)Gc(h,b,A.style),h.beginPath(),T(h,d,A,{start:c,end:c+p-1})&&h.closePath(),h.stroke()}(h,d,c,p)}(c,this,_,b),c.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}return h.id="line",h.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},h.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},h.descriptors={_scriptable:!0,_indexable:d=>"borderDash"!==d&&"fill"!==d},h})();function Jc(h,d,c,p){const _=h.options,{[c]:b}=h.getProps([c],p);return Math.abs(d-b)<_.radius+_.hitRadius}let Hu=(()=>{class h extends is{constructor(c){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,c&&Object.assign(this,c)}inRange(c,p,_){const b=this.options,{x:T,y:A}=this.getProps(["x","y"],_);return Math.pow(c-T,2)+Math.pow(p-A,2)<Math.pow(b.hitRadius+b.radius,2)}inXRange(c,p){return Jc(this,c,"x",p)}inYRange(c,p){return Jc(this,c,"y",p)}getCenterPoint(c){const{x:p,y:_}=this.getProps(["x","y"],c);return{x:p,y:_}}size(c){let p=(c=c||this.options||{}).radius||0;return p=Math.max(p,p&&c.hoverRadius||0),2*(p+(p&&c.borderWidth||0))}draw(c,p){const _=this.options;this.skip||_.radius<.1||!gs(this,p,this.size(_)/2)||(c.strokeStyle=_.borderColor,c.lineWidth=_.borderWidth,c.fillStyle=_.backgroundColor,Xs(c,_,this.x,this.y))}getRange(){const c=this.options||{};return c.radius+c.hitRadius}}return h.id="point",h.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},h.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},h})();function nl(h,d){const{x:c,y:p,base:_,width:b,height:T}=h.getProps(["x","y","base","width","height"],d);let A,U,ie,Me,ke;return h.horizontal?(ke=T/2,A=Math.min(c,_),U=Math.max(c,_),ie=p-ke,Me=p+ke):(ke=b/2,A=c-ke,U=c+ke,ie=Math.min(p,_),Me=Math.max(p,_)),{left:A,top:ie,right:U,bottom:Me}}function ta(h,d,c,p){return h?0:Yt(d,c,p)}function Qc(h,d,c,p){const _=null===d,b=null===c,A=h&&!(_&&b)&&nl(h,p);return A&&(_||bn(d,A.left,A.right))&&(b||bn(c,A.top,A.bottom))}function qc(h,d){h.rect(d.x,d.y,d.w,d.h)}function El(h,d,c={}){const p=h.x!==c.x?-d:0,_=h.y!==c.y?-d:0;return{x:h.x+p,y:h.y+_,w:h.w+((h.x+h.w!==c.x+c.w?d:0)-p),h:h.h+((h.y+h.h!==c.y+c.h?d:0)-_),radius:h.radius}}class No extends is{constructor(d){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,d&&Object.assign(this,d)}draw(d){const{inflateAmount:c,options:{borderColor:p,backgroundColor:_}}=this,{inner:b,outer:T}=function zu(h){const d=nl(h),c=d.right-d.left,p=d.bottom-d.top,_=function Bd(h,d,c){const _=h.borderSkipped,b=Vr(h.options.borderWidth);return{t:ta(_.top,b.top,0,c),r:ta(_.right,b.right,0,d),b:ta(_.bottom,b.bottom,0,c),l:ta(_.left,b.left,0,d)}}(h,c/2,p/2),b=function vo(h,d,c){const{enableBorderRadius:p}=h.getProps(["enableBorderRadius"]),_=h.options.borderRadius,b=dr(_),T=Math.min(d,c),A=h.borderSkipped,U=p||x(_);return{topLeft:ta(!U||A.top||A.left,b.topLeft,0,T),topRight:ta(!U||A.top||A.right,b.topRight,0,T),bottomLeft:ta(!U||A.bottom||A.left,b.bottomLeft,0,T),bottomRight:ta(!U||A.bottom||A.right,b.bottomRight,0,T)}}(h,c/2,p/2);return{outer:{x:d.left,y:d.top,w:c,h:p,radius:b},inner:{x:d.left+_.l,y:d.top+_.t,w:c-_.l-_.r,h:p-_.t-_.b,radius:{topLeft:Math.max(0,b.topLeft-Math.max(_.t,_.l)),topRight:Math.max(0,b.topRight-Math.max(_.t,_.r)),bottomLeft:Math.max(0,b.bottomLeft-Math.max(_.b,_.l)),bottomRight:Math.max(0,b.bottomRight-Math.max(_.b,_.r))}}}}(this),A=function Uu(h){return h.topLeft||h.topRight||h.bottomLeft||h.bottomRight}(T.radius)?ks:qc;d.save(),(T.w!==b.w||T.h!==b.h)&&(d.beginPath(),A(d,El(T,c,b)),d.clip(),A(d,El(b,-c,T)),d.fillStyle=p,d.fill("evenodd")),d.beginPath(),A(d,El(b,c)),d.fillStyle=_,d.fill(),d.restore()}inRange(d,c,p){return Qc(this,d,c,p)}inXRange(d,c){return Qc(this,d,null,c)}inYRange(d,c){return Qc(this,null,d,c)}getCenterPoint(d){const{x:c,y:p,base:_,horizontal:b}=this.getProps(["x","y","base","horizontal"],d);return{x:b?(c+_)/2:c,y:b?p:(p+_)/2}}getRange(d){return"x"===d?this.width/2:this.height/2}}No.id="bar",No.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},No.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var $u=Object.freeze({__proto__:null,ArcElement:ar,LineElement:Va,PointElement:Hu,BarElement:No});function ic(h){if(h._decimated){const d=h._data;delete h._decimated,delete h._data,Object.defineProperty(h,"data",{value:d})}}function tu(h){h.data.datasets.forEach(d=>{ic(d)})}var nu={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(h,d,c)=>{if(!c.enabled)return void tu(h);const p=h.width;h.data.datasets.forEach((_,b)=>{const{_data:T,indexAxis:A}=_,U=h.getDatasetMeta(b),ie=T||_.data;if("y"===rr([A,h.options.indexAxis])||!U.controller.supportsDecimation)return;const Me=h.scales[U.xAxisID];if("linear"!==Me.type&&"time"!==Me.type||h.options.parsing)return;let ot,{start:ke,count:tt}=function Vd(h,d){const c=d.length;let _,p=0;const{iScale:b}=h,{min:T,max:A,minDefined:U,maxDefined:ie}=b.getUserBounds();return U&&(p=Yt(Sn(d,b.axis,T).lo,0,c-1)),_=ie?Yt(Sn(d,b.axis,A).hi+1,p,c)-p:c-p,{start:p,count:_}}(U,ie);if(tt<=(c.threshold||4*p))ic(_);else{switch(s(T)&&(_._data=ie,delete _.data,Object.defineProperty(_,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(Et){this._data=Et}})),c.algorithm){case"lttb":ot=function Xc(h,d,c,p,_){const b=_.samples||p;if(b>=c)return h.slice(d,d+c);const T=[],A=(c-2)/(b-2);let U=0;const ie=d+c-1;let ke,tt,st,ot,Et,Me=d;for(T[U++]=h[Me],ke=0;ke<b-2;ke++){let on,Lt=0,Kt=0;const Cn=Math.floor((ke+1)*A)+1+d,gn=Math.min(Math.floor((ke+2)*A)+1,c)+d,un=gn-Cn;for(on=Cn;on<gn;on++)Lt+=h[on].x,Kt+=h[on].y;Lt/=un,Kt/=un;const In=Math.floor(ke*A)+1+d,Tn=Math.min(Math.floor((ke+1)*A)+1,c)+d,{x:Vn,y:Hn}=h[Me];for(st=ot=-1,on=In;on<Tn;on++)ot=.5*Math.abs((Vn-Lt)*(h[on].y-Hn)-(Vn-h[on].x)*(Kt-Hn)),ot>st&&(st=ot,tt=h[on],Et=on);T[U++]=tt,Me=Et}return T[U++]=h[ie],T}(ie,ke,tt,p,c);break;case"min-max":ot=function eu(h,d,c,p){let T,A,U,ie,Me,ke,tt,st,ot,Et,_=0,b=0;const Lt=[],on=h[d].x,gn=h[d+c-1].x-on;for(T=d;T<d+c;++T){A=h[T],U=(A.x-on)/gn*p,ie=A.y;const un=0|U;if(un===Me)ie<ot?(ot=ie,ke=T):ie>Et&&(Et=ie,tt=T),_=(b*_+A.x)/++b;else{const In=T-1;if(!s(ke)&&!s(tt)){const Tn=Math.min(ke,tt),Vn=Math.max(ke,tt);Tn!==st&&Tn!==In&&Lt.push({...h[Tn],x:_}),Vn!==st&&Vn!==In&&Lt.push({...h[Vn],x:_})}T>0&&In!==st&&Lt.push(h[In]),Lt.push(A),Me=un,b=0,ot=Et=ie,ke=tt=st=T}}return Lt}(ie,ke,tt,p);break;default:throw new Error(`Unsupported decimation algorithm '${c.algorithm}'`)}_._decimated=ot}})},destroy(h){tu(h)}};function il(h,d,c,p){if(p)return;let _=d[h],b=c[h];return"angle"===h&&(_=_n(_),b=_n(b)),{property:h,start:_,end:b}}function Dl(h,d,c){for(;d>h;d--){const p=c[d];if(!isNaN(p.x)&&!isNaN(p.y))break}return d}function sl(h,d,c,p){return h&&d?p(h[c],d[c]):h?h[c]:d?d[c]:0}function yo(h,d){let c=[],p=!1;return D(h)?(p=!0,c=h):c=function rc(h,d){const{x:c=null,y:p=null}=h||{},_=d.points,b=[];return d.segments.forEach(({start:T,end:A})=>{A=Dl(T,A,_);const U=_[T],ie=_[A];null!==p?(b.push({x:U.x,y:p}),b.push({x:ie.x,y:p})):null!==c&&(b.push({x:c,y:U.y}),b.push({x:c,y:ie.y}))}),b}(h,d),c.length?new Va({points:c,options:{tension:0},_loop:p,_fullLoop:p}):null}function rl(h){return h&&!1!==h.fill}function oc(h,d,c){let _=h[d].fill;const b=[d];let T;if(!c)return _;for(;!1!==_&&-1===b.indexOf(_);){if(!M(_))return _;if(T=h[_],!T)return!1;if(T.visible)return _;b.push(_),_=T.fill}return!1}function Hd(h,d,c){const p=function su(h){const d=h.options,c=d.fill;let p=I(c&&c.target,c);return void 0===p&&(p=!!d.backgroundColor),!1!==p&&null!==p&&(!0===p?"origin":p)}(h);if(x(p))return!isNaN(p.value)&&p;let _=parseFloat(p);return M(_)&&Math.floor(_)===_?function ol(h,d,c,p){return("-"===h||"+"===h)&&(c=d+c),!(c===d||c<0||c>=p)&&c}(p[0],d,_,c):["origin","start","end","stack","shape"].indexOf(p)>=0&&p}function zd(h,d,c){const p=[];for(let _=0;_<c.length;_++){const b=c[_],{first:T,last:A,point:U}=Kr(b,d,"x");if(!(!U||T&&A))if(T)p.unshift(U);else if(h.push(U),!A)break}h.push(...p)}function Kr(h,d,c){const p=h.interpolate(d,c);if(!p)return{};const _=p[c],b=h.segments,T=h.points;let A=!1,U=!1;for(let ie=0;ie<b.length;ie++){const Me=b[ie],ke=T[Me.start][c],tt=T[Me.end][c];if(bn(_,ke,tt)){A=_===ke,U=_===tt;break}}return{first:A,last:U,point:p}}class ba{constructor(d){this.x=d.x,this.y=d.y,this.radius=d.radius}pathSegment(d,c,p){const{x:_,y:b,radius:T}=this;return d.arc(_,b,T,(c=c||{start:0,end:X}).end,c.start,!0),!p.bounds}interpolate(d){const{x:c,y:p,radius:_}=this,b=d.angle;return{x:c+Math.cos(b)*_,y:p+Math.sin(b)*_,angle:b}}}function ia(h,d,c){const p=function al(h){const{chart:d,fill:c,line:p}=h;if(M(c))return function ju(h,d){const c=h.getDatasetMeta(d);return c&&h.isDatasetVisible(d)?c.dataset:null}(d,c);if("stack"===c)return function na(h){const{scale:d,index:c,line:p}=h,_=[],b=p.segments,T=p.points,A=function Zu(h,d){const c=[],p=h.getMatchingVisibleMetas("line");for(let _=0;_<p.length;_++){const b=p[_];if(b.index===d)break;b.hidden||c.unshift(b.dataset)}return c}(d,c);A.push(yo({x:null,y:d.bottom},p));for(let U=0;U<b.length;U++){const ie=b[U];for(let Me=ie.start;Me<=ie.end;Me++)zd(_,T[Me],A)}return new Va({points:_,options:{}})}(h);if("shape"===c)return!0;const _=function ac(h){return(h.scale||{}).getPointPositionForValue?function ll(h){const{scale:d,fill:c}=h,p=d.options,_=d.getLabels().length,b=p.reverse?d.max:d.min,T=function Ha(h,d,c){let p;return p="start"===h?c:"end"===h?d.options.reverse?d.min:d.max:x(h)?h.value:d.getBaseValue(),p}(c,d,b),A=[];if(p.grid.circular){const U=d.getPointPositionForValue(0,b);return new ba({x:U.x,y:U.y,radius:d.getDistanceFromCenterForValue(T)})}for(let U=0;U<_;++U)A.push(d.getPointPositionForValue(U,T));return A}(h):function lc(h){const{scale:d={},fill:c}=h,p=function iu(h,d){let c=null;return"start"===h?c=d.bottom:"end"===h?c=d.top:x(h)?c=d.getPixelForValue(h.value):d.getBasePixel&&(c=d.getBasePixel()),c}(c,d);if(M(p)){const _=d.isHorizontal();return{x:_?p:null,y:_?null:p}}return null}(h)}(h);return _ instanceof ba?_:yo(_,p)}(d),{line:_,scale:b,axis:T}=d,A=_.options,U=A.fill,ie=A.backgroundColor,{above:Me=ie,below:ke=ie}=U||{};p&&_.points.length&&(Ns(h,c),function cc(h,d){const{line:c,target:p,above:_,below:b,area:T,scale:A}=d,U=c._loop?"angle":d.axis;h.save(),"x"===U&&b!==_&&(Il(h,p,T.top),uc(h,{line:c,target:p,color:_,scale:A,property:U}),h.restore(),h.save(),Il(h,p,T.bottom)),uc(h,{line:c,target:p,color:b,scale:A,property:U}),h.restore()}(h,{line:_,target:p,above:Me,below:ke,area:c,scale:b,axis:T}),Xi(h))}function Il(h,d,c){const{segments:p,points:_}=d;let b=!0,T=!1;h.beginPath();for(const A of p){const{start:U,end:ie}=A,Me=_[U],ke=_[Dl(U,ie,_)];b?(h.moveTo(Me.x,Me.y),b=!1):(h.lineTo(Me.x,c),h.lineTo(Me.x,Me.y)),T=!!d.pathSegment(h,A,{move:T}),T?h.closePath():h.lineTo(ke.x,c)}h.lineTo(d.first().x,c),h.closePath(),h.clip()}function uc(h,d){const{line:c,target:p,property:_,color:b,scale:T}=d,A=function sc(h,d,c){const p=h.segments,_=h.points,b=d.points,T=[];for(const A of p){let{start:U,end:ie}=A;ie=Dl(U,ie,_);const Me=il(c,_[U],_[ie],A.loop);if(!d.segments){T.push({source:A,target:Me,start:_[U],end:_[ie]});continue}const ke=_i(d,Me);for(const tt of ke){const st=il(c,b[tt.start],b[tt.end],tt.loop),ot=Cs(A,_,st);for(const Et of ot)T.push({source:Et,target:tt,start:{[c]:sl(Me,st,"start",Math.max)},end:{[c]:sl(Me,st,"end",Math.min)}})}}return T}(c,p,_);for(const{source:U,target:ie,start:Me,end:ke}of A){const{style:{backgroundColor:tt=b}={}}=U,st=!0!==p;h.save(),h.fillStyle=tt,ru(h,T,st&&il(_,Me,ke)),h.beginPath();const ot=!!c.pathSegment(h,U);let Et;if(st){ot?h.closePath():dc(h,p,ke,_);const Lt=!!p.pathSegment(h,ie,{move:ot,reverse:!0});Et=ot&&Lt,Et||dc(h,p,Me,_)}
vendor: 5,262 bytes, line 1
1h.closePath(),h.fill(Et?"evenodd":"nonzero"),h.restore()}}function ru(h,d,c){const{top:p,bottom:_}=d.chart.chartArea,{property:b,start:T,end:A}=c||{};"x"===b&&(h.beginPath(),h.rect(T,p,A-T,_-p),h.clip())}function dc(h,d,c,p){const _=d.interpolate(c,p);_&&h.lineTo(_.x,_.y)}var cr={id:"filler",afterDatasetsUpdate(h,d,c){const p=(h.data.datasets||[]).length,_=[];let b,T,A,U;for(T=0;T<p;++T)b=h.getDatasetMeta(T),A=b.dataset,U=null,A&&A.options&&A instanceof Va&&(U={visible:h.isDatasetVisible(T),index:T,fill:Hd(A,T,p),chart:h,axis:b.controller.options.indexAxis,scale:b.vScale,line:A}),b.$filler=U,_.push(U);for(T=0;T<p;++T)U=_[T],U&&!1!==U.fill&&(U.fill=oc(_,T,c.propagate))},beforeDraw(h,d,c){const p="beforeDraw"===c.drawTime,_=h.getSortedVisibleDatasetMetas(),b=h.chartArea;for(let T=_.length-1;T>=0;--T){const A=_[T].$filler;A&&(A.line.updateControlPoints(b,A.axis),p&&A.fill&&ia(h.ctx,A,b))}},beforeDatasetsDraw(h,d,c){if("beforeDatasetsDraw"!==c.drawTime)return;const p=h.getSortedVisibleDatasetMetas();for(let _=p.length-1;_>=0;--_){const b=p[_].$filler;rl(b)&&ia(h.ctx,b,h.chartArea)}},beforeDatasetDraw(h,d,c){const p=d.meta.$filler;!rl(p)||"beforeDatasetDraw"!==c.drawTime||ia(h.ctx,p,h.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ou=(h,d)=>{let{boxHeight:c=d,boxWidth:p=d}=h;return h.usePointStyle&&(c=Math.min(c,d),p=h.pointStyleWidth||Math.min(p,d)),{boxWidth:p,boxHeight:c,itemHeight:Math.max(d,c)}};class kl extends is{constructor(d){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=d.chart,this.options=d.options,this.ctx=d.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(d,c,p){this.maxWidth=d,this.maxHeight=c,this._margins=p,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 d=this.options.labels||{};let c=k(d.generateLabels,[this.chart],this)||[];d.filter&&(c=c.filter(p=>d.filter(p,this.chart.data))),d.sort&&(c=c.sort((p,_)=>d.sort(p,_,this.chart.data))),this.options.reverse&&c.reverse(),this.legendItems=c}fit(){const{options:d,ctx:c}=this;if(!d.display)return void(this.width=this.height=0);const p=d.labels,_=Ki(p.font),b=_.size,T=this._computeTitleHeight(),{boxWidth:A,itemHeight:U}=ou(p,b);let ie,Me;c.font=_.string,this.isHorizontal()?(ie=this.maxWidth,Me=this._fitRows(T,b,A,U)+10):(Me=this.maxHeight,ie=this._fitCols(T,b,A,U)+10),this.width=Math.min(ie,d.maxWidth||this.maxWidth),this.height=Math.min(Me,d.maxHeight||this.maxHeight)}_fitRows(d,c,p,_){const{ctx:b,maxWidth:T,options:{labels:{padding:A}}}=this,U=this.legendHitBoxes=[],ie=this.lineWidths=[0],Me=_+A;let ke=d;b.textAlign="left",b.textBaseline="middle";let tt=-1,st=-Me;return this.legendItems.forEach((ot,Et)=>{const Lt=p+c/2+b.measureText(ot.text).width;(0===Et||ie[ie.length-1]+Lt+2*A>T)&&(ke+=Me,ie[ie.length-(Et>0?0:1)]=0,st+=Me,tt++),U[Et]={left:0,top:st,row:tt,width:Lt,height:_},ie[ie.length-1]+=Lt+A}),ke}_fitCols(d,c,p,_){const{ctx:b,maxHeight:T,options:{labels:{padding:A}}}=this,U=this.legendHitBoxes=[],ie=this.columnSizes=[],Me=T-d;let ke=A,tt=0,st=0,ot=0,Et=0;return this.legendItems.forEach((Lt,Kt)=>{const on=p+c/2+b.measureText(Lt.text).width;Kt>0&&st+_+2*A>Me&&(ke+=tt+A,ie.push({width:tt,height:st}),ot+=tt+A,Et++,tt=st=0),U[Kt]={left:ot,top:st,col:Et,width:on,height:_},tt=Math.max(tt,on),st+=_+A}),ke+=tt,ie.push({width:tt,height:st}),ke}adjustHitBoxes(){if(!this.options.display)return;const d=this._computeTitleHeight(),{legendHitBoxes:c,options:{align:p,labels:{padding:_},rtl:b}}=this,T=Ps(b,this.left,this.width);if(this.isHorizontal()){let A=0,U=jt(p,this.left+_,this.right-this.lineWidths[A]);for(const ie of c)A!==ie.row&&(A=ie.row,U=jt(p,this.left+_,this.right-this.lineWidths[A])),ie.top+=this.top+d+_,ie.left=T.leftForLtr(T.x(U),ie.width),U+=ie.width+_}else{let A=0,U=jt(p,this.top+d+_,this.bottom-this.columnSizes[A].height);for(const ie of c)ie.col!==A&&(A=ie.col,U=jt(p,this.top+d+_,this.bottom-this.columnSizes[A].height)),ie.top=U,ie.left+=this.left+_,ie.left=T.leftForLtr(T.x(ie.left),ie.width),U+=ie.height+_}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const d=this.ctx;Ns(d,this),this._draw(),Xi(d)}}_draw(){const{options:d,columnSizes:c,lineWidths:p,ctx:_}=this,{align:b,labels:T}=d,A=Qn.color,U=Ps(d.rtl,this.left,this.width),ie=Ki(T.font),{color:Me,padding:ke}=T,tt=ie.size,st=tt/2;let ot;this.drawTitle(),_.textAlign=U.textAlign("left"),_.textBaseline="middle",_.lineWidth=.5,_.font=ie.string;const{boxWidth:Et,boxHeight:Lt,itemHeight:Kt}=ou(T,tt),gn=this.isHorizontal(),un=this._computeTitleHeight();ot=gn?{x:jt(b,this.left+ke,this.right-p[0]),y:this.top+ke+un,line:0}:{x:this.left+ke,y:jt(b,this.top+un+ke,this.bottom-c[0].height),line:0},zo(this.ctx,d.textDirection);const In=Kt+ke;
vendor: 4,337 bytes, line 1
1this.legendItems.forEach((Tn,Vn)=>{_.strokeStyle=Tn.fontColor||Me,_.fillStyle=Tn.fontColor||Me;const Hn=_.measureText(Tn.text).width,wi=U.textAlign(Tn.textAlign||(Tn.textAlign=T.textAlign)),Vi=Et+st+Hn;let Di=ot.x,ws=ot.y;U.setWidth(this.width),gn?Vn>0&&Di+Vi+ke>this.right&&(ws=ot.y+=In,ot.line++,Di=ot.x=jt(b,this.left+ke,this.right-p[ot.line])):Vn>0&&ws+In>this.bottom&&(Di=ot.x=Di+c[ot.line].width+ke,ot.line++,ws=ot.y=jt(b,this.top+un+ke,this.bottom-c[ot.line].height)),function(Tn,Vn,Hn){if(isNaN(Et)||Et<=0||isNaN(Lt)||Lt<0)return;_.save();const wi=I(Hn.lineWidth,1);if(_.fillStyle=I(Hn.fillStyle,A),_.lineCap=I(Hn.lineCap,"butt"),_.lineDashOffset=I(Hn.lineDashOffset,0),_.lineJoin=I(Hn.lineJoin,"miter"),_.lineWidth=wi,_.strokeStyle=I(Hn.strokeStyle,A),_.setLineDash(I(Hn.lineDash,[])),T.usePointStyle){const Vi={radius:Lt*Math.SQRT2/2,pointStyle:Hn.pointStyle,rotation:Hn.rotation,borderWidth:wi},Di=U.xPlus(Tn,Et/2);Ti(_,Vi,Di,Vn+st,T.pointStyleWidth&&Et)}else{const Vi=Vn+Math.max((tt-Lt)/2,0),Di=U.leftForLtr(Tn,Et),ws=dr(Hn.borderRadius);_.beginPath(),Object.values(ws).some(Ls=>0!==Ls)?ks(_,{x:Di,y:Vi,w:Et,h:Lt,radius:ws}):_.rect(Di,Vi,Et,Lt),_.fill(),0!==wi&&_.stroke()}_.restore()}(U.x(Di),ws,Tn),Di=((h,d,c,p)=>h===(p?"left":"right")?c:"center"===h?(d+c)/2:d)(wi,Di+Et+st,gn?Di+Vi:this.right,d.rtl),function(Tn,Vn,Hn){$i(_,Hn.text,Tn,Vn+Kt/2,ie,{strikethrough:Hn.hidden,textAlign:U.textAlign(Hn.textAlign)})}(U.x(Di),ws,Tn),gn?ot.x+=Vi+ke:ot.y+=In}),Uo(this.ctx,d.textDirection)}drawTitle(){const d=this.options,c=d.title,p=Ki(c.font),_=Gi(c.padding);if(!c.display)return;const b=Ps(d.rtl,this.left,this.width),T=this.ctx,A=c.position,ie=_.top+p.size/2;let Me,ke=this.left,tt=this.width;if(this.isHorizontal())tt=Math.max(...this.lineWidths),Me=this.top+ie,ke=jt(d.align,ke,this.right-tt);else{const ot=this.columnSizes.reduce((Et,Lt)=>Math.max(Et,Lt.height),0);Me=ie+jt(d.align,this.top,this.bottom-ot-d.labels.padding-this._computeTitleHeight())}const st=jt(A,ke,ke+tt);T.textAlign=b.textAlign(Bt(A)),T.textBaseline="middle",T.strokeStyle=c.color,T.fillStyle=c.color,T.font=p.string,$i(T,c.text,st,Me,p)}_computeTitleHeight(){const d=this.options.title,c=Ki(d.font),p=Gi(d.padding);return d.display?c.lineHeight+p.height:0}_getLegendItemAt(d,c){let p,_,b;if(bn(d,this.left,this.right)&&bn(c,this.top,this.bottom))for(b=this.legendHitBoxes,p=0;p<b.length;++p)if(_=b[p],bn(d,_.left,_.left+_.width)&&bn(c,_.top,_.top+_.height))return this.legendItems[p];return null}handleEvent(d){const c=this.options;if(!function Ud(h,d){return!(("mousemove"!==h&&"mouseout"!==h||!d.onHover&&!d.onLeave)&&(!d.onClick||"click"!==h&&"mouseup"!==h))}(d.type,c))return;const p=this._getLegendItemAt(d.x,d.y);if("mousemove"===d.type||"mouseout"===d.type){const _=this._hoveredItem,b=((h,d)=>null!==h&&null!==d&&h.datasetIndex===d.datasetIndex&&h.index===d.index)(_,p);_&&!b&&k(c.onLeave,[d,_,this],this),this._hoveredItem=p,p&&!b&&k(c.onHover,[d,p,this],this)}else p&&k(c.onClick,[d,p,this],this)}}var $d={id:"legend",_element:kl,start(h,d,c){const p=h.legend=new kl({ctx:h.ctx,options:c,chart:h});qt.configure(h,p,c),qt.addBox(h,p)},stop(h){qt.removeBox(h,h.legend),delete h.legend},beforeUpdate(h,d,c){const p=h.legend;qt.configure(h,p,c),p.options=c},afterUpdate(h){const d=h.legend;d.buildLabels(),d.adjustHitBoxes()},afterEvent(h,d){d.replay||h.legend.handleEvent(d.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(h,d,c){const p=d.datasetIndex,_=c.chart;_.isDatasetVisible(p)?(_.hide(p),d.hidden=!0):(_.show(p),d.hidden=!1)},onHover:null,onLeave:null,labels:{color:h=>h.chart.options.color,boxWidth:40,padding:10,generateLabels(h){const d=h.data.datasets,{labels:{usePointStyle:c,pointStyle:p,textAlign:_,color:b}}=h.legend.options;return h._getSortedDatasetMetas().map(T=>{const A=T.controller.getStyle(c?0:void 0),U=Gi(A.borderWidth);return{text:d[T.index].label,fillStyle:A.backgroundColor,fontColor:b,hidden:!T.visible,lineCap:A.borderCapStyle,lineDash:A.borderDash,lineDashOffset:A.borderDashOffset,lineJoin:A.borderJoinStyle,lineWidth:(U.width+U.height)/4,strokeStyle:A.borderColor,pointStyle:p||A.pointStyle,rotation:A.rotation,textAlign:_||A.textAlign,borderRadius:0,datasetIndex:T.index}},this)}},title:{color:h=>h.chart.options.color,display:!1,position:"center",text:""}}
vendor: 4,145 bytes, line 1
1,descriptors:{_scriptable:h=>!h.startsWith("on"),labels:{_scriptable:h=>!["generateLabels","filter","sort"].includes(h)}}};class hc extends is{constructor(d){super(),this.chart=d.chart,this.options=d.options,this.ctx=d.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(d,c){const p=this.options;if(this.left=0,this.top=0,!p.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=d,this.height=this.bottom=c;const _=D(p.text)?p.text.length:1;this._padding=Gi(p.padding);const b=_*Ki(p.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=b:this.width=b}isHorizontal(){const d=this.options.position;return"top"===d||"bottom"===d}_drawArgs(d){const{top:c,left:p,bottom:_,right:b,options:T}=this,A=T.align;let ie,Me,ke,U=0;return this.isHorizontal()?(Me=jt(A,p,b),ke=c+d,ie=b-p):("left"===T.position?(Me=p+d,ke=jt(A,_,c),U=-.5*K):(Me=b-d,ke=jt(A,c,_),U=.5*K),ie=_-c),{titleX:Me,titleY:ke,maxWidth:ie,rotation:U}}draw(){const d=this.ctx,c=this.options;if(!c.display)return;const p=Ki(c.font),b=p.lineHeight/2+this._padding.top,{titleX:T,titleY:A,maxWidth:U,rotation:ie}=this._drawArgs(b);$i(d,c.text,0,0,p,{color:c.color,maxWidth:U,rotation:ie,textAlign:Bt(c.align),textBaseline:"middle",translation:[T,A]})}}var au={id:"title",_element:hc,start(h,d,c){!function Zd(h,d){const c=new hc({ctx:h.ctx,options:d,chart:h});qt.configure(h,c,d),qt.addBox(h,c),h.titleBlock=c}(h,c)},stop(h){qt.removeBox(h,h.titleBlock),delete h.titleBlock},beforeUpdate(h,d,c){const p=h.titleBlock;qt.configure(h,p,c),p.options=c},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const sa=new WeakMap;var cl={id:"subtitle",start(h,d,c){const p=new hc({ctx:h.ctx,options:c,chart:h});qt.configure(h,p,c),qt.addBox(h,p),sa.set(h,p)},stop(h){qt.removeBox(h,sa.get(h)),sa.delete(h)},beforeUpdate(h,d,c){const p=sa.get(h);qt.configure(h,p,c),p.options=c},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ol={average(h){if(!h.length)return!1;let d,c,p=0,_=0,b=0;for(d=0,c=h.length;d<c;++d){const T=h[d].element;if(T&&T.hasValue()){const A=T.tooltipPosition();p+=A.x,_+=A.y,++b}}return{x:p/b,y:_/b}},nearest(h,d){if(!h.length)return!1;let b,T,A,c=d.x,p=d.y,_=Number.POSITIVE_INFINITY;for(b=0,T=h.length;b<T;++b){const U=h[b].element;if(U&&U.hasValue()){const Me=xn(d,U.getCenterPoint());Me<_&&(_=Me,A=U)}}if(A){const U=A.tooltipPosition();c=U.x,p=U.y}return{x:c,y:p}}};function Bo(h,d){return d&&(D(d)?Array.prototype.push.apply(h,d):h.push(d)),h}function bo(h){return("string"==typeof h||h instanceof String)&&h.indexOf("\n")>-1?h.split("\n"):h}function pc(h,d){const{element:c,datasetIndex:p,index:_}=d,b=h.getDatasetMeta(p).controller,{label:T,value:A}=b.getLabelAndValue(_);return{chart:h,label:T,parsed:b.getParsed(_),raw:h.data.datasets[p].data[_],formattedValue:A,dataset:b.getDataset(),dataIndex:_,datasetIndex:p,element:c}}function Pl(h,d){const c=h.chart.ctx,{body:p,footer:_,title:b}=h,{boxWidth:T,boxHeight:A}=d,U=Ki(d.bodyFont),ie=Ki(d.titleFont),Me=Ki(d.footerFont),ke=b.length,tt=_.length,st=p.length,ot=Gi(d.padding);let Et=ot.height,Lt=0,Kt=p.reduce((gn,un)=>gn+un.before.length+un.lines.length+un.after.length,0);Kt+=h.beforeBody.length+h.afterBody.length,ke&&(Et+=ke*ie.lineHeight+(ke-1)*d.titleSpacing+d.titleMarginBottom),Kt&&(Et+=st*(d.displayColors?Math.max(A,U.lineHeight):U.lineHeight)+(Kt-st)*U.lineHeight+(Kt-1)*d.bodySpacing),tt&&(Et+=d.footerMarginTop+tt*Me.lineHeight+(tt-1)*d.footerSpacing);let on=0;const Cn=function(gn){Lt=Math.max(Lt,c.measureText(gn).width+on)};return c.save(),c.font=ie.string,z(h.title,Cn),c.font=U.string,z(h.beforeBody.concat(h.afterBody),Cn),on=d.displayColors?T+2+d.boxPadding:0,z(p,gn=>{z(gn.before,Cn),z(gn.lines,Cn),z(gn.after,Cn)}
vendor: 4,410 bytes, line 1
1),on=0,c.font=Me.string,z(h.footer,Cn),c.restore(),Lt+=ot.width,{width:Lt,height:Et}}function ul(h,d,c,p){const{x:_,width:b}=c,{width:T,chartArea:{left:A,right:U}}=h;let ie="center";return"center"===p?ie=_<=(A+U)/2?"left":"right":_<=b/2?ie="left":_>=T-b/2&&(ie="right"),function Wu(h,d,c,p){const{x:_,width:b}=p,T=c.caretSize+c.caretPadding;if("left"===h&&_+b+T>d.width||"right"===h&&_-b-T<0)return!0}(ie,h,d,c)&&(ie="center"),ie}function Rl(h,d,c){const p=c.yAlign||d.yAlign||function Gu(h,d){const{y:c,height:p}=d;return c<p/2?"top":c>h.height-p/2?"bottom":"center"}(h,c);return{xAlign:c.xAlign||d.xAlign||ul(h,d,c,p),yAlign:p}}function lu(h,d,c,p){const{caretSize:_,caretPadding:b,cornerRadius:T}=h,{xAlign:A,yAlign:U}=c,ie=_+b,{topLeft:Me,topRight:ke,bottomLeft:tt,bottomRight:st}=dr(T);let ot=function Ku(h,d){let{x:c,width:p}=h;return"right"===d?c-=p:"center"===d&&(c-=p/2),c}(d,A);const Et=function Yu(h,d,c){let{y:p,height:_}=h;return"top"===d?p+=c:p-="bottom"===d?_+c:_/2,p}(d,U,ie);return"center"===U?"left"===A?ot+=ie:"right"===A&&(ot-=ie):"left"===A?ot-=Math.max(Me,tt)+_:"right"===A&&(ot+=Math.max(ke,st)+_),{x:Yt(ot,0,p.width-d.width),y:Yt(Et,0,p.height-d.height)}}function Vo(h,d,c){const p=Gi(c.padding);return"center"===d?h.x+h.width/2:"right"===d?h.x+h.width-p.right:h.x+p.left}function Ju(h){return Bo([],bo(h))}function Ca(h,d){const c=d&&d.dataset&&d.dataset.tooltip&&d.dataset.tooltip.callbacks;return c?h.override(c):h}let fc=(()=>{class h extends is{constructor(c){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=c.chart||c._chart,this._chart=this.chart,this.options=c.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(c){this.options=c,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const c=this._cachedAnimations;if(c)return c;const p=this.chart,_=this.options.setContext(this.getContext()),b=_.enabled&&p.options.animation&&_.animations,T=new Go(this.chart,b);return b._cacheable&&(this._cachedAnimations=Object.freeze(T)),T}getContext(){return this.$context||(this.$context=function jd(h,d,c){return Os(h,{tooltip:d,tooltipItems:c,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(c,p){const{callbacks:_}=p,b=_.beforeTitle.apply(this,[c]),T=_.title.apply(this,[c]),A=_.afterTitle.apply(this,[c]);let U=[];return U=Bo(U,bo(b)),U=Bo(U,bo(T)),U=Bo(U,bo(A)),U}getBeforeBody(c,p){return Ju(p.callbacks.beforeBody.apply(this,[c]))}getBody(c,p){const{callbacks:_}=p,b=[];return z(c,T=>{const A={before:[],lines:[],after:[]},U=Ca(_,T);Bo(A.before,bo(U.beforeLabel.call(this,T))),Bo(A.lines,U.label.call(this,T)),Bo(A.after,bo(U.afterLabel.call(this,T))),b.push(A)}),b}getAfterBody(c,p){return Ju(p.callbacks.afterBody.apply(this,[c]))}getFooter(c,p){const{callbacks:_}=p,b=_.beforeFooter.apply(this,[c]),T=_.footer.apply(this,[c]),A=_.afterFooter.apply(this,[c]);let U=[];return U=Bo(U,bo(b)),U=Bo(U,bo(T)),U=Bo(U,bo(A)),U}_createItems(c){const p=this._active,_=this.chart.data,b=[],T=[],A=[];let ie,Me,U=[];for(ie=0,Me=p.length;ie<Me;++ie)U.push(pc(this.chart,p[ie]));return c.filter&&(U=U.filter((ke,tt,st)=>c.filter(ke,tt,st,_))),c.itemSort&&(U=U.sort((ke,tt)=>c.itemSort(ke,tt,_))),z(U,ke=>{const tt=Ca(c.callbacks,ke);b.push(tt.labelColor.call(this,ke)),T.push(tt.labelPointStyle.call(this,ke)),A.push(tt.labelTextColor.call(this,ke))}),this.labelColors=b,this.labelPointStyles=T,this.labelTextColors=A,this.dataPoints=U,U}update(c,p){const _=this.options.setContext(this.getContext()),b=this._active;let T,A=[];if(b.length){const U=Ol[_.position].call(this,b,this._eventPosition);A=this._createItems(_),this.title=this.getTitle(A,_),this.beforeBody=this.getBeforeBody(A,_),this.body=this.getBody(A,_),this.afterBody=this.getAfterBody(A,_),this.footer=this.getFooter(A,_);const ie=this._size=Pl(this,_),Me=Object.assign({},U,ie),ke=Rl(this.chart,_,Me),tt=lu(_,Me,ke,this.chart);this.xAlign=ke.xAlign,this.yAlign=ke.yAlign,T={opacity:1,x:tt.x,y:tt.y,width:ie.width,height:ie.he
vendor: 5,304 bytes, line 1
1ight,caretX:U.x,caretY:U.y}}else 0!==this.opacity&&(T={opacity:0});this._tooltipItems=A,this.$context=void 0,T&&this._resolveAnimations().update(this,T),c&&_.external&&_.external.call(this,{chart:this.chart,tooltip:this,replay:p})}drawCaret(c,p,_,b){const T=this.getCaretPosition(c,_,b);p.lineTo(T.x1,T.y1),p.lineTo(T.x2,T.y2),p.lineTo(T.x3,T.y3)}getCaretPosition(c,p,_){const{xAlign:b,yAlign:T}=this,{caretSize:A,cornerRadius:U}=_,{topLeft:ie,topRight:Me,bottomLeft:ke,bottomRight:tt}=dr(U),{x:st,y:ot}=c,{width:Et,height:Lt}=p;let Kt,on,Cn,gn,un,In;return"center"===T?(un=ot+Lt/2,"left"===b?(Kt=st,on=Kt-A,gn=un+A,In=un-A):(Kt=st+Et,on=Kt+A,gn=un-A,In=un+A),Cn=Kt):(on="left"===b?st+Math.max(ie,ke)+A:"right"===b?st+Et-Math.max(Me,tt)-A:this.caretX,"top"===T?(gn=ot,un=gn-A,Kt=on-A,Cn=on+A):(gn=ot+Lt,un=gn+A,Kt=on+A,Cn=on-A),In=gn),{x1:Kt,x2:on,x3:Cn,y1:gn,y2:un,y3:In}}drawTitle(c,p,_){const b=this.title,T=b.length;let A,U,ie;if(T){const Me=Ps(_.rtl,this.x,this.width);for(c.x=Vo(this,_.titleAlign,_),p.textAlign=Me.textAlign(_.titleAlign),p.textBaseline="middle",A=Ki(_.titleFont),U=_.titleSpacing,p.fillStyle=_.titleColor,p.font=A.string,ie=0;ie<T;++ie)p.fillText(b[ie],Me.x(c.x),c.y+A.lineHeight/2),c.y+=A.lineHeight+U,ie+1===T&&(c.y+=_.titleMarginBottom-U)}}_drawColorBox(c,p,_,b,T){const A=this.labelColors[_],U=this.labelPointStyles[_],{boxHeight:ie,boxWidth:Me,boxPadding:ke}=T,tt=Ki(T.bodyFont),st=Vo(this,"left",T),ot=b.x(st),Lt=p.y+(ie<tt.lineHeight?(tt.lineHeight-ie)/2:0);if(T.usePointStyle){const Kt={radius:Math.min(Me,ie)/2,pointStyle:U.pointStyle,rotation:U.rotation,borderWidth:1},on=b.leftForLtr(ot,Me)+Me/2,Cn=Lt+ie/2;c.strokeStyle=T.multiKeyBackground,c.fillStyle=T.multiKeyBackground,Xs(c,Kt,on,Cn),c.strokeStyle=A.borderColor,c.fillStyle=A.backgroundColor,Xs(c,Kt,on,Cn)}else{c.lineWidth=x(A.borderWidth)?Math.max(...Object.values(A.borderWidth)):A.borderWidth||1,c.strokeStyle=A.borderColor,c.setLineDash(A.borderDash||[]),c.lineDashOffset=A.borderDashOffset||0;const Kt=b.leftForLtr(ot,Me-ke),on=b.leftForLtr(b.xPlus(ot,1),Me-ke-2),Cn=dr(A.borderRadius);Object.values(Cn).some(gn=>0!==gn)?(c.beginPath(),c.fillStyle=T.multiKeyBackground,ks(c,{x:Kt,y:Lt,w:Me,h:ie,radius:Cn}),c.fill(),c.stroke(),c.fillStyle=A.backgroundColor,c.beginPath(),ks(c,{x:on,y:Lt+1,w:Me-2,h:ie-2,radius:Cn}),c.fill()):(c.fillStyle=T.multiKeyBackground,c.fillRect(Kt,Lt,Me,ie),c.strokeRect(Kt,Lt,Me,ie),c.fillStyle=A.backgroundColor,c.fillRect(on,Lt+1,Me-2,ie-2))}c.fillStyle=this.labelTextColors[_]}drawBody(c,p,_){const{body:b}=this,{bodySpacing:T,bodyAlign:A,displayColors:U,boxHeight:ie,boxWidth:Me,boxPadding:ke}=_,tt=Ki(_.bodyFont);let st=tt.lineHeight,ot=0;const Et=Ps(_.rtl,this.x,this.width),Lt=function(Hn){p.fillText(Hn,Et.x(c.x+ot),c.y+st/2),c.y+=st+T},Kt=Et.textAlign(A);let on,Cn,gn,un,In,Tn,Vn;for(p.textAlign=A,p.textBaseline="middle",p.font=tt.string,c.x=Vo(this,Kt,_),p.fillStyle=_.bodyColor,z(this.beforeBody,Lt),ot=U&&"right"!==Kt?"center"===A?Me/2+ke:Me+2+ke:0,un=0,Tn=b.length;un<Tn;++un){for(on=b[un],Cn=this.labelTextColors[un],p.fillStyle=Cn,z(on.before,Lt),gn=on.lines,U&&gn.length&&(this._drawColorBox(p,c,un,Et,_),st=Math.max(tt.lineHeight,ie)),In=0,Vn=gn.length;In<Vn;++In)Lt(gn[In]),st=tt.lineHeight;z(on.after,Lt)}ot=0,st=tt.lineHeight,z(this.afterBody,Lt),c.y-=T}drawFooter(c,p,_){const b=this.footer,T=b.length;let A,U;if(T){const ie=Ps(_.rtl,this.x,this.width);for(c.x=Vo(this,_.footerAlign,_),c.y+=_.footerMarginTop,p.textAlign=ie.textAlign(_.footerAlign),p.textBaseline="middle",A=Ki(_.footerFont),p.fillStyle=_.footerColor,p.font=A.string,U=0;U<T;++U)p.fillText(b[U],ie.x(c.x),c.y+A.lineHeight/2),c.y+=A.lineHeight+_.footerSpacing}}drawBackground(c,p,_,b){const{xAlign:T,yAlign:A}=this,{x:U,y:ie}=c,{width:Me,height:ke}=_,{topLeft:tt,topRight:st,bottomLeft:ot,bottomRight:Et}=dr(b.cornerRadius);p.fillStyle=b.backgroundColor,p.strokeStyle=b.borderColor,p.lineWidth=b.borderWidth,p.beginPath(),p.moveTo(U+tt,ie),"top"===A&&this.drawCaret(c,p,_,b),p.lineTo(U+Me-st,ie),p.quadraticCurveTo(U+Me,ie,U+Me,ie+st),"center"===A&&"right"===T&&this.drawCaret(c,p,_,b),p.lineTo(U+Me,ie+ke-Et),p.quadraticCurveTo(U+Me,ie+ke,U+Me-Et,ie+ke),"bottom"===A&&this.drawCaret(c,p,_,b),p.lineTo(U+ot,ie+ke),p.quadraticCurveTo(U,ie+ke,U,ie+ke-ot),"center"===A&&"left"===T&&this.drawCaret(c,p,_,b),p.lineTo(U,ie+tt),p.quadraticCurveTo(U,ie,U+tt,ie),p.closePath(),p.fill(),b.borderWidth>0&&p.stroke()}_updateAnimationTarget(c){const p=this.chart,_=this.$animations,b=_&&_.x,T=_&&_.y;if(b||T){const A=Ol[c.position].call(this,this._active,this._eventPosition);if(!A)return;const U=this._size=Pl(this,c),ie=Object.assign({},A,this._size),Me=Rl(p,c,ie),ke=lu(c,ie,Me,p);(b._to!==ke.x||T._to!==ke.y)&&(this.xAlign=Me.xAlign,this.yAlign=Me.yAlign,this.width=U.width,this.height=U.height,this.caretX=A.x,this.caretY=A.y,this._resolveAnimations().update(this,ke))}}_willRender(){return!!this.opacity}draw(c){const p=this.options.setContext(this.getContext());let _=this.opacity;if(!_)return;this._updateAnimationTarget(p);const b={width:this.width,height:this.height},T={x:this.x,y:this.y};_=Math.abs(_)<.001?0:_;const A=Gi(p.padding);p.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(c.save(),c.globalAlpha=_,this.drawBackgroun
vendor: 2,543 bytes, line 1
1d(T,c,b,p),zo(c,p.textDirection),T.y+=A.top,this.drawTitle(T,c,p),this.drawBody(T,c,p),this.drawFooter(T,c,p),Uo(c,p.textDirection),c.restore())}getActiveElements(){return this._active||[]}setActiveElements(c,p){const _=this._active,b=c.map(({datasetIndex:U,index:ie})=>{const Me=this.chart.getDatasetMeta(U);if(!Me)throw new Error("Cannot find a dataset at index "+U);return{datasetIndex:U,element:Me.data[ie],index:ie}}),T=!F(_,b),A=this._positionChanged(b,p);(T||A)&&(this._active=b,this._eventPosition=p,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(c,p,_=!0){if(p&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const b=this.options,T=this._active||[],A=this._getActiveElements(c,T,p,_),U=this._positionChanged(A,c),ie=p||!F(A,T)||U;return ie&&(this._active=A,(b.enabled||b.external)&&(this._eventPosition={x:c.x,y:c.y},this.update(!0,p))),ie}_getActiveElements(c,p,_,b){const T=this.options;if("mouseout"===c.type)return[];if(!b)return p;const A=this.chart.getElementsAtEventForMode(c,T.mode,T,_);return T.reverse&&A.reverse(),A}_positionChanged(c,p){const{caretX:_,caretY:b,options:T}=this,A=Ol[T.position].call(this,c,p);return!1!==A&&(_!==A.x||b!==A.y)}}return h.positioners=Ol,h})();var so=Object.freeze({__proto__:null,Decimation:nu,Filler:cr,Legend:$d,SubTitle:cl,Title:au,Tooltip:{id:"tooltip",_element:fc,positioners:Ol,afterInit(h,d,c){c&&(h.tooltip=new fc({chart:h,options:c}))},beforeUpdate(h,d,c){h.tooltip&&h.tooltip.initialize(c)},reset(h,d,c){h.tooltip&&h.tooltip.initialize(c)},afterDraw(h){const d=h.tooltip;if(d&&d._willRender()){const c={tooltip:d};if(!1===h.notifyPlugins("beforeTooltipDraw",c))return;d.draw(h.ctx),h.notifyPlugins("afterTooltipDraw",c)}},afterEvent(h,d){h.tooltip&&h.tooltip.handleEvent(d.event,d.replay,d.inChartArea)&&(d.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:(h,d)=>d.bodyFont.size,boxWidth:(h,d)=>d.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}}
vendor: 6,213 bytes, line 1
1,callbacks:{beforeTitle:t,title(h){if(h.length>0){const d=h[0],c=d.chart.data.labels,p=c?c.length:0;if(this&&this.options&&"dataset"===this.options.mode)return d.dataset.label||"";if(d.label)return d.label;if(p>0&&d.dataIndex<p)return c[d.dataIndex]}return""},afterTitle:t,beforeBody:t,beforeLabel:t,label(h){if(this&&this.options&&"dataset"===this.options.mode)return h.label+": "+h.formattedValue||h.formattedValue;let d=h.dataset.label||"";d&&(d+=": ");const c=h.formattedValue;return s(c)||(d+=c),d},labelColor(h){const c=h.chart.getDatasetMeta(h.datasetIndex).controller.getStyle(h.dataIndex);return{borderColor:c.borderColor,backgroundColor:c.backgroundColor,borderWidth:c.borderWidth,borderDash:c.borderDash,borderDashOffset:c.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(h){const c=h.chart.getDatasetMeta(h.datasetIndex).controller.getStyle(h.dataIndex);return{pointStyle:c.pointStyle,rotation:c.rotation}},afterLabel:t,afterBody:t,beforeFooter:t,footer:t,afterFooter:t}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:h=>"filter"!==h&&"itemSort"!==h&&"external"!==h,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class mc extends St{constructor(d){super(d),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(d){const c=this._addedLabels;if(c.length){const p=this.getLabels();for(const{index:_,label:b}of c)p[_]===b&&p.splice(_,1);this._addedLabels=[]}super.init(d)}parse(d,c){if(s(d))return null;const p=this.getLabels();return c=isFinite(c)&&p[c]===d?c:function Gd(h,d,c,p){const _=h.indexOf(d);return-1===_?((h,d,c,p)=>("string"==typeof d?(c=h.push(d)-1,p.unshift({index:c,label:d})):isNaN(d)&&(c=null),c))(h,d,c,p):_!==h.lastIndexOf(d)?c:_}(p,d,I(c,d),this._addedLabels),((h,d)=>null===h?null:Yt(Math.round(h),0,d))(c,p.length-1)}determineDataLimits(){const{minDefined:d,maxDefined:c}=this.getUserBounds();let{min:p,max:_}=this.getMinMax(!0);"ticks"===this.options.bounds&&(d||(p=0),c||(_=this.getLabels().length-1)),this.min=p,this.max=_}buildTicks(){const d=this.min,c=this.max,p=this.options.offset,_=[];let b=this.getLabels();b=0===d&&c===b.length-1?b:b.slice(d,c+1),this._valueRange=Math.max(b.length-(p?0:1),1),this._startValue=this.min-(p?.5:0);for(let T=d;T<=c;T++)_.push({value:T});return _}getLabelForValue(d){const c=this.getLabels();return d>=0&&d<c.length?c[d]:d}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(d){return"number"!=typeof d&&(d=this.parse(d)),null===d?NaN:this.getPixelForDecimal((d-this._startValue)/this._valueRange)}getPixelForTick(d){const c=this.ticks;return d<0||d>c.length-1?null:this.getPixelForValue(c[d].value)}getValueForPixel(d){return Math.round(this._startValue+this.getDecimalForPixel(d)*this._valueRange)}getBasePixel(){return this.bottom}}function gc(h,d,{horizontal:c,minRotation:p}){const _=yt(p),b=(c?Math.sin(_):Math.cos(_))||.001;return Math.min(d/b,.75*d*(""+h).length)}mc.id="category",mc.defaults={ticks:{callback:mc.prototype.getLabelForValue}};class _c extends St{constructor(d){super(d),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(d,c){return s(d)||("number"==typeof d||d instanceof Number)&&!isFinite(+d)?null:+d}handleTickRangeOptions(){const{beginAtZero:d}=this.options,{minDefined:c,maxDefined:p}=this.getUserBounds();let{min:_,max:b}=this;const T=U=>_=c?_:U,A=U=>b=p?b:U;if(d){const U=ve(_),ie=ve(b);U<0&&ie<0?A(0):U>0&&ie>0&&T(0)}if(_===b){let U=1;(b>=Number.MAX_SAFE_INTEGER||_<=Number.MIN_SAFE_INTEGER)&&(U=Math.abs(.05*b)),A(b+U),d||T(_-U)}this.min=_,this.max=b}getTickLimit(){const d=this.options.ticks;let _,{maxTicksLimit:c,stepSize:p}=d;return p?(_=Math.ceil(this.max/p)-Math.floor(this.min/p)+1,_>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${p} would result generating up to ${_} ticks. Limiting to 1000.`),_=1e3)):(_=this.computeTickLimit(),c=c||11),c&&(_=Math.min(c,_)),_}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const d=this.options,c=d.ticks;let p=this.getTickLimit();p=Math.max(2,p);const T=function Kd(h,d){const c=[],{bounds:_,step:b,min:T,max:A,precision:U,count:ie,maxTicks:Me,maxDigits:ke,includeBounds:tt}=h,st=b||1,ot=Me-1,{min:Et,max:Lt}=d,Kt=!s(T),on=!s(A),Cn=!s(ie),gn=(Lt-Et)/(ke+1);let In,Tn,Vn,Hn,un=je((Lt-Et)/ot/st)*st;if(un<1e-14&&!Kt&&!on)return[{value:Et},{value:Lt}];Hn=Math.ceil(Lt/un)-Math.floor(Et/un),Hn>ot&&(un=je(Hn*un/ot/st)*st),s(U)||(In=Math.pow(10,U),un=Math.ceil(un*In)/In),"ticks"===_?(Tn=Math.floor(Et/un)*un,Vn=Math.ceil(Lt/un)*un):(Tn=Et,Vn=Lt),Kt&&on&&b&&function $t(h,d){const c=Math.round(h);return c-d<=h&&c+d>=h}((A-T)/b,un/1e3)?(Hn=Math.round(Math.min((A-T)/un,Me)),un=(A-T)/Hn,Tn=T,Vn=A):Cn?(Tn=Kt?T:Tn,Vn=on?A:Vn,Hn=ie-1,un=(Vn-Tn)/Hn):(Hn=(Vn-Tn)/un,Hn=mt(Hn,Math.round(Hn),un/1e3)?Math.round(Hn):Math.ceil(Hn));const wi=Math.max(Ye(un),Ye(Tn));In=Math.pow(10,s(U)?wi:U),Tn=Math.round(Tn*In)/In,Vn=Math.round(Vn*In)/In;let Vi=0;for(Kt&&(tt&&Tn!==T?(c.push({value:T}),Tn<T&&Vi++,mt(Math.round((Tn+Vi*un)*In)/In,T,gc(T,gn,h))&&Vi++):Tn<T&&Vi++);Vi<Hn;++Vi)c.push({value:Math.round((Tn+Vi*un)*In)/In});return on&&tt&&Vn!==A?c.length&&mt(c[c.length-1].value,A,gc(A,gn,h))?c[c.length-1].value=A:c.push({value:A}):(!on||Vn===A)&&c.push({value:Vn}),c}({maxTicks:p,bounds:d.bounds,min:d.min,max:d.max,precision:c.precision,step:c.stepSize,count:c.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:c.minRotation||0,includeBounds:!1!==c.includeBounds},this._range||this);return"ticks"===d.bounds&&tn(T,this,"value"),d.reverse?(T.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),T}configure(){const d=this.ticks;let c=this.min,p=this.max;if(super.configure(),this.options.offset&&d.length){const _=(p-c)/Math.max(d.length-1,1)/2;c-=_,p+=_}this._startValue=c,this._endValue=p,this._valueRange=p-c}getLabelForValue(d){return as(d,this.chart.options.locale,this.options.ticks.format)}}class za extends _c{determineDataLimits(){const{min:d,max:c}
vendor: 4,139 bytes, line 1
1=this.getMinMax(!0);this.min=M(d)?d:0,this.max=M(c)?c:1,this.handleTickRangeOptions()}computeTickLimit(){const d=this.isHorizontal(),c=d?this.width:this.height,p=yt(this.options.ticks.minRotation),_=(d?Math.sin(p):Math.cos(p))||.001,b=this._resolveTickFontOptions(0);return Math.ceil(c/Math.min(40,b.lineHeight/_))}getPixelForValue(d){return null===d?NaN:this.getPixelForDecimal((d-this._startValue)/this._valueRange)}getValueForPixel(d){return this._startValue+this.getDecimalForPixel(d)*this._valueRange}}function vc(h){return h/Math.pow(10,Math.floor(me(h)))==1}za.id="linear",za.defaults={ticks:{callback:Po.formatters.numeric}};class uu extends St{constructor(d){super(d),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(d,c){const p=_c.prototype.parse.apply(this,[d,c]);if(0!==p)return M(p)&&p>0?p:null;this._zero=!0}determineDataLimits(){const{min:d,max:c}=this.getMinMax(!0);this.min=M(d)?Math.max(0,d):null,this.max=M(c)?Math.max(0,c):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:d,maxDefined:c}=this.getUserBounds();let p=this.min,_=this.max;const b=U=>p=d?p:U,T=U=>_=c?_:U,A=(U,ie)=>Math.pow(10,Math.floor(me(U))+ie);p===_&&(p<=0?(b(1),T(10)):(b(A(p,-1)),T(A(_,1)))),p<=0&&b(A(_,-1)),_<=0&&T(A(p,1)),this._zero&&this.min!==this._suggestedMin&&p===A(this.min,0)&&b(A(p,-1)),this.min=p,this.max=_}buildTicks(){const d=this.options,p=function yc(h,d){const c=Math.floor(me(d.max)),p=Math.ceil(d.max/Math.pow(10,c)),_=[];let b=w(h.min,Math.pow(10,Math.floor(me(d.min)))),T=Math.floor(me(b)),A=Math.floor(b/Math.pow(10,T)),U=T<0?Math.pow(10,Math.abs(T)):1;do{_.push({value:b,major:vc(b)}),++A,10===A&&(A=1,++T,U=T>=0?1:U),b=Math.round(A*Math.pow(10,T)*U)/U}while(T<c||T===c&&A<p);const ie=w(h.max,b);return _.push({value:ie,major:vc(b)}),_}({min:this._userMin,max:this._userMax},this);return"ticks"===d.bounds&&tn(p,this,"value"),d.reverse?(p.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),p}getLabelForValue(d){return void 0===d?"0":as(d,this.chart.options.locale,this.options.ticks.format)}configure(){const d=this.min;super.configure(),this._startValue=me(d),this._valueRange=me(this.max)-me(d)}getPixelForValue(d){return(void 0===d||0===d)&&(d=this.min),null===d||isNaN(d)?NaN:this.getPixelForDecimal(d===this.min?0:(me(d)-this._startValue)/this._valueRange)}getValueForPixel(d){const c=this.getDecimalForPixel(d);return Math.pow(10,this._startValue+c*this._valueRange)}}function bc(h){const d=h.ticks;if(d.display&&h.display){const c=Gi(d.backdropPadding);return I(d.font&&d.font.size,Qn.font.size)+c.height}return 0}function Cc(h,d,c){return c=D(c)?c:[c],{w:Ii(h,d.string,c),h:c.length*d.lineHeight}}function ra(h,d,c,p,_){return h===p||h===_?{start:d-c/2,end:d+c/2}:h<p||h>_?{start:d-c,end:d}:{start:d,end:d+c}}function Yd(h,d,c,p,_){const b=Math.abs(Math.sin(c)),T=Math.abs(Math.cos(c));let A=0,U=0;p.start<d.l?(A=(d.l-p.start)/b,h.l=Math.min(h.l,d.l-A)):p.end>d.r&&(A=(p.end-d.r)/b,h.r=Math.max(h.r,d.r+A)),_.start<d.t?(U=(d.t-_.start)/T,h.t=Math.min(h.t,d.t-U)):_.end>d.b&&(U=(_.end-d.b)/T,h.b=Math.max(h.b,d.b+U))}function qu(h){return 0===h||180===h?"center":h<180?"left":"right"}function Jd(h,d,c){return"right"===c?h-=d:"center"===c&&(h-=d/2),h}function Xu(h,d,c){return 90===c||270===c?h-=d/2:(c>270||c<90)&&(h-=d),h}function du(h,d,c,p){const{ctx:_}=h;if(c)_.arc(h.xCenter,h.yCenter,d,0,X);else{let b=h.getPointPosition(0,d);_.moveTo(b.x,b.y);for(let T=1;T<p;T++)b=h.getPointPosition(T,d),_.lineTo(b.x,b.y)}}uu.id="logarithmic",uu.defaults={ticks:{callback:Po.formatters.logarithmic,major:{enabled:!0}}};class xc extends _c{constructor(d){super(d),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const d=this._padding=Gi(bc(this.options)/2),c=this.width=this.maxWidth-d.width,p=this.height=this.maxHeight-d.height;this.xCenter=Math.floor(this.left+c/2+d.left),this.yCenter=Math.floor(this.top+p/2+d.top),this.drawingArea=Math.floor(Math.min(c,p)/2)}determineDataLimits(){const{min:d,max:c}
vendor: 4,528 bytes, line 1
1=this.getMinMax(!1);this.min=M(d)&&!isNaN(d)?d:0,this.max=M(c)&&!isNaN(c)?c:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bc(this.options))}generateTickLabels(d){_c.prototype.generateTickLabels.call(this,d),this._pointLabels=this.getLabels().map((c,p)=>{const _=k(this.options.pointLabels.callback,[c,p],this);return _||0===_?_:""}).filter((c,p)=>this.chart.getDataVisibility(p))}fit(){const d=this.options;d.display&&d.pointLabels.display?function Ua(h){const d={l:h.left+h._padding.left,r:h.right-h._padding.right,t:h.top+h._padding.top,b:h.bottom-h._padding.bottom},c=Object.assign({},d),p=[],_=[],b=h._pointLabels.length,T=h.options.pointLabels,A=T.centerPointLabels?K/b:0;for(let U=0;U<b;U++){const ie=T.setContext(h.getPointLabelContext(U));_[U]=ie.padding;const Me=h.getPointPosition(U,h.drawingArea+_[U],A),ke=Ki(ie.font),tt=Cc(h.ctx,ke,h._pointLabels[U]);p[U]=tt;const st=_n(h.getIndexAngle(U)+A),ot=Math.round(bt(st));Yd(c,d,st,ra(ot,Me.x,tt.w,0,180),ra(ot,Me.y,tt.h,90,270))}h.setCenterPoint(d.l-c.l,c.r-d.r,d.t-c.t,c.b-d.b),h._pointLabelItems=function Qu(h,d,c){const p=[],_=h._pointLabels.length,b=h.options,T=bc(b)/2,A=h.drawingArea,U=b.pointLabels.centerPointLabels?K/_:0;for(let ie=0;ie<_;ie++){const Me=h.getPointPosition(ie,A+T+c[ie],U),ke=Math.round(bt(_n(Me.angle+ye))),tt=d[ie],st=Xu(Me.y,tt.h,ke),ot=qu(ke),Et=Jd(Me.x,tt.w,ot);p.push({x:Me.x,y:st,textAlign:ot,left:Et,top:st,right:Et+tt.w,bottom:st+tt.h})}return p}(h,p,_)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(d,c,p,_){this.xCenter+=Math.floor((d-c)/2),this.yCenter+=Math.floor((p-_)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(d,c,p,_))}getIndexAngle(d){return _n(d*(X/(this._pointLabels.length||1))+yt(this.options.startAngle||0))}getDistanceFromCenterForValue(d){if(s(d))return NaN;const c=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-d)*c:(d-this.min)*c}getValueForDistanceFromCenter(d){if(s(d))return NaN;const c=d/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-c:this.min+c}getPointLabelContext(d){const c=this._pointLabels||[];if(d>=0&&d<c.length){const p=c[d];return function kh(h,d,c){return Os(h,{label:c,index:d,type:"pointLabel"})}(this.getContext(),d,p)}}getPointPosition(d,c,p=0){const _=this.getIndexAngle(d)-ye+p;return{x:Math.cos(_)*c+this.xCenter,y:Math.sin(_)*c+this.yCenter,angle:_}}getPointPositionForValue(d,c){return this.getPointPosition(d,this.getDistanceFromCenterForValue(c))}getBasePosition(d){return this.getPointPositionForValue(d||0,this.getBaseValue())}getPointLabelPosition(d){const{left:c,top:p,right:_,bottom:b}=this._pointLabelItems[d];return{left:c,top:p,right:_,bottom:b}}drawBackground(){const{backgroundColor:d,grid:{circular:c}}=this.options;if(d){const p=this.ctx;p.save(),p.beginPath(),du(this,this.getDistanceFromCenterForValue(this._endValue),c,this._pointLabels.length),p.closePath(),p.fillStyle=d,p.fill(),p.restore()}}drawGrid(){const d=this.ctx,c=this.options,{angleLines:p,grid:_}=c,b=this._pointLabels.length;let T,A,U;if(c.pointLabels.display&&function Qd(h,d){const{ctx:c,options:{pointLabels:p}}=h;for(let _=d-1;_>=0;_--){const b=p.setContext(h.getPointLabelContext(_)),T=Ki(b.font),{x:A,y:U,textAlign:ie,left:Me,top:ke,right:tt,bottom:st}=h._pointLabelItems[_],{backdropColor:ot}=b;if(!s(ot)){const Et=dr(b.borderRadius),Lt=Gi(b.backdropPadding);c.fillStyle=ot;const Kt=Me-Lt.left,on=ke-Lt.top,Cn=tt-Me+Lt.width,gn=st-ke+Lt.height;Object.values(Et).some(un=>0!==un)?(c.beginPath(),ks(c,{x:Kt,y:on,w:Cn,h:gn,radius:Et}),c.fill()):c.fillRect(Kt,on,Cn,gn)}$i(c,h._pointLabels[_],A,U+T.lineHeight/2,T,{color:b.color,textAlign:ie,textBaseline:"middle"})}}(this,b),_.display&&this.ticks.forEach((ie,Me)=>{0!==Me&&(A=this.getDistanceFromCenterForValue(ie.value),function hu(h,d,c,p){const _=h.ctx,b=d.circular,{color:T,lineWidth:A}=d;!b&&!p||!T||!A||c<0||(_.save(),_.strokeStyle=T,_.lineWidth=A,_.setLineDash(d.borderDash),_.lineDashOffset=d.borderDashOffset,_.beginPath(),du(h,c,b,p),_.closePath(),_.stroke(),_.restore())}(this,_.setContext(this.getContext(Me-1)),A,b))}),p.display){for(d.save(),T=b-1;T>=0;T--){const ie=p.setContext(this.getPointLabelContext(T)),{color:Me,lineWidth:ke}=ie;!ke||!Me||(d.lineWidth=ke,d.strokeStyle=Me,d.setLineDash(ie.borderDash),d.lineDashOffset=ie.borderDashOffset,A=this.getDistanceFromCenterForValue(c.ticks.reverse?this.min:this.max),U=this.getPointPosition(T,A),d.beginPath(),d.moveTo(this.xCenter,this.yCenter),d.lineTo(U.x,U.y),d.stroke())}
vendor: 4,485 bytes, line 1
1d.restore()}}drawBorder(){}drawLabels(){const d=this.ctx,c=this.options,p=c.ticks;if(!p.display)return;const _=this.getIndexAngle(0);let b,T;d.save(),d.translate(this.xCenter,this.yCenter),d.rotate(_),d.textAlign="center",d.textBaseline="middle",this.ticks.forEach((A,U)=>{if(0===U&&!c.reverse)return;const ie=p.setContext(this.getContext(U)),Me=Ki(ie.font);if(b=this.getDistanceFromCenterForValue(this.ticks[U].value),ie.showLabelBackdrop){d.font=Me.string,T=d.measureText(A.label).width,d.fillStyle=ie.backdropColor;const ke=Gi(ie.backdropPadding);d.fillRect(-T/2-ke.left,-b-Me.size/2-ke.top,T+ke.width,Me.size+ke.height)}$i(d,A.label,0,-b,Me,{color:ie.color})}),d.restore()}drawTitle(){}}xc.id="radialLinear",xc.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Po.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:h=>h,padding:5,centerPointLabels:!1}},xc.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},xc.descriptors={angleLines:{_fallback:"grid"}};const Fl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Nr=Object.keys(Fl);function qd(h,d){return h-d}function pu(h,d){if(s(d))return null;const c=h._adapter,{parser:p,round:_,isoWeekday:b}=h._parseOpts;let T=d;return"function"==typeof p&&(T=p(T)),M(T)||(T="string"==typeof p?c.parse(T,p):c.parse(T)),null===T?null:(_&&(T="week"!==_||!rt(b)&&!0!==b?c.startOf(T,_):c.startOf(T,"isoWeek",b)),+T)}function ed(h,d,c,p){const _=Nr.length;for(let b=Nr.indexOf(h);b<_-1;++b){const T=Fl[Nr[b]];if(T.common&&Math.ceil((c-d)/((T.steps?T.steps:Number.MAX_SAFE_INTEGER)*T.size))<=p)return Nr[b]}return Nr[_-1]}function fu(h,d,c){if(c){if(c.length){const{lo:p,hi:_}=Rn(c,d);h[c[p]>=d?c[p]:c[_]]=!0}}else h[d]=!0}function nd(h,d,c){const p=[],_={},b=d.length;let T,A;for(T=0;T<b;++T)A=d[T],_[A]=T,p.push({value:A,major:!1});return 0!==b&&c?function Nl(h,d,c,p){const _=h._adapter,b=+_.startOf(d[0].value,p),T=d[d.length-1].value;let A,U;for(A=b;A<=T;A=+_.add(A,1,p))U=c[A],U>=0&&(d[U].major=!0);return d}(h,p,_,c):p}let xs=(()=>{class h extends St{constructor(c){super(c),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(c,p){const _=c.time||(c.time={}),b=this._adapter=new Ui._date(c.adapters.date);b.init(p),Y(_.displayFormats,b.formats()),this._parseOpts={parser:_.parser,round:_.round,isoWeekday:_.isoWeekday},super.init(c),this._normalized=p.normalized}parse(c,p){return void 0===c?null:pu(this,c)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const c=this.options,p=this._adapter,_=c.time.unit||"day";let{min:b,max:T,minDefined:A,maxDefined:U}=this.getUserBounds();function ie(Me){!A&&!isNaN(Me.min)&&(b=Math.min(b,Me.min)),!U&&!isNaN(Me.max)&&(T=Math.max(T,Me.max))}(!A||!U)&&(ie(this._getLabelBounds()),("ticks"!==c.bounds||"labels"!==c.ticks.source)&&ie(this.getMinMax(!1))),b=M(b)&&!isNaN(b)?b:+p.startOf(Date.now(),_),T=M(T)&&!isNaN(T)?T:+p.endOf(Date.now(),_)+1,this.min=Math.min(b,T-1),this.max=Math.max(b+1,T)}_getLabelBounds(){const c=this.getLabelTimestamps();let p=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY;return c.length&&(p=c[0],_=c[c.length-1]),{min:p,max:_}}buildTicks(){const c=this.options,p=c.time,_=c.ticks,b="labels"===_.source?this.getLabelTimestamps():this._generate();"ticks"===c.bounds&&b.length&&(this.min=this._userMin||b[0],this.max=this._userMax||b[b.length-1]);const T=this.min,U=function mi(h,d,c){let p=0,_=h.length;for(;p<_&&h[p]<d;)p++;for(;_>p&&h[_-1]>c;)_--;return p>0||_<h.length?h.slice(p,_):h}(b,T,this.max);return this._unit=p.unit||(_.autoSkip?ed(p.minUnit,this.min,this.max,this._getLabelCapacity(T)):function td(h,d,c,p,_){for(let b=Nr.length-1;b>=Nr.indexOf(c);b--){const T=Nr[b];if(Fl[T].common&&h._adapter.diff(_,p,T)>=d-1)return T}return Nr[c?Nr.indexOf(c):0]}(this,U.length,p.minUnit,this.min,this.max)),this._majorUnit=_.major.enabled&&"year"!==this._unit?function Ll(h){for(let d=Nr.indexOf(h)+1,
1c=Nr.length;d<c;++d)if(Fl[Nr[d]].common)return Nr[d]}(this._unit):void 0,this.initOffsets(b),c.reverse&&U.reverse(),nd(this,U,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(c=>+c.value))}initOffsets(c){let b,T,p=0,_=0;this.options.offset&&c.length&&(b=this.getDecimalForValue(c[0]),p=1===c.length?1-b:(this.getDecimalForValue(c[1])-b)/2,T=this.getDecimalForValue(c[c.length-1]),_=1===c.length?T:(T-this.getDecimalForValue(c[c.length-2]))/2);const A=c.length<3?.5:.25;p=Yt(p,0,A),_=Yt(_,0,A),this._offsets={start:p,end:_,factor:1/(p+1+_)}}_generate(){const c=this._adapter,p=this.min,_=this.max,b=this.options,T=b.time,A=T.unit||ed(T.minUnit,p,_,this._getLabelCapacity(p)),U=I(T.stepSize,1),ie="week"===A&&T.isoWeekday,Me=rt(ie)||!0===ie,ke={};let st,ot,tt=p;if(Me&&(tt=+c.startOf(tt,"isoWeek",ie)),tt=+c.startOf(tt,Me?"day":A),c.diff(_,p,A)>1e5*U)throw new Error(p+" and "+_+" are too far apart with stepSize of "+U+" "+A);const Et="data"===b.ticks.source&&this.getDataTimestamps();for(st=tt,ot=0;st<_;st=+c.add(st,U,A),ot++)fu(ke,st,Et);return(st===_||"ticks"===b.bounds||1===ot)&&fu(ke,st,Et),Object.keys(ke).sort((Lt,Kt)=>Lt-Kt).map(Lt=>+Lt)}getLabelForValue(c){const _=this.options.time;return this._adapter.format(c,_.tooltipFormat?_.tooltipFormat:_.displayFormats.datetime)}_tickFormatFunction(c,p,_,b){const T=this.options,A=T.time.displayFormats,U=this._unit,ie=this._majorUnit,ke=ie&&A[ie],tt=_[p],ot=this._adapter.format(c,b||(ie&&ke&&tt&&tt.major?ke:U&&A[U])),Et=T.ticks.callback;return Et?k(Et,[ot,p,_],this):ot}generateTickLabels(c){let p,_,b;for(p=0,_=c.length;p<_;++p)b=c[p],b.label=this._tickFormatFunction(b.value,p,c)}getDecimalForValue(c){return null===c?NaN:(c-this.min)/(this.max-this.min)}getPixelForValue(c){const p=this._offsets,_=this.getDecimalForValue(c);return this.getPixelForDecimal((p.start+_)*p.factor)}getValueForPixel(c){const p=this._offsets,_=this.getDecimalForPixel(c)/p.factor-p.end;return this.min+_*(this.max-this.min)}_getLabelSize(c){const p=this.options.ticks,_=this.ctx.measureText(c).width,b=yt(this.isHorizontal()?p.maxRotation:p.minRotation),T=Math.cos(b),A=Math.sin(b),U=this._resolveTickFontOptions(0).size;return{w:_*T+U*A,h:_*A+U*T}}_getLabelCapacity(c){const p=this.options.time,_=p.displayFormats,b=_[p.unit]||_.millisecond,T=this._tickFormatFunction(c,0,nd(this,[c],this._majorUnit),b),A=this._getLabelSize(T),U=Math.floor(this.isHorizontal()?this.width/A.w:this.height/A.h)-1;return U>0?U:1}getDataTimestamps(){let p,_,c=this._cache.data||[];if(c.length)return c;const b=this.getMatchingVisibleMetas();if(this._normalized&&b.length)return this._cache.data=b[0].controller.getAllParsedValues(this);for(p=0,_=b.length;p<_;++p)c=c.concat(b[p].controller.getAllParsedValues(this));return this._cache.data=this.normalize(c)}getLabelTimestamps(){const c=this._cache.labels||[];let p,_;if(c.length)return c;const b=this.getLabels();for(p=0,_=b.length;p<_;++p)c.push(pu(this,b[p]));return this._cache.labels=this._normalized?c:this.normalize(c)}normalize(c){return Vt(c.sort(qd))}}return h.id="time",h.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}},h})();function Bl(h,d,c){let b,T,A,U,p=0,_=h.length-1;c?(d>=h[p].pos&&d<=h[_].pos&&({lo:p,hi:_}=Sn(h,"pos",d)),({pos:b,time:A}=h[p]),({pos:T,time:U}=h[_])):(d>=h[p].time&&d<=h[_].time&&({lo:p,hi:_}=Sn(h,"time",d)),({time:b,pos:A}=h[p]),({time:T,pos:U}=h[_]));const ie=T-b;return ie?A+(U-A)*(d-b)/ie:A}class mu extends xs{constructor(d){super(d),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const d=this._getTimestampsForTable(),c=this._table=this.buildLookupTable(d);this._minPos=Bl(c,this.min),this._tableRange=Bl(c,this.max)-this._minPos,super.initOffsets(d)}buildLookupTable(d){const{min:c,max:p}=this,_=[],b=[];let T,A,U,ie,Me;for(T=0,A=d.length;T<A;++T)ie=d[T],ie>=c&&ie<=p&&_.push(ie);if(_.length<2)return[{time:c,pos:0},{time:p,pos:1}];for(T=0,A=_.length;T<A;++T)Me=_[T+1],U=_[T-1],ie=_[T],Math.round((Me+U)/2)!==ie&&b.push({time:ie,pos:T/(A-1)});return b}_getTimestampsForTable(){let d=this._cache.all||[];if(d.length)return d;const c=this.getDataTimestamps(),p=this.getLabelTimestamps();return d=c.length&&p.length?this.normalize(c.concat(p)):c.length?c:p,d=this._cache.all=d,d}getDecimalForValue(d){return(Bl(this._table,d)-this._minPos)/this._tableRange}getValueForPixel(d){const c=this._offsets,p=this.getDecimalForPixel(d)/c.factor-c.end;return Bl(this._table,p*this._tableRange+this._minPos,!0)}}mu.id="timeseries",mu.defaults=xs.defaults;const gu=[Fs,$u,so,Object.freeze({__proto__:null,CategoryScale:mc,LinearScale:za,LogarithmicScale:uu,RadialLinearScale:xc,TimeScale:xs,TimeSeriesScale:mu})]},9541:(o,u,a)=>{"use strict";a.d(u,{jh:()=>yl,vQ:()=>La});var t=a(4650),e=a(7600),s=a(1884);const w=function M(Je,St){return Je===St||Je!=Je&&St!=St},P=function I(Je,St){for(var Ot=Je.length;Ot--;)if(w(Je[Ot][0],St))return Ot;return-1};var k=Array.prototype.splice;function N(Je){var St=-1,Ot=null==Je?0:Je.length;for(this.clear();++St<Ot;){var An=Je[St];this.set(An[0],An[1])}}N.prototype.clear=function D(){this.__data__=[],this.size=0},N.prototype.delete=function z(Je){var St=this.__data__,Ot=P(St,Je);return!(Ot<0||(Ot==St.length-1?St.pop():k.call(St,Ot,1),--this.size,0))},N.prototype.get=function ne(Je){var St=this.__data__,Ot=P(St,Je);return Ot<0?void 0:St[Ot][1]},N.prototype.has=function G(Je){return P(this.__data__,Je)>-1},N.prototype.set=function Y(Je,St){var Ot=this.__data__,An=P(Ot,Je);return An<0?(++this.size,Ot.push([Je,St])):Ot[An][1]=St,this};const Q=N,X="object"==typeof global&&global&&global.Object===Object&&global;var V="object"==typeof self&&self&&self.Object===Object&&self;const Ee=X||V||Function("return this")();var ye=Ee.Symbol,at=Object.prototype,me=at.hasOwnProperty,ve=at.toString,je=ye?ye.toStringTag:void 0;var $t=Object.prototype.toString;var Nt=ye?ye.toStringTag:void 0;const pn=function xn(Je){return null==Je?void 0===Je?"[object Undef
1ined]":"[object Null]":Nt&&Nt in Object(Je)?function Xe(Je){var St=me.call(Je,je),Ot=Je[je];try{Je[je]=void 0;var An=!0}catch{}var li=ve.call(Je);return An&&(St?Je[je]=Ot:delete Je[je]),li}(Je):function tn(Je){return $t.call(Je)}(Je)},zt=function _n(Je){var St=typeof Je;return null!=Je&&("object"==St||"function"==St)};const vn=function Sn(Je){if(!zt(Je))return!1;var St=pn(Je);return"[object Function]"==St||"[object GeneratorFunction]"==St||"[object AsyncFunction]"==St||"[object Proxy]"==St};var Je,mi=Ee["__core-js_shared__"],Jn=(Je=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"";var re=Function.prototype.toString;var jt=/^\[object .+?Constructor\]$/,We=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ft=function ft(Je){return!(!zt(Je)||function Mt(Je){return!!Jn&&Jn in Je}(Je))&&(vn(Je)?We:jt).test(function pe(Je){if(null!=Je){try{return re.call(Je)}catch{}try{return Je+""}catch{}}return""}(Je))},lt=function wt(Je,St){var Ot=function Pt(Je,St){return Je?.[St]}(Je,St);return Ft(Ot)?Ot:void 0},$e=lt(Ee,"Map"),Ht=lt(Object,"create");var Tt=Object.prototype.hasOwnProperty;var ai=Object.prototype.hasOwnProperty;function Mi(Je){var St=-1,Ot=null==Je?0:Je.length;for(this.clear();++St<Ot;){var An=Je[St];this.set(An[0],An[1])}}Mi.prototype.clear=function Jt(){this.__data__=Ht?Ht(null):{},this.size=0},Mi.prototype.delete=function En(Je){var St=this.has(Je)&&delete this.__data__[Je];return this.size-=St?1:0,St},Mi.prototype.get=function Qt(Je){var St=this.__data__;if(Ht){var Ot=St[Je];return"__lodash_hash_undefined__"===Ot?void 0:Ot}return Tt.call(St,Je)?St[Je]:void 0},Mi.prototype.has=function ni(Je){var St=this.__data__;return Ht?void 0!==St[Je]:ai.call(St,Je)},Mi.prototype.set=function Js(Je,St){var Ot=this.__data__;return this.size+=this.has(Je)?0:1,Ot[Je]=Ht&&void 0===St?"__lodash_hash_undefined__":St,this};const bs=Mi,Li=function Qi(Je,St){var Ot=Je.__data__;return function Ji(Je){var St=typeof Je;return"string"==St||"number"==St||"symbol"==St||"boolean"==St?"__proto__"!==Je:null===Je}(St)?Ot["string"==typeof St?"string":"hash"]:Ot.map};function Ve(Je){var St=-1,Ot=null==Je?0:Je.length;for(this.clear();++St<Ot;){var An=Je[St];this.set(An[0],An[1])}}Ve.prototype.clear=function Is(){this.size=0,this.__data__={hash:new bs,map:new($e||Q),string:new bs}},Ve.prototype.delete=function ls(Je){var St=Li(this,Je).delete(Je);return this.size-=St?1:0,St},Ve.prototype.get=function Ms(Je){return Li(this,Je).get(Je)},Ve.prototype.has=function sn(Je){return Li(this,Je).has(Je)},Ve.prototype.set=function hi(Je,St){var Ot=Li(this,Je),An=Ot.size;return Ot.set(Je,St),this.size+=Ot.size==An?0:1,this};const he=Ve;function rn(Je){var St=this.__data__=new Q(Je);this.size=St.size}rn.prototype.clear=function O(){this.__data__=new Q,this.size=0},rn.prototype.delete=function ue(Je){var St=this.__data__,Ot=St.delete(Je);return this.size=St.size,Ot},rn.prototype.get=function be(Je){return this.__data__.get(Je)},rn.prototype.has=function ze(Je){return this.__data__.has(Je)},rn.prototype.set=function Ne(Je,St){var Ot=this.__data__;if(Ot instanceof Q){var An=Ot.__data__;if(!$e||An.length<199)return An.push([Je,St]),this.size=++Ot.size,this;Ot=this.__data__=new he(An)}return Ot.set(Je,St),this.size=Ot.size,this};const hn=rn;var Gn=function(){try{var Je=lt(Object,"defineProperty");return Je({},"",{}),Je}catch{}}();const Xn=Gn,Ni=function ji(Je,St,Ot){"__proto__"==St&&Xn?Xn(Je,St,{configurable:!0,enumerable:!0,value:Ot,writable:!0}):Je[St]=Ot},ms=function xi(Je,St,Ot){(void 0!==Ot&&!w(Je[St],Ot)||void 0===Ot&&!(St in Je))&&Ni(Je,St,Ot)};var ir=function Qs(Je){return function(St,Ot,An){for(var li=-1,ri=Object(St),Pi=An(St),qn=Pi.length;qn--;){var Yi=Pi[Je?qn:++li];if(!1===Ot(ri[Yi],Yi,ri))break}return St}}();const qs=ir;var Ii="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mn=Ii&&"object"==typeof module&&module&&!module.nodeType&&module,Xs=Mn&&Mn.exports===Ii?Ee.Buffer:void 0,Ti=Xs?Xs.allocUnsafe:void 0;const Yr=Ee.Uint8Array,Bs=function As(Je,St){var Ot=St?function os(Je){var St=ne
1w Je.constructor(Je.byteLength);return new Yr(St).set(new Yr(Je)),St}(Je.buffer):Je.buffer;return new Je.constructor(Ot,Je.byteOffset,Je.length)};var Jr=Object.create,sr=function(){function Je(){}return function(St){if(!zt(St))return{};if(Jr)return Jr(St);Je.prototype=St;var Ot=new Je;return Je.prototype=void 0,Ot}}();const oo=sr;var dr=function Dr(Je,St){return function(Ot){return Je(St(Ot))}}(Object.getPrototypeOf,Object);const Gi=dr;var Ki=Object.prototype;const Hr=function rr(Je){var St=Je&&Je.constructor;return Je===("function"==typeof St&&St.prototype||Ki)},Ir=function zr(Je){return null!=Je&&"object"==typeof Je};const hr=function qr(Je){return Ir(Je)&&"[object Arguments]"==pn(Je)};var Ar=Object.prototype,ao=Ar.hasOwnProperty,Mo=Ar.propertyIsEnumerable,Ws=hr(function(){return arguments}())?hr:function(Je){return Ir(Je)&&ao.call(Je,"callee")&&!Mo.call(Je,"callee")};const Vs=Ws,pr=Array.isArray;const gt=function He(Je){return"number"==typeof Je&&Je>-1&&Je%1==0&&Je<=9007199254740991},xe=function H(Je){return null!=Je&>(Je.length)&&!vn(Je)};var kn="object"==typeof exports&&exports&&!exports.nodeType&&exports,ui=kn&&"object"==typeof module&&module&&!module.nodeType&&module,pi=ui&&ui.exports===kn?Ee.Buffer:void 0;const Ur=(pi?pi.isBuffer:void 0)||function en(){return!1};var eo=Function.prototype.toString,mr=Object.prototype.hasOwnProperty,Or=eo.call(Object);var _i={};_i["[object Float32Array]"]=_i["[object Float64Array]"]=_i["[object Int8Array]"]=_i["[object Int16Array]"]=_i["[object Int32Array]"]=_i["[object Uint8Array]"]=_i["[object Uint8ClampedArray]"]=_i["[object Uint16Array]"]=_i["[object Uint32Array]"]=!0,_i["[object Arguments]"]=_i["[object Array]"]=_i["[object ArrayBuffer]"]=_i["[object Boolean]"]=_i["[object DataView]"]=_i["[object Date]"]=_i["[object Error]"]=_i["[object Function]"]=_i["[object Map]"]=_i["[object Number]"]=_i["[object Object]"]=_i["[object RegExp]"]=_i["[object Set]"]=_i["[object String]"]=_i["[object WeakMap]"]=!1;var Do="object"==typeof exports&&exports&&!exports.nodeType&&exports,lo=Do&&"object"==typeof module&&module&&!module.nodeType&&module,Rr=lo&&lo.exports===Do&&X.process,Rs=function(){try{return lo&&lo.require&&lo.require("util").types||Rr&&Rr.binding&&Rr.binding("util")}catch{}}(),Ao=Rs&&Rs.isTypedArray;const uo=Ao?function gr(Je){return function(St){return Je(St)}}(Ao):function Pr(Je){return Ir(Je)&>(Je.length)&&!!_i[pn(Je)]},Zr=function jo(Je,St){if(("constructor"!==St||"function"!=typeof Je[St])&&"__proto__"!=St)return Je[St]};var Ta=Object.prototype.hasOwnProperty;const Wo=function Ea(Je,St,Ot){var An=Je[St];(!Ta.call(Je,St)||!w(An,Ot)||void 0===Ot&&!(St in Je))&&Ni(Je,St,Ot)};var Ko=/^(?:0|[1-9]\d*)$/;const da=function ua(Je,St){var Ot=typeof Je;return!!(St=St??9007199254740991)&&("number"==Ot||"symbol"!=Ot&&Ko.test(Je))&&Je>-1&&Je%1==0&&Je<St};var Da=Object.prototype.hasOwnProperty;const ho=function ha(Je,St){var Ot=pr(Je),An=!Ot&&Vs(Je),li=!Ot&&!An&&Ur(Je),ri=!Ot&&!An&&!li&&uo(Je),Pi=Ot||An||li||ri,qn=Pi?function _s(Je,St){for(var Ot=-1,An=Array(Je);++Ot<Je;)An[Ot]=St(Ot);return An}(Je.length,String):[],Yi=qn.length;for(var Fs in Je)(St||Da.call(Je,Fs))&&(!Pi||!("length"==Fs||li&&("offset"==Fs||"parent"==Fs)||ri&&("buffer"==Fs||"byteLength"==Fs||"byteOffset"==Fs)||da(Fs,Yi)))&&qn.push(Fs);return qn};var De=Object.prototype.hasOwnProperty;const Le=function de(Je){if(!zt(Je))return function ko(Je){var St=[];if(null!=Je)for(var Ot in Object(Je))St.push(Ot);return St}(Je);var St=Hr(Je),Ot=[];for(var An in Je)"constructor"==An&&(St||!De.call(Je,An))||Ot.push(An);return Ot},Wt=function ut(Je){return xe(Je)?ho(Je,!0):Le(Je)},Bn=function an(Je){return function ca(Je,St,Ot,An){var li=!Ot;Ot||(Ot={});for(var ri=-1,Pi=St.length;++ri<Pi;){var qn=St[ri],Yi=An?An(Ot[qn],Je[qn],qn,Ot,Je):void 0;void 0===Yi&&(Yi=Je[qn]),li?Ni(Ot,qn,Yi):Wo(Ot,qn,Yi)}return Ot}(Je,Wt(Je))},Ri=function zi(Je,St,Ot,An,li,ri,Pi){var qn=Zr(Je,Ot),Yi=Zr(St,Ot),Fs=Pi.get(Yi);if(Fs)ms(Je,Ot,Fs);else{var Es=ri?ri(qn,Yi,Ot+"",Je,St,Pi):void 0,qo=void 0===Es;if(qo){var Ui=pr(Yi),Cl=!Ui&&Ur(Yi),fa=!Ui&&!Cl&&uo(Yi);
1Es=Yi,Ui||Cl||fa?pr(qn)?Es=qn:function Fe(Je){return Ir(Je)&&xe(Je)}(qn)?Es=function ks(Je,St){var Ot=-1,An=Je.length;for(St||(St=Array(An));++Ot<An;)St[Ot]=Je[Ot];return St}(qn):Cl?(qo=!1,Es=function gs(Je,St){if(St)return Je.slice();var Ot=Je.length,An=Ti?Ti(Ot):new Je.constructor(Ot);return Je.copy(An),An}(Yi,!0)):fa?(qo=!1,Es=Bs(Yi,!0)):Es=[]:function tr(Je){if(!Ir(Je)||"[object Object]"!=pn(Je))return!1;var St=Gi(Je);if(null===St)return!0;var Ot=mr.call(St,"constructor")&&St.constructor;return"function"==typeof Ot&&Ot instanceof Ot&&eo.call(Ot)==Or}(Yi)||Vs(Yi)?(Es=qn,Vs(qn)?Es=Bn(qn):(!zt(qn)||vn(qn))&&(Es=function Os(Je){return"function"!=typeof Je.constructor||Hr(Je)?{}:oo(Gi(Je))}(Yi))):qo=!1}qo&&(Pi.set(Yi,Es),li(Es,Yi,An,ri,Pi),Pi.delete(Yi)),ms(Je,Ot,Es)}},fi=function bi(Je,St,Ot,An,li){Je!==St&&qs(St,function(ri,Pi){if(li||(li=new hn),zt(ri))Ri(Je,St,Pi,Ot,bi,An,li);else{var qn=An?An(Zr(Je,Pi),ri,Pi+"",Je,St,li):void 0;void 0===qn&&(qn=ri),ms(Je,Pi,qn)}},Wt)},Ei=function Bi(Je){return Je},_r=function us(Je,St,Ot){switch(Ot.length){case 0:return Je.call(St);case 1:return Je.call(St,Ot[0]);case 2:return Je.call(St,Ot[0],Ot[1]);case 3:return Je.call(St,Ot[0],Ot[1],Ot[2])}return Je.apply(St,Ot)};var vs=Math.max;const Fr=function or(Je){return function(){return Je}};var wr=Xn?function(Je,St){return Xn(Je,"toString",{configurable:!0,enumerable:!1,value:Fr(St),writable:!0})}:Ei,Yo=800,Kl=16,Jo=Date.now,is=function pa(Je){var St=0,Ot=0;return function(){var An=Jo(),li=Kl-(An-Ot);if(Ot=An,li>0){if(++St>=Yo)return arguments[0]}else St=0;return Je.apply(void 0,arguments)}}(wr);const Aa=is,Po=function po(Je,St){return Aa(function vr(Je,St,Ot){return St=vs(void 0===St?Je.length-1:St,0),function(){for(var An=arguments,li=-1,ri=vs(An.length-St,0),Pi=Array(ri);++li<ri;)Pi[li]=An[St+li];li=-1;for(var qn=Array(St+1);++li<St;
1)qn[li]=An[li];return qn[St]=Ot(Pi),_r(Je,this,qn)}}(Je,St,Ei),Je+"")};var Pa=function ka(Je){return Po(function(St,Ot){var An=-1,li=Ot.length,ri=li>1?Ot[li-1]:void 0,Pi=li>2?Ot[2]:void 0;for(ri=Je.length>3&&"function"==typeof ri?(li--,ri):void 0,Pi&&function qa(Je,St,Ot){if(!zt(Ot))return!1;var An=typeof St;return!!("number"==An?xe(Ot)&&da(St,Ot.length):"string"==An&&St in Ot)&&w(Ot[St],Je)}(Ot[0],Ot[1],Pi)&&(ri=li<3?void 0:ri,li=1),St=Object(St);++An<li;){var qn=Ot[An];qn&&Je(St,qn,An,ri)}return St})}(function(Je,St,Ot){fi(Je,St,Ot)});const Ro=Pa;var Ra=a(1135);let vl=(()=>{class Je{constructor(){this.colorschemesOptions=new Ra.X(void 0)}setColorschemesOptions(Ot){this.pColorschemesOptions=Ot,this.colorschemesOptions.next(Ot)}getColorschemesOptions(){return this.pColorschemesOptions}}return Je.\u0275fac=function(Ot){return new(Ot||Je)},Je.\u0275prov=t.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),yl=(()=>{class Je{constructor(Ot,An,li){this.zone=An,this.themeService=li,this.type="bar",this.plugins=[],this.chartClick=new t.vpe,this.chartHover=new t.vpe,this.subs=[],this.themeOverrides={},this.ctx=Ot.nativeElement.getContext("2d"),this.subs.push(this.themeService.colorschemesOptions.pipe((0,s.x)()).subscribe(ri=>this.themeChanged(ri)))}ngOnChanges(Ot){const An=["type"],li=Object.getOwnPropertyNames(Ot);if(li.some(ri=>An.includes(ri))||li.every(ri=>Ot[ri].isFirstChange()))this.render();else{const ri=this.getChartConfiguration();this.chart&&(Object.assign(this.chart.config.data,ri.data),this.chart.config.plugins&&Object.assign(this.chart.config.plugins,ri.plugins),this.chart.config.options&&Object.assign(this.chart.config.options,ri.options)),this.update()}}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach(Ot=>Ot.unsubscribe())}render(){return this.chart&&this.chart.destroy(),this.zone.runOutsideAngular(()=>this.chart=new e.kL(this.ctx,this.getChartConfiguration()))}update(Ot){this.chart&&this.zone.runOutsideAngular(()=>this.chart?.update(Ot))}hideDataset(Ot,An){this.chart&&(this.chart.getDatasetMeta(Ot).hidden=An,this.update())}isDatasetHidden(Ot){return this.chart?.getDatasetMeta(Ot)?.hidden}toBase64Image(){return this.chart?.toBase64Image()}themeChanged(Ot){this.themeOverrides=Ot,this.chart&&(this.chart.config.options&&Object.assign(this.chart.config.options,this.getChartOptions()),this.update())}getChartOptions(){return Ro({onHover:(Ot,An)=>{!this.chartHover.observed&&!this.chartHover.observers?.length||this.zone.run(()=>this.chartHover.emit({event:Ot,active:An}))},onClick:(Ot,An)=>{!this.chartClick.observed&&!this.chartClick.observers?.length||this.zone.run(()=>this.chartClick.emit({event:Ot,active:An}))}},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||[]}}}return Je.\u0275fac=function(Ot){return new(Ot||Je)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(vl))},Je.\u0275dir=t.lG2({type:Je,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:[t.TTD]}),Je})();const Qo=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]],jr={plugins:{colors:{enabled:!1}},datasets:{line:{backgroundColor:Je=>Gr(Ts(Je.datasetIndex),.4),borderColor:Je=>
1Gr(Ts(Je.datasetIndex),1),pointBackgroundColor:Je=>Gr(Ts(Je.datasetIndex),1),pointBorderColor:"#fff"},bar:{backgroundColor:Je=>Gr(Ts(Je.datasetIndex),.6),borderColor:Je=>Gr(Ts(Je.datasetIndex),1)},get radar(){return this.line},doughnut:{backgroundColor:Je=>Gr(Ts(Je.dataIndex),.6),borderColor:"#fff"},get pie(){return this.doughnut},polarArea:{backgroundColor:Je=>Gr(Ts(Je.dataIndex),.6),borderColor:Je=>Gr(Ts(Je.dataIndex),1)},get bubble(){return this.doughnut},get scatter(){return this.doughnut},get area(){return this.polarArea}}};function Gr(Je,St){return"rgba("+Je.concat(St).join(",")+")"}function ys(Je,St){return Math.floor(Math.random()*(St-Je+1))+Je}function Ts(Je=0){return Qo[Je]||function Fa(){return[ys(0,255),ys(0,255),ys(0,255)]}()}let bl=(()=>{class Je{constructor(){this.generateColors=!0}}return Je.\u0275fac=function(Ot){return new(Ot||Je)},Je.\u0275prov=t.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();e.kL.register(...e.zX);let La=(()=>{class Je{constructor(Ot){Ot?.plugins&&e.kL.register(...Ot?.plugins);const An=Ro(Ot?.generateColors?jr:{},Ot?.defaults||{});e.ce.set(An)}static forRoot(Ot){return{ngModule:Je,providers:[{provide:bl,useValue:Ot}]}}}return Je.\u0275fac=function(Ot){return new(Ot||Je)(t.LFG(bl,8))},Je.\u0275mod=t.oAB({type:Je}),Je.\u0275inj=t.cJS({}),Je})()},1208:(o,u,a)=>{"use strict";a.d(u,{QG:()=>be,ap:()=>_e});var t=a(5861),e=a(4650),s=a(1481),D=a(6895);const x=["wrapper"],M=["sourceImage"];function w(ze,Oe){if(1&ze){const K=e.EpF();e.TgZ(0,"img",4,5),e.NdJ("load",function(){e.CHM(K);const V=e.oxw();return e.KtG(V.imageLoadedInView())})("mousedown",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.startMove(V,q.moveTypes.Drag))})("touchstart",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.startMove(V,q.moveTypes.Drag))})("error",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.loadImageError(V))}),e.qZA()}if(2&ze){const K=e.oxw();e.Udp("visibility",K.imageVisible?"visible":"hidden")("transform",K.safeTransformStyle),e.ekj("ngx-ic-draggable",!K.disabled&&K.allowMoveImage),e.Q6J("src",K.safeImgDataUrl,e.LSH),e.uIk("alt",K.imageAltText)}}function I(ze,Oe){if(1&ze){const K=e.EpF();e.ynx(0),e.TgZ(1,"span",9),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"topleft"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"topleft"))}),e._UZ(2,"span",10),e.qZA(),e.TgZ(3,"span",11),e._UZ(4,"span",10),e.qZA(),e.TgZ(5,"span",12),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"topright"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"topright"))}),e._UZ(6,"span",10),e.qZA(),e.TgZ(7,"span",13),e._UZ(8,"span",10),e.qZA(),e.TgZ(9,"span",14),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottomright"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottomright"))}),e._UZ(10,"span",10),e.qZA(),e.TgZ(11,"span",15),e._UZ(12,"span",10),e.qZA(),e.TgZ(13,"span",16),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottomleft"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottomleft"))}),e._UZ(14,"span",10),e.qZA(),e.TgZ(15,"span",17),e._UZ(16,"span",10),e.qZA(),e.TgZ(17,"span",18),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"top"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"top"))}),e.qZA(),e.TgZ(18,"span",19),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"right"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"right"))}),e.qZA(),e.TgZ(19,"span",20),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottom"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"bottom"))}),e.qZA(),e.TgZ(20,"span",21),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"left"))})("touchstart",function(V){e.CHM(K);const q=e.oxw(2);return e.KtG(q.startMove(V,q.moveTypes.Resize,"left"))}),e.qZA(),e.BQk()}}function P(ze,Oe){if(1&ze){const K=e.EpF();e.TgZ(0,"div",6),e.NdJ("keydown",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.keyboardAccess(V))}),e.TgZ(1,"div",7),e.NdJ("mousedown",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.startMove(V,q.moveTypes.Move))})("touchstart",function(V){e.CHM(K);const q=e.oxw();return e.KtG(q.startMove(V,q.moveTypes.Move))}),e.qZA(),e.YNc(2,I,21,0,"ng-container",8),e.qZA()}if(2&ze){const K=e.oxw();e.Udp("top",K.cropper.y1,"px")("left",K.cropper.x1,"px")("width",K.cropper.x2-K.cropper.x1,"px")("height",K.cropper.y2-K.cropper.y1,"px")("margin-left","center"===K.alignImage?K.marginLeft:null)("visibility",K.imageVisible?"visible":"hidden"),e.ekj("ngx-ic-round",K.roundCropper),e.xp6(2),e.Q6J("ngIf",!K.hideResizeSquares)}}class S{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(Oe){Object.keys(Oe).filter(K=>
1K in this).forEach(K=>this[K]=Oe[K]),this.validateOptions()}setOptionsFromChanges(Oe){Object.keys(Oe).filter(K=>K in this).forEach(K=>this[K]=Oe[K].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var k=(()=>{return(ze=k||(k={})).Drag="drag",ze.Move="move",ze.Resize="resize",ze.Pinch="pinch",k;var ze})();function G(ze,Oe){return ze/100*Oe}let W=(()=>{class ze{crop(K,X,V,q){const Ee=this.getImagePosition(K,X,V,q),ye=Ee.x2-Ee.x1,nt=Ee.y2-Ee.y1,at=document.createElement("canvas");at.width=ye,at.height=nt;const me=at.getContext("2d");if(!me)return null;null!=q.backgroundColor&&(me.fillStyle=q.backgroundColor,me.fillRect(0,0,ye,nt));const ve=(q.transform.scale||1)*(q.transform.flipH?-1:1),je=(q.transform.scale||1)*(q.transform.flipV?-1:1),{translateH:Xe,translateV:rt}=this.getCanvasTranslate(K,X,q),mt=X.transformed;me.setTransform(ve,0,0,je,mt.size.width/2+Xe,mt.size.height/2+rt),me.translate(-Ee.x1/ve,-Ee.y1/je),me.rotate((q.transform.rotate||0)*Math.PI/180),me.drawImage(mt.image,-mt.size.width/2,-mt.size.height/2);const $t={width:ye,height:nt,imagePosition:Ee,cropperPosition:{...V}};q.containWithinAspectRatio&&($t.offsetImagePosition=this.getOffsetImagePosition(K,X,V,q));const tn=this.getResizeRatio(ye,nt,q);return 1!==tn&&($t.width=Math.round(ye*tn),$t.height=q.maintainAspectRatio?Math.round($t.width/q.aspectRatio):Math.round(nt*tn),function B(ze,Oe,K){const X=ze.width,V=ze.height,q=X/(Oe=Math.round(Oe)),Ee=V/(K=Math.round(K)),ye=Math.ceil(q/2),nt=Math.ceil(Ee/2),at=ze.getContext("2d");if(at){const me=at.getImageData(0,0,X,V),ve=at.createImageData(Oe,K),je=me.data,Xe=ve.data;for(let rt=0;rt<K;rt++)for(let mt=0;mt<Oe;mt++){const $t=4*(mt+rt*Oe),tn=rt*Ee;let yt=0,bt=0,Ye=0,Nt=0,xn=0,pn=0,_n=0;const zt=Math.floor(mt*q),Yt=Math.floor(rt*Ee);let It=Math.ceil((mt+1)*q),bn=Math.ceil((rt+1)*Ee);It=Math.min(It,X),bn=Math.min(bn,V);for(let Rn=Yt;Rn<bn;Rn++){const Sn=Math.abs(tn-Rn)/nt,vn=mt*q,mi=Sn*Sn;for(let Un=zt;Un<It;Un++){const Jn=Math.abs(vn-Un)/ye,Mt=Math.sqrt(mi+Jn*Jn);if(Mt>=1)continue;yt=2*Mt*Mt*Mt-3*Mt*Mt+1;const Vt=4*(Un+Rn*X);_n+=yt*je[Vt+3],Ye+=yt,je[Vt+3]<255&&(yt=yt*je[Vt+3]/250),Nt+=yt*je[Vt],xn+=yt*je[Vt+1],pn+=yt*je[Vt+2],bt+=yt}}Xe[$t]=Nt/bt,Xe[$t+1]=xn/bt,Xe[$t+2]=pn/bt,Xe[$t+3]=_n/Ye}ze.width=Oe,ze.height=K,at.putImageData(ve,0,0)}}(at,$t.width,$t.height)),$t.base64=at.toDataURL("image/"+q.format,this.getQuality(q)),$t}getCanvasTranslate(K,X,V){if("px"===V.transform.translateUnit){const q=this.getRatio(K,X);return{translateH:(V.transform.translateH||0)*q,translateV:(V.transform.translateV||0)*q}}return{translateH:V.transform.translateH?G(V.transform.translateH,X.transformed.size.width):0,translateV:V.transform.translateV?G(V.transform.translateV,X.transformed.size.height):0}}getRatio(K,X){return X.transformed.size.width/K.nativeElement.offsetWidth}getImagePosition(K,X,V,q){const Ee=this.getRatio(K,X),ye={x1:Math.round(V.x1*Ee),y1:Math.round(V.y1*Ee),x2:Math.round(V.x2*Ee),y2:Math.round(V.y2*Ee)};return q.containWithinAspectRatio||(ye.x1=Math.max(ye.x1,0),ye.y1=Math.max(ye.y1,0),ye.x2=Math.min(ye.x2,X.transformed.size.width),ye.y2=Math.min(ye.y2,X.transformed.size.height)),ye}getOffsetImagePosition(K,X,V,q){const nt=X.transformed.size.width/K.nativeElement.offsetWidth;let at,me;(q.canvasRotation+X.exifTransform.rotate)%2?(at=(X.transformed.size.width-X.original.size.height)/2,me=(X.transformed.size.height-X.original.size.width)/2):(at=(X.transformed.size.width-X.original.size.width)/2,me=(X.transformed.size.height-X.original.size.height)/2);const ve={x1:Math.round(V.x1*nt)-at,y1:Math.round(V.y1*nt)-me,x2:Math.round(V.x2*nt)-at,y2:Math.round(V.y2*nt)-me};return q.containWithinAspectRatio||(ve.x1=Math.max(ve.x1,0),ve.y1=Math.max(ve.y1,0),ve.x2=Math.min(ve.x2,X.transformed.size.width),ve.y2=Math.min(ve.y2,X.transformed.size.height)),ve}getResizeRatio(K,X,V){const q=V.resizeToWidth/K,Ee=V.resizeToHeight/X,ye=new Array;V.resizeToWidth>0&&ye.push(q),V.resizeToHeight>0&&ye.push(Ee);const nt=0===ye.length?1:Math.min(...ye);return nt>1&&!V.onlyScaleDown?nt:Math.min(nt,1)}getQuality(K){return Math.min(1,Math.max(0,K.imageQuality/100))}}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Y=(()=>{class ze{resetCropperPosition(K,X,V){if(!K?.nativeElement)return;const q=K.nativeElement;if(V.cropperStaticHeight&&V.cropperStaticWidth)X.x1=0,X.x2=q.offsetWidth>V.cropperStaticWidth?V.cropperStaticWidth:q.offsetWidth,X.y1=0,X.y2=q.offsetHeight>V.cropperStaticHeight?V.cropperStaticHeight:q.offsetHeight;else{const Ee=Math.min(V.cropperScaledMaxWidth,q.offsetWidth),ye=Math.min(V.cropperScaledMaxHeight,q.offsetHeight);if(V.maintainAspectRatio)if(q.offsetWidth/V.aspectRatio<q.offsetHeight){X.x1=0,X.x2=Ee;const nt=Ee/V.aspectRatio;X.y1=(q.offsetHeight-nt)/2,X.y2=X.y1+nt}else{X.y1=0,X.y2=ye;const nt=ye*V.aspectRatio;X.x1=(q.offsetWidth-nt)/2,X.x2=X.x1+nt}else X.x1=0,X.x2=Ee,X.y1=0,X.y2=ye}}move(K,X,V){const q=this.getClientX(K)-X.clientX,Ee=this.getClientY(K)-X.clientY;V.x1=X.x1+q,V.y1=X.y1+Ee,V.x2=X.x2+q,V.y2=X.y2+Ee}resize(K,X,V,q,Ee){const ye=this.getClientX(K)-X.clientX,nt=this.getClientY(K)-X.clientY;switch(X.position){case"left":V.x1=Math.min(Math.max(X.x1+ye,V.x2-Ee.cropperScaledMaxWidth),V.x2-Ee.cropperScaledMinWidth);break;case"topleft":V.x1=Math.min(Math.max(X.x1+ye,V.x2-Ee.cropperScaledMaxWidth),V.x2-Ee.cropperScaledMinWidth),V.y1=Math.min(Math.max(X.y1+nt,V.y2-Ee.cropperScaledMaxHeight),V.y2-Ee.cropperScaledMinHeight);break;case"top":V.y1=Math.min(Math.max(X.y1+nt,V.y2-Ee.cropperScaledMaxHeight),V.y2-Ee.cropperScaledMinHeight);break;case"topright":V.x2=Math.max(Math.min(X.x2+ye,V.x1+Ee.cropperScaledMaxWidth),V.x1+Ee.cropperScaledMinWidth),V.y1=Math.min(Math.max(X.y1+nt,V.y2-Ee.cropperScaledMaxHeight),V.y2-Ee.cropperScaledMinHeight);break;case"right":V.x2=Math.max(Math.min(X.x2+ye,V.x1+Ee.cropperScaledMaxWidth),V.x1+Ee.cropperScaledMinWidth);break;case"bottomright":V.x2=Math.max(Math.min(X.x2+ye,V.x1+Ee.cropperScaledMaxWidth),V.x1+Ee.cropperScaledMinWidth),V.y2=Math.max(Math.min(X.y2+nt,V.y1+Ee.cropperScaledMaxHeight),V.y1+Ee.cropperScaledMinHeight);break;case"bottom":V.y2=Math.max(Math.min(X.y2+nt,V.y1+Ee.cropperScaledMaxHeight),V.y1+Ee.cropperScaledMinHeight);break;case"bottomleft":V.x1=Math.min(Math.max(X.x1+ye,V.x2-Ee.cropperScaledMaxWidth),V.x2-Ee.cropperScaledMinWidth),V.y2=Math.max(Math.min(X.y2+nt,V.y1+Ee.cropperScaledMaxHeight),V.y1+Ee.cropperScaledMinHeight);break;case"center":const at=K.scale,me=Math.min(Math.max(Ee.cropperScaledMinWidth,Math.abs(X.x2-X.x1)*at),Ee.cropperScaledMaxWidth),ve=Math.min(Math.max(Ee.cropperScaledMinHeight,Math.abs(X.y2-X.y1)*at),Ee.cropperScaledMaxHeight);V.x1=X.clientX-me/2,V.x2=X.clientX+me/2,V.y1=X.clientY-ve/2,V.y2=X.clientY+ve/2,V.x1<0?(V.x2-=V.x1,V.x1=0):V.x2>q.width&&(V.x1-=V.x2-q.width,V.x2=q.width),V.y1<0?(V.y2-=V.y1,V.y1=0):V.y2>q.height&&(V.y1-=V.y2-q.height,V.y2=q.height)}Ee.maintainAspectRatio&&this.checkAspectRatio(X.position,V,q,Ee)}checkAspectRatio(K,X,V,q){let Ee=0,ye=0;switch(K){case"top":X.x2=X.x1+(X.y2-X.y1)*q.aspectRatio,Ee=Math.max(X.x2-V.width,0),ye=Math.max(0-X.y1,0),(Ee>0||ye>0)&&(X.x2-=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y1+=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"bottom":X.x2=X.x1+(X.y2-X.y1)*q.aspectRatio,Ee=Math.max(X.x2-V.width,0),ye=Math.max(X.y2-V.height,0),(Ee>0||ye>0)&&(X.x2-=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y2-=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"topleft":X.y1=X.y2-(X.x2-X.x1)/q.aspectRatio,Ee=Math.max(0-X.x1,0),ye=Math.max(0-X.y1,0),(Ee>0||ye>0)&&(X.x1+=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y1+=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"topright":X.y1=X.y2-(X.x2-X.x1)/q.aspectRatio,Ee=Math.max(X.x2-V.width,0),ye=Math.max(0-X.y1,0),(Ee>0||ye>0)&&(X.x2-=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y1+=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"right":case"bottomright":X.y2=X.y1+(X.x2-X.x1)/q.aspectRatio,Ee=Math.max(X.x2-V.width,0),ye=Math.max(X.y2-V.height,0),(Ee>0||ye>0)&&(X.x2-=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y2-=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"left":case"bottomleft":X.y2=X.y1+(X.x2-X.x1)/q.aspectRatio,Ee=Math.max(0-X.x1,0),ye=Math.max(X.y2-V.height,0),(Ee>0||ye>0)&&(X.x1+=ye*q.aspectRatio>Ee?ye*q.aspectRatio:Ee,X.y2-=ye*q.aspectRatio>Ee?ye:Ee/q.aspectRatio);break;case"center":X.x2=X.x1+(X.y2-X.y1)*q.aspectRatio,X.y2=X.y1+(X.x2-X.x1)/q.aspectRatio;const nt=Math.max(0-X.x1,0),at=Math.max(X.x2-V.width,0),me=Math.max(X.y2-V.height,0),ve=Math.max(0-X.y1,0);(nt>0||at>0||me>0||ve>0)&&(X.x1+=me*q.aspectRatio>nt?me*q.aspectRatio:nt,X.x2-=ve*q.aspectRatio>at?ve*q.aspectRatio:at,X.y1+=ve*q.aspectRatio>at?ve:at/q.aspectRatio,X.y2-=me*q.aspectRatio>nt?me:nt/q.aspectRatio)}}getClientX(K){return K.touches?.[0].clientX||K.clientX||0}getClientY(K){return K.touches?.[0].clientY||K.clientY||0}}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();let ue=(()=>{class ze{constructor(){this.autoRotateSupported=function N(){return new Promise(ze=>{const Oe=new Image;Oe.onload=()=>{ze(1===Oe.width&&2===Oe.height)},Oe.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(K,X){return new Promise((V,q)=>{const Ee=new FileReader;Ee.onload=ye=>{this.loadImage(ye.target.result,K.type,X).then(V).catch(q)}
1,Ee.readAsDataURL(K)})}loadImage(K,X,V){return this.isValidImageType(X)?this.loadBase64Image(K,V):Promise.reject(new Error("Invalid image type"))}isValidImageType(K){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(K)}loadImageFromURL(K,X){return new Promise((V,q)=>{const Ee=new Image;Ee.onerror=()=>q,Ee.onload=()=>{const ye=document.createElement("canvas"),nt=ye.getContext("2d");ye.width=Ee.width,ye.height=Ee.height,nt?.drawImage(Ee,0,0),this.loadBase64Image(ye.toDataURL(),X).then(V)},Ee.crossOrigin="anonymous",Ee.src=K})}loadBase64Image(K,X){return new Promise((V,q)=>{const Ee=new Image;Ee.onload=()=>V({originalImage:Ee,originalBase64:K}),Ee.onerror=q,Ee.src=K}).then(V=>this.transformImageBase64(V,X))}transformImageBase64(K,X){var V=this;return(0,t.Z)(function*(){const q=yield V.autoRotateSupported,Ee=yield function Q(ze){switch("string"==typeof ze&&(ze=function O(ze){const Oe=new DataView(function ee(ze){ze=ze.replace(/^data\:([^\;]+)\;base64,/gim,"");const Oe=atob(ze),K=Oe.length,X=new Uint8Array(K);for(let V=0;V<K;V++)X[V]=Oe.charCodeAt(V);return X.buffer}(ze));if(65496!==Oe.getUint16(0,!1))return-2;const K=Oe.byteLength;let X=2;for(;X<K;){if(Oe.getUint16(X+2,!1)<=8)return-1;const V=Oe.getUint16(X,!1);if(X+=2,65505==V){if(1165519206!==Oe.getUint32(X+=2,!1))return-1;const q=18761==Oe.getUint16(X+=6,!1);X+=Oe.getUint32(X+4,q);const Ee=Oe.getUint16(X,q);X+=2;for(let ye=0;ye<Ee;ye++)if(274==Oe.getUint16(X+12*ye,q))return Oe.getUint16(X+12*ye+8,q)}else{if(65280!=(65280&V))break;X+=Oe.getUint16(X,!1)}}return-1}(ze)),ze){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(q?-1:K.originalBase64);return K.originalImage&&K.originalImage.complete?V.transformLoadedImage({original:{base64:K.originalBase64,image:K.originalImage,size:{width:K.originalImage.naturalWidth,height:K.originalImage.naturalHeight}},exifTransform:Ee},X):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(K,X){var V=this;return(0,t.Z)(function*(){const q=X.canvasRotation+K.exifTransform.rotate,Ee={width:K.original.image.naturalWidth,height:K.original.image.naturalHeight};if(0===q&&!K.exifTransform.flip&&!X.containWithinAspectRatio)return{original:{base64:K.original.base64,image:K.original.image,size:{...Ee}}
1,transformed:{base64:K.original.base64,image:K.original.image,size:{...Ee}},exifTransform:K.exifTransform};const ye=V.getTransformedSize(Ee,K.exifTransform,X),nt=document.createElement("canvas");nt.width=ye.width,nt.height=ye.height;const at=nt.getContext("2d");at?.setTransform(K.exifTransform.flip?-1:1,0,0,1,nt.width/2,nt.height/2),at?.rotate(Math.PI*(q/2)),at?.drawImage(K.original.image,-Ee.width/2,-Ee.height/2);const me=nt.toDataURL(),ve=yield V.loadImageFromBase64(me);return{original:{base64:K.original.base64,image:K.original.image,size:{...Ee}},transformed:{base64:me,image:ve,size:{width:ve.width,height:ve.height}},exifTransform:K.exifTransform}})()}loadImageFromBase64(K){return new Promise((X,V)=>{const q=new Image;q.onload=()=>X(q),q.onerror=V,q.src=K})}getTransformedSize(K,X,V){const q=V.canvasRotation+X.rotate;if(V.containWithinAspectRatio){if(q%2){const ye=K.height/V.aspectRatio;return{width:Math.max(K.height,K.width*V.aspectRatio),height:Math.max(K.width,ye)}}{const ye=K.width/V.aspectRatio;return{width:Math.max(K.width,K.height*V.aspectRatio),height:Math.max(K.height,ye)}}}return q%2?{height:K.width,width:K.height}:{width:K.width,height:K.height}}}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),_e=(()=>{class ze{constructor(K,X,V,q,Ee){this.cropService=K,this.cropperPositionService=X,this.loadImageService=V,this.sanitizer=q,this.cd=Ee,this.Hammer=window?.Hammer||null,this.settings=new S,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=k,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new e.vpe,this.startCropImage=new e.vpe,this.imageLoaded=new e.vpe,this.cropperReady=new e.vpe,this.loadImageFailed=new e.vpe,this.transformChange=new e.vpe,this.reset()}ngOnChanges(K){this.onChangesUpdateSettings(K),this.onChangesInputImage(K),this.loadedImage?.original.image.complete&&(K.containWithinAspectRatio||K.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(X=>this.setLoadedImage(X)).catch(X=>this.loadImageError(X)),(K.cropper||K.maintainAspectRatio||K.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!K.maintainAspectRatio&&!K.aspectRatio?K.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition(),this.cd.markForCheck()),K.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck()),K.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(K){this.settings.setOptionsFromChanges(K),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(K){(K.imageChangedEvent||K.imageURL||K.imageBase64||K.imageFile)&&this.reset(),K.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),K.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),K.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),K.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const K=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${K}, ${this.transform.translateV||0}${K}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(K){this.loadImageService.loadImageFile(K,this.settings).then(X=>this.setLoadedImage(X)).catch(X=>this.loadImageError(X))}loadBase64Image(K){this.loadImageService.loadBase64Image(K,this.settings).then(X=>this.setLoadedImage(X)).catch(X=>this.loadImageError(X))}loadImageFromURL(K){this.loadImageService.loadImageFromURL(K,this.settings).then(X=>this.setLoadedImage(X)).catch(X=>this.loadImageError(X))}setLoadedImage(K){this.loadedImage=K,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(K.transformed.base64),this.cd.markForCheck()}loadImageError(K){console.error(K),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){this.loadedImage&&(this.hidden?this.resizedWhileHidden=!0:(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()))}activatePinchGesture(){if(this.Hammer){const K=new this.Hammer(this.wrapper.nativeElement);K.get("pinch").set({enable:!0}),K.on("pinchmove",this.onPinch.bind(this)),K.on("pinchend",this.pinchStop.bind(this)),K.on("pinchstart",this.startPinch.bind(this))}else(0,e.X6Q)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const K=this.sourceImage.nativeElement;(this.maxSize.width!==K.offsetWidth||this.maxSize.height!==K.offsetHeight)&&(this.cropper.x1=this.cropper.x1*K.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*K.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*K.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*K.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(K){this.changeKeyboardStepSize(K),this.keyboardMoveCropper(K)}changeKeyboardStepSize(K){const X=+K.key;X>=1&&X<=9&&(this.settings.stepSize=X)}keyboardMoveCropper(K){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(K.key))return;const V=K.shiftKey?k.Resize:k.Move,q=K.altKey?function F(ze){switch(ze){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(K.key):function z(ze){switch(ze){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(K.key),Ee=function ne(ze,Oe){switch(ze){case"ArrowUp":return{clientX:0,clientY:-1*Oe};case"ArrowRight":return{clientX:Oe,clientY:0};case"ArrowDown":return{clientX:0,clientY:Oe};default:return{clientX:-1*Oe,clientY:0}}}(K.key,this.settings.stepSize);K.preventDefault(),K.stopPropagation(),this.startMove({clientX:0,clientY:0},V,q),this.moveImg(Ee),this.moveStop()}startMove(K,X,V=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===k.Pinch||X===k.Drag&&!this.allowMoveImage||(K.preventDefault&&K.preventDefault(),this.moveStart={active:!0,type:X,position:V,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(K),clientY:this.cropperPositionService.getClientY(K),...this.cropper})}startPinch(K){this.safeImgDataUrl&&(K.preventDefault&&K.preventDefault(),this.moveStart={active:!0,type:k.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(K){if(this.moveStart.active){if(K.stopPropagation&&K.stopPropagation(),K.preventDefault&&K.preventDefault(),this.moveStart.type===k.Move)this.cropperPositionService.move(K,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===k.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(K,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===k.Drag){const X=this.cropperPositionService.getClientX(K)-this.moveStart.clientX,V=this.cropperPositionService.getClientY(K)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+X,translateV:(this.moveStart.transform?.translateV||0)+V},this.setCssTransform()}this.cd.detectChanges()}}onPinch(K){this.moveStart.active&&(K.stopPropagation&&K.stopPropagation(),K.preventDefault&&K.preventDefault(),this.moveStart.type===k.Pinch&&(this.cropperPositionService.resize(K,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const K=this.sourceImage.nativeElement;this.maxSize.width=K.offsetWidth,this.maxSize.height=K.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const K=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/K:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/K:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(K=!1){this.cropper.x1<0&&(this.cropper.x2-=K?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=K?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=K?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=K?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===k.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const K=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=K&&this.imageCropped.emit(K),K}return null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return ze.\u0275fac=function(K){return new(K||ze)(e.Y36(W),e.Y36(Y),e.Y36(ue),e.Y36(s.H7),e.Y36(e.sBO))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["image-cropper"]],viewQuery:function(K,X){if(1&K&&(e.Gf(
1x,7),e.Gf(M,5)),2&K){let V;e.iGM(V=e.CRH())&&(X.wrapper=V.first),e.iGM(V=e.CRH())&&(X.sourceImage=V.first)}},hostVars:6,hostBindings:function(K,X){1&K&&e.NdJ("resize",function(){return X.onResize()},!1,e.Jf7)("mousemove",function(q){return X.moveImg(q)},!1,e.evT)("touchmove",function(q){return X.moveImg(q)},!1,e.evT)("mouseup",function(){return X.moveStop()},!1,e.evT)("touchend",function(){return X.moveStop()},!1,e.evT),2&K&&(e.Udp("text-align",X.alignImage),e.ekj("disabled",X.disabled)("ngx-ix-hidden",X.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[e.TTD],decls:5,vars:10,consts:[["wrapper",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"src","load","mousedown","touchstart","error"],["sourceImage",""],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(K,X){1&K&&(e.TgZ(0,"div",null,0),e.YNc(2,w,2,8,"img",1),e._UZ(3,"div",2),e.YNc(4,P,3,15,"div",3),e.qZA()),2&K&&(e.Udp("background",X.imageVisible&&X.backgroundColor),e.xp6(2),e.Q6J("ngIf",X.safeImgDataUrl),e.xp6(1),e.Udp("width",X.maxSize.width,"px")("height",X.maxSize.height,"px")("margin-left","center"===X.alignImage?X.marginLeft:null),e.xp6(1),e.Q6J("ngIf",X.imageVisible))},dependencies:[D.O5],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;
1outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),ze})(),be=(()=>{class ze{}return ze.\u0275fac=function(K){return new(K||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[D.ez]]}),ze})()},7804:(o,u,a)=>{"use strict";a.d(u,{Yo:()=>ze,e$:()=>ee});var t=a(4650),e=a(6895),s=a(457),D=a(9646),x=a(6406),M=a(7579),w=a(1135),I=a(9770),P=a(9751),S=a(4004),k=a(8505),z=a(4782),F=a(5363),ne=a(9300),B=a(3900),G=a(2722);const W=["container"],Y=new t.OlP("LottieOptions");let N=(()=>{class X{constructor(q,Ee){this.ngZone=q,this.options=Ee,this.player$=function fe(X,V){const q=X();return(q instanceof Promise?(0,s.D)(q).pipe((0,S.U)(ye=>ye.default||ye)):(0,D.of)(q)).pipe((0,k.b)(ye=>ye.useWebWorker(V)),(0,z.d)({bufferSize:1,refCount:!0}))}(this.options.player,this.options.useWebWorker).pipe((0,F.Q)(x.Z))}loadAnimation(q){return this.player$.pipe((0,S.U)(Ee=>this.createAnimationItem(Ee,q)))}resolveOptions(q,Ee){return Object.assign({container:Ee,renderer:"svg",loop:!0,autoplay:!0},q)}createAnimationItem(q,Ee){return this.ngZone.runOutsideAngular(()=>q.loadAnimation(Ee))}}
1return X.\u0275fac=function(q){return new(q||X)(t.LFG(t.R0b),t.LFG(Y))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Q=(()=>{class X{constructor(q,Ee,ye){this.ngZone=q,this.platformId=Ee,this.animationLoader=ye,this.options=null,this.containerClass=null,this.styles=null,this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.destroy$=new M.x,this.loadAnimation$=new M.x,this.animationItem$=new w.X(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroy$.next(),this.destroyAnimation()}loadAnimation(q,Ee){this.ngZone.runOutsideAngular(()=>this.loadAnimation$.next([q,Ee]))}getAnimationItem(){return(0,I.P)(()=>
1this.animationItem$).pipe((0,ne.h)(q=>null!==q))}awaitAnimationItemAndStartListening(q){return this.getAnimationItem().pipe((0,B.w)(Ee=>new P.y(ye=>{this.ngZone.runOutsideAngular(()=>{Ee.addEventListener(q,nt=>{this.ngZone.runOutsideAngular(()=>{ye.next(nt)})})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe((0,ne.h)(([Ee])=>(0,e.NF)(this.platformId)&&void 0!==Ee.options)).pipe((0,B.w)(([Ee,ye])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(Ee.options.currentValue,ye)))),(0,G.R)(this.destroy$)).subscribe(Ee=>{this.ngZone.run(()=>this.animationItem$.next(Ee))})}destroyAnimation(){const q=this.animationItem$.getValue();null!==q&&(q.destroy(),this.animationItem$.next(null))}}return X.\u0275fac=function(q){return new(q||X)(t.Y36(t.R0b),t.Y36(t.Lbi),t.Y36(N))},X.\u0275dir=t.lG2({type:X,selectors:[["","lottie",""]],inputs:{options:"options",containerClass:"containerClass",styles:"styles"},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"}}),X})(),ee=(()=>{class X extends Q{constructor(q,Ee,ye){super(q,Ee,ye),this.width=null,this.height=null,this.container=null}ngOnChanges(q){super.loadAnimation(q,this.container.nativeElement)}}return X.\u0275fac=function(q){return new(q||X)(t.Y36(t.R0b),t.Y36(t.Lbi),t.Y36(N))},X.\u0275cmp=t.Xpm({type:X,selectors:[["ng-lottie"]],viewQuery:function(q,Ee){if(1&q&&t.Gf(W,7),2&q){let ye;t.iGM(ye=t.CRH())&&(Ee.container=ye.first)}},inputs:{width:"width",height:"height"},standalone:!0,features:[t.qOj,t.TTD,t.jDz],decls:2,vars:6,consts:[[3,"ngStyle","ngClass"],["container",""]],template:function(q,Ee){1&q&&t._UZ(0,"div",0,1),2&q&&(t.Udp("width",Ee.width||"100%")("height",Ee.height||"100%"),t.Q6J("ngStyle",Ee.styles)("ngClass",Ee.containerClass))},dependencies:[e.ez,e.mk,e.PC],encapsulation:2,changeDetection:0}),X})();function ze(X){return[{provide:Y,useValue:X}]}},2174:(o,u,a)=>{"use strict";a.d(u,{UQ:()=>Y,US:()=>W,fx:()=>fe});var t=a(7340),e=a(6895),s=a(4650),D=a(805);function x(N,Q){if(1&N&&(s.TgZ(0,"span",9),s._uU(1),s.qZA()),2&N){const O=s.oxw();s.xp6(1),s.hij(" ",O.header," ")}}function M(N,Q){1&N&&s.GkF(0)}function w(N,Q){1&N&&s.Hsn(0,1,["*ngIf","hasHeaderFacet"])}function I(N,Q){1&N&&s.GkF(0)}function P(N,Q){if(1&N&&(s.ynx(0),s.YNc(1,I,1,0,"ng-container",5),s.B
1Qk()),2&N){const O=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",O.contentTemplate)}}const S=["*",[["p-header"]]],k=function(N){return{transitionParams:N}},z=function(N){return{value:"visible",params:N}},F=function(N){return{value:"hidden",params:N}},ne=["*","p-header"],B=["*"];let G=0,W=(()=>{class N{constructor(O,ee){this.changeDetector=ee,this.cache=!0,this.selectedChange=new s.vpe,this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.iconPos="start",this.id="p-accordiontab-"+G++,this.accordion=O}get selected(){return this._selected}set selected(O){this._selected=O,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}ngAfterContentInit(){this.templates.forEach(O=>{switch(O.getType()){case"content":default:this.contentTemplate=O.template;break;case"header":this.headerTemplate=O.template}})}toggle(O){if(this.disabled)return!1;let ee=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:O,index:ee});else{if(!this.accordion.multiple)for(var ue=0;ue<this.accordion.tabs.length;ue++)this.accordion.tabs[ue].selected&&(this.accordion.tabs[ue].selected=!1,this.accordion.tabs[ue].selectedChange.emit(!1),this.accordion.tabs[ue].changeDetector.markForCheck());this.selected=!0,this.loaded=!0,this.accordion.onOpen.emit({originalEvent:O,index:ee})}this.selectedChange.emit(this.selected),this.accordion.updateActiveIndex(),this.changeDetector.markForCheck(),O.preventDefault()}findTabIndex(){let O=-1;for(var ee=0;ee<this.accordion.tabs.length;ee++)if(this.accordion.tabs[ee]==this){O=ee;break}return O}get hasHeaderFacet(){return this.headerFacet&&this.headerFacet.length>0}onKeydown(O){(32===O.which||13===O.which)&&(this.toggle(O),O.preventDefault())}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}}return N.\u0275fac=function(O){return new(O||N)(s.Y36((0,s.Gpc)(()=>Y)),s.Y36(s.sBO))},N.\u0275cmp=s.Xpm({type:N,selectors:[["p-accordionTab"]],contentQueries:function(O,ee,ue){if(1&O&&(s.Suo(ue,D.h4,4),s.Suo(ue,D.jx,4)),2&O){let _e;s.iGM(_e=s.CRH())&&(ee.headerFacet=_e),s.iGM(_e=s.CRH())&&(ee.templates=_e)}},hostAttrs:[1,"p-element"],inputs:{header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:ne,decls:11,vars:36,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],[1,"p-accordion-header"],["role","tab",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[3,"ngClass"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[1,"p-accordion-header-text"]],template:function(O,ee){1&O&&(s.F$t(S),s.TgZ(0,"div",0)(1,"div",1)(2,"a",2),s.NdJ("click",function(_e){return ee.toggle(_e)})("keydown",function(_e){return ee.onKeydown(_e)}),s._UZ(3,"span",3),s.YNc(4,x,2,1,"span",4),s.YNc(5,M,1,0,"ng-container",5),s.YNc(6,w,1,0,"ng-content",6),s.qZA()(),s.TgZ(7,"div",7)(8,"div",8),s.Hsn(9),s.YNc(10,P,2,1,"ng-container",6),s.qZA()()()),2&O&&(s.ekj("p-accordion-tab-active",ee.selected),s.Q6J("ngClass",ee.tabStyleClass)("ngStyle",ee.tabStyle),s.xp6(1),s.ekj("p-highlight",ee.selected)("p-disabled",ee.disabled),s.xp6(1),s.Akn(ee.headerStyle),s.Q6J("ngClass",ee.headerStyleClass),s.uIk("tabindex",ee.disabled?null:0)("id",ee.id)("aria-controls",ee.id+"-content")("aria-expanded",ee.selected),s.xp6(1),s.Tol(ee.iconClass),s.Q6J("ngClass",ee.selected?ee.accordion.collapseIcon:ee.accordion.expandIcon),s.xp6(1),s.Q6J("ngIf",!ee.hasHeaderFacet),s.xp6(1),s.Q6J("ngTemplateOutlet",ee.headerTemplate),s.xp6(1),s.Q6J("ngIf",ee.hasHeaderFacet),s.xp6(1),s.Q6J("@tabContent",ee.selected?s.VKq(30,z,s.VKq(28,k,ee.transitionOptions)):s.VKq(34,F,s.VKq(32,k,ee.transitionOptions))),s.uIk("id",ee.id+"-content")("aria-hidden",!ee.selected)("aria-labelledby",ee.id),s.xp6(1),s.Q6J("ngClass",ee.contentStyleClass)("ngStyle",ee.contentStyle),s.xp6(2),s.Q6J("ngIf",ee.contentTemplate&&(ee.cache?ee.loaded:ee.selected)))},dependencies:[e.mk,e.O5,e.tP,e.PC],styles:[".p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}\n"],encapsulation:2,data:{animation:[(0,t.X$)("tabContent",[(0,t.SB)("hidden",(0,t.oB)({height:"0"})),(0,t.SB)("visible",(0,t.oB)({height:"*"})),(0,t.eR)("visible <=> hidden",[(0,t.jt)("{{transitionParams}}")]),(0,t.eR)("void => *",(0,t.jt)(0))])]},changeDetection:0}),N})(),Y=(()=>{class N{constructor(O,ee){this.el=O,this.changeDetector=ee,this.onClose=new s.vpe,this.onOpen=new s.vpe,this.expandIcon="pi pi-fw pi-chevron-right",this.collapseIcon="pi pi-fw pi-chevron-down",this.activeIndexChange=new s.vpe,this.tabs=[]}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(O=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set activeIndex(O){this._activeIndex=O,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let O=0;O<this.tabs.length;O++){let ee=this.multiple?this._activeIndex.includes(O):O===this._activeIndex;ee!==this.tabs[O].selected&&(this.tabs[O].selected=ee,this.tabs[O].selectedChange.emit(ee),this.tabs[O].changeDetector.markForCheck())}}updateActiveIndex(){let O=this.multiple?[]:null;
1this.tabs.forEach((ee,ue)=>{if(ee.selected){if(!this.multiple)return void(O=ue);O.push(ue)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(O)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}}return N.\u0275fac=function(O){return new(O||N)(s.Y36(s.SBq),s.Y36(s.sBO))},N.\u0275cmp=s.Xpm({type:N,selectors:[["p-accordion"]],contentQueries:function(O,ee,ue){if(1&O&&s.Suo(ue,W,4),2&O){let _e;s.iGM(_e=s.CRH())&&(ee.tabList=_e)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:B,decls:2,vars:4,consts:[["role","tablist",3,"ngClass","ngStyle"]],template:function(O,ee){1&O&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA()),2&O&&(s.Tol(ee.styleClass),s.Q6J("ngClass","p-accordion p-component")("ngStyle",ee.style))},dependencies:[e.mk,e.PC],encapsulation:2,changeDetection:0}),N})(),fe=(()=>{class N{}return N.\u0275fac=function(O){return new(O||N)},N.\u0275mod=s.oAB({type:N}),N.\u0275inj=s.cJS({imports:[e.ez,D.m8]}),N})()},805:(o,u,a)=>{"use strict";a.d(u,{$_:()=>W,F0:()=>F,Lk:()=>I,YP:()=>w,a6:()=>P,b4:()=>B,ez:()=>z,h4:()=>G,iZ:()=>k,jx:()=>Y,m8:()=>fe,pg:()=>S,wB:()=>M,ws:()=>N});var t=a(4650),e=a(7579),s=a(982),D=a(6895);const x=["*"];var M=(()=>{return(O=M||(M={}))[O.ACCEPT=0]="ACCEPT",O[O.REJECT=1]="REJECT",O[O.CANCEL=2]="CANCEL",M;var O})();let w=(()=>{class O{constructor(){this.requireConfirmationSource=new e.x,this.acceptConfirmationSource=new e.x,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}confirm(ue){return this.requireConfirmationSource.next(ue),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac}),O})(),I=(()=>{class O{constructor(){this.activeItemKeyChange=new e.x,this.activeItemKeyChange$=this.activeItemKeyChange.asObservable()}changeKey(ue){this.activeItemKey=ue,this.activeItemKeyChange.next(this.activeItemKey)}reset(){this.activeItemKey=null,this.activeItemKeyChange.next(this.activeItemKey)}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac}),O})(),P=(()=>{class O{}return O.STARTS_WITH="startsWith",O.CONTAINS="contains",O.NOT_CONTAINS="notContains",O.ENDS_WITH="endsWith",O.EQUALS="equals",O.NOT_EQUALS="notEquals",O.IN="in",O.LESS_THAN="lt",O.LESS_THAN_OR_EQUAL_TO="lte",O.GREATER_THAN="gt",O.GREATER_THAN_OR_EQUAL_TO="gte",O.BETWEEN="between",O.IS="is",O.IS_NOT="isNot",O.BEFORE="before",O.AFTER="after",O.DATE_IS="dateIs",O.DATE_IS_NOT="dateIsNot",O.DATE_BEFORE="dateBefore",O.DATE_AFTER="dateAfter",O})(),S=(()=>{class O{}return O.AND="and",O.OR="or",O})(),k=(()=>{class O{constructor(){this.filters={startsWith:(ue,_e,be)=>{if(null==_e||""===_e.trim())return!0;if(null==ue)return!1;let Qe=s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be);return s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be).slice(0,Qe.length)===Qe},contains:(ue,_e,be)=>{if(null==_e||"string"==typeof _e&&""===_e.trim())return!0;if(null==ue)return!1;let Qe=s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be);return-1!==s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be).indexOf(Qe)},notContains:(ue,_e,be)=>{if(null==_e||"string"==typeof _e&&""===_e.trim())return!0;if(null==ue)return!1;let Qe=s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be);return-1===s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be).indexOf(Qe)},endsWith:(ue,_e,be)=>{if(null==_e||""===_e.trim())return!0;if(null==ue)return!1;let Qe=s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be),ze=s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be);return-1!==ze.indexOf(Qe,ze.length-Qe.length)},equals:(ue,_e,be)=>null==_e||"string"==typeof _e&&""===_e.trim()||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()===_e.getTime():s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be)==s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be)),notEquals:(ue,_e,be)=>!(null==_e||"string"==typeof _e&&""===_e.trim()||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()===_e.getTime():s.gb.removeAccents(ue.toString()).toLocaleLowerCase(be)==s.gb.removeAccents(_e.toString()).toLocaleLowerCase(be))),in:(ue,_e)=>{if(null==_e||0===_e.length)return!0;for(let be=0;be<_e.length;be++)if(s.gb.equals(ue,_e[be]))return!0;return!1},between:(ue,_e)=>null==_e||null==_e[0]||null==_e[1]||null!=ue&&(ue.getTime?_e[0].getTime()<=ue.getTime()&&ue.getTime()<=_e[1].getTime():_e[0]<=ue&&ue<=_e[1]),lt:(ue,_e,be)=>null==_e||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()<_e.getTime():ue<_e),lte:(ue,_e,be)=>null==_e||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()<=_e.getTime():ue<=_e),gt:(ue,_e,be)=>null==_e||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()>_e.getTime():ue>_e),gte:(ue,_e,be)=>null==_e||null!=ue&&(ue.getTime&&_e.getTime?ue.getTime()>=_e.getTime():ue>=_e),is:(ue,_e,be)=>this.filters.equals(ue,_e,be),isNot:(ue,_e,be)=>this.filters.notEquals(ue,_e,be),before:(ue,_e,be)=>this.filters.lt(ue,_e,be),after:(ue,_e,be)=>this.filters.gt(ue,_e,be),dateIs:(ue,_e)=>null==_e||null!=ue&&ue.toDateString()===_e.toDateString(),dateIsNot:(ue,_e)=>null==_e||null!=ue&&ue.toDateString()!==_e.toDateString(),dateBefore:(ue,_e)=>null==_e||null!=ue&&ue.getTime()<_e.getTime(),dateAfter:(ue,_e)=>null==_e||null!=ue&&ue.getTime()>_e.getTime()}}filter(ue,_e,be,Qe,ze){let Oe=[];if(ue)for(let K of ue)for(let X of _e){let V=s.gb.resolveFieldData(K,X);if(this.filters[Qe](V,be,ze)){Oe.push(K);break}}return Oe}register(ue,_e){this.filters[ue]=_e}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),z=(()=>{class O{constructor(){this.messageSource=new e.x,this.clearSource=new e.x,this.messageOb
1server=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(ue){ue&&this.messageSource.next(ue)}addAll(ue){ue&&ue.length&&this.messageSource.next(ue)}clear(ue){this.clearSource.next(ue||null)}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac}),O})(),F=(()=>{class O{constructor(){this.clickSource=new e.x,this.clickObservable=this.clickSource.asObservable()}add(ue){ue&&this.clickSource.next(ue)}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),B=(()=>{class O{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[P.STARTS_WITH,P.CONTAINS,P.NOT_CONTAINS,P.ENDS_WITH,P.EQUALS,P.NOT_EQUALS],numeric:[P.EQUALS,P.NOT_EQUALS,P.LESS_THAN,P.LESS_THAN_OR_EQUAL_TO,P.GREATER_THAN,P.GREATER_THAN_OR_EQUAL_TO],date:[P.DATE_IS,P.DATE_IS_NOT,P.DATE_BEFORE,P.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new e.x,this.translationObserver=this.translationSource.asObservable()}getTranslation(ue){return this.translation[ue]}setTranslation(ue){this.translation={...this.translation,...ue},this.translationSource.next(this.translation)}}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),G=(()=>{class O{}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275cmp=t.Xpm({type:O,selectors:[["p-header"]],ngContentSelectors:x,decls:1,vars:0,template:function(ue,_e){1&ue&&(t.F$t(),t.Hsn(0))},encapsulation:2}),O})(),W=(()=>{class O{}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275cmp=t.Xpm({type:O,selectors:[["p-footer"]],ngContentSelectors:x,decls:1,vars:0,template:function(ue,_e){1&ue&&(t.F$t(),t.Hsn(0))},encapsulation:2}),O})(),Y=(()=>{class O{constructor(ue){this.template=ue}getType(){return this.name}}return O.\u0275fac=function(ue){return new(ue||O)(t.Y36(t.Rgc))},O.\u0275dir=t.lG2({type:O,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),O})(),fe=(()=>{class O{}return O.\u0275fac=function(ue){return new(ue||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[D.ez]}),O})(),N=(()=>{class O{}return O.STARTS_WITH="startsWith",O.CONTAINS="contains",O.NOT_CONTAINS="notContains",O.ENDS_WITH="endsWith",O.EQUALS="equals",O.NOT_EQUALS="notEquals",O.NO_FILTER="noFilter",O.LT="lt",O.LTE="lte",O.GT="gt",O.GTE="gte",O.IS="is",O.IS_NOT="isNot",O.BEFORE="before",O.AFTER="after",O.CLEAR="clear",O.APPLY="apply",O.MATCH_ALL="matchAll",O.MATCH_ANY="matchAny",O.ADD_RULE="addRule",O.REMOVE_RULE="removeRule",O.ACCEPT="accept",O.REJECT="reject",O.CHOOSE="choose",O.UPLOAD="upload",O.CANCEL="cancel",O.DAY_NAMES="dayNames",O.DAY_NAMES_SHORT="dayNamesShort",O.DAY_NAMES_MIN="dayNamesMin",O.MONTH_NAMES="monthNames",O.MONTH_NAMES_SHORT="monthNamesShort",O.FIRST_DAY_OF_WEEK="firstDayOfWeek",O.TODAY="today",O.WEEK_HEADER="weekHeader",O.W
1EAK="weak",O.MEDIUM="medium",O.STRONG="strong",O.PASSWORD_PROMPT="passwordPrompt",O.EMPTY_MESSAGE="emptyMessage",O.EMPTY_FILTER_MESSAGE="emptyFilterMessage",O})()},3631:(o,u,a)=>{"use strict";a.d(u,{Qc:()=>Bt,WN:()=>jt});var t=a(7340),e=a(6895),s=a(4650),D=a(4006),x=a(805),M=a(4418),w=a(5593),I=a(9592),P=a(1740),S=a(2526),k=a(1795),z=a(3718),F=a(982);const ne=["container"],B=["in"],G=["multiIn"],W=["multiContainer"],Y=["ddBtn"],fe=["items"],N=["scroller"],Q=["overlay"],O=function(_t,dt){return{"p-autocomplete-dd-input":_t,"p-disabled":dt}};function ee(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"input",13,14),s.NdJ("click",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputClick(We))})("input",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInput(We))})("keydown",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onKeydown(We))})("keyup",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onKeyup(We))})("focus",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputFocus(We))})("blur",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputBlur(We))})("change",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputChange(We))})("paste",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputPaste(We))}),s.qZA()}if(2&_t){const Be=s.oxw();s.Tol(Be.inputStyleClass),s.Q6J("autofocus",Be.autofocus)("ngStyle",Be.inputStyle)("autocomplete",Be.autocomplete)("ngClass",s.WLB(20,O,Be.dropdown,Be.disabled))("value",Be.inputFieldValue)("readonly",Be.readonly)("disabled",Be.disabled),s.uIk("type",Be.type)("id",Be.inputId)("required",Be.required)("name",Be.name)("placeholder",Be.placeholder)("size",Be.size)("maxlength",Be.maxlength)("tabindex",Be.tabindex)("aria-label",Be.ariaLabel)("aria-labelledby",Be.ariaLabelledBy)("aria-required",Be.required)}}function ue(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"i",15),s.NdJ("click",function(){s.CHM(Be);const We=s.oxw();return s.KtG(We.clear())}),s.qZA()}}function _e(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"i",15),s.NdJ("click",function(){s.CHM(Be);const We=s.oxw();return s.KtG(We.clear())}),s.qZA()}}function be(_t,dt){1&_t&&s.GkF(0)}function Qe(_t,dt){if(1&_t&&(s.TgZ(0,"span",27),s._uU(1),s.qZA()),2&_t){const Be=s.oxw().$implicit,Te=s.oxw(2);s.xp6(1),s.Oqu(Te.resolveFieldData(Be))}}function ze(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"span",28),s.NdJ("click",function(){s.CHM(Be),s.oxw();const We=s.MAs(1),ft=s.oxw(2);return s.KtG(ft.removeItem(We))}),s.qZA()}}const Oe=function(_t){return{$implicit:_t}};function K(_t,dt){if(1&_t&&(s.TgZ(0,"li",22,23),s.YNc(2,be,1,0,"ng-container",24),s.YNc(3,Qe,2,1,"span",25),s.YNc(4,ze,1,0,"span",26),s.qZA()),2&_t){const Be=dt.$implicit,Te=s.oxw(2);s.xp6(2),s.Q6J("ngTemplateOutlet",Te.selectedItemTemplate)("ngTemplateOutletContext",s.VKq(4,Oe,Be)),s.xp6(1),s.Q6J("ngIf",!Te.selectedItemTemplate),s.xp6(1),s.Q6J("ngIf",!Te.disabled&&!Te.readonly)}}const X=function(_t,dt){return{"p-disabled":_t,"p-focus":dt}};function V(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"ul",16,17),s.NdJ("click",function(){s.CHM(Be);const We=s.MAs(5);return s.KtG(We.focus())}),s.YNc(2,K,5,6,"li",18),s.TgZ(3,"li",19)(4,"input",20,21),s.NdJ("input",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInput(We))})("click",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputClick(We))})("keydown",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onKeydown(We))})("keyup",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onKeyup(We))})("focus",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputFocus(We))})("blur",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputBlur(We))})("change",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputChange(We))})("paste",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onInputPaste(We))}),s.qZA()()()}if(2&_t){const Be=s.oxw();s.Q6J("ngClass",s.WLB(20,X,Be.disabled,Be.focus)),s.xp6(2),s.Q6J("ngForOf",Be.value),s.xp6(2),s.Tol(Be.inputStyleClass),s.Q6J("autofocus",Be.autofocus)("disabled",Be.disabled)("readonly",Be.readonly)("autocomplete",Be.autocomplete)("ngStyle",Be.inputStyle),s.uIk("type",Be.type)("id",Be.inputId)("placeholder",Be.value&&Be.value.length?null:Be.placeholder)("tabindex",Be.tabindex)("maxlength",Be.maxlength)("aria-label",Be.ariaLabel)("aria-labelledby",Be.ariaLabelledBy)("aria-required",Be.required)("aria-controls",Be.listId)("aria-expanded",Be.overlayVisible)("aria-activedescendant","p-highlighted-option")}}function q(_t,dt){1&_t&&s._UZ(0,"i",29)}function Ee(_t,dt){if(1&_t){const Be=s.EpF();
1s.TgZ(0,"button",30,31),s.NdJ("click",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.handleDropdownClick(We))}),s.qZA()}if(2&_t){const Be=s.oxw();s.Q6J("icon",Be.dropdownIcon)("disabled",Be.disabled),s.uIk("aria-label",Be.dropdownAriaLabel)("tabindex",Be.tabindex)}}function ye(_t,dt){1&_t&&s.GkF(0)}function nt(_t,dt){1&_t&&s.GkF(0)}const at=function(_t,dt){return{$implicit:_t,options:dt}};function me(_t,dt){if(1&_t&&s.YNc(0,nt,1,0,"ng-container",24),2&_t){const Be=dt.$implicit,Te=dt.options;s.oxw(2);const We=s.MAs(15);s.Q6J("ngTemplateOutlet",We)("ngTemplateOutletContext",s.WLB(2,at,Be,Te))}}function ve(_t,dt){1&_t&&s.GkF(0)}const je=function(_t){return{options:_t}};function Xe(_t,dt){if(1&_t&&s.YNc(0,ve,1,0,"ng-container",24),2&_t){const Be=dt.options,Te=s.oxw(3);s.Q6J("ngTemplateOutlet",Te.loaderTemplate)("ngTemplateOutletContext",s.VKq(2,je,Be))}}function rt(_t,dt){1&_t&&(s.ynx(0),s.YNc(1,Xe,1,4,"ng-template",35),s.BQk())}const mt=function(_t){return{height:_t}};function $t(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"p-scroller",32,33),s.NdJ("onLazyLoad",function(We){s.CHM(Be);const ft=s.oxw();return s.KtG(ft.onLazyLoad.emit(We))}),s.YNc(2,me,1,5,"ng-template",34),s.YNc(3,rt,2,0,"ng-container",11),s.qZA()}if(2&_t){const Be=s.oxw();s.Akn(s.VKq(8,mt,Be.scrollHeight)),s.Q6J("items",Be.suggestions)("itemSize",Be.virtualScrollItemSize||Be._itemSize)("autoSize",!0)("lazy",Be.lazy)("options",Be.virtualScrollOptions),s.xp6(3),s.Q6J("ngIf",Be.loaderTemplate)}}function tn(_t,dt){1&_t&&s.GkF(0)}const yt=function(){return{}};function bt(_t,dt){if(1&_t&&(s.ynx(0),s.YNc(1,tn,1,0,"ng-container",24),s.BQk()),2&_t){const Be=s.oxw(),Te=s.MAs(15);s.xp6(1),s.Q6J("ngTemplateOutlet",Te)("ngTemplateOutletContext",s.WLB(3,at,Be.suggestions,s.DdM(2,yt)))}}function Ye(_t,dt){if(1&_t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&_t){const Be=s.oxw().$implicit,Te=s.oxw(3);s.xp6(1),s.Oqu(Te.getOptionGroupLabel(Be)||"empty")}}function Nt(_t,dt){1&_t&&s.GkF(0)}function xn(_t,dt){1&_t&&s.GkF(0)}function pn(_t,dt){if(1&_t&&(s.TgZ(0,"li",41),s.YNc(1,Ye,2,1,"span",11),s.YNc(2,Nt,1,0,"ng-container",24),s.qZA(),s.YNc(3,xn,1,0,"ng-container",24)),2&_t){const Be=dt.$implicit,Te=s.oxw(2).options,We=s.MAs(5),ft=s.oxw();s.Q6J("ngStyle",s.VKq(6,mt,Te.itemSize+"px")),s.xp6(1),s.Q6J("ngIf",!ft.groupTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",ft.groupTemplate)("ngTemplateOutletContext",s.VKq(8,Oe,Be)),s.xp6(1),s.Q6J("ngTemplateOutlet",We)("ngTemplateOutletContext",s.VKq(10,Oe,ft.getOptionGroupChildren(Be)))}}function _n(_t,dt){if(1&_t&&(s.ynx(0),s.YNc(1,pn,4,12,"ng-template",40),s.BQk()),2&_t){const Be=s.oxw().$implicit;s.xp6(1),s.Q6J("ngForOf",Be)}}function zt(_t,dt){1&_t&&s.GkF(0)}function Yt(_t,dt){if(1&_t&&(s.ynx(0),s.YNc(1,zt,1,0,"ng-container",24),s.BQk()),2&_t){const Be=s.oxw().$implicit,Te=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",Te)("ngTemplateOutletContext",s.VKq(2,Oe,Be))}}function It(_t,dt){if(1&_t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&_t){const Be=s.oxw().$implicit,Te=s.oxw(3);s.xp6(1),s.Oqu(Te.resolveFieldData(Be))}}function bn(_t,dt){1&_t&&s.GkF(0)}const Rn=function(_t){return{"p-highlight":_t}},Sn=function(_t,dt){return{$implicit:_t,index:dt}};function vn(_t,dt){if(1&_t){const Be=s.EpF();s.TgZ(0,"li",43),s.NdJ("click",function(){const ft=s.CHM(Be).$implicit,Ft=s.oxw(3);return s.KtG(Ft.selectItem(ft))}),s.YNc(1,It,2,1,"span",11),s.YNc(2,bn,1,0,"ng-container",24),s.qZA()}if(2&_t){const Be=dt.$implicit,Te=dt.index,We=s.oxw(2).options,ft=s.oxw();s.Q6J("ngStyle",s.VKq(6,mt,We.itemSize+"px"))("ngClass",s.VKq(8,Rn,Be===ft.highlightOption))("id",ft.highlightOption==Be?"p-highlighted-option":""),s.xp6(1),s.Q6J("ngIf",!ft.itemTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",ft.itemTemplate)("ngTemplateOutletContext",s.WLB(10,Sn,Be,We.getOptions?We.getOptions(Te):Te))}}function mi(_t,dt){1&_t&&s.YNc(0,vn,3,13,"li",42),2&_t&&s.Q6J("ngForOf",dt.$implicit)}function Un(_t,dt){if(1&_t&&(s.ynx(0),s._uU(1),s.BQk()),2&_t){const Be=s.oxw(3);s.xp6(1),s.hij(" ",Be.emptyMessageLabel," ")}}function Jn(_t,dt){1&_t&&s.GkF(0,null,46)}function Mt(_t,dt){if(1&_t&&(s.TgZ(0,"li",44),s.YNc(1,Un,2,1,"ng-container",45),s.YNc(2,Jn,2,0,"ng-container",9),s.qZA()),2&_t){const Be=s.oxw().options,Te=s.oxw();s.Q6J("ngStyle",s.VKq(4,mt,Be.itemSize+"px")),s.xp6(1),s.Q6J("ngIf",!Te.emptyTemplate)("ngIfElse",Te.empty),s.xp6(1),s.Q6J("ngTemplateOutlet",Te.emptyTemplate)}}function Vt(_t,dt){if(1&_t&&(s.TgZ(0,"ul",36,37),s.YNc(2,_n,2,1,"ng-container",11),s.YNc(3,Yt,2,4,"ng-container",11),s.YNc(4,mi,1,1,"ng-template",null,38,s.W1O),s.YNc(6,Mt,3,6,"li",39),s.qZA()),2&_t){const Be=dt.options,Te=s.oxw();s.Akn(Be.contentStyle),s.Q6J("ngClass",Be.contentStyleClass),s.uIk("id",Te.listId),s.xp6(2),s.Q6J("ngIf",Te.group),s.xp6(1),s.Q6J("ngIf",!Te.group),s.xp6(3),s.Q6J("ngIf",Te.noResults&&Te.showEmptyMessage)}}function Z(_t,dt){1&_t&&s.GkF(0)}const re=function(_t,dt){return{"p-autocomplete p-component":!0,"p-autocomplete-dd":_t,"p-autocomplete-multiple":dt}},pe=function(){return["p-autocomplete-panel p-component"]},Re={provide:D.JU,useExisting:(0,s.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class _t{constructor(Be,Te,We,ft,Ft,Pt,pt){this.el=Be,this.renderer=Te,this.cd=We,this.differs=ft,this.config=Ft,this.overlayService=Pt,this.zone=pt,this.minLength=1,this.delay=300,this.scrollHeight="200px",this.lazy=!1,this.type="text",this.autoZIndex=!0,this.baseZIndex=0,this.dropdownIcon="pi pi-chevron-down",this.unique=!0,this.completeOnFocus=!1,this.showClear=!1,this.dropdownMode="blank",this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.autocomplete="off",this.completeMethod=new s.vpe,this.onSelect=new s.vpe,this.onUnselect=new s.vpe,this.onFocus=new s.vpe,this.onBlur=new s.vpe,this.onDropdownClick=new s.vpe,this.onClear=new s.vpe,this.onKeyUp=new s.vpe,this.onShow=new s.vpe,this.onHide=new s.vpe,this.onLazyLoad=new s.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.overlayVisible=!1,this.focus=!1,this.inputFieldValue=null,this.inputValue=null,this.differ=ft.find([]).create(null),this.listId=(0,F.Th)()+"_list"}get itemSize(){return this._itemSize}set itemSize(Be){this._itemSize=Be,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get suggestions(){return this._suggestions}set suggestions(Be){this._suggestions=Be,this.handleSuggestionsChange()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()}
1,1),this.suggestionsUpdated=!1}),this.highlightOptionChanged&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{if(this.overlay&&this.itemsWrapper){let Be=I.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");Be&&I.p.scrollInView(this.itemsWrapper,Be)}},1),this.highlightOptionChanged=!1})}handleSuggestionsChange(){null!=this._suggestions&&this.loading&&(this.highlightOption=null,this._suggestions.length?(this.noResults=!1,this.show(),this.suggestionsUpdated=!0,this.autoHighlight&&(this.highlightOption=this._suggestions[0])):(this.noResults=!0,this.showEmptyMessage?(this.show(),this.suggestionsUpdated=!0):this.hide()),this.loading=!1)}ngAfterContentInit(){this.templates.forEach(Be=>{switch(Be.getType()){case"item":default:this.itemTemplate=Be.template;break;case"group":this.groupTemplate=Be.template;break;case"selectedItem":this.selectedItemTemplate=Be.template;break;case"header":this.headerTemplate=Be.template;break;case"empty":this.emptyTemplate=Be.template;break;case"footer":this.footerTemplate=Be.template;break;case"loader":this.loaderTemplate=Be.template}})}writeValue(Be){this.value=Be,this.filled=this.value&&""!=this.value,this.updateInputField(),this.cd.markForCheck()}getOptionGroupChildren(Be){return this.optionGroupChildren?F.gb.resolveFieldData(Be,this.optionGroupChildren):Be.items}getOptionGroupLabel(Be){return this.optionGroupLabel?F.gb.resolveFieldData(Be,this.optionGroupLabel):null!=Be.label?Be.label:Be}registerOnChange(Be){this.onModelChange=Be}registerOnTouched(Be){this.onModelTouched=Be}setDisabledState(Be){this.disabled=Be,this.cd.markForCheck()}onInput(Be){if(!this.inputKeyDown&&I.p.isIE())return;this.timeout&&clearTimeout(this.timeout);let Te=Be.target.value;this.inputValue=Te,!this.multiple&&!this.forceSelection&&this.onModelChange(Te),0===Te.length&&!this.multiple&&(this.value=null,this.hide(),this.onClear.emit(Be),this.onModelChange(Te)),Te.length>=this.minLength?this.timeout=setTimeout(()=>{this.search(Be,Te)},this.delay):this.hide(),this.updateFilledState(),this.inputKeyDown=!1}onInputClick(Be){this.documentClickListener&&(this.inputClick=!0)}search(Be,Te){null!=Te&&(this.loading=!0,this.completeMethod.emit({originalEvent:Be,query:Te}))}selectItem(Be,Te=!0){this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.multiple?(this.multiInputEL.nativeElement.value="",this.value=this.value||[],(!this.isSelected(Be)||!this.unique)&&(this.value=[...this.value,Be],this.onModelChange(this.value))):(this.inputEL.nativeElement.value=this.resolveFieldData(Be),this.value=Be,this.onModelChange(this.value)),this.onSelect.emit(Be),this.updateFilledState(),Te&&(this.itemClicked=!0,this.focusInput()),this.hide()}show(Be){(this.multiInputEL||this.inputEL)&&!this.overlayVisible&&(this.multiple?this.multiInputEL.nativeElement.ownerDocument.activeElement==this.multiInputEL.nativeElement:this.inputEL.nativeElement.ownerDocument.activeElement==this.inputEL.nativeElement)&&(this.overlayVisible=!0),this.onShow.emit(Be),this.cd.markForCheck()}clear(){this.multiple?this.value=null:(this.inputValue=null,this.inputEL.nativeElement.value=""),this.updateFilledState(),this.onModelChange(this.value),this.onClear.emit()}onOverlayAnimationStart(Be){"visible"===Be.toState&&(this.itemsWrapper=I.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild.nativeElement))}resolveFieldData(Be){let Te=this.field?F.gb.resolveFieldData(Be,this.field):Be;return void 0!==Te?Te:""}hide(Be){this.overlayVisible=!1,this.onHide.emit(Be),this.cd.markForCheck()}handleDropdownClick(Be){if(this.overlayVisible)this.hide();else{this.focusInput();let Te=this.multiple?this.multiInputEL.nativeElement.value:this.inputEL.nativeElement.value;"blank"===this.dropdownMode?this.search(Be,""):"current"===this.dropdownMode&&this.search(Be,Te),this.onDropdownClick.emit({originalEvent:Be,query:Te})}}focusInput(){this.multiple?this.multiInputEL.nativeElement.focus():this.inputEL.nativeElement.focus()}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(x.ws.EMPTY_MESSAGE)}removeItem(Be){let Te=I.p.index(Be),We=this.value[Te];this.value=this.value.filter((ft,Ft)=>Ft!=Te),this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(We)}onKeydown(Be){if(this.overlayVisible)switch(Be.which){case 40:if(this.group){let We=this.findOptionGroupIndex(this.highlightOption,this.suggestions);if(-1!==We){let ft=We.itemIndex+1;ft<this.getOptionGroupChildren(this.suggestions[We.groupIndex]).length?(this.highlightOption=this.getOptionGroupChildren(this.suggestions[We.groupIndex])[ft],this.highlightOptionChanged=!0):this.suggestions[We.groupIndex+1]&&(this.highlightOption=this.getOptionGroupChildren(this.suggestions[We.groupIndex+1])[0],this.highlightOptionChanged=!0)}else this.highlightOption=this.getOptionGroupChildren(this.suggestions[0])[0]}else{let We=this.findOptionIndex(this.highlightOption,this.suggestions);if(-1!=We){var Te=We+1;Te!=this.suggestions.length&&(this.highlightOption=this.suggestions[Te],this.highlightOptionChanged=!0)}else this.highlightOption=this.suggestions[0]}Be.preventDefault();break;case 38:if(this.group){let We=this.findOptionGroupIndex(this.highlightOption,this.suggestions);if(-1!==We){let ft=We.itemIndex-1;if(ft>=0)this.highlightOption=this.getOptionGroupChildren(this.suggestions[We.groupIndex])[ft],this.highlightOptionChanged=!0;else if(ft<0){let Ft=this.suggestions[We.groupIndex-1];Ft&&(this.highlightOption=this.getOptionGroupChildren(Ft)[this.getOptionGroupChildren(Ft).length-1],this.highlightOptionChanged=!0)}}}else{let We=this.findOptionIndex(this.highlightOption,this.suggestions);We>0&&(this.highlightOption=this.suggestions[We-1],this.highlightOptionChanged=!0)}Be.preventDefault();break;case 13:this.highlightOption&&(this.selectItem(this.highlightOption),this.hide()),Be.preventDefault();break;case 27:this.hide(),Be.preventDefault();break;case 9:this.highlightOption&&this.selectItem(this.highlightOption),this.hide()}else 40===Be.which&&this.suggestions?this.search(Be,Be.target.value):Be.ctrlKey&&"z"===Be.key&&!this.multiple?(this.inputEL.nativeElement.value=this.resolveFieldData(null),this.value="",this.onModelChange(this.value)):Be.ctrlKey&&"z"===Be.key&&this.multiple&&(this.value.pop(),this.onModelChange(this.value),this.updateFilledState());if(this.multiple&&8===Be.which&&this.value&&this.value.length&&!this.multiInputEL.nativeElement.value){this.value=[...this.value];const We=this.value.pop();this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(We)}this.inputKeyDown=!0}onKeyup(Be){this.onKeyUp.emit(Be)}onInputFocus(Be){!this.itemClicked&&this.completeOnFocus&&this.search(Be,this.multiple?this.multiInputEL.nativeElement.value:this.inputEL.nativeElement.value),this.focus=!0,this.onFocus.emit(Be),this.itemClicked=!1}onInputBlur(Be){this.focus=!1,this.onModelTouched(),this.onBlur.emit(Be)}onInputChange(Be){if(this.forceSelection){let Te=!1,We=Be.target.value.trim();if(this.suggestions)for(let ft of this.suggestions){let Ft=this.field?F.gb.resolveFieldData(ft,this.field):ft;if(Ft&&We===Ft.trim()){Te=!0,this.forceSelectionUpdateModelTimeout=setTimeout(()=>{this.selectItem(ft,!1)},250);break}}Te||(this.multiple?this.multiInputEL.nativeElement.value="":(this.value=null,this.inputEL.nativeElement.value=""),this.onClear.emit(Be),this.onModelChange(this.value),this.updateFilledState())}}onInputPaste(Be){this.onKeydown(Be)}isSelected(Be){let Te=!1;if(this.value&&this.value.length)for(let We=0;We<this.value.length;We++)if(F.gb.equals(this.value[We],Be,this.dataKey)){Te=!0;break}return Te}findOptionIndex(Be,Te){let We=-1;if(Te)for(let ft=0;ft<Te.length;ft++)if(F.gb.equals(Be,Te[ft])){We=ft;break}return We}findOptionGroupIndex(Be,Te){let We,ft;if(Te)for(let Ft=0;Ft<Te.length&&(We=Ft,ft=this.findOptionIndex(Be,this.getOptionGroupChildren(Te[Ft])),-1===ft);Ft++);return-1!==ft?{groupIndex:We,itemIndex:ft}:-1}updateFilledState(){this.filled=this.multiple?this.value&&this.value.length||this.multiInputEL&&this.multiInputEL.nativeElement&&""!=this.multiInputEL.nativeElement.value:this.inputFieldValue&&""!=this.inputFieldValue||this.inputEL&&this.inputEL.nativeElement&&""!=this.inputEL.nativeElement.value}updateInputField(){let Be=this.resolveFieldData(this.value);this.inputFieldValue=Be,this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=Be),this.updateFilledState()}ngOnDestroy(){this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return _t.\u0275fac=function(Be){return new(Be||_t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(s.ZZ4),s.Y36(x.b4),s.Y36(x.F0),s.Y36(s.R0b))},_t.\u0275cmp=s.Xpm({type:_t,selectors:[["p-autoComplete"]],contentQueries:function(Be,Te,We){if(1&Be&&s.Suo(We,x.jx,4),2&Be){let ft;s.iGM(ft=s.CRH())&&(Te.templates=ft)}},viewQuery:function(Be,Te){if(1&Be&&(s.Gf(ne,5),s.Gf(B,5),s.Gf(G,5),s.Gf(W,5),s.Gf(Y,5),s.Gf(fe,5),s.Gf(N,5),s.Gf(Q,5)),2&Be){let We;s.iGM(We=s.CRH())&&(Te.containerEL=We.first),s.iGM(We=s.CRH())&&(Te.inputEL=We.first),s.iGM(We=s.CRH())&&(Te.multiInputEL=We.first),s.iGM(We=s.CRH())&&(Te.multiContainerEL=We.first),s.iGM(We=s.CRH())&&(Te.dropdownButton=We.first),s.iGM(We=s.CRH())&&(Te.itemsViewChild=We.first),s.iGM(We=s.CRH())&&(Te.scroller=We.first),s.iGM(We=s.CRH())&&(Te.overlayViewChild=We.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(Be,Te){2&Be&&s.ekj("p-inputwrapper-filled",Te.filled)("p-inputwrapper-focus",Te.focus&&!Te.disabled||Te.autofocus||Te.overlayVisible)("p-autocomplete-clearable",Te.showClear&&!Te.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"c
1ompleteOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",itemSize:"itemSize",suggestions:"suggestions"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[s._Bn([Re])],decls:17,vars:30,consts:[[3,"ngClass","ngStyle"],["container",""],["pAutoFocus","","class","p-autocomplete-input p-inputtext p-component","aria-autocomplete","list","role","searchbox",3,"autofocus","ngStyle","class","autocomplete","ngClass","value","readonly","disabled","click","input","keydown","keyup","focus","blur","change","paste",4,"ngIf"],["class","p-autocomplete-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-autocomplete-multiple-container p-component p-inputtext",3,"ngClass","click",4,"ngIf"],["class","p-autocomplete-loader pi pi-spinner pi-spin",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown","pRipple","",3,"icon","disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onShow","onHide"],["overlay",""],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","searchbox",1,"p-autocomplete-input","p-inputtext","p-component",3,"autofocus","ngStyle","autocomplete","ngClass","value","readonly","disabled","click","input","keydown","keyup","focus","blur","change","paste"],["in",""],[1,"p-autocomplete-clear-icon","pi","pi-times",3,"click"],[1,"p-autocomplete-multiple-container","p-component","p-inputtext",3,"ngClass","click"],["multiContainer",""],["class","p-autocomplete-token",4,"ngFor","ngForOf"],[1,"p-autocomplete-input-token"],["pAutoFocus","","aria-autocomplete","list","role","searchbox","aria-haspopup","true",3,"autofocus","disabled","readonly","autocomplete","ngStyle","input","click","keydown","keyup","focus","blur","change","paste"],["multiIn",""],[1,"p-autocomplete-token"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],["class","p-autocomplete-token-icon pi pi-times-circle",3,"click",4,"ngIf"],[1,"p-autocomplete-token-label"],[1,"p-autocomplete-token-icon","pi","pi-times-circle",3,"click"],[1,"p-autocomplete-loader","pi","pi-spinner","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown",3,"icon","disabled","click"],["ddBtn",""],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-autocomplete-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-autocomplete-item-group",3,"ngStyle"],["role","option","class","p-autocomplete-item","pRipple","",3,"ngStyle","ngClass","id","click",4,"ngFor","ngForOf"],["role","option","pRipple","",1,"p-autocomplete-item",3,"ngStyle","ngClass","id","click"],[1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(Be,Te){1&Be&&(s.TgZ(0,"span",0,1),s.YNc(2,ee,2,23,"input",2),s.YNc(3,ue,1,0,"i",3),s.YNc(4,_e,1,0,"i",3),s.YNc(5,V,6,23,"ul",4),s.YNc(6,q,1,0,"i",5),s.YNc(7,Ee,2,4,"button",6),s.TgZ(8,"p-overlay",7,8),s.NdJ("visibleChange",function(ft){return Te.overlayVisible=ft})("onAnimationStart",function(ft){return Te.onOverlayAnimationStart(ft)})("onShow",function(ft){return Te.show(ft)})("onHide",function(ft){return Te.hide(ft)}),s.TgZ(10,"div",0),s.YNc(11,ye,1,0,"ng-container",9),s.YNc(12,$t,4,10,"p-scroller",10),s.YNc(13,bt,2,6,"ng-container",11),s.YNc(14,Vt,7,7,"ng-template",null,12,s.W1O),s.YNc(16,Z,1,0,"ng-container",9),s.qZA()()()),2&Be&&(s.Tol(Te.styleClass),s.Q6J("ngClass",s.WLB(26,re,Te.dropdown,Te.multiple))("ngStyle",Te.style),s.xp6(2),s.Q6J("ngIf",!Te.multiple),s.xp6(1),s.Q6J("ngIf",!Te.multiple&&Te.filled&&!Te.disabled&&Te.showClear),s.xp6(1),s.Q6J("ngIf",Te.multiple&&Te.filled&&!Te.disabled&&Te.showClear),s.xp6(1),s.Q6J("ngIf",Te.multiple),s.xp6(1),s.Q6J("ngIf",Te.loading),s.xp6(1),s.Q6J("ngIf",Te.dropdown),s.xp6(1),s.Q6J("visible",Te.overlayVisible)("options",Te.virtualScrollOptions)("target","@parent")("appendTo",Te.appendTo)("showTransitionOptions",Te.showTransitionOptions)("hideTransitionOptions",Te.hideTransitionOptions),s.xp6(2),s.Tol(Te.panelStyleClass),s.Udp("max-height",Te.virtualScroll?"auto":Te.scrollHeight),s.Q6J("ngClass",s.DdM(29,pe))("ngStyle",Te.panelStyle),s.xp6(1),s.Q6J("ngTemplateOutlet",Te.headerTemplate),s.xp6(1),s.Q6J("ngIf",Te.virtualScroll),s.xp6(1),s.Q6J("ngIf",!Te.virtualScroll),s.xp6(3),s.Q6J("ngTemplateOutlet",Te.footerTemplate))},dependencies:[e.mk,e.sg,e.O5,e.tP,e.PC,S.aV,x.jx,w.Hq,k.H,z.T,M.P],styles:[".p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}\n"],encapsulation:2,data:{animation:[(0,t.X$)("overlayAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,t.jt)("{{showTransitionParams}}")]),(0,t.eR)(":leave",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0}
1))])])]},changeDetection:0}),_t})(),jt=(()=>{class _t{}return _t.\u0275fac=function(Be){return new(Be||_t)},_t.\u0275mod=s.oAB({type:_t}),_t.\u0275inj=s.cJS({imports:[e.ez,S.U8,P.j,w.hJ,x.m8,k.T,z.v,M.E,S.U8,x.m8,z.v,M.E]}),_t})()},4418:(o,u,a)=>{"use strict";a.d(u,{E:()=>x,P:()=>D});var t=a(6895),e=a(4650),s=a(9592);let D=(()=>{class M{constructor(I){this.host=I,this.focused=!1}ngAfterViewChecked(){if(!this.focused&&this.autofocus){const I=s.p.getFocusableElements(this.host.nativeElement);0===I.length&&this.host.nativeElement.focus(),I.length>0&&I[0].focus(),this.focused=!0}}}return M.\u0275fac=function(I){return new(I||M)(e.Y36(e.SBq))},M.\u0275dir=e.lG2({type:M,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),M})(),x=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[t.ez]}),M})()},8639:(o,u,a)=>{"use strict";a.d(u,{TX:()=>w});var t=a(6895),e=a(4650),s=a(805);let w=(()=>{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[t.ez,s.m8]}),I})()},5593:(o,u,a)=>{"use strict";a.d(u,{Hq:()=>B,hJ:()=>W,zx:()=>G});var t=a(6895),e=a(4650),s=a(805),D=a(9592),x=a(1795),M=a(982);function w(Y,fe){1&Y&&e.GkF(0)}const I=function(Y,fe,N,Q){return{"p-button-icon":!0,"p-button-icon-left":Y,"p-button-icon-right":fe,"p-button-icon-top":N,"p-button-icon-bottom":Q}};function P(Y,fe){if(1&Y&&e._UZ(0,"span",4),2&Y){const N=e.oxw();e.Tol(N.loading?"p-button-loading-icon "+N.loadingIcon:N.icon),e.Q6J("ngClass",e.l5B(4,I,"left"===N.iconPos&&N.label,"right"===N.iconPos&&N.label,"top"===N.iconPos&&N.label,"bottom"===N.iconPos&&N.label)),e.uIk("aria-hidden",!0)}}function S(Y,fe){if(1&Y&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Y){const N=e.oxw();e.uIk("aria-hidden",N.icon&&!N.label),e.xp6(1),e.Oqu(N.label)}}function k(Y,fe){if(1&Y&&(e.TgZ(0,"span",4),e._uU(1),e.qZA()),2&Y){const N=e.oxw();e.Tol(N.badgeClass),e.Q6J("ngClass",N.badgeStyleClass()),e.xp6(1),e.Oqu(N.badge)}}const z=function(Y,fe,N,Q,O){return{"p-button p-component":!0,"p-button-icon-only":Y,"p-button-vertical":fe,"p-disabled":N,"p-button-loading":Q,"p-button-loading-label-only":O}},F=["*"],ne={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let B=(()=>{class Y{constructor(N){this.el=N,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1,this._internalClasses=Object.values(ne)}get label(){return this._label}set label(N){this._label=N,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(N){this._icon=N,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(N){this._loading=N,this.initialized&&(this.updateIcon(),this.setStyleClass())}get htmlElement(){return this.el.nativeElement}ngAfterViewInit(){D.p.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const N=[ne.button,ne.component];return this.icon&&!this.label&&M.gb.isEmpty(this.htmlElement.textContent)&&N.push(ne.iconOnly),this.loading&&(N.push(ne.disabled,ne.loading),!this.icon&&this.label&&N.push(ne.labelOnly)),N}setStyleClass(){const N=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...N)}createLabel(){if(this.label){let N=document.createElement("span");this.icon&&!this.label&&N.setAttribute("aria-hidden","true"),N.className="p-button-label",N.appendChild(document.createTextNode(this.label)),this.htmlElement.appendChild(N)}}createIcon(){if(this.icon||this.loading){let N=document.createElement("span");N.className="p-button-icon",N.setAttribute("aria-hidden","true");
1let Q=this.label?"p-button-icon-"+this.iconPos:null;Q&&D.p.addClass(N,Q);let O=this.getIconClass();O&&D.p.addMultipleClasses(N,O),this.htmlElement.insertBefore(N,this.htmlElement.firstChild)}}updateLabel(){let N=D.p.findSingle(this.htmlElement,".p-button-label");this.label?N?N.textContent=this.label:this.createLabel():N&&this.htmlElement.removeChild(N)}updateIcon(){let N=D.p.findSingle(this.htmlElement,".p-button-icon");this.icon||this.loading?N?N.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():N&&this.htmlElement.removeChild(N)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return Y.\u0275fac=function(N){return new(N||Y)(e.Y36(e.SBq))},Y.\u0275dir=e.lG2({type:Y,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),Y})(),G=(()=>{class Y{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe}
1ngAfterContentInit(){this.templates.forEach(N=>{N.getType(),this.contentTemplate=N.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return Y.\u0275fac=function(N){return new(N||Y)},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["p-button"]],contentQueries:function(N,Q,O){if(1&N&&e.Suo(O,s.jx,4),2&N){let ee;e.iGM(ee=e.CRH())&&(Q.templates=ee)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:F,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(N,Q){1&N&&(e.F$t(),e.TgZ(0,"button",0),e.NdJ("click",function(ee){return Q.onClick.emit(ee)})("focus",function(ee){return Q.onFocus.emit(ee)})("blur",function(ee){return Q.onBlur.emit(ee)}),e.Hsn(1),e.YNc(2,w,1,0,"ng-container",1),e.YNc(3,P,1,9,"span",2),e.YNc(4,S,2,2,"span",3),e.YNc(5,k,2,4,"span",2),e.qZA()),2&N&&(e.Tol(Q.styleClass),e.Q6J("ngStyle",Q.style)("disabled",Q.disabled||Q.loading)("ngClass",e.qbA(11,z,Q.icon&&!Q.label,("top"===Q.iconPos||"bottom"===Q.iconPos)&&Q.label,Q.disabled||Q.loading,Q.loading,Q.loading&&!Q.icon&&Q.label)),e.uIk("type",Q.type)("aria-label",Q.ariaLabel),e.xp6(2),e.Q6J("ngTemplateOutlet",Q.contentTemplate),e.xp6(1),e.Q6J("ngIf",!Q.contentTemplate&&(Q.icon||Q.loading)),e.xp6(1),e.Q6J("ngIf",!Q.contentTemplate&&Q.label),e.xp6(1),e.Q6J("ngIf",!Q.contentTemplate&&Q.badge))},dependencies:[t.mk,t.O5,t.tP,t.PC,x.H],encapsulation:2,changeDetection:0}),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(N){return new(N||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[t.ez,x.T]}),Y})()},585:(o,u,a)=>{"use strict";a.d(u,{_8:()=>Jn,f:()=>Un});var t=a(7340),e=a(6895),s=a(4650),D=a(4006),x=a(805),M=a(5593),w=a(9592),I=a(1795),P=a(982);const S=["container"],k=["inputfield"],z=["contentWrapper"];function F(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"i",8),s.NdJ("click",function(){s.CHM(Z);const pe=s.oxw(2);return s.KtG(pe.clear())}),s.qZA()}}function ne(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(pe){s.CHM(Z),s.oxw();const Re=s.MAs(1),Bt=s.oxw();return s.KtG(Bt.onButtonClick(pe,Re))}),s.qZA()}if(2&Mt){const Z=s.oxw(2);s.Q6J("icon",Z.icon)("disabled",Z.disabled),s.uIk("aria-label",Z.iconAriaLabel)}}function B(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"input",4,5),s.NdJ("focus",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onInputFocus(pe))})("keydown",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onInputKeydown(pe))})("click",function(){s.CHM(Z);const pe=s.oxw();return s.KtG(pe.onInputClick())})("blur",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onInputBlur(pe))})("input",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onUserInput(pe))}),s.qZA(),s.YNc(2,F,1,0,"i",6),s.YNc(3,ne,1,3,"button",7)}if(2&Mt){const Z=s.oxw();s.Tol(Z.inputStyleClass),s.Q6J("value",Z.inputFieldValue)("readonly",Z.readonlyInput)("ngStyle",Z.inputStyle)("placeholder",Z.placeholder||"")("disabled",Z.disabled)("ngClass","p-inputtext p-component"),s.uIk("id",Z.inputId)("name",Z.name)("required",Z.required)("aria-required",Z.required)("tabindex",Z.tabindex)("inputmode",Z.touchUI?"off":null)("aria-labelledby",Z.ariaLabelledBy),s.xp6(2),s.Q6J("ngIf",Z.showClear&&!Z.disabled&&null!=Z.value),s.xp6(1),s.Q6J("ngIf",Z.showIcon)}}function G(Mt,Vt){1&Mt&&s.GkF(0)}function W(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"button",30),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.onPrevButtonClick(pe))}),s._UZ(1,"span",31),s.qZA()}}function Y(Mt,Vt){if(1&Mt){const Z=s.EpF();
1s.TgZ(0,"button",32),s.NdJ("click",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.switchToMonthView(pe))})("keydown",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.onContainerButtonKeydown(pe))}),s._uU(1),s.qZA()}if(2&Mt){const Z=s.oxw().$implicit,re=s.oxw(3);s.Q6J("disabled",re.switchViewButtonDisabled()),s.xp6(1),s.hij(" ",re.getMonthName(Z.month)," ")}}function fe(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"button",33),s.NdJ("click",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.switchToYearView(pe))})("keydown",function(pe){s.CHM(Z);const Re=s.oxw(4);return s.KtG(Re.onContainerButtonKeydown(pe))}),s._uU(1),s.qZA()}if(2&Mt){const Z=s.oxw().$implicit,re=s.oxw(3);s.Q6J("disabled",re.switchViewButtonDisabled()),s.xp6(1),s.hij(" ",re.getYear(Z)," ")}}function N(Mt,Vt){if(1&Mt&&(s.ynx(0),s._uU(1),s.BQk()),2&Mt){const Z=s.oxw(5);s.xp6(1),s.AsE("",Z.yearPickerValues()[0]," - ",Z.yearPickerValues()[Z.yearPickerValues().length-1],"")}}function Q(Mt,Vt){1&Mt&&s.GkF(0)}const O=function(Mt){return{$implicit:Mt}};function ee(Mt,Vt){if(1&Mt&&(s.TgZ(0,"span",34),s.YNc(1,N,2,2,"ng-container",13),s.YNc(2,Q,1,0,"ng-container",35),s.qZA()),2&Mt){const Z=s.oxw(4);s.xp6(1),s.Q6J("ngIf",!Z.decadeTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",Z.decadeTemplate)("ngTemplateOutletContext",s.VKq(3,O,Z.yearPickerValues))}}function ue(Mt,Vt){if(1&Mt&&(s.TgZ(0,"th",41)(1,"span"),s._uU(2),s.qZA()()),2&Mt){const Z=s.oxw(5);s.xp6(2),s.Oqu(Z.getTranslation("weekHeader"))}}function _e(Mt,Vt){if(1&Mt&&(s.TgZ(0,"th",42)(1,"span"),s._uU(2),s.qZA()()),2&Mt){const Z=Vt.$implicit;s.xp6(2),s.Oqu(Z)}}function be(Mt,Vt){if(1&Mt&&(s.TgZ(0,"td",45)(1,"span",46),s._uU(2),s.qZA()()),2&Mt){const Z=s.oxw().index,re=s.oxw(2).$implicit;s.xp6(2),s.hij(" ",re.weekNumbers[Z]," ")}}function Qe(Mt,Vt){if(1&Mt&&(s.ynx(0),s._uU(1),s.BQk()),2&Mt){const Z=s.oxw(2).$implicit;s.xp6(1),s.Oqu(Z.day)}}function ze(Mt,Vt){1&Mt&&s.GkF(0)}const Oe=function(Mt,Vt){return{"p-highlight":Mt,"p-disabled":Vt}};function K(Mt,Vt){if(1&Mt){const Z=s.EpF();s.ynx(0),s.TgZ(1,"span",48),s.NdJ("click",function(pe){s.CHM(Z);const Re=s.oxw().$implicit,Bt=s.oxw(6);return s.KtG(Bt.onDateSelect(pe,Re))})("keydown",function(pe){s.CHM(Z);const Re=s.oxw().$implicit,Bt=s.oxw(3).index,jt=s.oxw(3);return s.KtG(jt.onDateCellKeydown(pe,Re,Bt))}),s.YNc(2,Qe,2,1,"ng-container",13),s.YNc(3,ze,1,0,"ng-container",35),s.qZA(),s.BQk()}if(2&Mt){const Z=s.oxw().$implicit,re=s.oxw(6);s.xp6(1),s.Q6J("ngClass",s.WLB(4,Oe,re.isSelected(Z),!Z.selectable)),s.xp6(1),s.Q6J("ngIf",!re.dateTemplate),s.xp6(1),s.Q6J("ngTemplateOutlet",re.dateTemplate)("ngTemplateOutletContext",s.VKq(7,O,Z))}}const X=function(Mt,Vt){return{"p-datepicker-other-month":Mt,"p-datepicker-today":Vt}};function V(Mt,Vt){if(1&Mt&&(s.TgZ(0,"td",47),s.YNc(1,K,4,9,"ng-container",13),s.qZA()),2&Mt){const Z=Vt.$implicit,re=s.oxw(6);s.Q6J("ngClass",s.WLB(2,X,Z.otherMonth,Z.today)),s.xp6(1),s.Q6J("ngIf",!Z.otherMonth||re.showOtherMonths)}}function q(Mt,Vt){if(1&Mt&&(s.TgZ(0,"tr"),s.YNc(1,be,3,1,"td",43),s.YNc(2,V,2,5,"td",44),s.qZA()),2&Mt){const Z=Vt.$implicit,re=s.oxw(5);s.xp6(1),s.Q6J("ngIf",re.showWeek),s.xp6(1),s.Q6J("ngForOf",Z)}}function Ee(Mt,Vt){if(1&Mt&&(s.TgZ(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),s.YNc(4,ue,3,1,"th",38),s.YNc(5,_e,3,1,"th",39),s.qZA()(),s.TgZ(6,"tbody"),s.YNc(7,q,3,2,"tr",40),s.qZA()()()),2&Mt){const Z=s.oxw().$implicit,re=s.oxw(3);s.xp6(4),s.Q6J("ngIf",re.showWeek),s.xp6(1),s.Q6J("ngForOf",re.weekDays),s.xp6(2),s.Q6J("ngForOf",Z.dates)}}function ye(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",20)(1,"div",21),s.YNc(2,W,2,0,"button",22),s.TgZ(3,"div",23),s.YNc(4,Y,2,2,"button",24),s.YNc(5,fe,2,2,"button",25),s.YNc(6,ee,3,5,"span",26),s.qZA(),s.TgZ(7,"button",27),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onNextButtonClick(pe))}),s._UZ(8,"span",28),s.qZA()(),s.YNc(9,Ee,8,3,"div",29),s.qZA()}if(2&Mt){const Z=Vt.index,re=s.oxw(3);s.xp6(2),s.Q6J("ngIf",0===Z),s.xp6(2),s.Q6J("ngIf","date"===re.currentView),s.xp6(1),s.Q6J("ngIf","year"!==re.currentView),s.xp6(1),s.Q6J("ngIf","year"===re.currentView),s.xp6(1),s.Udp("display",1===re.numberOfMonths||Z===re.numberOfMonths-1?"inline-flex":"none"),s.xp6(2),s.Q6J("ngIf","date"===re.currentView)}}function nt(Mt,Vt){if(1&Mt){const Z=s.EpF();
1s.TgZ(0,"span",51),s.NdJ("click",function(pe){const Bt=s.CHM(Z).index,jt=s.oxw(4);return s.KtG(jt.onMonthSelect(pe,Bt))})("keydown",function(pe){const Bt=s.CHM(Z).index,jt=s.oxw(4);return s.KtG(jt.onMonthCellKeydown(pe,Bt))}),s._uU(1),s.qZA()}if(2&Mt){const Z=Vt.$implicit,re=Vt.index,pe=s.oxw(4);s.Q6J("ngClass",s.WLB(2,Oe,pe.isMonthSelected(re),pe.isMonthDisabled(re))),s.xp6(1),s.hij(" ",Z," ")}}function at(Mt,Vt){if(1&Mt&&(s.TgZ(0,"div",49),s.YNc(1,nt,2,5,"span",50),s.qZA()),2&Mt){const Z=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",Z.monthPickerValues())}}const me=function(Mt){return{"p-highlight":Mt}};function ve(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"span",54),s.NdJ("click",function(pe){const Bt=s.CHM(Z).$implicit,jt=s.oxw(4);return s.KtG(jt.onYearSelect(pe,Bt))})("keydown",function(pe){const Bt=s.CHM(Z).$implicit,jt=s.oxw(4);return s.KtG(jt.onYearCellKeydown(pe,Bt))}),s._uU(1),s.qZA()}if(2&Mt){const Z=Vt.$implicit,re=s.oxw(4);s.Q6J("ngClass",s.VKq(2,me,re.isYearSelected(Z))),s.xp6(1),s.hij(" ",Z," ")}}function je(Mt,Vt){if(1&Mt&&(s.TgZ(0,"div",52),s.YNc(1,ve,2,4,"span",53),s.qZA()),2&Mt){const Z=s.oxw(3);s.xp6(1),s.Q6J("ngForOf",Z.yearPickerValues())}}function Xe(Mt,Vt){if(1&Mt&&(s.ynx(0),s.TgZ(1,"div",16),s.YNc(2,ye,10,7,"div",17),s.qZA(),s.YNc(3,at,2,1,"div",18),s.YNc(4,je,2,1,"div",19),s.BQk()),2&Mt){const Z=s.oxw(2);s.xp6(2),s.Q6J("ngForOf",Z.months),s.xp6(1),s.Q6J("ngIf","month"===Z.currentView),s.xp6(1),s.Q6J("ngIf","year"===Z.currentView)}}function rt(Mt,Vt){1&Mt&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function mt(Mt,Vt){1&Mt&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function $t(Mt,Vt){if(1&Mt&&(s.TgZ(0,"div",60)(1,"span"),s._uU(2),s.qZA()()),2&Mt){const Z=s.oxw(3);s.xp6(2),s.Oqu(Z.timeSeparator)}}function tn(Mt,Vt){1&Mt&&(s.ynx(0),s._uU(1,"0"),s.BQk())}function yt(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",65)(1,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.incrementSecond(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.incrementSecond(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseDown(pe,2,1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(3);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(2,"span",58),s.qZA(),s.TgZ(3,"span"),s.YNc(4,tn,2,0,"ng-container",13),s._uU(5),s.qZA(),s.TgZ(6,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.decrementSecond(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.decrementSecond(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseDown(pe,2,-1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(3);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(7,"span",59),s.qZA()()}if(2&Mt){const Z=s.oxw(3);s.xp6(4),s.Q6J("ngIf",Z.currentSecond<10),s.xp6(1),s.Oqu(Z.currentSecond)}}function bt(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",66)(1,"button",67),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.toggleAMPM(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.toggleAMPM(pe))}),s._UZ(2,"span",58),s.qZA(),s.TgZ(3,"span"),s._uU(4),s.qZA(),s.TgZ(5,"button",67),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.toggleAMPM(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(3);return s.KtG(Re.toggleAMPM(pe))}),s._UZ(6,"span",59),s.qZA()()}if(2&Mt){const Z=s.oxw(3);s.xp6(4),s.Oqu(Z.pm?"PM":"AM")}}function Ye(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",55)(1,"div",56)(2,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.incrementHour(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.incrementHour(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(2);
1return s.KtG(Re.onTimePickerElementMouseDown(pe,0,1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(2);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(3,"span",58),s.qZA(),s.TgZ(4,"span"),s.YNc(5,rt,2,0,"ng-container",13),s._uU(6),s.qZA(),s.TgZ(7,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.decrementHour(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.decrementHour(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseDown(pe,0,-1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(2);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(8,"span",59),s.qZA()(),s.TgZ(9,"div",60)(10,"span"),s._uU(11),s.qZA()(),s.TgZ(12,"div",61)(13,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.incrementMinute(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.incrementMinute(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseDown(pe,1,1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(2);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(14,"span",58),s.qZA(),s.TgZ(15,"span"),s.YNc(16,mt,2,0,"ng-container",13),s._uU(17),s.qZA(),s.TgZ(18,"button",57),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("keydown.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.decrementMinute(pe))})("keydown.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.decrementMinute(pe))})("mousedown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseDown(pe,1,-1))})("mouseup",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.enter",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("keyup.space",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTimePickerElementMouseUp(pe))})("mouseleave",function(){s.CHM(Z);const pe=s.oxw(2);return s.KtG(pe.onTimePickerElementMouseLeave())}),s._UZ(19,"span",59),s.qZA()(),s.YNc(20,$t,3,1,"div",62),s.YNc(21,yt,8,2,"div",63),s.YNc(22,bt,7,1,"div",64),s.qZA()}if(2&Mt){const Z=s.oxw(2);s.xp6(5),s.Q6J("ngIf",Z.currentHour<10),s.xp6(1),s.Oqu(Z.currentHour),s.xp6(5),s.Oqu(Z.timeSeparator),s.xp6(5),s.Q6J("ngIf",Z.currentMinute<10),s.xp6(1),s.Oqu(Z.currentMinute),s.xp6(3),s.Q6J("ngIf",Z.showSeconds),s.xp6(1),s.Q6J("ngIf",Z.showSeconds),s.xp6(1),s.Q6J("ngIf","12"==Z.hourFormat)}}const Nt=function(Mt){return[Mt]};function xn(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",68)(1,"button",69),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onTodayButtonClick(pe))}),s.qZA(),s.TgZ(2,"button",69),s.NdJ("keydown",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onContainerButtonKeydown(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw(2);return s.KtG(Re.onClearButtonClick(pe))}),s.qZA()()}if(2&Mt){const Z=s.oxw(2);s.xp6(1),s.Q6J("label",Z.getTranslation("today"))("ngClass",s.VKq(4,Nt,Z.todayButtonStyleClass)),s.xp6(1),s.Q6J("label",Z.getTranslation("clear"))("ngClass",s.VKq(6,Nt,Z.clearButtonStyleClass))}}function pn(Mt,Vt){1&Mt&&s.GkF(0)}const _n=function(Mt,Vt,Z,re,pe,Re){return{"p-datepicker p-component":!0,"p-datepicker-inline":Mt,"p-disabled":Vt,"p-datepicker-timeonly":Z,"p-datepicker-multiple-month":re,"p-datepicker-monthpicker":pe,"p-datepicker-touch-ui":Re}},zt=function(Mt,Vt){return{showTransitionParams:Mt,hideTransitionParams:Vt}},Yt=function(Mt){return{value:"visibleTouchUI",params:Mt}},It=function(Mt){return{value:"visible",params:Mt}};function bn(Mt,Vt){if(1&Mt){const Z=s.EpF();s.TgZ(0,"div",10,11),s.NdJ("@overlayAnimation.start",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onOverlayAnimationStart(pe))})("@overlayAnimation.done",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onOverlayAnimationDone(pe))})("click",function(pe){s.CHM(Z);const Re=s.oxw();return s.KtG(Re.onOverlayClick(pe))}),s.Hsn(2),s.YNc(3,G,1,0,"ng-container",12),s.YNc(4,Xe,5,3,"ng-container",13),s.YNc(5,Ye,23,8,"div",14),s.YNc(6,xn,3,8,"div",15),s.Hsn(7,1),s.YNc(8,pn,1,0,"ng-container",12),s.qZA()}if(2&Mt){const Z=s.oxw();s.Tol(Z.panelStyleClass),s.Q6J("ngStyle",Z.panelStyle)("ngClass",s.HTZ(11,_n,Z.inl
1ine,Z.disabled,Z.timeOnly,Z.numberOfMonths>1,"month"===Z.view,Z.touchUI))("@overlayAnimation",Z.touchUI?s.VKq(21,Yt,s.WLB(18,zt,Z.showTransitionOptions,Z.hideTransitionOptions)):s.VKq(26,It,s.WLB(23,zt,Z.showTransitionOptions,Z.hideTransitionOptions)))("@.disabled",!0===Z.inline),s.xp6(3),s.Q6J("ngTemplateOutlet",Z.headerTemplate),s.xp6(1),s.Q6J("ngIf",!Z.timeOnly),s.xp6(1),s.Q6J("ngIf",(Z.showTime||Z.timeOnly)&&"date"===Z.currentView),s.xp6(1),s.Q6J("ngIf",Z.showButtonBar),s.xp6(2),s.Q6J("ngTemplateOutlet",Z.footerTemplate)}}const Rn=[[["p-header"]],[["p-footer"]]],Sn=function(Mt,Vt,Z,re){return{"p-calendar":!0,"p-calendar-w-btn":Mt,"p-calendar-timeonly":Vt,"p-calendar-disabled":Z,"p-focus":re}},vn=["p-header","p-footer"],mi={provide:D.JU,useExisting:(0,s.Gpc)(()=>Un),multi:!0};let Un=(()=>{class Mt{constructor(Z,re,pe,Re,Bt,jt){this.el=Z,this.renderer=re,this.cd=pe,this.zone=Re,this.config=Bt,this.overlayService=jt,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new s.vpe,this.onBlur=new s.vpe,this.onClose=new s.vpe,this.onSelect=new s.vpe,this.onClear=new s.vpe,this.onInput=new s.vpe,this.onTodayClick=new s.vpe,this.onClearClick=new s.vpe,this.onMonthChange=new s.vpe,this.onYearChange=new s.vpe,this.onClickOutside=new s.vpe,this.onShow=new s.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(_t,dt){return"12"==this.hourFormat?12===_t?dt?12:0:dt?_t+12:_t:_t}}set content(Z){this.contentViewChild=Z,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(Z){this._view=Z,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(Z){if(this._defaultDate=Z,this.initialized){const re=Z||new Date;this.currentMonth=re.getMonth(),this.currentYear=re.getFullYear(),this.initTime(re),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(Z){this._minDate=Z,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=Z,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(Z){this._disabledDates=Z,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(Z){this._disabledDays=Z,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}
1set yearRange(Z){if(this._yearRange=Z,Z){const re=Z.split(":"),pe=parseInt(re[0]),Re=parseInt(re[1]);this.populateYearOptions(pe,Re)}}get showTime(){return this._showTime}set showTime(Z){this._showTime=Z,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(Z){this._responsiveOptions=Z,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(Z){this._numberOfMonths=Z,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(Z){this._firstDayOfWeek=Z,this.createWeekDays()}set locale(Z){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=(0,P.Th)();const Z=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=Z.getMonth(),this.currentYear=Z.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(Z),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}
1ngAfterContentInit(){this.templates.forEach(Z=>{switch(Z.getType()){case"date":default:this.dateTemplate=Z.template;break;case"decade":this.decadeTemplate=Z.template;break;case"disabledDate":this.disabledDateTemplate=Z.template;break;case"header":this.headerTemplate=Z.template;break;case"footer":this.footerTemplate=Z.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=w.p.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(Z){return this.config.getTranslation(Z)}populateYearOptions(Z,re){this.yearOptions=[];for(let pe=Z;pe<=re;pe++)this.yearOptions.push(pe)}createWeekDays(){this.weekDays=[];let Z=this.getFirstDateOfWeek(),re=this.getTranslation(x.ws.DAY_NAMES_MIN);for(let pe=0;pe<7;pe++)this.weekDays.push(re[Z]),Z=6==Z?0:++Z}monthPickerValues(){let Z=[];for(let re=0;re<=11;re++)Z.push(this.config.getTranslation("monthNamesShort")[re]);return Z}yearPickerValues(){let Z=[],re=this.currentYear-this.currentYear%10;for(let pe=0;pe<10;pe++)Z.push(re+pe);return Z}createMonths(Z,re){this.months=this.months=[];for(let pe=0;pe<this.numberOfMonths;pe++){let Re=Z+pe,Bt=re;Re>11&&(Re=Re%11-1,Bt=re+1),this.months.push(this.createMonth(Re,Bt))}}getWeekNumber(Z){let re=new Date(Z.getTime());re.setDate(re.getDate()+4-(re.getDay()||7));let pe=re.getTime();return re.setMonth(0),re.setDate(1),Math.floor(Math.round((pe-re.getTime())/864e5)/7)+1}createMonth(Z,re){let pe=[],Re=this.getFirstDayOfMonthIndex(Z,re),Bt=this.getDaysCountInMonth(Z,re),jt=this.getDaysCountInPrevMonth(Z,re),_t=1,dt=new Date,Be=[],Te=Math.ceil((Bt+Re)/7);for(let We=0;We<Te;We++){let ft=[];if(0==We){for(let Pt=jt-Re+1;Pt<=jt;Pt++){let pt=this.getPreviousMonthAndYear(Z,re);ft.push({day:Pt,month:pt.month,year:pt.year,otherMonth:!0,today:this.isToday(dt,Pt,pt.month,pt.year),selectable:this.isSelectable(Pt,pt.month,pt.year,!0)})}let Ft=7-ft.length;for(let Pt=0;Pt<Ft;Pt++)ft.push({day:_t,month:Z,year:re,today:this.isToday(dt,_t,Z,re),selectable:this.isSelectable(_t,Z,re,!1)}),_t++}else for(let Ft=0;Ft<7;Ft++){if(_t>Bt){let Pt=this.getNextMonthAndYear(Z,re);ft.push({day:_t-Bt,month:Pt.month,year:Pt.year,otherMonth:!0,today:this.isToday(dt,_t-Bt,Pt.month,Pt.year),selectable:this.isSelectable(_t-Bt,Pt.month,Pt.year,!0)})}else ft.push({day:_t,month:Z,year:re,today:this.isToday(dt,_t,Z,re),selectable:this.isSelectable(_t,Z,re,!1)});_t++}this.showWeek&&Be.push(this.getWeekNumber(new Date(ft[0].year,ft[0].month,ft[0].day))),pe.push(ft)}return{month:Z,year:re,dates:pe,weekNumbers:Be}}initTime(Z){this.pm=Z.getHours()>11,this.showTime?(this.currentMinute=Z.getMinutes(),this.currentSecond=Z.getSeconds(),this.setCurrentHourPM(Z.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(Z){this.disabled?Z.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(Z){this.disabled?Z.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let Z=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-Z,this.yearOptions[this.yearOptions.length-1]-Z)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let Z=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+Z,this.yearOptions[this.yearOptions.length-1]+Z)}}switchToMonthView(Z){this.setCurrentView("month"),Z.preventDefault()}switchToYearView(Z){this.setCurrentView("year"),Z.preventDefault()}onDateSelect(Z,re){!this.disabled&&re.selectable?(this.isMultipleSelection()&&this.isSelected(re)?(this.value=this.value.filter((pe,Re)=>
1!this.isDateEquals(pe,re)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(re)&&this.selectDate(re),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{Z.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),Z.preventDefault()):Z.preventDefault()}shouldSelectDate(Z){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(Z,re){"month"===this.view?this.onDateSelect(Z,{year:this.currentYear,month:re,day:1,selectable:!0}):(this.currentMonth=re,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(Z,re){"year"===this.view?this.onDateSelect(Z,{year:re,month:0,day:1,selectable:!0}):(this.currentYear=re,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let Z="";if(this.value)if(this.isSingleSelection())Z=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let re=0;re<this.value.length;re++)Z+=this.formatDateTime(this.value[re]),re!==this.value.length-1&&(Z+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let pe=this.value[1];Z=this.formatDateTime(this.value[0]),pe&&(Z+=" "+this.rangeSeparator+" "+this.formatDateTime(pe))}this.inputFieldValue=Z,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(Z){let re=this.keepInvalid?Z:null;return this.isValidDate(Z)&&(this.timeOnly?re=this.formatTime(Z):(re=this.formatDate(Z,this.getDateFormat()),this.showTime&&(re+=" "+this.formatTime(Z)))),re}setCurrentHourPM(Z){"12"==this.hourFormat?(this.pm=Z>11,this.currentHour=Z>=12?12==Z?12:Z-12:0==Z?12:Z):this.currentHour=Z}setCurrentView(Z){this.currentView=Z,this.cd.detectChanges(),this.alignOverlay()}selectDate(Z){let re=new Date(Z.year,Z.month,Z.day);if(this.showTime&&(re.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),re.setMinutes(this.currentMinute),re.setSeconds(this.currentSecond)),this.minDate&&this.minDate>re&&(re=this.minDate,this.setCurrentHourPM(re.getHours()),this.currentMinute=re.getMinutes(),this.currentSecond=re.getSeconds()),this.maxDate&&this.maxDate<re&&(re=this.maxDate,this.setCurrentHourPM(re.getHours()),this.currentMinute=re.getMinutes(),this.currentSecond=re.getSeconds()),this.isSingleSelection())this.updateModel(re);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,re]:[re]);else if(this.isRangeSelection())if(this.value&&this.value.length){let pe=this.value[0],Re=this.value[1];!Re&&re.getTime()>=pe.getTime()?Re=re:(pe=re,Re=null),this.updateModel([pe,Re])}else this.updateModel([re,null]);this.onSelect.emit(re)}updateModel(Z){if(this.value=Z,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let re=null;this.value&&(re=this.value.map(pe=>this.formatDateTime(pe))),this.onModelChange(re)}}getFirstDayOfMonthIndex(Z,re){let pe=new Date;pe.setDate(1),pe.setMonth(Z),pe.setFullYear(re);let Re=pe.getDay()+this.getSundayIndex();return Re>=7?Re-7:Re}getDaysCountInMonth(Z,re){return 32-this.daylightSavingAdjust(new Date(re,Z,32)).getDate()}getDaysCountInPrevMonth(Z,re){let pe=this.getPreviousMonthAndYear(Z,re);return this.getDaysCountInMonth(pe.month,pe.year)}getPreviousMonthAndYear(Z,re){let pe,Re;return 0===Z?(pe=11,Re=re-1):(pe=Z-1,Re=re),{month:pe,year:Re}}getNextMonthAndYear(Z,re){let pe,Re;return 11===Z?(pe=0,Re=re+1):(pe=Z+1,Re=re),{month:pe,year:Re}}getSundayIndex(){let Z=this.getFirstDateOfWeek();return Z>0?7-Z:0}isSelected(Z){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,Z);if(this.isMultipleSelection()){let re=!1;for(let pe of this.value)if(re=this.isDateEquals(pe,Z),re)break;return re}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],Z)||this.isDateEquals(this.value[1],Z)||this.isDateBetween(this.value[0],this.value[1],Z):this.isDateEquals(this.value[0],Z):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(Z){if(this.isComparable()&&!this.isMultipleSelection()){const[re,pe]=this.isRangeSelection()?this.value:[this.value,this.value],Re=new Date(this.currentYear,Z,1);return Re>=re&&Re<=(pe??re)}return!1}isMonthDisabled(Z){for(let re=1;re<this.getDaysCountInMonth(Z,this.currentYear)+1;re++)if(this.isSelectable(re,Z,this.currentYear,!1))return!1;return!0}isYearSelected(Z){if(this.isComparable()){let re=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&re.getFullYear()===Z}return!1}isDateEquals(Z,re){return!!(Z&&Z instanceof Date)&&Z.getDate()===re.day&&Z.getMonth()===re.month&&Z.getFullYear()===re.year}isDateBetween(Z,re,pe){if(Z&&re){let Bt=new Date(pe.year,pe.month,pe.day);return Z.getTime()<=Bt.getTime()&&re.getTime()>=Bt.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(Z,re,pe,Re){return Z.getDate()===re&&Z.getMonth()===pe&&Z.getFullYear()===Re}isSelectable(Z,re,pe,Re){let Bt=!0,jt=!0,_t=!0,dt=!0;return!(Re&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>pe||this.minDate.getFullYear()===pe&&(this.minDate.getMonth()>re||this.minDate.getMonth()===re&&this.minDate.getDate()>Z))&&(Bt=!1),this.maxDate&&(this.maxDate.getFullYear()<pe||this.maxDate.getFullYear()===pe&&(this.maxDate.getMonth()<re||this.maxDate.getMonth()===re&&this.maxDate.getDate()<Z))&&(jt=!1),this.disabledDates&&(_t=!this.isDateDisabled(Z,re,pe)),this.disabledDays&&(dt=!this.isDayDisabled(Z,re,pe)),Bt&&jt&&_t&&dt)}isDateDisabled(Z,re,pe){if(this.disabledDates)for(let Re of this.disabledDates)if(Re.getFullYear()===pe&&Re.getMonth()===re&&Re.getDate()===Z)return!0;return!1}isDayDisabled(Z,re,pe){if(this.disabledDays){let Bt=new Date(pe,re,Z).getDay();return-1!==this.disabledDays.indexOf(Bt)}return!1}onInputFocus(Z){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(Z)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(Z){this.focus=!1,this.onBlur.emit(Z),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(Z,re){this.overlayVisible?this.hideOverlay():(re.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(Z){this.overlayService.add({originalEvent:Z,target:this.el.nativeElement})}getMonthName(Z){return this.config.getTranslation("monthNames")[Z]}getYear(Z){return"month"===this.currentView?this.currentYear:Z.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(Z){this.navigationState={backward:!0,button:!0},this.navBackward(Z)}onNextButtonClick(Z){this.navigationState={backward:!1,button:!0}
1,this.navForward(Z)}onContainerButtonKeydown(Z){switch(Z.which){case 9:this.inline||this.trapFocus(Z);break;case 27:this.overlayVisible=!1,Z.preventDefault()}}onInputKeydown(Z){this.isKeydown=!0,40===Z.keyCode&&this.contentViewChild?this.trapFocus(Z):27===Z.keyCode||13===Z.keyCode?this.overlayVisible&&(this.overlayVisible=!1,Z.preventDefault()):9===Z.keyCode&&this.contentViewChild&&(w.p.getFocusableElements(this.contentViewChild.nativeElement).forEach(re=>re.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(Z,re,pe){const Re=Z.currentTarget,Bt=Re.parentElement;switch(Z.which){case 40:{Re.tabIndex="-1";let jt=w.p.index(Bt),_t=Bt.parentElement.nextElementSibling;_t?w.p.hasClass(_t.children[jt].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(Z)):(_t.children[jt].children[0].tabIndex="0",_t.children[jt].children[0].focus()):(this.navigationState={backward:!1},this.navForward(Z)),Z.preventDefault();break}case 38:{Re.tabIndex="-1";let jt=w.p.index(Bt),_t=Bt.parentElement.previousElementSibling;if(_t){let dt=_t.children[jt].children[0];w.p.hasClass(dt,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(Z)):(dt.tabIndex="0",dt.focus())}else this.navigationState={backward:!0},this.navBackward(Z);Z.preventDefault();break}case 37:{Re.tabIndex="-1";let jt=Bt.previousElementSibling;if(jt){let _t=jt.children[0];w.p.hasClass(_t,"p-disabled")||w.p.hasClass(_t.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,pe):(_t.tabIndex="0",_t.focus())}else this.navigateToMonth(!0,pe);Z.preventDefault();break}case 39:{Re.tabIndex="-1";let jt=Bt.nextElementSibling;if(jt){let _t=jt.children[0];w.p.hasClass(_t,"p-disabled")?this.navigateToMonth(!1,pe):(_t.tabIndex="0",_t.focus())}else this.navigateToMonth(!1,pe);Z.preventDefault();break}case 13:case 32:this.onDateSelect(Z,re),Z.preventDefault();break;case 27:this.overlayVisible=!1,Z.preventDefault();break;case 9:this.inline||this.trapFocus(Z)}}onMonthCellKeydown(Z,re){const pe=Z.currentTarget;switch(Z.which){case 38:case 40:{pe.tabIndex="-1";var Re=pe.parentElement.children,Bt=w.p.index(pe);let jt=Re[40===Z.which?Bt+3:Bt-3];jt&&(jt.tabIndex="0",jt.focus()),Z.preventDefault();break}case 37:{pe.tabIndex="-1";let jt=pe.previousElementSibling;jt?(jt.tabIndex="0",jt.focus()):(this.navigationState={backward:!0},this.navBackward(Z)),Z.preventDefault();break}case 39:{pe.tabIndex="-1";let jt=pe.nextElementSibling;jt?(jt.tabIndex="0",jt.focus()):(this.navigationState={backward:!1},this.navForward(Z)),Z.preventDefault();break}case 13:this.onMonthSelect(Z,re),Z.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,Z.preventDefault();break;case 9:this.inline||this.trapFocus(Z)}}onYearCellKeydown(Z,re){const pe=Z.currentTarget;switch(Z.which){case 38:case 40:{pe.tabIndex="-1";var Re=pe.parentElement.children,Bt=w.p.index(pe);let jt=Re[40===Z.which?Bt+2:Bt-2];jt&&(jt.tabIndex="0",jt.focus()),Z.preventDefault();break}case 37:{pe.tabIndex="-1";let jt=pe.previousElementSibling;jt?(jt.tabIndex="0",jt.focus()):(this.navigationState={backward:!0},this.navBackward(Z)),Z.preventDefault();break}case 39:{pe.tabIndex="-1";let jt=pe.nextElementSibling;jt?(jt.tabIndex="0",jt.focus()):(this.navigationState={backward:!1},this.navForward(Z)),Z.preventDefault();break}case 13:case 32:this.onYearSelect(Z,re),Z.preventDefault();break;case 27:this.overlayVisible=!1,Z.preventDefault();break;case 9:this.trapFocus(Z)}}navigateToMonth(Z,re){if(Z)if(1===this.numberOfMonths||0===re)this.navigationState={backward:!0},this.navBackward(event);else{let Re=w.p.find(this.contentViewChild.nativeElement.children[re-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),Bt=Re[Re.length-1];Bt.tabIndex="0",Bt.focus()}else if(1===this.numberOfMonths||re===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let Re=w.p.findSingle(this.contentViewChild.nativeElement.children[re+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");Re.tabIndex="0",Re.focus()}}updateFocus(){let Z;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?w.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():w.p.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let re;re=w.p.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),re&&re.length>0&&(Z=re[re.length-1])}else Z=w.p.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");Z&&(Z.tabIndex="0",Z.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const Z=this.contentViewChild?.nativeElement;let re;if("month"===this.currentView){let pe=w.p.find(Z,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),Re=w.p.findSingle(Z,".p-monthpicker .p-monthpicker-month.p-highlight");pe.forEach(Bt=>Bt.tabIndex=-1),re=Re||pe[0],0===pe.length&&w.p.find(Z,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(jt=>jt.tabIndex=-1)}else if("year"===this.currentView){let pe=w.p.find(Z,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),Re=w.p.findSingle(Z,".p-yearpicker .p-yearpicker-year.p-highlight");pe.forEach(Bt=>Bt.tabIndex=-1),re=Re||pe[0],0===pe.length&&w.p.find(Z,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(jt=>jt.tabIndex=-1)}else if(re=w.p.findSingle(Z,"span.p-highlight"),!re){let pe=w.p.findSingle(Z,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");re=pe||w.p.findSingle(Z,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}re&&(re.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||re.focus()},1),this.preventFocus=!1)}trapFocus(Z){let re=w.p.getFocusableElements(this.contentViewChild.nativeElement);if(re&&re.length>0)if(re[0].ownerDocument.activeElement){let pe=re.indexOf(re[0].ownerDocument.activeElement);if(Z.shiftKey)if(-1==pe||0===pe)if(this.focusTrap)re[re.length-1].focus();else{if(-1===pe)return this.hideOverlay();if(0===pe)return}else re[pe-1].focus();else if(-1==pe||pe===re.length-1){if(!this.focusTrap&&-1!=pe)return this.hideOverlay();re[0].focus()}else re[pe+1].focus()}else re[0].focus();Z.preventDefault()}onMonthDropdownChange(Z){this.currentMonth=parseInt(Z),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(Z){this.currentYear=parseInt(Z),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(Z,re,pe,Re){let Bt=this.value;const jt=this.convertTo24Hour(Z,Re);this.isRangeSelection()&&(Bt=this.value[1]||this.value[0]),this.isMultipleSelection()&&(Bt=this.value[this.value.length-1]);const _t=Bt?Bt.toDateString():null;return!(this.minDate&&_t&&this.minDate.toDateString()===_t&&(this.minDate.getHours()>jt||this.minDate.getHours()===jt&&(this.minDate.getMinutes()>re||this.minDate.getMinutes()===re&&this.minDate.getSeconds()>pe))||this.maxDate&&_t&&this.maxDate.toDateString()===_t&&(this.maxDate.getHours()<jt||this.maxDate.getHours()===jt&&(this.maxDate.getMinutes()<re||this.maxDate.getMinutes()===re&&this.maxDate.getSeconds()<pe)))}incrementHour(Z){let pe=this.currentHour+this.stepHour,Re=this.pm;"24"==this.hourFormat?pe=pe>
1=24?pe-24:pe:"12"==this.hourFormat&&(this.currentHour<12&&pe>11&&(Re=!this.pm),pe=pe>=13?pe-12:pe),this.validateTime(pe,this.currentMinute,this.currentSecond,Re)&&(this.currentHour=pe,this.pm=Re),Z.preventDefault()}onTimePickerElementMouseDown(Z,re,pe){this.disabled||(this.repeat(Z,null,re,pe),Z.preventDefault())}onTimePickerElementMouseUp(Z){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(Z,re,pe,Re){let Bt=re||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(Z,100,pe,Re),this.cd.markForCheck()},Bt),pe){case 0:1===Re?this.incrementHour(Z):this.decrementHour(Z);break;case 1:1===Re?this.incrementMinute(Z):this.decrementMinute(Z);break;case 2:1===Re?this.incrementSecond(Z):this.decrementSecond(Z)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(Z){let re=this.currentHour-this.stepHour,pe=this.pm;"24"==this.hourFormat?re=re<0?24+re:re:"12"==this.hourFormat&&(12===this.currentHour&&(pe=!this.pm),re=re<=0?12+re:re),this.validateTime(re,this.currentMinute,this.currentSecond,pe)&&(this.currentHour=re,this.pm=pe),Z.preventDefault()}incrementMinute(Z){let re=this.currentMinute+this.stepMinute;re=re>59?re-60:re,this.validateTime(this.currentHour,re,this.currentSecond,this.pm)&&(this.currentMinute=re),Z.preventDefault()}decrementMinute(Z){let re=this.currentMinute-this.stepMinute;re=re<0?60+re:re,this.validateTime(this.currentHour,re,this.currentSecond,this.pm)&&(this.currentMinute=re),Z.preventDefault()}incrementSecond(Z){let re=this.currentSecond+this.stepSecond;re=re>59?re-60:re,this.validateTime(this.currentHour,this.currentMinute,re,this.pm)&&(this.currentSecond=re),Z.preventDefault()}decrementSecond(Z){let re=this.currentSecond-this.stepSecond;re=re<0?60+re:re,this.validateTime(this.currentHour,this.currentMinute,re,this.pm)&&(this.currentSecond=re),Z.preventDefault()}updateTime(){let Z=this.value;this.isRangeSelection()&&(Z=this.value[1]||this.value[0]),this.isMultipleSelection()&&(Z=this.value[this.value.length-1]),Z=Z?new Date(Z.getTime()):new Date,Z.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),Z.setMinutes(this.currentMinute),Z.setSeconds(this.currentSecond),this.isRangeSelection()&&(Z=this.value[1]?[this.value[0],Z]:[Z,null]),this.isMultipleSelection()&&(Z=[...this.value.slice(0,-1),Z]),this.updateModel(Z),this.onSelect.emit(Z),this.updateInputfield()}toggleAMPM(Z){const re=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,re)&&(this.pm=re,this.updateTime()),Z.preventDefault()}onUserInput(Z){if(!this.isKeydown)return;this.isKeydown=!1;let re=Z.target.value;try{let pe=this.parseValueFromString(re);this.isValidSelection(pe)&&(this.updateModel(pe),this.updateUI())}catch{this.updateModel(this.keepInvalid?re:null)}this.filled=null!=re&&re.length,this.onInput.emit(Z)}isValidSelection(Z){let re=!0;return this.isSingleSelection()?this.isSelectable(Z.getDate(),Z.getMonth(),Z.getFullYear(),!1)||(re=!1):Z.every(pe=>this.isSelectable(pe.getDate(),pe.getMonth(),pe.getFullYear(),!1))&&this.isRangeSelection()&&(re=Z.length>1&&Z[1]>Z[0]),re}parseValueFromString(Z){if(!Z||0===Z.trim().length)return null;let re;if(this.isSingleSelection())re=this.parseDateTime(Z);else if(this.isMultipleSelection()){let pe=Z.split(this.multipleSeparator);re=[];for(let Re of pe)re.push(this.parseDateTime(Re.trim()))}else if(this.isRangeSelection()){let pe=Z.split(" "+this.rangeSeparator+" ");re=[];for(let Re=0;Re<pe.length;Re++)re[Re]=this.parseDateTime(pe[Re].trim())}return re}parseDateTime(Z){let re,pe=Z.split(" ");if(this.timeOnly)re=new Date,this.populateTime(re,pe[0],pe[1]);else{const Re=this.getDateFormat();if(this.showTime){let Bt="12"==this.hourFormat?pe.pop():null,jt=pe.pop();re=this.parseDate(pe.join(" "),Re),this.populateTime(re,jt,Bt)}else re=this.parseDate(Z,Re)}return re}populateTime(Z,re,pe){if("12"==this.hourFormat&&!pe)throw"Invalid Time";this.pm="PM"===pe||"pm"===pe;let Re=this.parseTime(re);Z.setHours(Re.hour),Z.setMinutes(Re.minute),Z.setSeconds(Re.second)}isValidDate(Z){return Z instanceof Date&&P.gb.isNotEmpty(Z)}updateUI(){let Z=this.value;Array.isArray(Z)&&(Z=Z[0]);let re=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:Z&&this.isValidDate(Z)?Z:new Date;this.currentMonth=re.getMonth(),this.currentYear=re.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(re.getHours()),this.currentMinute=re.getMinutes(),this.currentSecond=re.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart(Z){switch(Z.toState){case"visible":case"visibleTouchUI":this.inl
1ine||(this.overlay=Z.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?P.P9.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):P.P9.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(Z));break;case"void":this.onOverlayHide(),this.onClose.emit(Z)}}onOverlayAnimationDone(Z){switch(Z.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&P.P9.clear(Z.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):w.p.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=w.p.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=w.p.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=w.p.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",w.p.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):w.p.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality(Z){this.mask||this.touchUI||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(Z.style.zIndex)-1),w.p.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",pe=>{this.disableModality()}),document.body.appendChild(this.mask),w.p.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(w.p.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){if(!this.mask)return;document.body.removeChild(this.mask);let re,Z=document.body.children;for(let pe=0;pe<Z.length;pe++)if(w.p.hasClass(Z[pe],"p-datepicker-mask-scrollblocker")){re=!0;break}re||w.p.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}writeValue(Z){if(this.value=Z,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=Z)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(Z){this.onModelChange=Z}registerOnTouched(Z){this.onModelTouched=Z}setDisabledState(Z){this.disabled=Z,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(x.ws.FIRST_DAY_OF_WEEK)}formatDate(Z,re){if(!Z)return"";let pe;const Re=Be=>{const Te=pe+1<re.length&&re.charAt(pe+1)===Be;return Te&&pe++,Te},Bt=(Be,Te,We)=>{let ft=""+Te;if(Re(Be))for(;ft.length<We;)ft="0"+ft;return ft},jt=(Be,Te,We,ft)=>Re(Be)?ft[Te]:We[Te];let _t="",dt=!1;if(Z)for(pe=0;pe<re.length;pe++)if(dt)"'"!==re.charAt(pe)||Re("'")?_t+=re.charAt(pe):dt=!1;else switch(re.charAt(pe)){case"d":_t+=Bt("d",Z.getDate(),2);break;case"D":_t+=jt("D",Z.getDay(),this.getTranslation(x.ws.DAY_NAMES_SHORT),this.getTranslation(x.ws.DAY_NAMES));break;case"o":_t+=Bt("o",Math.round((new Date(Z.getFullYear(),Z.getMonth(),Z.getDate()).getTime()-new Date(Z.getFullYear(),0,0).getTime())/864e5),3);break;case"m":_t+=Bt("m",Z.getMonth()+1,2);break;case"M":_t+=jt("M",Z.getMonth(),this.getTranslation(x.ws.MONTH_NAMES_SHORT),this.getTranslation(x.ws.MONTH_NAMES));break;case"y":_t+=Re("y")?Z.getFullYear():(Z.getFullYear()%100<10?"0":"")+Z.getFullYear()%100;break;case"@":_t+=Z.getTime();break;case"!":_t+=1e4*Z.getTime()+this.ticksTo1970;break;case"'":Re("'")?_t+="'":dt=!0;break;default:_t+=re.charAt(pe)}return _t}formatTime(Z){if(!Z)return"";let re="",pe=Z.getHours(),Re=Z.getMinutes(),Bt=Z.getSeconds();return"12"==this.hourFormat&&pe>11&&12!=pe&&(pe-=12),re+="12"==this.hourFormat&&0===pe?12:pe<10?"0"+pe:pe,re+=":",re+=Re<10?"0"+Re:Re,this.showSeconds&&(re+=":",re+=Bt<10?"0"+Bt:Bt),"12"==this.hourFormat&&(re+=Z.getHours()>11?" PM":" AM"),re}parseTime(Z){let re=Z.split(":");if(re.length!==(this.showSeconds?3:2))throw"Invalid time";let Re=parseInt(re[0]),Bt=parseInt(re[1]),jt=this.showSeconds?parseInt(re[2]):null;if(isNaN(Re)||isNaN(Bt)||Re>23||Bt>59||"12"==this.hourFormat&&Re>12||this.showSeconds&&(isNaN(jt)||jt>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==Re&&this.pm?Re+=12:!this.pm&&12===Re&&(Re-=12)),{hour:Re,minute:Bt,second:jt}}parseDate(Z,re){if(null==re||null==Z)throw"Invalid arguments";if(""===(Z="object"==typeof Z?Z.toString():Z+""))return null;let pe,Re,Bt,Ft,jt=0,_t="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),dt=-1,Be=-1,Te=-1,We=-1,ft=!1,Pt=xt=>{let $e=pe+1<re.length&&re.charAt(pe+1)===xt;return $e&&pe++,$e},pt=xt=>{let $e=Pt(xt),ht="@"===xt?14:"!"===xt?20:"y"===xt&&$e?4:"o"===xt?3:2,Jt=new RegExp("^\\d{"+("y"===xt?ht:1)+","+ht+"}"),Dn=Z.substring(jt).match(Jt);if(!Dn)throw"Missing number at position "+jt;return jt+=Dn[0].length,parseInt(Dn[0],10)},wt=(xt,$e,ht)=>{let Ht=-1,Jt=Pt(xt)?ht:$e,Dn=[];for(let En=0;En<Jt.length;En++)Dn.push([En,Jt[En]]);Dn.sort((En,At)=>-(En[1].length-At[1].length));for(let En=0;En<Dn.length;En++){let At=Dn[En][1];if(Z.substr(jt,At.length).toLowerCase()===At.toLowerCase()){Ht=Dn[En][0],jt+=At.length;break}}if(-1!==Ht)return Ht+1;throw"Unknown name at position "+jt},lt=()=>{if(Z.charAt(jt)!==re.charAt(pe))throw"Unexpected literal at position "+jt;jt++};for("month"===this.view&&(Te=1),pe=0;pe<re.length;pe++)if(ft)"'"!==re.charAt(pe)||Pt("'")?lt():ft=!1;else switch(re.charAt(pe)){case"d":Te=pt("d");break;case"D":wt("D",this.getTranslation(x.ws.DAY_NAMES_SHORT),this.getTranslation(x.ws.DAY_NAMES));break;case"o":We=pt("o");break;case"m":Be=pt("m");break;case"M":Be=wt("M",this.getTranslation(x.ws.MONTH_NAMES_SHORT),this.getTranslation(x.ws.MONTH_NAMES));break;case"y":dt=pt("y");break;case"@":Ft=new Date(pt("@")),dt=Ft.getFullYear(),Be=Ft.getMonth()+1,Te=Ft.getDate();break;case"!":Ft=new Date((pt("!")-this.ticksTo1970)/1e4),dt=Ft.getFullYear(),Be=Ft.getMonth()+1,Te=Ft.getDate();break;case"'":Pt("'")?lt():ft=!0;break;default:lt()}if(jt<Z.length&&(Bt=Z.substr(jt),!/^\s+/.test(Bt)))throw"Extra/unparsed characters found in date: "+Bt;if(-1===dt?dt=(new Date).getFullYear():dt<100&&(dt+=(new Date).getFullYear()-(new Date).getFullYear()%100+(dt<=_t?0:-100)),We>-1)for(Be=1,Te=We;Re=this.getDaysCountInMonth(dt,Be-1),!(Te<=Re);)Be++,Te-=Re;if("year"===this.view&&(Be=-1===Be?1:Be,Te=-1===Te?1:Te),Ft=this.daylightSavingAdjust(new Date(dt,Be-1,Te)),Ft.getFullYear()!==dt||Ft.getMonth()+1!==Be||Ft.getDate()!==Te)throw"Invalid date";return Ft}daylightSavingAdjust(Z){return Z?(Z.setHours(Z.getHours()>12?Z.getHours()+2:0),Z):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(Z){let re=new Date,pe={day:re.getDate(),month:re.getMonth(),year:re.getFullYear(),otherMonth:re.getMonth()!==this.currentMonth||re.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(Z,pe),this.onTodayClick.emit(Z)}onClearButtonClick(Z){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(Z)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let Z="";if(this.responsiveOptions){let re=[...this.responsiveOptions].filter(pe=>!(!pe.breakpoint||!pe.numMonths)).sort((pe,Re)=>
1-1*pe.breakpoint.localeCompare(Re.breakpoint,void 0,{numeric:!0}));for(let pe=0;pe<re.length;pe++){let{breakpoint:Re,numMonths:Bt}=re[pe],jt=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${Bt}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let _t=Bt;_t<this.numberOfMonths;_t++)jt+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${_t+1}) {\n display: none !important;\n }\n `;Z+=`\n @media screen and (max-width: ${Re}) {\n ${jt}\n }\n `}}this.responsiveStyleElement.innerHTML=Z}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",re=>{this.isOutsideClicked(re)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(re),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new w.V(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(Z){return!(this.el.nativeElement.isSameNode(Z.target)||this.isNavIconClicked(Z)||this.el.nativeElement.contains(Z.target)||this.overlay&&this.overlay.contains(Z.target))}isNavIconClicked(Z){return w.p.hasClass(Z.target,"p-datepicker-prev")||w.p.hasClass(Z.target,"p-datepicker-prev-icon")||w.p.hasClass(Z.target,"p-datepicker-next")||w.p.hasClass(Z.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!w.p.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&P.P9.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return Mt.\u0275fac=function(Z){return new(Z||Mt)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(x.b4),s.Y36(x.F0))},Mt.\u0275cmp=s.Xpm({type:Mt,selectors:[["p-calendar"]],contentQueries:function(Z,re,pe){if(1&Z&&s.Suo(pe,x.jx,4),2&Z){let Re;s.iGM(Re=s.CRH())&&(re.templates=Re)}},viewQuery:function(Z,re){if(1&Z&&(s.Gf(S,5),s.Gf(k,5),s.Gf(z,5)),2&Z){let pe;s.iGM(pe=s.CRH())&&(re.containerViewChild=pe.first),s.iGM(pe=s.CRH())&&(re.inputfieldViewChild=pe.first),s.iGM(pe=s.CRH())&&(re.content=pe.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(Z,re){2&Z&&s.ekj("p-inputwrapper-filled",re.filled)("p-inputwrapper-focus",re.focus)("p-calendar-clearable",re.showClear&&!re.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[s._Bn([mi])],ngContentSelectors:vn,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(Z,re){1&Z&&(s.F$t(Rn),s.TgZ(0,"span",0,1),s.YNc(2,B,4,17,"ng-template",2),s.YNc(3,bn,9,28,"div",3),s.qZA()),2&Z&&(s.Tol(re.styleClass),s.Q6J("ngClass",s.l5B(6,Sn,re.showIcon,re.timeOnly,re.disabled,re.focus))("ngStyle",re.style),s.xp6(2),s.Q6J("ngIf",!re.inline),s.xp6(1),s.Q6J("ngIf",re.inline||re.overlayVisible))},dependencies:[e.mk,e.sg,e.O5,e.tP,e.PC,M.Hq,I.H],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[(0,t.X$)("overlayAnimation",[(0,t.SB)("visibleTouchUI",(0,t.oB)({transform:"translate(-50%,-50%)",opacity:1})),(0,t.eR)("void => visible",[(0,t.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,t.jt)("{{showTransitionParams}}",(0,t.oB)({opacity:1,transform:"*"}))]),(0,t.eR)("visible => void",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0}
1))]),(0,t.eR)("void => visibleTouchUI",[(0,t.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,t.jt)("{{showTransitionParams}}")]),(0,t.eR)("visibleTouchUI => void",[(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),Mt})(),Jn=(()=>{class Mt{}return Mt.\u0275fac=function(Z){return new(Z||Mt)},Mt.\u0275mod=s.oAB({type:Mt}),Mt.\u0275inj=s.cJS({imports:[e.ez,M.hJ,x.m8,I.T,M.hJ,x.m8]}),Mt})()},5922:(o,u,a)=>{"use strict";a.d(u,{S:()=>x});var t=a(4650),e=a(6895);a(3234);let x=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[e.ez]}),M})()},1989:(o,u,a)=>{"use strict";a.d(u,{XZ:()=>k,nD:()=>z});var t=a(6895),e=a(4650),s=a(4006),D=a(982);const x=["cb"],M=function(F,ne,B){return{"p-checkbox-label":!0,"p-checkbox-label-active":F,"p-disabled":ne,"p-checkbox-label-focus":B}};function w(F,ne){if(1&F){const B=e.EpF();e.TgZ(0,"label",7),e.NdJ("click",function(W){e.CHM(B);const Y=e.oxw(),fe=e.MAs(3);return e.KtG(Y.onClick(W,fe,!0))}),e._uU(1),e.qZA()}if(2&F){const B=e.oxw();e.Tol(B.labelStyleClass),e.Q6J("ngClass",e.kEZ(5,M,B.checked(),B.disabled,B.focused)),e.uIk("for",B.inputId),e.xp6(1),e.Oqu(B.label)}}const I=function(F,ne,B){return{"p-checkbox p-component":!0,"p-checkbox-checked":F,"p-checkbox-disabled":ne,"p-checkbox-focused":B}},P=function(F,ne,B){return{"p-highlight":F,"p-disabled":ne,"p-focus":B}},S={provide:s.JU,useExisting:(0,e.Gpc)(()=>k),multi:!0};let k=(()=>{class F{constructor(B){this.cd=B,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(B,G,W){B.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(B),W&&G.focus())}updateModel(B){let G;this.binary?(G=this.checked()?this.falseValue:this.trueValue,this.model=G,this.onModelChange(G)):(G=this.checked()?this.model.filter(W=>!D.gb.equals(W,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(G),this.model=G,this.formControl&&this.formControl.setValue(G)),this.onChange.emit({checked:G,originalEvent:B})}handleChange(B){this.readonly||this.updateModel(B)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(B){this.model=B,this.cd.markForCheck()}registerOnChange(B){this.onModelChange=B}registerOnTouched(B){this.onModelTouched=B}setDisabledState(B){this.disabled=B,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:D.gb.contains(this.value,this.model)}}return F.\u0275fac=function(B){return new(B||F)(e.Y36(e.sBO))},F.\u0275cmp=e.Xpm({type:F,selectors:[["p-checkbox"]],viewQuery:function(B,G){if(1&B&&e.Gf(x,5),2&B){let W;e.iGM(W=e.CRH())&&(G.inputViewChild=W.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[e._Bn([S])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(B,G){if(1&B){const W=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),e.NdJ("focus",function(){return G.onFocus()})("blur",function(){return G.onBlur()})("change",function(fe){return G.handleChange(fe)}),e.qZA()(),e.TgZ(4,"div",4),e.NdJ("click",function(fe){e.CHM(W);const N=e.MAs(3);return e.KtG(G.onClick(fe,N,!0))}),e._UZ(5,"span",5),e.qZA()(),e.YNc(6,w,2,9,"label",6)}2&B&&(e.Tol(G.styleClass),e.Q6J("ngStyle",G.style)("ngClass",e.kEZ(18,I,G.checked(),G.disabled,G.focu
1sed)),e.xp6(2),e.Q6J("readonly",G.readonly)("value",G.value)("checked",G.checked())("disabled",G.disabled),e.uIk("id",G.inputId)("name",G.name)("tabindex",G.tabindex)("aria-labelledby",G.ariaLabelledBy)("aria-label",G.ariaLabel)("aria-checked",G.checked())("required",G.required),e.xp6(2),e.Q6J("ngClass",e.kEZ(22,P,G.checked(),G.disabled,G.focused)),e.xp6(1),e.Q6J("ngClass",G.checked()?G.checkboxIcon:null),e.xp6(1),e.Q6J("ngIf",G.label))},dependencies:[t.mk,t.O5,t.PC],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),F})(),z=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=e.oAB({type:F}),F.\u0275inj=e.cJS({imports:[t.ez]}),F})()},9766:(o,u,a)=>{"use strict";a.d(u,{Gg:()=>W,cL:()=>G});var t=a(6895),e=a(4650),s=a(4006),D=a(805),x=a(1740);const M=["inputtext"];function w(Y,fe){1&Y&&e.GkF(0)}function I(Y,fe){if(1&Y&&(e.TgZ(0,"span",12),e._uU(1),e.qZA()),2&Y){const N=e.oxw().$implicit,Q=e.oxw();e.xp6(1),e.Oqu(Q.field?Q.resolveFieldData(N,Q.field):N)}}function P(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"span",13),e.NdJ("click",function(O){e.CHM(N);const ee=e.oxw().index,ue=e.oxw();return e.KtG(ue.removeItem(O,ee))}),e.qZA()}}const S=function(Y){return{$implicit:Y}};function k(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"li",7,8),e.NdJ("click",function(O){const ue=e.CHM(N).$implicit,_e=e.oxw();return e.KtG(_e.onItemClick(O,ue))}),e.YNc(2,w,1,0,"ng-container",9),e.YNc(3,I,2,1,"span",10),e.YNc(4,P,1,0,"span",11),e.qZA()}if(2&Y){const N=fe.$implicit,Q=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",Q.itemTemplate)("ngTemplateOutletContext",e.VKq(4,S,N)),e.xp6(1),e.Q6J("ngIf",!Q.itemTemplate),e.xp6(1),e.Q6J("ngIf",!Q.disabled)}}function z(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"li")(1,"i",14),e.NdJ("click",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.clear())}),e.qZA()()}}const F=function(Y,fe){return{"p-inputtext p-chips-multiple-container":!0,"p-focus":Y,"p-disabled":fe}},ne=function(Y){return{"p-chips-clearable":Y}},B={provide:s.JU,useExisting:(0,e.Gpc)(()=>G),multi:!0};let G=(()=>{class Y{constructor(N,Q){this.el=N,this.cd=Q,this.allowDuplicate=!0,this.showClear=!1,this.onAdd=new e.vpe,this.onRemove=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onChipClick=new e.vpe,this.onClear=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}
1ngAfterContentInit(){this.templates.forEach(N=>{N.getType(),this.itemTemplate=N.template}),this.updateFilledState()}onClick(){this.inputViewChild.nativeElement.focus()}onInput(){this.updateFilledState()}onPaste(N){this.disabled||(this.separator&&((N.clipboardData||window.clipboardData).getData("Text").split(this.separator).forEach(O=>{this.addItem(N,O,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(N,Q){this.onChipClick.emit({originalEvent:N,value:Q})}writeValue(N){this.value=N,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(N){this.onModelChange=N}registerOnTouched(N){this.onModelTouched=N}setDisabledState(N){this.disabled=N,this.cd.markForCheck()}resolveFieldData(N,Q){if(N&&Q){if(-1==Q.indexOf("."))return N[Q];{let ue=Q.split("."),_e=N;for(var O=0,ee=ue.length;O<ee;++O)_e=_e[ue[O]];return _e}}return null}onInputFocus(N){this.focus=!0,this.onFocus.emit(N)}onInputBlur(N){this.focus=!1,this.addOnBlur&&this.inputViewChild.nativeElement.value&&this.addItem(N,this.inputViewChild.nativeElement.value,!1),this.onModelTouched(),this.onBlur.emit(N)}removeItem(N,Q){if(this.disabled)return;let O=this.value[Q];this.value=this.value.filter((ee,ue)=>ue!=Q),this.onModelChange(this.value),this.onRemove.emit({originalEvent:N,value:O}),this.updateFilledState(),this.updateMaxedOut()}addItem(N,Q,O){this.value=this.value||[],Q&&Q.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(Q))&&(this.value=[...this.value,Q],this.onModelChange(this.value),this.onAdd.emit({originalEvent:N,value:Q})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",O&&N.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.onClear.emit()}onKeydown(N){switch(N.which){case 8:if(0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0){this.value=[...this.value];let Q=this.value.pop();this.onModelChange(this.value),this.onRemove.emit({originalEvent:N,value:Q}),this.updateFilledState()}break;case 13:this.addItem(N,this.inputViewChild.nativeElement.value,!0);break;case 9:this.addOnTab&&""!==this.inputViewChild.nativeElement.value&&this.addItem(N,this.inputViewChild.nativeElement.value,!0);break;default:this.max&&this.value&&this.max===this.value.length?N.preventDefault():this.separator&&(this.separator===N.key||N.key.match(this.separator))&&this.addItem(N,this.inputViewChild.nativeElement.value,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.max&&this.value&&this.max===this.value.length?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}}return Y.\u0275fac=function(N){return new(N||Y)(e.Y36(e.SBq),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["p-chips"]],contentQueries:function(N,Q,O){if(1&N&&e.Suo(O,D.jx,4),2&N){let ee;e.iGM(ee=e.CRH())&&(Q.templates=ee)}},viewQuery:function(N,Q){if(1&N&&e.Gf(M,5),2&N){let O;e.iGM(O=e.CRH())&&(Q.inputViewChild=O.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(N,Q){2&N&&e.ekj("p-inputwrapper-filled",Q.filled)("p-inputwrapper-focus",Q.focus)("p-chips-clearable",Q.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[e._Bn([B])],decls:7,vars:21,consts:[[3,"ngClass","ngStyle","click"],[3,"ngClass"],["class","p-chips-token",3,"click",4,"ngFor","ngForOf"],[1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],[1,"p-chips-token",3,"click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],["class","p-chips-token-icon pi pi-times-circle",3,"click",4,"ngIf"],[1,"p-chips-token-label"],[1,"p-chips-token-icon","pi","pi-times-circle",3,"click"],[1,"p-chips-clear-icon","pi","pi-times",3,"click"]],template:function(N,Q){1&N&&(e.TgZ(0,"div",0),e.NdJ("click",function(){return Q.onClick()}),e.TgZ(1,"ul",1),e.YNc(2,k,5,6,"li",2),e.TgZ(3,"li",3)(4,"input",4,5),e.NdJ("keydown",function(ee){return Q.onKeydown(ee)})("input",function(){return Q.onInput()})("paste",function(ee){return Q.onPaste(ee)})("focus",function(ee){return Q.onInputFocus(ee)})("blur",function(ee){return Q.onInputBlur(ee)}
1),e.qZA()(),e.YNc(6,z,2,0,"li",6),e.qZA()()),2&N&&(e.Tol(Q.styleClass),e.Q6J("ngClass","p-chips p-component")("ngStyle",Q.style),e.xp6(1),e.Q6J("ngClass",e.WLB(16,F,Q.focus,Q.disabled)),e.xp6(1),e.Q6J("ngForOf",Q.value),e.xp6(1),e.Q6J("ngClass",e.VKq(19,ne,Q.showClear&&!Q.disabled)),e.xp6(1),e.Tol(Q.inputStyleClass),e.Q6J("disabled",Q.disabled)("ngStyle",Q.inputStyle),e.uIk("id",Q.inputId)("placeholder",Q.value&&Q.value.length?null:Q.placeholder)("tabindex",Q.tabindex)("aria-labelledby",Q.ariaLabelledBy),e.xp6(2),e.Q6J("ngIf",null!=Q.value&&Q.filled&&!Q.disabled&&Q.showClear))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC],styles:[".p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}\n"],encapsulation:2,changeDetection:0}),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(N){return new(N||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[t.ez,x.j,D.m8,x.j,D.m8]}),Y})()},2137:(o,u,a)=>{"use strict";a.d(u,{D:()=>V,Q:()=>X});var t=a(4650),e=a(7340),s=a(6895),D=a(9592),x=a(805),M=a(5593),w=a(982),I=a(1795);const P=["content"];function S(q,Ee){1&q&&t.GkF(0)}function k(q,Ee){if(1&q&&(t.TgZ(0,"div",10),t.YNc(1,S,1,0,"ng-container",11),t.qZA()),2&q){const ye=t.oxw(3);t.xp6(1),t.Q6J("ngTemplateOutlet",ye.headerTemplate)}}function z(q,Ee){if(1&q&&(t.TgZ(0,"span",15),t._uU(1),t.qZA()),2&q){const ye=t.oxw(4);t.xp6(1),t.Oqu(ye.option("header"))}}const F=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function ne(q,Ee){if(1&q){const ye=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(at){t.CHM(ye);const me=t.oxw(4);return t.KtG(me.close(at))})("keydown.enter",function(at){t.CHM(ye);const me=t.oxw(4);return t.KtG(me.close(at))}),t._UZ(1,"span",17),t.qZA()}2&q&&t.Q6J("ngClass",t.DdM(1,F))}function B(q,Ee){if(1&q&&(t.TgZ(0,"div",10),t.YNc(1,z,2,1,"span",12),t.TgZ(2,"div",13),t.YNc(3,ne,2,2,"button",14),t.qZA()()),2&q){const ye=t.oxw(3);t.xp6(1),t.Q6J("ngIf",ye.option("header")),t.xp6(2),t.Q6J("ngIf",ye.closable)}}function G(q,Ee){if(1&q&&t._UZ(0,"i",1),2&q){const ye=t.oxw(3);t.Tol(ye.option("icon")),t.Q6J("ngClass","p-confirm-dialog-icon")}}function W(q,Ee){1&q&&t.GkF(0)}function Y(q,Ee){if(1&q&&(t.TgZ(0,"div",18),t.Hsn(1),t.YNc(2,W,1,0,"ng-container",11),t.qZA()),2&q){const ye=t.oxw(3);t.xp6(2),t.Q6J("ngTemplateOutlet",ye.footerTemplate)}}function fe(q,Ee){if(1&q){const ye=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(ye);const at=t.oxw(4);return t.KtG(at.reject())}),t.qZA()}if(2&q){const ye=t.oxw(4);t.Tol(ye.option("rejectButtonStyleClass")),t.Q6J("icon",ye.option("rejectIcon"))("label",ye.rejectButtonLabel)("ngClass","p-confirm-dialog-reject"),t.uIk("aria-label",ye.rejectAriaLabel)}}function N(q,Ee){if(1&q){const ye=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(ye);const at=t.oxw(4);return t.KtG(at.accept())}),t.qZA()}if(2&q){const ye=t.oxw(4);t.Tol(ye.option("acceptButtonStyleClass")),t.Q6J("icon",ye.option("acceptIcon"))("label",ye.acceptButtonLabel)("ngClass","p-confirm-dialog-accept"),t.uIk("aria-label",ye.acceptAriaLabel)}}function Q(q,Ee){if(1&q&&(t.TgZ(0,"div",18),t.YNc(1,fe,1,6,"button",19),t.YNc(2,N,1,6,"button",19),t.qZA()),2&q){const ye=t.oxw(3);t.xp6(1),t.Q6J("ngIf",ye.option("rejectVisible")),t.xp6(1),t.Q6J("ngIf",ye.option("acceptVisible"))}}const O=function(q){return{"p-dialog p-confirm-dialog p-component":!0,"p-dialog-rtl":q}},ee=function(q,Ee){return{transform:q,transition:Ee}},ue=function(q){return{value:"visible",params:q}};function _e(q,Ee){if(1&q){const ye=t.EpF();t.TgZ(0,"div",3),t.NdJ("@animation.start",function(at){t.CHM(ye);const me=t.oxw(2);return t.KtG(me.onAnimationStart(at))})("@animation.done",function(at){t.CHM(ye);const me=t.oxw(2);return t.KtG(me.onAnimationEnd(at))}),t.YNc(1,k,2,1,"div",4),t.YNc(2,B,4,2,"div",4),t.TgZ(3,"div",5,6),t.YNc(5,G,1,3,"i",7),t._UZ(6,"span",8),t.qZA(),t.YNc(7,Y,3,1,"div",9),t.YNc(8,Q,3,2,"div",9),t.qZA()}if(2&q){const ye=t.oxw(2);t.Tol(ye.styleClass),t.Q6J("ngClass",t.VKq(11,O,ye.rtl))("ngStyle",ye.style)("@animation",t.VKq(16,ue,t.WLB(13,ee,ye.transformOptions,ye.transitionOptions))),t.xp6(1),t.Q6J("ngIf",ye.headerTemplate),t.xp6(1),t.Q6J("ngIf",!ye.headerTemplate),t.xp6(3),t.Q6J("ngIf",ye.option("icon")),t.xp6(1),t.Q6J("innerHTML",ye.option("message"),t.oJD),t.xp6(1),t.Q6J("ngIf",ye.footer||ye.footerTemplate),t.xp6(1),t.Q6J("ngIf",!ye.footer&&!ye.footerTemplate)}}function be(q,Ee){if(1&q&&(t.TgZ(0,"div",1),t.YNc(1,_e,9,18,"div",2),t.qZA()),2&q){const ye=t.oxw();t.Tol(ye.maskStyleClass),t.Q6J("ngClass",ye.getMaskClass()),t.xp6(1),t.Q6J("ngIf",ye.visible)}}const Qe=[[["p-footer"]]],ze=["p-footer"],Oe=(0,e.oQ)([(0,e.oB)({transform:"{{transform}}",opacity:0}
1),(0,e.jt)("{{transition}}",(0,e.oB)({transform:"none",opacity:1}))]),K=(0,e.oQ)([(0,e.jt)("{{transition}}",(0,e.oB)({transform:"{{transform}}",opacity:0}))]);let X=(()=>{class q{constructor(ye,nt,at,me,ve,je){this.el=ye,this.renderer=nt,this.confirmationService=at,this.zone=me,this.cd=ve,this.config=je,this.acceptIcon="pi pi-check",this.acceptVisible=!0,this.rejectIcon="pi pi-times",this.rejectVisible=!0,this.closeOnEscape=!0,this.blockScroll=!0,this.closable=!0,this.autoZIndex=!0,this.baseZIndex=0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.focusTrap=!0,this.defaultFocus="accept",this.onHide=new t.vpe,this._position="center",this.transformOptions="scale(0.7)",this.id=(0,w.Th)(),this.subscription=this.confirmationService.requireConfirmation$.subscribe(Xe=>{Xe?Xe.key===this.key&&(this.confirmation=Xe,this.confirmationOptions={message:this.confirmation.message||this.message,icon:this.confirmation.icon||this.icon,header:this.confirmation.header||this.header,rejectVisible:null==this.confirmation.rejectVisible?this.rejectVisible:this.confirmation.rejectVisible,acceptVisible:null==this.confirmation.acceptVisible?this.acceptVisible:this.confirmation.acceptVisible,acceptLabel:this.confirmation.acceptLabel||this.acceptLabel,rejectLabel:this.confirmation.rejectLabel||this.rejectLabel,acceptIcon:this.confirmation.acceptIcon||this.acceptIcon,rejectIcon:this.confirmation.rejectIcon||this.rejectIcon,acceptButtonStyleClass:this.confirmation.acceptButtonStyleClass||this.acceptButtonStyleClass,rejectButtonStyleClass:this.confirmation.rejectButtonStyleClass||this.rejectButtonStyleClass,defaultFocus:this.confirmation.defaultFocus||this.defaultFocus,blockScroll:!1===this.confirmation.blockScroll||!0===this.confirmation.blockScroll?this.confirmation.blockScroll:this.blockScroll,closeOnEscape:!1===this.confirmation.closeOnEscape||!0===this.confirmation.closeOnEscape?this.confirmation.closeOnEscape:this.closeOnEscape,dismissableMask:!1===this.confirmation.dismissableMask||!0===this.confirmation.dismissableMask?this.confirmation.dismissableMask:this.dismissableMask}
vendor: 5,911 bytes, line 1
1,this.confirmation.accept&&(this.confirmation.acceptEvent=new t.vpe,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new t.vpe,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0):this.hide()})}get visible(){return this._visible}set visible(ye){this._visible=ye,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(ye){switch(this._position=ye,ye){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}ngAfterContentInit(){this.templates.forEach(ye=>{switch(ye.getType()){case"header":this.headerTemplate=ye.template;break;case"footer":this.footerTemplate=ye.template}})}ngOnInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}option(ye){const nt=this.confirmationOptions||this;if(nt.hasOwnProperty(ye))return nt[ye]}onAnimationStart(ye){if("visible"===ye.toState){this.container=ye.element,this.wrapper=this.container.parentElement,this.contentContainer=D.p.findSingle(this.container,".p-dialog-content"),this.container.setAttribute(this.id,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality();const nt=this.getElementToFocus();nt&&nt.focus()}}onAnimationEnd(ye){"void"===ye.toState&&this.onOverlayHide()}getElementToFocus(){switch(this.option("defaultFocus")){case"accept":default:return D.p.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return D.p.findSingle(this.container,".p-confirm-dialog-reject");case"close":return D.p.findSingle(this.container,".p-dialog-header-close");case"none":return null}}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):D.p.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}enableModality(){this.option("blockScroll")&&D.p.addClass(document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",ye=>{this.wrapper&&this.wrapper.isSameNode(ye.target)&&this.close(ye)}))}disableModality(){this.maskVisible=!1,this.option("blockScroll")&&D.p.removeClass(document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let ye="";for(let nt in this.breakpoints)ye+=`\n @media screen and (max-width: ${nt}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[nt]} !important;\n }\n }\n `;this.styleElement.innerHTML=ye}}close(ye){this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(x.wB.CANCEL),this.hide(x.wB.CANCEL),ye.preventDefault()}hide(ye){this.onHide.emit(ye),this.visible=!1,this.confirmation=null,this.confirmationOptions=null}moveOnTop(){this.autoZIndex&&(w.P9.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}getMaskClass(){let ye={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return ye[this.getPositionClass().toString()]=!0,ye}getPositionClass(){const nt=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find(at=>at===this.position);return nt?`p-dialog-${nt}`:""}bindGlobalListeners(){(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener)&&(this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",nt=>{if(27==nt.which&&this.option("closeOnEscape")&&this.closable&&parseInt(this.container.style.zIndex)===w.P9.get(this.container)&&this.visible&&this.close(nt),9===nt.which&&this.focusTrap){nt.preventDefault();let at=D.p.getFocusableElements(this.container);if(at&&at.length>0)if(at[0].ownerDocument.activeElement){let me=at.indexOf(at[0].ownerDocument.activeElement);nt.shiftKey?-1==me||0===me?at[at.length-1].focus():at[me-1].focus():-1==me||me===at.length-1?at[0].focus():at[me+1].focus()}else at[0].focus()}}))}unbindGlobalListeners(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}onOverlayHide(){this.container&&this.autoZIndex&&w.P9.clear(this.container),this.disableModality(),this.unbindGlobalListeners(),this.container=null}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}accept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(x.wB.ACCEPT)}reject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(x.wB.REJECT),this.hide(x.wB.REJECT)}get acceptButtonLabel(){return this.option("acceptLabel")||this.config.getTranslation(x.ws.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.config.getTranslation(x.ws.REJ
1ECT)}}return q.\u0275fac=function(ye){return new(ye||q)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(x.YP),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(x.b4))},q.\u0275cmp=t.Xpm({type:q,selectors:[["p-confirmDialog"]],contentQueries:function(ye,nt,at){if(1&ye&&(t.Suo(at,x.$_,5),t.Suo(at,x.jx,4)),2&ye){let me;t.iGM(me=t.CRH())&&(nt.footer=me.first),t.iGM(me=t.CRH())&&(nt.templates=me)}},viewQuery:function(ye,nt){if(1&ye&&t.Gf(P,5),2&ye){let at;t.iGM(at=t.CRH())&&(nt.contentViewChild=at.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:"acceptVisible",rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:"rejectVisible",acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",blockScroll:"blockScroll",rtl:"rtl",closable:"closable",appendTo:"appendTo",key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",transitionOptions:"transitionOptions",focusTrap:"focusTrap",defaultFocus:"defaultFocus",breakpoints:"breakpoints",visible:"visible",position:"position"},outputs:{onHide:"onHide"},ngContentSelectors:ze,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","ngStyle"],["class","p-dialog-header",4,"ngIf"],[1,"p-dialog-content"],["content",""],[3,"ngClass","class",4,"ngIf"],[1,"p-confirm-dialog-message",3,"innerHTML"],["class","p-dialog-footer",4,"ngIf"],[1,"p-dialog-header"],[4,"ngTemplateOutlet"],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button",3,"ngClass","click","keydown.enter"],[1,"pi","pi-times"],[1,"p-dialog-footer"],["type","button","pRipple","","pButton","",3,"icon","label","ngClass","class","click",4,"ngIf"],["type","button","pRipple","","pButton","",3,"icon","label","ngClass","click"]],template:function(ye,nt){1&ye&&(t.F$t(Qe),t.YNc(0,be,2,4,"div",0)),2&ye&&t.Q6J("ngIf",nt.maskVisible)},dependencies:[s.mk,s.O5,s.tP,s.PC,M.Hq,I.H],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[(0,e.X$)("animation",[(0,e.eR)("void => visible",[(0,e._7)(Oe)]),(0,e.eR)("visible => void",[(0,e._7)(K)])])]},changeDetection:0}),q})(),V=(()=>{class q{}return q.\u0275fac=function(ye){return new(ye||q)}
1,q.\u0275mod=t.oAB({type:q}),q.\u0275inj=t.cJS({imports:[s.ez,M.hJ,I.T,M.hJ,x.m8]}),q})()},1493:(o,u,a)=>{"use strict";a.d(u,{V:()=>ye,S:()=>nt});var t=a(4650),e=a(7340),s=a(6895),D=a(9592),x=a(805);let M=(()=>{class at{constructor(ve){this.el=ve}onkeydown(ve){if(!0!==this.pFocusTrapDisabled){ve.preventDefault();const je=D.p.getNextFocusableElement(this.el.nativeElement,ve.shiftKey);je&&(je.focus(),je.select?.())}}}return at.\u0275fac=function(ve){return new(ve||at)(t.Y36(t.SBq))},at.\u0275dir=t.lG2({type:at,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(ve,je){1&ve&&t.NdJ("keydown.tab",function(rt){return je.onkeydown(rt)})("keydown.shift.tab",function(rt){return je.onkeydown(rt)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),at})(),w=(()=>{class at{}return at.\u0275fac=function(ve){return new(ve||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({imports:[s.ez]}),at})();var I=a(1795),P=a(982);const S=["titlebar"],k=["content"],z=["footer"];function F(at,me){if(1&at){const ve=t.EpF();t.TgZ(0,"div",11),t.NdJ("mousedown",function(Xe){t.CHM(ve);const rt=t.oxw(3);return t.KtG(rt.initResize(Xe))}),t.qZA()}}function ne(at,me){if(1&at&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&at){const ve=t.oxw(4);t.uIk("id",ve.id+"-label"),t.xp6(1),t.Oqu(ve.header)}}function B(at,me){if(1&at&&(t.TgZ(0,"span",18),t.Hsn(1,1),t.qZA()),2&at){const ve=t.oxw(4);t.uIk("id",ve.id+"-label")}}function G(at,me){1&at&&t.GkF(0)}const W=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Y(at,me){if(1&at){const ve=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(ve);const Xe=t.oxw(4);return t.KtG(Xe.maximize())})("keydown.enter",function(){t.CHM(ve);const Xe=t.oxw(4);return t.KtG(Xe.maximize())}),t._UZ(1,"span",20),t.qZA()}if(2&at){const ve=t.oxw(4);t.Q6J("ngClass",t.DdM(2,W)),t.xp6(1),t.Q6J("ngClass",ve.maximized?ve.minimizeIcon:ve.maximizeIcon)}}const fe=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function N(at,me){if(1&at){const ve=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(Xe){t.CHM(ve);const rt=t.oxw(4);return t.KtG(rt.close(Xe))})("keydown.enter",function(Xe){t.CHM(ve);const rt=t.oxw(4);return t.KtG(rt.close(Xe))}),t._UZ(1,"span",22),t.qZA()}if(2&at){const ve=t.oxw(4);t.Q6J("ngClass",t.DdM(4,fe)),t.uIk("aria-label",ve.closeAriaLabel)("tabindex",ve.closeTabindex),t.xp6(1),t.Q6J("ngClass",ve.closeIcon)}}function Q(at,me){if(1&at){const ve=t.EpF();t.TgZ(0,"div",12,13),t.NdJ("mousedown",function(Xe){t.CHM(ve);const rt=t.oxw(3);return t.KtG(rt.initDrag(Xe))}),t.YNc(2,ne,2,2,"span",14),t.YNc(3,B,2,1,"span",14),t.YNc(4,G,1,0,"ng-container",9),t.TgZ(5,"div",15),t.YNc(6,Y,2,3,"button",16),t.YNc(7,N,2,5,"button",17),t.qZA()()}if(2&at){const ve=t.oxw(3);t.xp6(2),t.Q6J("ngIf",!ve.headerFacet&&!ve.headerTemplate),t.xp6(1),t.Q6J("ngIf",ve.headerFacet),t.xp6(1),t.Q6J("ngTemplateOutlet",ve.headerTemplate),t.xp6(2),t.Q6J("ngIf",ve.maximizable),t.xp6(1),t.Q6J("ngIf",ve.closable)}}function O(at,me){1&at&&t.GkF(0)}function ee(at,me){1&at&&t.GkF(0)}function ue(at,me){if(1&at&&(t.TgZ(0,"div",23,24),t.Hsn(2,2),t.YNc(3,ee,1,0,"ng-container",9),t.qZA()),2&at){const ve=t.oxw(3);t.xp6(3),t.Q6J("ngTemplateOutlet",ve.footerTemplate)}}const _e=function(at,me,ve,je){return{"p-dialog p-component":!0,"p-dialog-rtl":at,"p-dialog-draggable":me,"p-dialog-resizable":ve,"p-dialog-maximized":je}},be=function(at,me){return{transform:at,transition:me}},Qe=function(at){return{value:"visible",params:at}};function ze(at,me){if(1&at){const ve=t.EpF();t.TgZ(0,"div",3,4),t.NdJ("@animation.start",function(Xe){t.CHM(ve);const rt=t.oxw(2);return t.KtG(rt.onAnimationStart(Xe))})("@animation.done",function(Xe){t.CHM(ve);const rt=t.oxw(2);return t.KtG(rt.onAnimationEnd(Xe))}),t.YNc(2,F,1,0,"div",5),t.YNc(3,Q,8,5,"div",6),t.TgZ(4,"div",7,8),t.Hsn(6),t.YNc(7,O,1,0,"ng-container",9),t.qZA(),t.YNc(8,ue,4,1,"div",10),t.qZA()}if(2&at){const ve=t.oxw(2);t.Tol(ve.styleClass),t.Q6J("ngClass",t.l5B(15,_e,ve.rtl,ve.draggable,ve.resizable,ve.maximized))("ngStyle",ve.style)("pFocusTrapDisabled",!1===ve.focusTrap)("@animation",t.VKq(23,Qe,t.WLB(20,be,ve.transformOptions,ve.transitionOptions))),t.uIk("aria-labelledby",ve.id+"-label"),t.xp6(2),t.Q6J("ngIf",ve.resizable),t.xp6(1),t.Q6J("ngIf",ve.showHeader),t.xp6(1),t.Tol(ve.contentStyleClass),t.Q6J("ngClass","p-dialog-content")("ngStyle",ve.contentStyle),t.xp6(3),t.Q6J("ngTemplateOutlet",ve.contentTemplate),t.xp6(1),t.Q6J("ngIf",ve.footerFacet||ve.footerTemplate)}}const Oe=function(at,me,ve,je,Xe,rt,mt,$t,tn,yt){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":at,"p-dialog-mask-scrollblocker":me,"p-dialog-left":ve,"p-dialog-right":je,"p-dialog-top":Xe,"p-dialog-top-left":rt,"p-dialog-top-right":mt,"p-dialog-bottom":$t,"p-dialog-bottom-left":tn,"p-dialog-bottom-right":yt}};function K(at,me){if(1&at&&(t.TgZ(0,"div",1),t.YNc(1,ze,9,25,"div",2),t.qZA()),2&at){const ve=t.oxw();t.Tol(ve.maskStyleClass),t.Q6J("ngClass",t.rFY(4,Oe,[ve.modal,ve.modal||ve.blockScroll,"left"===ve.position,"right"===ve.position,"top"===ve.position,"topleft"===ve.position||"top-left"===ve.position,"topright"===ve.position||"top-right"===ve.position,"bottom"===ve.position,"bottomleft"===ve.position||"bottom-left"===ve.position,"bottomright"===ve.position||"bottom-right"===ve.position])),t.xp6(1),t.Q6J("ngIf",ve.visible)}}const X=["*",[["p-header"]],[["p-footer"]]],V=["*","p-header","p-footer"],q=(0,e.oQ)([(0,e.oB)({transform:"{{transform}}",opacity:0}
1),(0,e.jt)("{{transition}}")]),Ee=(0,e.oQ)([(0,e.jt)("{{transition}}",(0,e.oB)({transform:"{{transform}}",opacity:0}))]);let ye=(()=>{class at{constructor(ve,je,Xe,rt,mt){this.el=ve,this.renderer=je,this.zone=Xe,this.cd=rt,this.config=mt,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new t.vpe,this.onHide=new t.vpe,this.visibleChange=new t.vpe,this.onResizeInit=new t.vpe,this.onResizeEnd=new t.vpe,this.onDragEnd=new t.vpe,this.onMaximize=new t.vpe,this.id=(0,P.Th)(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(ve){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(ve){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(ve){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(ve){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}
1ngAfterContentInit(){this.templates.forEach(ve=>{switch(ve.getType()){case"header":this.headerTemplate=ve.template;break;case"content":default:this.contentTemplate=ve.template;break;case"footer":this.footerTemplate=ve.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(ve){this._visible=ve,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(ve){ve&&(this._style={...ve},this.originalStyle=ve)}get position(){return this._position}set position(ve){switch(this._position=ve,ve){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let ve=D.p.findSingle(this.container,"[autofocus]");ve&&this.zone.runOutsideAngular(()=>{setTimeout(()=>ve.focus(),5)})}close(ve){this.visibleChange.emit(!1),ve.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",ve=>{this.wrapper&&this.wrapper.isSameNode(ve.target)&&this.close(ve)})),this.modal&&D.p.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&D.p.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?D.p.addClass(document.body,"p-overflow-hidden"):D.p.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(P.P9.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let ve="";for(let je in this.breakpoints)ve+=`\n @media screen and (max-width: ${je}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[je]} !important;\n }\n }\n `;this.styleElement.innerHTML=ve}}initDrag(ve){D.p.hasClass(ve.target,"p-dialog-header-icon")||D.p.hasClass(ve.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=ve.pageX,this.lastPageY=ve.pageY,this.container.style.margin="0",D.p.addClass(document.body,"p-unselectable-text"))}onKeydown(ve){if(this.focusTrap&&9===ve.which){ve.preventDefault();let je=D.p.getFocusableElements(this.container);if(je&&je.length>0)if(je[0].ownerDocument.activeElement){let Xe=je.indexOf(je[0].ownerDocument.activeElement);ve.shiftKey?-1==Xe||0===Xe?je[je.length-1].focus():je[Xe-1].focus():-1==Xe||Xe===je.length-1?je[0].focus():je[Xe+1].focus()}else je[0].focus()}}onDrag(ve){if(this.dragging){let je=D.p.getOuterWidth(this.container),Xe=D.p.getOuterHeight(this.container),rt=ve.pageX-this.lastPageX,mt=ve.pageY-this.lastPageY,$t=this.container.getBoundingClientRect(),tn=$t.left+rt,yt=$t.top+mt,bt=D.p.getViewport();this.container.style.position="fixed",this.keepInViewport?(tn>=this.minX&&tn+je<bt.width&&(this._style.left=tn+"px",this.lastPageX=ve.pageX,this.container.style.left=tn+"px"),yt>=this.minY&&yt+Xe<bt.height&&(this._style.top=yt+"px",this.lastPageY=ve.pageY,this.container.style.top=yt+"px")):(this.lastPageX=ve.pageX,this.container.style.left=tn+"px",this.lastPageY=ve.pageY,this.container.style.top=yt+"px")}}endDrag(ve){this.dragging&&(this.dragging=!1,D.p.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(ve))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(ve){this.resizable&&(this.resizing=!0,this.lastPageX=ve.pageX,this.lastPageY=ve.pageY,D.p.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(ve))}onResize(ve){if(this.resizing){let je=ve.pageX-this.lastPageX,Xe=ve.pageY-this.lastPageY,rt=D.p.getOuterWidth(this.container),mt=D.p.getOuterHeight(this.container),$t=D.p.getOuterHeight(this.contentViewChild.nativeElement),tn=rt+je,yt=mt+Xe,bt=this.container.style.minWidth,Ye=this.container.style.minHeight,Nt=this.container.getBoundingClientRect(),xn=D.p.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(tn+=je,yt+=Xe),(!bt||tn>parseInt(bt))&&Nt.left+tn<xn.width&&(this._style.width=tn+"px",this.container.style.width=this._style.width),(!Ye||yt>parseInt(Ye))&&Nt.top+yt<xn.height&&(this.contentViewChild.nativeElement.style.height=$t+yt-mt+"px",this._style.height&&(this._style.height=yt+"px",this.container.style.height=this._style.height)),this.lastPageX=ve.pageX,this.lastPageY=ve.pageY}}resizeEnd(ve){this.resizing&&(this.resizing=!1,D.p.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(ve))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.zone.runOutsideAngular(()=>{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",je=>{27==je.which&&this.close(je)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):D.p.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(ve){switch(ve.toState){case"visible":this.container=ve.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&D.p.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&D.p.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(ve){switch(ve.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(D.p.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&D.p.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&P.P9.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return at.\u0275fac=function(ve){return new(ve||at)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(x.b4))},at.\u0275cmp=t.Xpm({type:at,selectors:[["p-dialog"]],contentQueries:function(ve,je,Xe){if(1&ve&&(t.Suo(Xe,x.h4,5),t.Suo(Xe,x.$_,5),t.Suo(Xe,x.jx,4)),2&ve){let rt;t.iGM(rt=t.CRH())&&(je.headerFacet=rt.first),t.iGM(rt=t.CRH())&&(je.footerFacet=rt.first),t.iGM(rt=t.CRH())&&(je.templates=rt)}},viewQuery:function(ve,je){if(1&ve&&(t.Gf(S,5),t.Gf(k,5),t.Gf(z,5)),2&ve){let Xe;t.iGM(Xe=t.CRH())&&(je.headerViewChild=Xe.first),t.iGM(Xe=t.CRH())&&(je.contentViewChild=Xe.first),t.iGM(Xe=t.CRH())&&(je.footerVie
1wChild=Xe.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:V,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(ve,je){1&ve&&(t.F$t(X),t.YNc(0,K,2,15,"div",0)),2&ve&&t.Q6J("ngIf",je.maskVisible)},dependencies:[s.mk,s.O5,s.tP,s.PC,M,I.H],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;
1display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[(0,e.X$)("animation",[(0,e.eR)("void => visible",[(0,e._7)(q)]),(0,e.eR)("visible => void",[(0,e._7)(Ee)])])]},changeDetection:0}),at})(),nt=(()=>{class at{}return at.\u0275fac=function(ve){return new(ve||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({imports:[s.ez,w,I.T,x.m8]}),at})()},9592:(o,u,a)=>{"use strict";a.d(u,{V:()=>e,p:()=>t});let t=(()=>{class s{static addClass(x,M){x&&M&&(x.classList?x.classList.add(M):x.className+=" "+M)}static addMultipleClasses(x,M){if(x&&M)if(x.classList){let w=M.trim().split(" ");for(let I=0;I<w.length;I++)x.classList.add(w[I])}else{let w=M.split(" ");for(let I=0;I<w.length;I++)x.className+=" "+w[I]}}static removeClass(x,M){x&&M&&(x.classList?x.classList.remove(M):x.className=x.className.replace(new RegExp("(^|\\b)"+M.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(x,M){return!(!x||!M)&&(x.classList?x.classList.contains(M):new RegExp("(^| )"+M+"( |$)","gi").test(x.className))}static siblings(x){return Array.prototype.filter.call(x.parentNode.children,function(M){return M!==x})}static find(x,M){return Array.from(x.querySelectorAll(M))}static findSingle(x,M){return x?x.querySelector(M):null}static index(x){let M=x.parentNode.childNodes,w=0;for(var I=0;I<M.length;I++){if(M[I]==x)return w;1==M[I].nodeType&&w++}return-1}static indexWithinGroup(x,M){let w=x.parentNode?x.parentNode.childNodes:[],I=0;for(var P=0;P<w.length;P++){if(w[P]==x)return I;w[P].attributes&&w[P].attributes[M]&&1==w[P].nodeType&&I++}return-1}static appendOverlay(x,M,w="self"){"self"!==w&&x&&M&&this.appendChild(x,M)}static alignOverlay(x,M,w="self",I=!0){x&&M&&(I&&(x.style.minWidth||(x.style.minWidth=s.getOuterWidth(M)+"px")),"self"===w?this.relativePosition(x,M):this.absolutePosition(x,M))}static relativePosition(x,M){const w=Y=>{if(Y)return"relative"===getComputedStyle(Y).getPropertyValue("position")?Y:w(Y.parentElement)},I=x.offsetParent?{width:x.offsetWidth,height:x.offsetHeight}:this.getHiddenElementDimensions(x),P=M.offsetHeight,S=M.getBoundingClientRect(),k=this.getWindowScrollTop(),z=this.getWindowScrollLeft(),F=this.getViewport(),B=w(x)?.getBoundingClientRect()||{top:-1*k,left:-1*z};let G,W;S.top+P+I.height>F.height?(G=S.top-B.top-I.height,x.style.transformOrigin="bottom",S.top+G<0&&(G=-1*S.top)):(G=P+S.top-B.top,x.style.transformOrigin="top"),W=I.width>F.width?-1*(S.left-B.left):S.left-B.left+I.width>F.width?-1*(S.left-B.left+I.width-F.width):S.left-B.left,x.style.top=G+"px",x.style.left=W+"px"}static absolutePosition(x,M){const w=x.offsetParent?{width:x.offsetWidth,height:x.offsetHeight}:this.getHiddenElementDimensions(x),I=w.height,P=w.width,S=M.offsetHeight,k=M.offsetWidth,z=M.getBoundingClientRect(),F=this.getWindowScrollTop(),ne=this.getWindowScrollLeft(),B=this.getViewport();let G,W;z.top+S+I>B.height?(G=z.top+F-I,x.style.transformOrigin="bottom",G<0&&(G=F)):(G=S+z.top+F,x.style.transformOrigin="top"),W=z.left+P>B.width?Math.max(0,z.left+ne+k-P):z.left+ne,x.style.top=G+"px",x.style.left=W+"px"}static getParents(x,M=[]){return null===x.parentNode?M:this.getParents(x.parentNode,M.concat([x.parentNode]))}static getScrollableParents(x){let M=[];if(x){let w=this.getParents(x);const I=/(auto|scroll)/,P=S=>{let k=window.getComputedStyle(S,null);return I.test(k.getPropertyValue("overflow"))||I.test(k.getPropertyValue("overflowX"))||I.test(k.getPropertyValue("overflowY"))};for(let S of w){let k=1===S.nodeType&&S.dataset.scrollselectors;if(k){let z=k.split(",");for(let F of z){let ne=this.findSingle(S,F);ne&&P(ne)&&M.push(ne)}}9!==S.nodeType&&P(S)&&M.push(S)}}return M}static getHiddenElementOuterHeight(x){x.style.visibility="hidden",x.style.display="block";let M=x.offsetHeight;return x.style.display="none",x.style.visibility="visible",M}static getHiddenElementOuterWidth(x){x.style.visibility="hidden",x.style.display="block";let M=x.offsetWidth;return x.style.display="none",x.style.visibility="visible",M}static getHiddenElementDimensions(x){let M={};return x.style.visibility="hidden",x.style.display="block",M.width=x.offsetWidth,M.height=x.offsetHeight,x.style.display="none",x.style.visibility="visible",M}static scrollInView(x,M){let w=getComputedStyle(x).getPropertyValue("borderTopWidth"),I=w?parseFloat(w):0,P=getComputedStyle(x).getPropertyValue("paddingTop"),S=P?parseFloat(P):0,k=x.getBoundingClientRect(),F=M.getBoundingClientRect().top+document.body.scrollTop-(k.top+document.body.scrollTop)-I-S,ne=x.scrollTop,B=x.clientHeight,G=this.getOuterHeight(M);F<0?x.scrollTop=ne+F:F+G>B&&(x.scrollTop=ne+F-B+G)}static fadeIn(x,M){x.style.opacity=0;let w=+new Date,I=0,P=function(){I=+x.style.opacity.replace(",",".")+((new Date).getTime()-w)/M,x.style.opacity=I,w=+new Date,+I<1&&(window.requestAnimationFrame&&requestAnimationFrame(P)||setTimeout(P,16))};P()}static fadeOut(x,M){var w=1,S=50/M;let k=setInterval(()=>{(w-=S)<=0&&(w=0,clearInterval(k)),x.style.opacity=w},50)}
vendor: 6,020 bytes, line 1
1static getWindowScrollTop(){let x=document.documentElement;return(window.pageYOffset||x.scrollTop)-(x.clientTop||0)}static getWindowScrollLeft(){let x=document.documentElement;return(window.pageXOffset||x.scrollLeft)-(x.clientLeft||0)}static matches(x,M){var w=Element.prototype;return(w.matches||w.webkitMatchesSelector||w.mozMatchesSelector||w.msMatchesSelector||function(P){return-1!==[].indexOf.call(document.querySelectorAll(P),this)}).call(x,M)}static getOuterWidth(x,M){let w=x.offsetWidth;if(M){let I=getComputedStyle(x);w+=parseFloat(I.marginLeft)+parseFloat(I.marginRight)}return w}static getHorizontalPadding(x){let M=getComputedStyle(x);return parseFloat(M.paddingLeft)+parseFloat(M.paddingRight)}static getHorizontalMargin(x){let M=getComputedStyle(x);return parseFloat(M.marginLeft)+parseFloat(M.marginRight)}static innerWidth(x){let M=x.offsetWidth,w=getComputedStyle(x);return M+=parseFloat(w.paddingLeft)+parseFloat(w.paddingRight),M}static width(x){let M=x.offsetWidth,w=getComputedStyle(x);return M-=parseFloat(w.paddingLeft)+parseFloat(w.paddingRight),M}static getInnerHeight(x){let M=x.offsetHeight,w=getComputedStyle(x);return M+=parseFloat(w.paddingTop)+parseFloat(w.paddingBottom),M}static getOuterHeight(x,M){let w=x.offsetHeight;if(M){let I=getComputedStyle(x);w+=parseFloat(I.marginTop)+parseFloat(I.marginBottom)}return w}static getHeight(x){let M=x.offsetHeight,w=getComputedStyle(x);return M-=parseFloat(w.paddingTop)+parseFloat(w.paddingBottom)+parseFloat(w.borderTopWidth)+parseFloat(w.borderBottomWidth),M}static getWidth(x){let M=x.offsetWidth,w=getComputedStyle(x);return M-=parseFloat(w.paddingLeft)+parseFloat(w.paddingRight)+parseFloat(w.borderLeftWidth)+parseFloat(w.borderRightWidth),M}static getViewport(){let x=window,M=document,w=M.documentElement,I=M.getElementsByTagName("body")[0];return{width:x.innerWidth||w.clientWidth||I.clientWidth,height:x.innerHeight||w.clientHeight||I.clientHeight}}static getOffset(x){var M=x.getBoundingClientRect();return{top:M.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:M.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(x,M){let w=x.parentNode;if(!w)throw"Can't replace element";return w.replaceChild(M,x)}static getUserAgent(){return navigator.userAgent}static isIE(){var x=window.navigator.userAgent;return x.indexOf("MSIE ")>0||(x.indexOf("Trident/")>0?(x.indexOf("rv:"),!0):x.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(x,M){if(this.isElement(M))M.appendChild(x);else{if(!M.el||!M.el.nativeElement)throw"Cannot append "+M+" to "+x;M.el.nativeElement.appendChild(x)}}static removeChild(x,M){if(this.isElement(M))M.removeChild(x);else{if(!M.el||!M.el.nativeElement)throw"Cannot remove "+x+" from "+M;M.el.nativeElement.removeChild(x)}}static removeElement(x){"remove"in Element.prototype?x.remove():x.parentNode.removeChild(x)}static isElement(x){return"object"==typeof HTMLElement?x instanceof HTMLElement:x&&"object"==typeof x&&null!==x&&1===x.nodeType&&"string"==typeof x.nodeName}static calculateScrollbarWidth(x){if(x){let M=getComputedStyle(x);return x.offsetWidth-x.clientWidth-parseFloat(M.borderLeftWidth)-parseFloat(M.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let M=document.createElement("div");M.className="p-scrollbar-measure",document.body.appendChild(M);let w=M.offsetWidth-M.clientWidth;return document.body.removeChild(M),this.calculatedScrollbarWidth=w,w}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let x=document.createElement("div");x.className="p-scrollbar-measure",document.body.appendChild(x);let M=x.offsetHeight-x.clientHeight;return document.body.removeChild(x),this.calculatedScrollbarWidth=M,M}static invokeElementMethod(x,M,w){x[M].apply(x,w)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let x=this.resolveUserAgent();this.browser={},x.browser&&(this.browser[x.browser]=!0,this.browser.version=x.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let x=navigator.userAgent.toLowerCase(),M=/(chrome)[ \/]([\w.]+)/.exec(x)||/(webkit)[ \/]([\w.]+)/.exec(x)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(x)||/(msie) ([\w.]+)/.exec(x)||x.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(x)||[];return{browser:M[1]||"",version:M[2]||"0"}}static isInteger(x){return Number.isInteger?Number.isInteger(x):"number"==typeof x&&isFinite(x)&&Math.floor(x)===x}static isHidden(x){return!x||null===x.offsetParent}static isVisible(x){return x&&null!=x.offsetParent}static isExist(x){return null!==x&&typeof x<"u"&&x.nodeName&&x.parentNode}static focus(x,M){x&&document.activeElement!==x&&x.focus(M)}static getFocusableElements(x){let M=s.find(x,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not
1([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),w=[];for(let I of M)(I.offsetWidth||I.offsetHeight||I.getClientRects().length)&&w.push(I);return w}static getNextFocusableElement(x,M=!1){const w=s.getFocusableElements(x);let I=0;if(w&&w.length>0){const P=w.indexOf(w[0].ownerDocument.activeElement);M?I=-1==P||0===P?w.length-1:P-1:-1!=P&&P!==w.length-1&&(I=P+1)}return w[I]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(x,M){if(!x)return null;switch(x){case"document":return document;case"window":return window;case"@next":return M?.nextElementSibling;case"@prev":return M?.previousElementSibling;case"@parent":return M?.parentElement;case"@grandparent":return M?.parentElement.parentElement;default:const w=typeof x;if("string"===w)return document.querySelector(x);if("object"===w&&x.hasOwnProperty("nativeElement"))return this.isExist(x.nativeElement)?x.nativeElement:void 0;const P=(S=x)&&S.constructor&&S.call&&S.apply?x():x;return P&&9===P.nodeType||this.isExist(P)?P:null}var S}}return s.zindex=1e3,s.calculatedScrollbarWidth=null,s.calculatedScrollbarHeight=null,s})();class e{constructor(D,x=(()=>{})){this.element=D,this.listener=x}bindScrollListener(){this.scrollableParents=t.getScrollableParents(this.element);for(let D=0;D<this.scrollableParents.length;D++)this.scrollableParents[D].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let D=0;D<this.scrollableParents.length;D++)this.scrollableParents[D].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},2210:(o,u,a)=>{"use strict";a.d(u,{Lt:()=>jt,kW:()=>_t});var t=a(6895),e=a(4650),s=a(4006),D=a(805),x=a(4418),M=a(9592),w=a(2526),I=a(1795),P=a(3718),S=a(3608),k=a(982);function z(dt,Be){if(1&dt&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&dt){const Te=e.oxw();let We;e.xp6(1),e.Oqu(null!==(We=Te.label)&&void 0!==We?We:"empty")}}function F(dt,Be){1&dt&&e.GkF(0)}const ne=function(dt){return{height:dt}},B=function(dt,Be){return{"p-dropdown-item":!0,"p-highlight":dt,"p-disabled":Be}},G=function(dt){return{$implicit:dt}},W=["container"],Y=["filter"],fe=["in"],N=["editableInput"],Q=["items"],O=["scroller"],ee=["overlay"];function ue(dt,Be){if(1&dt&&(e.ynx(0),e._uU(1),e.BQk()),2&dt){const Te=e.oxw(2);e.xp6(1),e.Oqu(Te.label||"empty")}}function _e(dt,Be){1&dt&&e.GkF(0)}const be=function(dt){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":dt}};function Qe(dt,Be){if(1&dt&&(e.TgZ(0,"span",14),e.YNc(1,ue,2,1,"ng-container",15),e.YNc(2,_e,1,0,"ng-container",16),e.qZA()),2&dt){const Te=e.oxw();e.Q6J("ngClass",e.VKq(9,be,null==Te.label||0===Te.label.length))("pTooltip",Te.tooltip)("tooltipPosition",Te.tooltipPosition)("positionStyle",Te.tooltipPositionStyle)("tooltipStyleClass",Te.tooltipStyleClass),e.uIk("id",Te.labelId),e.xp6(1),e.Q6J("ngIf",!Te.selectedItemTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",Te.selectedItemTemplate)("ngTemplateOutletContext",e.VKq(11,G,Te.selectedOption))}}const ze=function(dt){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":dt}};function Oe(dt,Be){if(1&dt&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&dt){const Te=e.oxw();e.Q6J("ngClass",e.VKq(2,ze,null==Te.placeholder||0===Te.placeholder.length)),e.xp6(1),e.Oqu(Te.placeholder||"empty")}}function K(dt,Be){if(1&dt){const Te=e.EpF();e.TgZ(0,"input",18,19),e.NdJ("input",function(ft){e.CHM(Te);const Ft=e.oxw();return e.KtG(Ft.onEditableInputChange(ft))})("focus",function(ft){e.CHM(Te);const Ft=e.oxw();return e.KtG(Ft.onEditableInputFocus(ft))})("blur",function(ft){e.CHM(Te);const Ft=e.oxw();return e.KtG(Ft.onInputBlur(ft))}),e.qZA()}if(2&dt){const Te=e.oxw();e.Q6J("disabled",Te.disabled),e.uIk("maxlength",Te.maxlength)("placeholder",Te.placeholder)("aria-expanded",Te.overlayVisible)}}function X(dt,Be){if(1&dt){const Te=e.EpF();e.TgZ(0,"i",20),e.NdJ("click",function(ft){e.CHM(Te);const Ft=e.oxw();return e.KtG(Ft.clear(ft))}),e.qZA()}}function V(dt,Be){1&dt&&e.GkF(0)}function q(dt,Be){1&dt&&e.GkF(0)}const Ee=function(dt){return{options:dt}};function ye(dt,Be){if(1&dt&&(e.ynx(0),e.YNc(1,q,1,0,"ng-container",16),e.BQk()),2&dt){const Te=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",Te.filterTemplate)("ngTemplateOutletContext",e.VKq(2,Ee,Te.filterOptions))}}
1function nt(dt,Be){if(1&dt){const Te=e.EpF();e.TgZ(0,"div",30)(1,"input",31,32),e.NdJ("keydown.enter",function(ft){return ft.preventDefault()})("keydown",function(ft){e.CHM(Te);const Ft=e.oxw(3);return e.KtG(Ft.onKeydown(ft,!1))})("input",function(ft){e.CHM(Te);const Ft=e.oxw(3);return e.KtG(Ft.onFilterInputChange(ft))}),e.qZA(),e._UZ(3,"span",33),e.qZA()}if(2&dt){const Te=e.oxw(3);e.xp6(1),e.Q6J("value",Te.filterValue||""),e.uIk("placeholder",Te.filterPlaceholder)("aria-label",Te.ariaFilterLabel)("aria-activedescendant",Te.overlayVisible?"p-highlighted-option":Te.labelId)}}function at(dt,Be){if(1&dt&&(e.TgZ(0,"div",27),e.NdJ("click",function(We){return We.stopPropagation()}),e.YNc(1,ye,2,4,"ng-container",28),e.YNc(2,nt,4,4,"ng-template",null,29,e.W1O),e.qZA()),2&dt){const Te=e.MAs(3),We=e.oxw(2);e.xp6(1),e.Q6J("ngIf",We.filterTemplate)("ngIfElse",Te)}}function me(dt,Be){1&dt&&e.GkF(0)}const ve=function(dt,Be){return{$implicit:dt,options:Be}};function je(dt,Be){if(1&dt&&e.YNc(0,me,1,0,"ng-container",16),2&dt){const Te=Be.$implicit,We=Be.options;e.oxw(2);const ft=e.MAs(7);e.Q6J("ngTemplateOutlet",ft)("ngTemplateOutletContext",e.WLB(2,ve,Te,We))}}function Xe(dt,Be){1&dt&&e.GkF(0)}function rt(dt,Be){if(1&dt&&e.YNc(0,Xe,1,0,"ng-container",16),2&dt){const Te=Be.options,We=e.oxw(4);e.Q6J("ngTemplateOutlet",We.loaderTemplate)("ngTemplateOutletContext",e.VKq(2,Ee,Te))}}function mt(dt,Be){1&dt&&(e.ynx(0),e.YNc(1,rt,1,4,"ng-template",36),e.BQk())}function $t(dt,Be){if(1&dt){const Te=e.EpF();e.TgZ(0,"p-scroller",34,35),e.NdJ("onLazyLoad",function(ft){e.CHM(Te);const Ft=e.oxw(2);return e.KtG(Ft.onLazyLoad.emit(ft))}),e.YNc(2,je,1,5,"ng-template",13),e.YNc(3,mt,2,0,"ng-container",15),e.qZA()}if(2&dt){const Te=e.oxw(2);e.Akn(e.VKq(8,ne,Te.scrollHeight)),e.Q6J("items",Te.optionsToDisplay)("itemSize",Te.virtualScrollItemSize||Te._itemSize)("autoSize",!0)("lazy",Te.lazy)("options",Te.virtualScrollOptions),e.xp6(3),e.Q6J("ngIf",Te.loaderTemplate)}}function tn(dt,Be){1&dt&&e.GkF(0)}const yt=function(){return{}};function bt(dt,Be){if(1&dt&&(e.ynx(0),e.YNc(1,tn,1,0,"ng-container",16),e.BQk()),2&dt){e.oxw();const Te=e.MAs(7),We=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",Te)("ngTemplateOutletContext",e.WLB(3,ve,We.optionsToDisplay,e.DdM(2,yt)))}}function Ye(dt,Be){if(1&dt&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&dt){const Te=e.oxw().$implicit,We=e.oxw(4);e.xp6(1),e.Oqu(We.getOptionGroupLabel(Te)||"empty")}}function Nt(dt,Be){1&dt&&e.GkF(0)}function xn(dt,Be){1&dt&&e.GkF(0)}const pn=function(dt,Be){return{$implicit:dt,selectedOption:Be}};function _n(dt,Be){if(1&dt&&(e.TgZ(0,"li",42),e.YNc(1,Ye,2,1,"span",15),e.YNc(2,Nt,1,0,"ng-container",16),e.qZA(),e.YNc(3,xn,1,0,"ng-container",16)),2&dt){const Te=Be.$implicit,We=e.oxw(2).options,ft=e.MAs(5),Ft=e.oxw(2);e.Q6J("ngStyle",e.VKq(6,ne,We.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!Ft.groupTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",Ft.groupTemplate)("ngTemplateOutletContext",e.VKq(8,G,Te)),e.xp6(1),e.Q6J("ngTemplateOutlet",ft)("ngTemplateOutletContext",e.WLB(10,pn,Ft.getOptionGroupChildren(Te),Ft.selectedOption))}}function zt(dt,Be){if(1&dt&&(e.ynx(0),e.YNc(1,_n,4,13,"ng-template",41),e.BQk()),2&dt){const Te=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",Te)}}function Yt(dt,Be){1&dt&&e.GkF(0)}function It(dt,Be){if(1&dt&&(e.ynx(0),e.YNc(1,Yt,1,0,"ng-container",16),e.BQk()),2&dt){const Te=e.oxw().$implicit,We=e.MAs(5),ft=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",We)("ngTemplateOutletContext",e.WLB(2,pn,Te,ft.selectedOption))}}function bn(dt,Be){if(1&dt){const Te=e.EpF();e.TgZ(0,"p-dropdownItem",43),e.NdJ("onClick",function(ft){e.CHM(Te);const Ft=e.oxw(4);return e.KtG(Ft.onItemClick(ft))}),e.qZA()}if(2&dt){const Te=Be.$implicit,We=e.oxw().selectedOption,ft=e.oxw(3);e.Q6J("option",Te)("selected",We==Te)("label",ft.getOptionLabel(Te))("disabled",ft.isOptionDisabled(Te))("template",ft.itemTemplate)}}function Rn(dt,Be){1&dt&&e.YNc(0,bn,1,5,"ng-template",41),2&dt&&e.Q6J("ngForOf",Be.$implicit)}function Sn(dt,Be){if(1&dt&&(e.ynx(0),e._uU(1),e.BQk()),2&dt){const Te=e.oxw(4);e.xp6(1),e.hij(" ",Te.emptyFilterMessageLabel," ")}}function vn(dt,Be){1&dt&&e.GkF(0,null,45)}function mi(dt,Be){if(1&dt&&(e.TgZ(0,"li",44),e.YNc(1,Sn,2,1,"ng-container",28),e.YNc(2,vn,2,0,"ng-container",22),e.qZA()),2&dt){const Te=e.oxw().options,We=e.oxw(2);e.Q6J("ngStyle",e.VKq(4,ne,Te.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!We.emptyFilterTemplate&&!We.emptyTemplate)("ngIfElse",We.emptyFilter),e.xp6(1),e.Q6J("ngTemplateOutlet",We.emptyFilterTemplate||We.emptyTemplate)}}function Un(dt,Be){if(1&dt&&(e.ynx(0),e._uU(1),e.BQk()),2&dt){const Te=e.oxw(4);e.xp6(1),e.hij(" ",Te.emptyMessageLabel," ")}}function Jn(dt,Be){1&dt&&e.GkF(0,null,46)}function Mt(dt,Be){if(1&dt&&(e.TgZ(0,"li",44),e.YNc(1,Un,2,1,"ng-container",28),e.YNc(2,Jn,2,0,"ng-container",22),e.qZA()),2&dt){const Te=e.oxw().options,We=e.oxw(2);e.Q6J("ngStyle",e.VKq(4,ne,Te.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!We.emptyTemplate)("ngIfElse",We.empty),e.xp6(1),e.Q6J("ngTemplateOutlet",We.emptyTemplate)}}function Vt(dt,Be){if(1&dt&&(e.TgZ(0,"ul",37,38),e.YNc(2,zt,2,1,"ng-container",15),e.YNc(3,It,2,5,"ng-container",15),e.YNc(4,Rn,1,1,"ng-template",null,39,e.W1O),e.YNc(6,mi,3,6,"li",40),e.YNc(7,Mt,3,6,"li",40),e.qZA()),2&dt){const Te=Be.options,We=e.oxw(2);e.Akn(Te.contentStyle),e.Q6J("ngClass",Te.contentStyleClass),e.uIk("id",We.listId),e.xp6(2),e.Q6J("ngIf",We.group),e.xp6(1),e.Q6J("ngIf",!We.group),e.xp6(3),e.Q6J("ngIf",We.filterValue&&We.isEmpty()),e.xp6(1),e.Q6J("ngIf",!We.filterValue&&We.isEmpty())}}function Z(dt,Be){1&dt&&e.GkF(0)}function re(dt,Be){if(1&dt&&(e.TgZ(0,"div",21),e.YNc(1,V,1,0,"ng-container",22),e.YNc(2,at,4,2,"div",23),e.TgZ(3,"div",24),e.YNc(4,$t,4,10,"p-scroller",25),e.YNc(5,bt,2,6,"ng-container",15),e.YNc(6,Vt,8,8,"ng-template",null,26,e.W1O),e.qZA(),e.YNc(8,Z,1,0,"ng-container",22),e.qZA()),2&dt){const Te=e.oxw();e.Tol(Te.panelStyleClass),e.Q6J("ngClass","p-dropdown-panel p-component")("ngStyle",Te.panelStyle),e.xp6(1),e.Q6J("ngTemplateOutlet",Te.headerTemplate),e.xp6(1),e.Q6J("ngIf",Te.filter),e.xp6(1),e.Udp("max-height",Te.virtualScroll?"auto":Te.scrollHeight||"auto"),e.xp6(1),e.Q6J("ngIf",Te.virtualScroll),e.xp6(1),e.Q6J("ngIf",!Te.virtualScroll),e.xp6(3),e.Q6J("ngTemplateOutlet",Te.footerTemplate)}}const pe=function(dt,Be,Te,We){return{"p-dropdown p-component":!0,"p-disabled":dt,"p-dropdown-open":Be,"p-focus":Te,"p-dropdown-clearable":We}},Re={provide:s.JU,useExisting:(0,e.Gpc)(()=>jt),multi:!0};let Bt=(()=>{class dt{constructor(){this.onClick=new e.vpe}onOptionClick(Te){this.onClick.emit({originalEvent:Te,option:this.option})}}return dt.\u0275fac=function(Te){return new(Te||dt)},dt.\u0275cmp=e.Xpm({type:dt,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Te,We){1&Te&&(e.TgZ(0,"li",0),e.NdJ("click",function(Ft){return We.onOptionClick(Ft)}),e.YNc(1,z,2,1,"span",1),e.YNc(2,F,1,0,"ng-container",2),e.qZA()),2&Te&&(e.Q6J("ngStyle",e.VKq(8,ne,We.itemSize+"px"))("id",We.selected?"p-highlighted-option":"")("ngClass",e.WLB(10,B,We.selected,We.disabled)),e.uIk("aria-label",We.label)("aria-selected",We.selected),e.xp6(1),e.Q6J("ngIf",!We.template),e.xp6(1),e.Q6J("ngTemplateOutlet",We.template)("ngTemplateOutletContext",e.VKq(13,G,We.option)))},dependencies:[t.mk,t.O5,t.tP,t.PC,I.H],encapsulation:2}),dt})(),jt=(()=>{class dt{constructor(Te,We,ft,Ft,Pt,pt){this.el=Te,this.renderer=We,this.cd=ft,this.zone=Ft,this.filterService=Pt,this.config=pt,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.overlayDirection="end",this.onChange=new e.vpe,this.onFilter=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onClick=new e.vpe,this.onShow=new e.vpe,this.onHide=new e.vpe,this.onClear=new e.vpe,this.onLazyLoad=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=(0,k.Th)()}get disabled(){return this._disabled}set disabled(Te){Te&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=Te,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(Te){this._itemSize=Te,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}
1get autoZIndex(){return this._autoZIndex}set autoZIndex(Te){this._autoZIndex=Te,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(Te){this._baseZIndex=Te,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(Te){this._showTransitionOptions=Te,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(Te){this._hideTransitionOptions=Te,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}ngAfterContentInit(){this.templates.forEach(Te=>{switch(Te.getType()){case"item":default:this.itemTemplate=Te.template;break;case"selectedItem":this.selectedItemTemplate=Te.template;break;case"header":this.headerTemplate=Te.template;break;case"filter":this.filterTemplate=Te.template;break;case"footer":this.footerTemplate=Te.template;break;case"emptyfilter":this.emptyFilterTemplate=Te.template;break;case"empty":this.emptyTemplate=Te.template;break;case"group":this.groupTemplate=Te.template;break;case"loader":this.loaderTemplate=Te.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:Te=>this.onFilterInputChange(Te),reset:()=>this.resetFilter()})}get options(){return this._options}set options(Te){this._options=Te,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&k.gb.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(Te){this._filterValue=Te,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(D.ws.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(D.ws.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(Te){return this.optionLabel?k.gb.resolveFieldData(Te,this.optionLabel):Te&&void 0!==Te.label?Te.label:Te}getOptionValue(Te){return this.optionValue?k.gb.resolveFieldData(Te,this.optionValue):!this.optionLabel&&Te&&void 0!==Te.value?Te.value:Te}isOptionDisabled(Te){return this.optionDisabled?k.gb.resolveFieldData(Te,this.optionDisabled):!(!Te||void 0===Te.disabled)&&Te.disabled}getOptionGroupLabel(Te){return this.optionGroupLabel?k.gb.resolveFieldData(Te,this.optionGroupLabel):Te&&void 0!==Te.label?Te.label:Te}getOptionGroupChildren(Te){return this.optionGroupChildren?k.gb.resolveFieldData(Te,this.optionGroupChildren):Te.items}onItemClick(Te){const We=Te.option;this.isOptionDisabled(We)||(this.selectItem(Te.originalEvent,We),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(Te,We){this.selectedOption!=We&&(this.selectedOption=We,this.value=this.getOptionValue(We),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:Te,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()}
1,1)})),this.selectedOptionUpdated&&this.itemsWrapper){let Te=M.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");Te&&M.p.scrollInView(this.itemsWrapper,Te),this.selectedOptionUpdated=!1}}writeValue(Te){this.filter&&this.resetFilter(),this.value=Te,this.updateSelectedOption(Te),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(Te){this.selectedOption=this.findOption(Te,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(Te){this.onModelChange=Te}registerOnTouched(Te){this.onModelTouched=Te}setDisabledState(Te){this.disabled=Te,this.cd.markForCheck()}onMouseclick(Te){this.disabled||this.readonly||this.isInputClick(Te)||(this.onClick.emit(Te),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(Te){return M.p.hasClass(Te.target,"p-dropdown-clear-icon")||Te.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&Te.target.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(Te){this.focused=!0,this.hide(),this.onFocus.emit(Te)}onEditableInputChange(Te){this.value=Te.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:Te,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(Te){if("visible"===Te.toState){if(this.itemsWrapper=M.p.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const We=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==We&&this.scroller.scrollToIndex(We)}else{let We=M.p.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");We&&We.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(Te)}"void"===Te.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(Te))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(Te){this.focused=!0,this.onFocus.emit(Te)}onInputBlur(Te){this.focused=!1,this.onBlur.emit(Te),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(Te){let We;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let ft=Te-1;0<=ft;ft--){let Ft=this.optionsToDisplay[ft];if(!this.isOptionDisabled(Ft)){We=Ft;break}}if(!We)for(let ft=this.optionsToDisplay.length-1;ft>=Te;ft--){let Ft=this.optionsToDisplay[ft];if(!this.isOptionDisabled(Ft)){We=Ft;break}}}return We}findNextEnabledOption(Te){let We;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let ft=Te+1;ft<this.optionsToDisplay.length;ft++){let Ft=this.optionsToDisplay[ft];if(!this.isOptionDisabled(Ft)){We=Ft;break}}if(!We)for(let ft=0;ft<Te;ft++){let Ft=this.optionsToDisplay[ft];if(!this.isOptionDisabled(Ft)){We=Ft;break}}}return We}onKeydown(Te,We){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(Te.which){case 40:if(!this.overlayVisible&&Te.altKey)this.show();else if(this.group){let ft=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==ft){let Ft=ft.itemIndex+1;Ft<this.getOptionGroupChildren(this.optionsToDisplay[ft.groupIndex]).length?(this.selectItem(Te,this.getOptionGroupChildren(this.optionsToDisplay[ft.groupIndex])[Ft]),this.selectedOptionUpdated=!0):this.optionsToDisplay[ft.groupIndex+1]&&(this.selectItem(Te,this.getOptionGroupChildren(this.optionsToDisplay[ft.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(Te,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let ft=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,Ft=this.findNextEnabledOption(ft);Ft&&(this.selectItem(Te,Ft),this.selectedOptionUpdated=!0)}Te.preventDefault();break;case 38:if(this.group){let ft=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==ft){let Ft=ft.itemIndex-1;if(Ft>=0)this.selectItem(Te,this.getOptionGroupChildren(this.optionsToDisplay[ft.groupIndex])[Ft]),this.selectedOptionUpdated=!0;else if(Ft<0){let Pt=this.optionsToDisplay[ft.groupIndex-1];Pt&&(this.selectItem(Te,this.getOptionGroupChildren(Pt)[this.getOptionGroupChildren(Pt).length-1]),this.selectedOptionUpdated=!0)}}}else{let ft=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,Ft=this.findPrevEnabledOption(ft);Ft&&(this.selectItem(Te,Ft),this.selectedOptionUpdated=!0)}Te.preventDefault();break;case 32:We&&(this.overlayVisible?this.hide():this.show(),Te.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),Te.preventDefault();break;case 27:case 9:this.hide();break;default:We&&!Te.metaKey&&17!==Te.which&&this.search(Te)}}search(Te){this.searchTimeout&&clearTimeout(this.searchTimeout);const We=Te.key;let ft;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=We,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+We:We,this.group){let Ft=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};
1ft=this.searchOptionWithinGroup(Ft)}else{let Ft=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;ft=this.searchOption(++Ft)}ft&&!this.isOptionDisabled(ft)&&(this.selectItem(Te,ft),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(Te){let We;return this.searchValue&&(We=this.searchOptionInRange(Te,this.optionsToDisplay.length),We||(We=this.searchOptionInRange(0,Te))),We}searchOptionInRange(Te,We){for(let ft=Te;ft<We;ft++){let Ft=this.optionsToDisplay[ft];if(this.getOptionLabel(Ft).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(Ft))return Ft}return null}searchOptionWithinGroup(Te){if(this.searchValue){for(let ft=Te.groupIndex;ft<this.optionsToDisplay.length;ft++)for(let Ft=Te.groupIndex===ft?Te.itemIndex+1:0;Ft<this.getOptionGroupChildren(this.optionsToDisplay[ft]).length;Ft++){let Pt=this.getOptionGroupChildren(this.optionsToDisplay[ft])[Ft];if(this.getOptionLabel(Pt).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(Pt))return Pt}for(let ft=0;ft<=Te.groupIndex;ft++)for(let Ft=0;Ft<(Te.groupIndex===ft?Te.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[ft]).length);Ft++){let Pt=this.getOptionGroupChildren(this.optionsToDisplay[ft])[Ft];if(this.getOptionLabel(Pt).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(Pt))return Pt}}return null}findOptionIndex(Te,We){let ft=-1;if(We)for(let Ft=0;Ft<We.length;Ft++)if(null==Te&&null==this.getOptionValue(We[Ft])||k.gb.equals(Te,this.getOptionValue(We[Ft]),this.dataKey)){ft=Ft;break}return ft}findOptionGroupIndex(Te,We){let ft,Ft;if(We)for(let Pt=0;Pt<We.length&&(ft=Pt,Ft=this.findOptionIndex(Te,this.getOptionGroupChildren(We[Pt])),-1===Ft);Pt++);return-1!==Ft?{groupIndex:ft,itemIndex:Ft}:-1}findOption(Te,We,ft){if(this.group&&!ft){let Ft;if(We&&We.length)for(let Pt of We)if(Ft=this.findOption(Te,this.getOptionGroupChildren(Pt),!0),Ft)break;return Ft}{let Ft=this.findOptionIndex(Te,We);return-1!=Ft?We[Ft]:null}}onFilterInputChange(Te){let We=Te.target.value;We&&We.length?(this._filterValue=We,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.virtualScroll&&this.scroller.scrollToIndex(0),this.optionsChanged=!0,this.onFilter.emit({originalEvent:Te,filter:this._filterValue})}activateFilter(){let Te=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let We=[];for(let ft of this.options){let Ft=this.filterService.filter(this.getOptionGroupChildren(ft),Te,this.filterValue,this.filterMatchMode,this.filterLocale);Ft&&Ft.length&&We.push({...ft,[this.optionGroupChildren]:Ft})}this.optionsToDisplay=We}else this.optionsToDisplay=this.filterService.filter(this.options,Te,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?M.p.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():M.p.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(Te){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:Te,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(Te)}}return dt.\u0275fac=function(Te){return new(Te||dt)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(D.iZ),e.Y36(D.b4))},dt.\u0275cmp=e.Xpm({type:dt,selectors:[["p-dropdown"]],contentQueries:function(Te,We,ft){if(1&Te&&e.Suo(ft,D.jx,4),2&Te){let Ft;e.iGM(Ft=e.CRH())&&(We.templates=Ft)}},viewQuery:function(Te,We){if(1&Te&&(e.Gf(W,5),e.Gf(Y,5),e.Gf(fe,5),e.Gf(N,5),e.Gf(Q,5),e.Gf(O,5),e.Gf(ee,5)),2&Te){let ft;e.iGM(ft=e.CRH())&&(We.containerViewChild=ft.first),e.iGM(ft=e.CRH())&&(We.filterViewChild=ft.first),e.iGM(ft=e.CRH())&&(We.accessibleViewChild=ft.first),e.iGM(ft=e.CRH())&&(We.editableInputViewChild=ft.first),e.iGM(ft=e.CRH())&&(We.itemsViewChild=ft.first),e.iGM(ft=e.CRH())&&(We.scroller=ft.first),e.iGM(ft=e.CRH())&&(We.overlayViewChild=ft.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(Te,We){2&Te&&e.ekj("p-inputwrapper-filled",We.filled)("p-inputwrapper-focus",We.focused||We.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",overlayDirection:"overlayDirection",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[e._Bn([Re])],decls:14,vars:32,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","pAutoFocus","","role","combobox",3,"disabled","autofocus","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-in
1puttext","aria-haspopup","listbox",3,"disabled","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],[1,"p-dropdown-header",3,"click"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","onClick"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(Te,We){1&Te&&(e.TgZ(0,"div",0,1),e.NdJ("click",function(Ft){return We.onMouseclick(Ft)}),e.TgZ(2,"div",2)(3,"input",3,4),e.NdJ("focus",function(Ft){return We.onInputFocus(Ft)})("blur",function(Ft){return We.onInputBlur(Ft)})("keydown",function(Ft){return We.onKeydown(Ft,!0)}),e.qZA()(),e.YNc(5,Qe,3,13,"span",5),e.YNc(6,Oe,2,4,"span",6),e.YNc(7,K,2,4,"input",7),e.YNc(8,X,1,0,"i",8),e.TgZ(9,"div",9),e._UZ(10,"span",10),e.qZA(),e.TgZ(11,"p-overlay",11,12),e.NdJ("visibleChange",function(Ft){return We.overlayVisible=Ft})("onAnimationStart",function(Ft){return We.onOverlayAnimationStart(Ft)})("onHide",function(){return We.hide()}),e.YNc(13,re,9,11,"ng-template",13),e.qZA()()),2&Te&&(e.Tol(We.styleClass),e.Q6J("ngClass",e.l5B(27,pe,We.disabled,We.overlayVisible,We.focused,We.showClear&&!We.disabled))("ngStyle",We.style),e.xp6(3),e.Q6J("disabled",We.disabled)("autofocus",We.autofocus),e.uIk("id",We.inputId)("placeholder",We.placeholder)("aria-label",We.ariaLabel)("aria-expanded",!1)("aria-labelledby",We.ariaLabelledBy)("tabindex",We.tabindex)("aria-activedescendant",We.overlayVisible?We.labelId:null),e.xp6(2),e.Q6J("ngIf",!We.editable&&null!=We.label),e.xp6(1),e.Q6J("ngIf",!We.editable&&null==We.label),e.xp6(1),e.Q6J("ngIf",We.editable),e.xp6(1),e.Q6J("ngIf",We.isVisibleClearIcon),e.xp6(1),e.uIk("aria-expanded",We.overlayVisible),e.xp6(1),e.Q6J("ngClass",We.dropdownIcon),e.xp6(1),e.Q6J("visible",We.overlayVisible)("options",We.overlayOptions)("target","@parent")("appendTo",We.appendTo)("autoZIndex",We.autoZIndex)("baseZIndex",We.baseZIndex)("showTransitionOptions",We.showTransitionOptions)("hideTransitionOptions",We.hideTransitionOptions))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,w.aV,D.jx,S.u,P.T,x.P,Bt],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,changeDetection:0}),dt})(),_t=(()=>{class dt{}return dt.\u0275fac=function(Te){return new(Te||dt)},dt.\u0275mod=e.oAB({type:dt}),dt.\u0275inj=e.cJS({imports:[t.ez,w.U8,D.m8,S.z,I.T,P.v,x.E,w.U8,D.m8,P.v]}),dt})()},5047:(o,u,a)=>{"use strict";a.d(u,{L$:()=>W,Rn:()=>G});var t=a(6895),e=a(4650),s=a(4006),D=a(5593),x=a(9592),M=a(1740);const w=["input"];function I(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"i",6),e.NdJ("click",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.clear())}),e.qZA()}}const P=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},S=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function k(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"span",7)(1,"button",8),e.NdJ("mousedown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onUpButtonMouseDown(O))})("mouseup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonMouseUp())})("mouseleave",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonMouseLeave())})("keydown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onUpButtonKeyDown(O))})("keyup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonKeyUp())}),e.qZA(),e.TgZ(2,"button",8),e.NdJ("mousedown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onDownButtonMouseDown(O))})("mouseup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonMouseUp())})("mouseleave",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonMouseLeave())})("keydown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onDownButtonKeyDown(O))})("keyup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonKeyUp())}),e.qZA()()}if(2&Y){const N=e.oxw();e.xp6(1),e.Tol(N.incrementButtonClass),e.Q6J("ngClass",e.DdM(10,P))("icon",N.incrementButtonIcon)("disabled",N.disabled),e.xp6(1),e.Tol(N.decrementButtonClass),e.Q6J("ngClass",e.DdM(11,S))("icon",N.decrementButtonIcon)("disabled",N.disabled)}}function z(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"button",8),e.NdJ("mousedown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onUpButtonMouseDown(O))})("mouseup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonMouseUp())})("mouseleave",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonMouseLeave())})("keydown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onUpButtonKeyDown(O))})("keyup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onUpButtonKeyUp())}),e.qZA()}if(2&Y){const N=e.oxw();e.Tol(N.incrementButtonClass),e.Q6J("ngClass",e.DdM(5,P))("icon",N.incrementButtonIcon)("disabled",N.disabled)}}function F(Y,fe){if(1&Y){const N=e.EpF();e.TgZ(0,"button",8),e.NdJ("mousedown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onDownButtonMouseDown(O))})("mouseup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonMouseUp())})("mouseleave",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonMouseLeave())})("keydown",function(O){e.CHM(N);const ee=e.oxw();return e.KtG(ee.onDownButtonKeyDown(O))})("keyup",function(){e.CHM(N);const O=e.oxw();return e.KtG(O.onDownButtonKeyUp())}),e.qZA()}if(2&Y){const N=e.oxw();e.Tol(N.decrementButtonClass),e.Q6J("ngClass",e.DdM(5,S))("icon",N.decrementButtonIcon)("disabled",N.disabled)}}const ne=function(Y,fe,N){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":Y,"p-inputnumber-buttons-horizontal":fe,"p-inputnumber-buttons-vertical":N}},B={provide:s.JU,useExisting:(0,e.Gpc)(()=>G),multi:!0};let G=(()=>{class Y{constructor(N,Q){this.el=N,this.cd=Q,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.showClear=!1,this.onInput=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onKeyDown=new e.vpe,this.onClear=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(N){N&&(this.focused=!1),this._disabled=N,this.timer&&this.clearTimer()}ngOnChanges(N){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(O=>!!N[O])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const N=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),Q=new Map(N.map((O,ee)=>[O,ee]));this._numeral=new RegExp(`[${N.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=O=>Q.get(O)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(N){return N.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const N=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${N.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const N=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=N.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const N=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${N.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const N=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${N.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const N=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=N.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}
1getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const N=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=N.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(N){if(null!=N){if("-"===N)return N;if(this.format){let O=new Intl.NumberFormat(this.locale,this.getOptions()).format(N);return this.prefix&&(O=this.prefix+O),this.suffix&&(O+=this.suffix),O}return N.toString()}return""}parseValue(N){let Q=N.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(Q){if("-"===Q)return Q;let O=+Q;return isNaN(O)?null:O}return null}repeat(N,Q,O){if(this.readonly)return;let ee=Q||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(N,40,O)},ee),this.spin(N,O)}spin(N,Q){let O=this.step*Q,ee=this.parseValue(this.input.nativeElement.value)||0,ue=this.validateValue(ee+O);this.maxlength&&this.maxlength<this.formatValue(ue).length||(this.updateInput(ue,null,"spin",null),this.updateModel(N,ue),this.handleOnInput(N,ee,ue))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(N){this.input.nativeElement.focus(),this.repeat(N,null,1),N.preventDefault()}onUpButtonMouseUp(){this.clearTimer()}onUpButtonMouseLeave(){this.clearTimer()}onUpButtonKeyDown(N){(32===N.keyCode||13===N.keyCode)&&this.repeat(N,null,1)}onUpButtonKeyUp(){this.clearTimer()}onDownButtonMouseDown(N){this.input.nativeElement.focus(),this.repeat(N,null,-1),N.preventDefault()}onDownButtonMouseUp(){this.clearTimer()}onDownButtonMouseLeave(){this.clearTimer()}onDownButtonKeyUp(){this.clearTimer()}onDownButtonKeyDown(N){(32===N.keyCode||13===N.keyCode)&&this.repeat(N,null,-1)}onUserInput(N){this.readonly||(this.isSpecialChar&&(N.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(N){if(this.readonly)return;if(this.lastValue=N.target.value,N.shiftKey||N.altKey)return void(this.isSpecialChar=!0);let Q=N.target.selectionStart,O=N.target.selectionEnd,ee=N.target.value,ue=null;switch(N.altKey&&N.preventDefault(),N.which){case 38:this.spin(N,1),N.preventDefault();break;case 40:this.spin(N,-1),N.preventDefault();break;case 37:this.isNumeralChar(ee.charAt(Q-1))||N.preventDefault();break;case 39:this.isNumeralChar(ee.charAt(Q))||N.preventDefault();break;case 13:ue=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(ue),this.input.nativeElement.setAttribute("aria-valuenow",ue),this.updateModel(N,ue);break;case 8:if(N.preventDefault(),Q===O){const _e=ee.charAt(Q-1),{decimalCharIndex:be,decimalCharIndexWithoutPrefix:Qe}=this.getDecimalCharIndexes(ee);if(this.isNumeralChar(_e)){const ze=this.getDecimalLength(ee);if(this._group.test(_e))this._group.lastIndex=0,ue=ee.slice(0,Q-2)+ee.slice(Q-1);else if(this._decimal.test(_e))this._decimal.lastIndex=0,ze?this.input.nativeElement.setSelectionRange(Q-1,Q-1):ue=ee.slice(0,Q-1)+ee.slice(Q);else if(be>0&&Q>be){const Oe=this.isDecimalMode()&&(this.minFractionDigits||0)<ze?"":"0";ue=ee.slice(0,Q-1)+Oe+ee.slice(Q)}else 1===Qe?(ue=ee.slice(0,Q-1)+"0"+ee.slice(Q),ue=this.parseValue(ue)>0?ue:""):ue=ee.slice(0,Q-1)+ee.slice(Q)}this.updateValue(N,ue,null,"delete-single")}else ue=this.deleteRange(ee,Q,O),this.updateValue(N,ue,null,"delete-range");break;case 46:if(N.preventDefault(),Q===O){const _e=ee.charAt(Q),{decimalCharIndex:be,decimalCharIndexWithoutPrefix:Qe}=this.getDecimalCharIndexes(ee);if(this.isNumeralChar(_e)){const ze=this.getDecimalLength(ee);if(this._group.test(_e))this._group.lastIndex=0,ue=ee.slice(0,Q)+ee.slice(Q+2);else if(this._decimal.test(_e))this._decimal.lastIndex=0,ze?this.input.nativeElement.setSelectionRange(Q+1,Q+1):ue=ee.slice(0,Q)+ee.slice(Q+1);else if(be>0&&Q>be){const Oe=this.isDecimalMode()&&(this.minFractionDigits||0)<ze?"":"0";ue=ee.slice(0,Q)+Oe+ee.slice(Q+1)}else 1===Qe?(ue=ee.slice(0,Q)+"0"+ee.slice(Q+1),ue=this.parseValue(ue)>0?ue:""):ue=ee.slice(0,Q)+ee.slice(Q+1)}
1this.updateValue(N,ue,null,"delete-back-single")}else ue=this.deleteRange(ee,Q,O),this.updateValue(N,ue,null,"delete-range")}this.onKeyDown.emit(N)}onInputKeyPress(N){if(this.readonly)return;let Q=N.which||N.keyCode,O=String.fromCharCode(Q);const ee=this.isDecimalSign(O),ue=this.isMinusSign(O);13!=Q&&N.preventDefault(),(48<=Q&&Q<=57||ue||ee)&&this.insert(N,O,{isDecimalSign:ee,isMinusSign:ue})}onPaste(N){if(!this.disabled&&!this.readonly){N.preventDefault();let Q=(N.clipboardData||window.clipboardData).getData("Text");if(Q){let O=this.parseValue(Q);null!=O&&this.insert(N,O.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(N){return!(!this._minusSign.test(N)&&"-"!==N||(this._minusSign.lastIndex=0,0))}isDecimalSign(N){return!!this._decimal.test(N)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(N){let Q=N.search(this._decimal);this._decimal.lastIndex=0;const ee=N.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:Q,decimalCharIndexWithoutPrefix:ee}}getCharIndexes(N){const Q=N.search(this._decimal);this._decimal.lastIndex=0;const O=N.search(this._minusSign);this._minusSign.lastIndex=0;const ee=N.search(this._suffix);this._suffix.lastIndex=0;const ue=N.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:Q,minusCharIndex:O,suffixCharIndex:ee,currencyCharIndex:ue}}insert(N,Q,O={isDecimalSign:!1,isMinusSign:!1}){const ee=Q.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==ee)return;let ue=this.input.nativeElement.selectionStart,_e=this.input.nativeElement.selectionEnd,be=this.input.nativeElement.value.trim();const{decimalCharIndex:Qe,minusCharIndex:ze,suffixCharIndex:Oe,currencyCharIndex:K}=this.getCharIndexes(be);let X;if(O.isMinusSign)0===ue&&(X=be,(-1===ze||0!==_e)&&(X=this.insertText(be,Q,0,_e)),this.updateValue(N,X,Q,"insert"));else if(O.isDecimalSign)Qe>0&&ue===Qe?this.updateValue(N,be,Q,"insert"):(Qe>ue&&Qe<_e||-1===Qe&&this.maxFractionDigits)&&(X=this.insertText(be,Q,ue,_e),this.updateValue(N,X,Q,"insert"));else{const V=this.numberFormat.resolvedOptions().maximumFractionDigits,q=ue!==_e?"range-insert":"insert";if(Qe>0&&ue>Qe){if(ue+Q.length-(Qe+1)<=V){const Ee=K>=ue?K-1:Oe>=ue?Oe:be.length;X=be.slice(0,ue)+Q+be.slice(ue+Q.length,Ee)+be.slice(Ee),this.updateValue(N,X,Q,q)}}else X=this.insertText(be,Q,ue,_e),this.updateValue(N,X,Q,q)}}insertText(N,Q,O,ee){if(2===("."===Q?Q:Q.split(".")).length){const _e=N.slice(O,ee).search(this._decimal);return this._decimal.lastIndex=0,_e>0?N.slice(0,O)+this.formatValue(Q)+N.slice(ee):N||this.formatValue(Q)}return ee-O===N.length?this.formatValue(Q):0===O?Q+N.slice(ee):ee===N.length?N.slice(0,O)+Q:N.slice(0,O)+Q+N.slice(ee)}deleteRange(N,Q,O){let ee;return ee=O-Q===N.length?"":0===Q?N.slice(O):O===N.length?N.slice(0,Q):N.slice(0,Q)+N.slice(O),ee}initCursor(){let N=this.input.nativeElement.selectionStart,Q=this.input.nativeElement.value,O=Q.length,ee=null,ue=(this.prefixChar||"").length;Q=Q.replace(this._prefix,""),N-=ue;let _e=Q.charAt(N);if(this.isNumeralChar(_e))return N+ue;let be=N-1;for(;be>=0;){if(_e=Q.charAt(be),this.isNumeralChar(_e)){ee=be+ue;break}be--}if(null!==ee)this.input.nativeElement.setSelectionRange(ee+1,ee+1);else{for(be=N;be<O;){if(_e=Q.charAt(be),this.isNumeralChar(_e)){ee=be+ue;break}be++}null!==ee&&this.input.nativeElement.setSelectionRange(ee,ee)}return ee||0}onInputClick(){!this.readonly&&this.input.nativeElement.value!==x.p.getSelection()&&this.initCursor()}isNumeralChar(N){return!(1!==N.length||!(this._numeral.test(N)||this._decimal.test(N)||this._group.test(N)||this._minusSign.test(N))||(this.resetRegex(),0))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(N,Q,O,ee){let ue=this.input.nativeElement.value,_e=null;null!=Q&&(_e=this.parseValue(Q),_e=_e||this.allowEmpty?_e:0,this.updateInput(_e,O,ee,Q),this.handleOnInput(N,ue,_e))}handleOnInput(N,Q,O){this.isValueChanged(Q,O)&&this.onInput.emit({originalEvent:N,value:O,formattedValue:Q})}isValueChanged(N,Q){return null===Q&&null!==N||null!=Q&&Q!==("string"==typeof N?this.parseValue(N):N)}validateValue(N){return"-"===N||null==N?null:null!=this.min&&N<this.min?this.min:null!=this.max&&N>this.max?this.max:N}updateInput(N,Q,O,ee){Q=Q||"";let ue=this.input.nativeElement.value,_e=this.formatValue(N),be=ue.length;if(_e!==ee&&(_e=this.concatValues(_e,ee)),0===be){this.input.nativeElement.value=_e,this.input.nativeElement.setSelectionRange(0,0);
1const ze=this.initCursor()+Q.length;this.input.nativeElement.setSelectionRange(ze,ze)}else{let Qe=this.input.nativeElement.selectionStart,ze=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<_e.length)return;this.input.nativeElement.value=_e;let Oe=_e.length;if("range-insert"===O){const K=this.parseValue((ue||"").slice(0,Qe)),V=(null!==K?K.toString():"").split("").join(`(${this.groupChar})?`),q=new RegExp(V,"g");q.test(_e);const Ee=Q.split("").join(`(${this.groupChar})?`),ye=new RegExp(Ee,"g");ye.test(_e.slice(q.lastIndex)),ze=q.lastIndex+ye.lastIndex,this.input.nativeElement.setSelectionRange(ze,ze)}else if(Oe===be)"insert"===O||"delete-back-single"===O?this.input.nativeElement.setSelectionRange(ze+1,ze+1):"delete-single"===O?this.input.nativeElement.setSelectionRange(ze-1,ze-1):("delete-range"===O||"spin"===O)&&this.input.nativeElement.setSelectionRange(ze,ze);else if("delete-back-single"===O){let K=ue.charAt(ze-1),X=ue.charAt(ze),V=be-Oe,q=this._group.test(X);q&&1===V?ze+=1:!q&&this.isNumeralChar(K)&&(ze+=-1*V+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(ze,ze)}else if("-"===ue&&"insert"===O){this.input.nativeElement.setSelectionRange(0,0);const X=this.initCursor()+Q.length+1;this.input.nativeElement.setSelectionRange(X,X)}else ze+=Oe-be,this.input.nativeElement.setSelectionRange(ze,ze)}this.input.nativeElement.setAttribute("aria-valuenow",N)}concatValues(N,Q){if(N&&Q){let O=Q.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?N.replace(this.suffixChar,"").split(this._decimal)[0]+Q.replace(this.suffixChar,"").slice(O)+this.suffixChar:-1!==O?N.split(this._decimal)[0]+Q.slice(O):N}return N}getDecimalLength(N){if(N){const Q=N.split(this._decimal);if(2===Q.length)return Q[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(N){this.focused=!0,this.onFocus.emit(N)}onInputBlur(N){this.focused=!1;let Q=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(Q),this.input.nativeElement.setAttribute("aria-valuenow",Q),this.updateModel(N,Q),this.onBlur.emit(N)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(N,Q){this.value!==Q&&(this.value=Q,this.onModelChange(Q)),this.onModelTouched()}writeValue(N){this.value=N,this.cd.markForCheck()}registerOnChange(N){this.onModelChange=N}registerOnTouched(N){this.onModelTouched=N}setDisabledState(N){this.disabled=N,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return Y.\u0275fac=function(N){return new(N||Y)(e.Y36(e.SBq),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["p-inputNumber"]],viewQuery:function(N,Q){if(1&N&&e.Gf(w,5),2&N){let O;e.iGM(O=e.CRH())&&(Q.input=O.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(N,Q){2&N&&e.ekj("p-inputwrapper-filled",Q.filled)("p-inputwrapper-focus",Q.focused)("p-inputnumber-clearable",Q.showClear&&"vertical"!=Q.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[e._Bn([B]),e.TTD],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","tabindex","-1",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-clear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(N,Q){1&N&&(e.TgZ(0,"span",0)(1,"input",1,2),e.NdJ("input",function(ee){return Q.onUserInput(ee)})("keydown",function(ee){return Q.onInputKeyDown(ee)})("keypress",function(ee){return Q.onInputKeyPress(ee)})("paste",function(ee){return Q.onPaste(ee)})("click",function(){return Q.onInputClick()})("focus",function(ee){return Q.onInputFocus(ee)})("blur",function(ee){return Q.onInputBlur(ee)}
1),e.qZA(),e.YNc(3,I,1,0,"i",3),e.YNc(4,k,3,12,"span",4),e.YNc(5,z,1,6,"button",5),e.YNc(6,F,1,6,"button",5),e.qZA()),2&N&&(e.Tol(Q.styleClass),e.Q6J("ngClass",e.kEZ(28,ne,Q.showButtons&&"stacked"===Q.buttonLayout,Q.showButtons&&"horizontal"===Q.buttonLayout,Q.showButtons&&"vertical"===Q.buttonLayout))("ngStyle",Q.style),e.xp6(1),e.Tol(Q.inputStyleClass),e.Q6J("ngClass","p-inputnumber-input")("ngStyle",Q.inputStyle)("value",Q.formattedValue())("disabled",Q.disabled)("readonly",Q.readonly),e.uIk("placeholder",Q.placeholder)("title",Q.title)("id",Q.inputId)("size",Q.size)("name",Q.name)("autocomplete",Q.autocomplete)("maxlength",Q.maxlength)("tabindex",Q.tabindex)("aria-label",Q.ariaLabel)("aria-required",Q.ariaRequired)("required",Q.required)("min",Q.min)("max",Q.max),e.xp6(2),e.Q6J("ngIf","vertical"!=Q.buttonLayout&&Q.showClear&&Q.value),e.xp6(1),e.Q6J("ngIf",Q.showButtons&&"stacked"===Q.buttonLayout),e.xp6(1),e.Q6J("ngIf",Q.showButtons&&"stacked"!==Q.buttonLayout),e.xp6(1),e.Q6J("ngIf",Q.showButtons&&"stacked"!==Q.buttonLayout))},dependencies:[t.mk,t.O5,t.PC,M.o,D.Hq],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(N){return new(N||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[t.ez,M.j,D.hJ]}),Y})()},7913:(o,u,a)=>{"use strict";a.d(u,{Iu:()=>w,Ql:()=>M});var t=a(4650),e=a(6895),s=a(4006);const D=function(I,P,S){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":I,"p-disabled":P,"p-focus":S}},x={provide:s.JU,useExisting:(0,t.Gpc)(()=>M),multi:!0};let M=(()=>{class I{constructor(S){this.cd=S,this.trueValue=!0,this.falseValue=!1,this.onChange=new t.vpe,this.modelValue=!1,this.focused=!1,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(S,k){!this.disabled&&!this.readonly&&(S.preventDefault(),this.toggle(S),k.focus())}onInputChange(S){this.readonly||this.updateModel(S,S.target.checked)}toggle(S){this.updateModel(S,!this.checked())}updateModel(S,k){this.modelValue=k?this.trueValue:this.falseValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:S,checked:this.modelValue})}onFocus(S){this.focused=!0}onBlur(S){this.focused=!1,this.onModelTouched()}writeValue(S){this.modelValue=S,this.cd.markForCheck()}registerOnChange(S){this.onModelChange=S}registerOnTouched(S){this.onModelTouched=S}setDisabledState(S){this.disabled=S,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}}return I.\u0275fac=function(S){return new(S||I)(t.Y36(t.sBO))},I.\u0275cmp=t.Xpm({type:I,selectors:[["p-inputSwitch"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[t._Bn([x])],decls:5,vars:16,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","change","focus","blur"],["cb",""],[1,"p-inputswitch-slider"]],template:function(S,k){if(1&S){const z=t.EpF();
1t.TgZ(0,"div",0),t.NdJ("click",function(ne){t.CHM(z);const B=t.MAs(3);return t.KtG(k.onClick(ne,B))}),t.TgZ(1,"div",1)(2,"input",2,3),t.NdJ("change",function(ne){return k.onInputChange(ne)})("focus",function(ne){return k.onFocus(ne)})("blur",function(ne){return k.onBlur(ne)}),t.qZA()(),t._UZ(4,"span",4),t.qZA()}2&S&&(t.Tol(k.styleClass),t.Q6J("ngClass",t.kEZ(12,D,k.checked(),k.disabled,k.focused))("ngStyle",k.style),t.xp6(2),t.Q6J("checked",k.checked())("disabled",k.disabled),t.uIk("aria-label",k.ariaLabel)("id",k.inputId)("name",k.name)("tabindex",k.tabindex)("aria-checked",k.checked())("aria-labelledby",k.ariaLabelledBy))},dependencies:[e.mk,e.PC],styles:['.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}\n'],encapsulation:2,changeDetection:0}),I})(),w=(()=>{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[e.ez]}),I})()},1740:(o,u,a)=>{"use strict";a.d(u,{j:()=>x,o:()=>D});var t=a(4650),e=a(6895),s=a(4006);let D=(()=>{class M{constructor(I,P,S){this.el=I,this.ngModel=P,this.cd=S}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(I){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return M.\u0275fac=function(I){return new(I||M)(t.Y36(t.SBq),t.Y36(s.On,8),t.Y36(t.sBO))},M.\u0275dir=t.lG2({type:M,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(I,P){1&I&&t.NdJ("input",function(k){return P.onInput(k)}),2&I&&t.ekj("p-filled",P.filled)}}),M})(),x=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[e.ez]}),M})()},3054:(o,u,a)=>{"use strict";a.d(u,{A:()=>x,g:()=>D});var t=a(4650),e=a(6895),s=a(4006);let D=(()=>{class M{constructor(I,P,S,k){this.el=I,this.ngModel=P,this.control=S,this.cd=k,this.onResize=new t.vpe}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(I){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}onFocus(I){this.autoResize&&this.resize(I)}onBlur(I){this.autoResize&&this.resize(I)}resize(I){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(I||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}}return M.\u0275fac=function(I){return new(I||M)(t.Y36(t.SBq),t.Y36(s.On,8),t.Y36(s.a5,8),t.Y36(t.sBO))},M.\u0275dir=t.lG2({type:M,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(I,P){1&I&&t.NdJ("input",function(k){return P.onInput(k)})("focus",function(k){return P.onFocus(k)})("blur",function(k){return P.onBlur(k)}),2&I&&t.ekj("p-filled",P.filled)("p-inputtextarea-resizable",P.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}}),M})(),x=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[e.ez]}),M})()},8377:(o,u,a)=>{"use strict";a.d(u,{Fr:()=>P,kK:()=>S});var t=a(4650),e=a(6895),s=a(9592);const x={provide:a(4006).Cf,useExisting:(0,t.Gpc)(()=>P),multi:!0},M={pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},I={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};let P=(()=>{class k{constructor(F){this.el=F,this.ngModelChange=new t.vpe,this.isAndroid=s.p.isAndroid()}get pattern(){return this._pattern}set pattern(F){this._pattern=F,this.regex=M[this._pattern]||this._pattern}isNavKeyPress(F){let ne=F.keyCode;return ne=s.p.getBrowser().safari&&I[ne]||ne,ne>=33&&ne<=40||13==ne||9==ne||27==ne}isSpecialKey(F){let ne=F.keyCode||F.charCode;return 9==ne||13==ne||27==ne||16==ne||17==ne||ne>=18&&ne<=20||s.p.getBrowser().opera&&!F.shiftKey&&(8==ne||ne>=33&&ne<=35||ne>=36&&ne<=39||ne>=44&&ne<=45)}getKey(F){let ne=F.keyCode||F.charCode;return s.p.getBrowser().safari&&I[ne]||ne}getCharCode(F){return F.charCode||F.keyCode||F.which}findDelta(F,ne){let B="";for(let G=0;G<F.length;G++)F.substr(0,G)+F.substr(G+F.length-ne.length)===ne&&(B=F.substr(G,F.length-ne.length));return B}isValidChar(F){return this.regex.test(F)}isValidString(F){for(let ne=0;ne<F.length;ne++)if(!this.isValidChar(F.substr(ne,1)))return!1;return!0}
1onInput(F){if(this.isAndroid&&!this.pValidateOnly){let ne=this.el.nativeElement.value,B=this.lastValue||"",G=this.findDelta(ne,B),W=this.findDelta(B,ne);G.length>1||!G&&!W?this.isValidString(ne)||(this.el.nativeElement.value=B,this.ngModelChange.emit(B)):W||this.isValidChar(G)||(this.el.nativeElement.value=B,this.ngModelChange.emit(B)),ne=this.el.nativeElement.value,this.isValidString(ne)&&(this.lastValue=ne)}}onKeyPress(F){if(this.isAndroid||this.pValidateOnly)return;let ne=s.p.getBrowser(),B=this.getKey(F);if(ne.mozilla&&(F.ctrlKey||F.altKey))return;if(17==B||18==B)return;let G=this.getCharCode(F),W=String.fromCharCode(G),Y=!0;!ne.mozilla&&(this.isSpecialKey(F)||!W)||(Y=this.regex.test(W),Y||F.preventDefault())}onPaste(F){const ne=F.clipboardData||window.clipboardData.getData("text");if(ne){const B=ne.getData("text");for(let G of B.toString())if(!this.regex.test(G))return void F.preventDefault()}}validate(F){if(this.pValidateOnly){let ne=this.el.nativeElement.value;if(ne&&!this.regex.test(ne))return{validatePattern:!1}}}}return k.\u0275fac=function(F){return new(F||k)(t.Y36(t.SBq))},k.\u0275dir=t.lG2({type:k,selectors:[["","pKeyFilter",""]],hostAttrs:[1,"p-element"],hostBindings:function(F,ne){1&F&&t.NdJ("input",function(G){return ne.onInput(G)})("keypress",function(G){return ne.onKeyPress(G)})("paste",function(G){return ne.onPaste(G)})},inputs:{pValidateOnly:"pValidateOnly",pattern:["pKeyFilter","pattern"]},outputs:{ngModelChange:"ngModelChange"},features:[t._Bn([x])]}),k})(),S=(()=>{class k{}return k.\u0275fac=function(F){return new(F||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[e.ez]}),k})()},1327:(o,u,a)=>{"use strict";a.d(u,{$9:()=>tn,v2:()=>$t});var t=a(4650),e=a(7340),s=a(6895),D=a(9592),x=a(982),M=a(2510),w=a(1795),I=a(3608),P=a(805);const S=["pMenuItemContent",""];function k(yt,bt){if(1&yt&&t._UZ(0,"span",7),2&yt){const Ye=t.oxw(2);t.Tol(Ye.item.iconClass),t.Q6J("ngClass",Ye.item.icon)("ngStyle",Ye.item.iconStyle)}}function z(yt,bt){if(1&yt&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&yt){const Ye=t.oxw(2);t.xp6(1),t.Oqu(Ye.item.label)}}function F(yt,bt){if(1&yt&&t._UZ(0,"span",9),2&yt){const Ye=t.oxw(2);t.Q6J("innerHTML",Ye.item.label,t.oJD)}}function ne(yt,bt){if(1&yt&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&yt){const Ye=t.oxw(2);t.Q6J("ngClass",Ye.item.badgeStyleClass),t.xp6(1),t.Oqu(Ye.item.badge)}}const B=function(yt){return{"p-disabled":yt}};function G(yt,bt){if(1&yt){const Ye=t.EpF();t.TgZ(0,"a",2),t.NdJ("keydown",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.onItemKeyDown(xn))})("click",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.menu.itemClick(xn,pn.item))}),t.YNc(1,k,1,4,"span",3),t.YNc(2,z,2,1,"span",4),t.YNc(3,F,1,1,"ng-template",null,5,t.W1O),t.YNc(5,ne,2,2,"span",6),t.qZA()}if(2&yt){const Ye=t.MAs(4),Nt=t.oxw();t.Q6J("target",Nt.item.target)("ngClass",t.VKq(12,B,Nt.item.disabled))("target",Nt.item.target),t.uIk("href",Nt.item.url||null,t.LSH)("tabindex",Nt.item.disabled?null:"0")("data-automationid",Nt.item.automationId)("title",Nt.item.title)("id",Nt.item.id),t.xp6(1),t.Q6J("ngIf",Nt.item.icon),t.xp6(1),t.Q6J("ngIf",!1!==Nt.item.escape)("ngIfElse",Ye),t.xp6(3),t.Q6J("ngIf",Nt.item.badge)}}function W(yt,bt){if(1&yt&&t._UZ(0,"span",14),2&yt){const Ye=t.oxw(2);t.Q6J("ngClass",Ye.item.icon)}}function Y(yt,bt){if(1&yt&&(t.TgZ(0,"span",8),t._uU(1),t.qZA()),2&yt){const Ye=t.oxw(2);t.xp6(1),t.Oqu(Ye.item.label)}}function fe(yt,bt){if(1&yt&&t._UZ(0,"span",9),2&yt){const Ye=t.oxw(2);t.Q6J("innerHTML",Ye.item.label,t.oJD)}}function N(yt,bt){if(1&yt&&(t.TgZ(0,"span",10),t._uU(1),t.qZA()),2&yt){const Ye=t.oxw(2);t.Q6J("ngClass",Ye.item.badgeStyleClass),t.xp6(1),t.Oqu(Ye.item.badge)}}const Q=function(){return{exact:!1}};function O(yt,bt){if(1&yt){const Ye=t.EpF();t.TgZ(0,"a",11),t.NdJ("keydown",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.onItemKeyDown(xn))})("click",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.menu.itemClick(xn,pn.item))}),t.YNc(1,W,1,1,"span",12),t.YNc(2,Y,2,1,"span",4),t.YNc(3,fe,1,1,"ng-template",null,13,t.W1O),t.YNc(5,N,2,2,"span",6),t.qZA()}if(2&yt){const Ye=t.MAs(4),Nt=t.oxw();t.Q6J("routerLink",Nt.item.routerLink)("queryParams",Nt.item.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",Nt.item.routerLinkActiveOptions||t.DdM(20,Q))("target",Nt.item.target)("ngClass",t.VKq(21,B,Nt.item.disabled))("fragment",Nt.item.fragment)("queryParamsHandling",Nt.item.queryParamsHandling)("preserveFragment",Nt.item.preserveFragment)("skipLocationChange",Nt.item.skipLocationChange)("replaceUrl",Nt.item.replaceUrl)("state",Nt.item.state),t.uIk("data-automationid",Nt.item.automationId)("id",Nt.item.id)("tabindex",Nt.item.disabled?null:"0")("title",Nt.item.title),t.xp6(1),t.Q6J("ngIf",Nt.item.icon),t.xp6(1),t.Q6J("ngIf",!1!==Nt.item.escape)("ngIfElse",Ye),t.xp6(3),t.Q6J("ngIf",Nt.item.badge)}}const ee=["container"],ue=function(yt){return{"p-hidden":yt}};function _e(yt,bt){if(1&yt&&t._UZ(0,"li",8),2&yt){const Ye=t.oxw().$implicit;t.Q6J("ngClass",t.VKq(1,ue,!1===Ye.visible))}}function be(yt,bt){if(1&yt&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&yt){const Ye=t.oxw(2).$implicit;t.xp6(1),t.Oqu(Ye.label)}}function Qe(yt,bt){if(1&yt&&t._UZ(0,"span",12),2&yt){const Ye=t.oxw(2).$implicit;t.Q6J("innerHTML",Ye.label,t.oJD)}}const ze=function(yt,bt){return{"p-hidden":yt,flex:bt}};function Oe(yt,bt){if(1&yt&&(t.TgZ(0,"li",9),t.YNc(1,be,2,1,"span",10),t.YNc(2,Qe,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&yt){const Ye=t.MAs(3),Nt=t.oxw().$implicit;t.Q6J("ngClass",t.WLB(5,ze,!1===Nt.visible,Nt.visible))("tooltipOptions",Nt.tooltipOptions),t.uIk("data-automationid",Nt.automationId),t.xp6(1),t.Q6J("ngIf",!1!==Nt.escape)("ngIfElse",Ye)}}function K(yt,bt){if(1&yt&&t._UZ(0,"li",8),2&yt){const Ye=t.oxw().$implicit,Nt=t.oxw().$implicit;t.Q6J("ngClass",t.VKq(1,ue,!1===Ye.visible||!1===Nt.visible))}}function X(yt,bt){if(1&yt&&t._UZ(0,"li",14),2&yt){const Ye=t.oxw().$implicit,Nt=t.oxw().$implicit;t.Tol(Ye.styleClass),t.Q6J("pMenuItemContent",Ye)("ngClass",t.VKq(6,ue,!1===Ye.visible||!1===Nt.visible))("ngStyle",Ye.style)("tooltipOptions",Ye.tooltipOptions)}}function V(yt,bt){if(1&yt&&(t.YNc(0,K,1,3,"li",6),t.YNc(1,X,1,8,"li",13)),2&yt){const Ye=bt.$implicit;t.Q6J("ngIf",Ye.separator),t.xp6(1),t.Q6J("ngIf",!Ye.separator)}}function q(yt,bt){if(1&yt&&(t.YNc(0,_e,1,3,"li",6),t.YNc(1,Oe,4,8,"li",7),t.YNc(2,V,2,2,"ng-template",5)),2&yt){const Ye=bt.$implicit;t.Q6J("ngIf",Ye.separator),t.xp6(1),t.Q6J("ngIf",!Ye.separator),t.xp6(1),t.Q6J("ngForOf",Ye.items)}}function Ee(yt,bt){if(1&yt&&t.YNc(0,q,3,3,"ng-template",5),2&yt){const Ye=t.oxw(2);t.Q6J("ngForOf",Ye.model)}}function ye(yt,bt){if(1&yt&&t._UZ(0,"li",8),2&yt){const Ye=t.oxw().$implicit;t.Q6J("ngClass",t.VKq(1,ue,!1===Ye.visible))}}function nt(yt,bt){if(1&yt&&t._UZ(0,"li",14),2&yt){const Ye=t.oxw().$implicit;t.Tol(Ye.styleClass),t.Q6J("pMenuItemContent",Ye)("ngClass",t.VKq(6,ue,!1===Ye.visible))("ngStyle",Ye.style)("tooltipOptions",Ye.tooltipOptions)}}function at(yt,bt){if(1&yt&&(t.YNc(0,ye,1,3,"li",6),t.YNc(1,nt,1,8,"li",13)),2&yt){const Ye=bt.$implicit;t.Q6J("ngIf",Ye.separator),t.xp6(1),t.Q6J("ngIf",!Ye.separator)}}function me(yt,bt){if(1&yt&&t.YNc(0,at,2,2,"ng-template",5),2&yt){const Ye=t.oxw(2);t.Q6J("ngForOf",Ye.model)}}const ve=function(yt){return{"p-menu p-component":!0,"p-menu-overlay":yt}},je=function(yt,bt){return{showTransitionParams:yt,hideTransitionParams:bt}},Xe=function(yt){return{value:"visible",params:yt}};function rt(yt,bt){if(1&yt){const Ye=t.EpF();t.TgZ(0,"div",1,2),t.NdJ("click",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.onOverlayClick(xn))})("@overlayAnimation.start",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.onOverlayAnimationStart(xn))})("@overlayAnimation.done",function(xn){t.CHM(Ye);const pn=t.oxw();return t.KtG(pn.onOverlayAnimationEnd(xn))}),t.TgZ(2,"ul",3),t.YNc(3,Ee,1,1,null,4),t.YNc(4,me,1,1,null,4),t.qZA()()}if(2&yt){const Ye=t.oxw();t.Tol(Ye.styleClass),t.Q6J("ngClass",t.VKq(8,ve,Ye.popup))("ngStyle",Ye.style)("@overlayAnimation",t.VKq(13,Xe,t.WLB(10,je,Ye.showTransitionOptions,Ye.hideTransitionOptions)))("@.disabled",!0!==Ye.popup),t.xp6(3),t.Q6J("ngIf",Ye.hasSubMenu()),t.xp6(1),t.Q6J("ngIf",!Ye.hasSubMenu())}}let mt=(()=>{class yt{constructor(Ye){this.menu=Ye}onItemKeyDown(Ye){let Nt=Ye.currentTarget.parentElement;switch(Ye.code){case"ArrowDown":var xn=this.findNextItem(Nt);xn&&xn.children[0].focus(),Ye.preventDefault();break;case"ArrowUp":var pn=this.findPrevItem(Nt);pn&&pn.children[0].focus(),Ye.preventDefault();break;case"Space":case"Enter":Nt&&!D.p.hasClass(Nt,"p-disabled")&&Nt.children[0].click(),Ye.preventDefault()}}findNextItem(Ye){let Nt=Ye.nextElementSibling;return Nt?D.p.hasClass(Nt,"p-disabled")||!D.p.hasClass(Nt,"p-menuitem")?this.findNextItem(Nt):Nt:null}findPrevItem(Ye){let Nt=Ye.previousElementSibling;return Nt?D.p.hasClass(Nt,"p-disabled")||!D.p.hasClass(Nt,"p-menuitem")?this.findPrevItem(Nt):Nt:null}}return yt.\u0275fac=function(Ye){return new(Ye||yt)(t.Y36((0,t.Gpc)(()=>$t)))},yt.\u0275cmp=t.Xpm({type:yt,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:["pMenuItemContent","item"]},attrs:S,decls:2,vars:2,consts:[["class","p-menuitem-link","role","menuitem",3,"target","ngClass","keydown","click",4,"ngIf"],["class","p-menuitem-link","role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click",4,"ngIf"],["role","menuitem",1,"p-menuitem-link",3,"target","ngClass","keydown","click"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],["role","menuitem","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","keydown","click"],["class","p-menuitem-icon",3,"ngClass",4,"ngIf"],["htmlRouteLabel",""],[1,"p-menuitem-icon",3,"ngClass"]],template:function(Ye,Nt){1&Ye&&(t.YNc(0,G,6,14,"a",0),t.YNc(1,O,6,23,"a",1)),2&Ye&&(t.Q6J("ngIf",!Nt.
1item.routerLink),t.xp6(1),t.Q6J("ngIf",Nt.item.routerLink))},dependencies:[s.mk,s.O5,s.PC,M.rH,M.Od,w.H],encapsulation:2}),yt})(),$t=(()=>{class yt{constructor(Ye,Nt,xn,pn,_n){this.el=Ye,this.renderer=Nt,this.cd=xn,this.config=pn,this.overlayService=_n,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new t.vpe,this.onHide=new t.vpe}toggle(Ye){this.visible?this.hide():this.show(Ye),this.preventDocumentDefault=!0}show(Ye){this.target=Ye.currentTarget,this.relativeAlign=Ye.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(Ye){switch(Ye.toState){case"visible":this.popup&&(this.container=Ye.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverlayAnimationEnd(Ye){"void"===Ye.toState&&this.autoZIndex&&x.P9.clear(Ye.element)}alignOverlay(){this.relativeAlign?D.p.relativePosition(this.container,this.target):D.p.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):D.p.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&x.P9.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!D.p.isTouchDevice()&&this.hide()}itemClick(Ye,Nt){Nt.disabled?Ye.preventDefault():(!Nt.url&&!Nt.routerLink&&Ye.preventDefault(),Nt.command&&Nt.command({originalEvent:Ye,item:Nt}),this.popup&&this.hide())}onOverlayClick(Ye){this.popup&&this.overlayService.add({originalEvent:Ye,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.preventDocumentDefault||this.hide(),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new D.V(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&x.P9.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide())}hasSubMenu(){if(this.model)for(var Ye of this.model)if(Ye.items)return!0;return!1}}return yt.\u0275fac=function(Ye){return new(Ye||yt)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(P.b4),t.Y36(P.F0))},yt.\u0275cmp=t.Xpm({type:yt,selectors:[["p-menu"]],viewQuery:function(Ye,Nt){if(1&Ye&&t.Gf(ee,5),2&Ye){let xn;t.iGM(xn=t.CRH())&&(Nt.containerViewChild=xn.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:"popup",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"ngClass","ngStyle","click"],["container",""],["role","menu",1,"p-menu-list","p-reset"],[4,"ngIf"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],["htmlSubmenuLabel",""],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","none",3,"pMenuItemContent","ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["pTooltip","","role","none",1,"p-menuitem",3,"pMenuItemContent","ngClass","ngStyle","tooltipOptions"]],template:function(Ye,Nt){1&Ye&&t.YNc(0,rt,5,15,"div",0),2&Ye&&t.Q6J("ngIf",!Nt.popup||Nt.visible)},dependencies:[s.mk,s.sg,s.O5,s.PC,I.u,mt],styles:[".p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-submenu-header{align-items:center}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menu .p-menuitem-text{line-height:1}\n"],encapsulation:2,data:{animation:[(0,e.X$)("overlayAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0,transform:"scaleY(0.8)"}),(0,e.jt)("{{showTransitionParams}}")]),(0,e.eR)(":leave",[(0,e.jt)("{{hideTransitionParams}}",(0,e.oB)({opacity:0}
1))])])]},changeDetection:0}),yt})(),tn=(()=>{class yt{}return yt.\u0275fac=function(Ye){return new(Ye||yt)},yt.\u0275mod=t.oAB({type:yt}),yt.\u0275inj=t.cJS({imports:[s.ez,M.Bz,w.T,I.z,M.Bz,I.z]}),yt})()},7772:(o,u,a)=>{"use strict";a.d(u,{$:()=>O,V:()=>Q});var t=a(4650),e=a(6895),s=a(7340),D=a(805),x=a(5963),M=a(1795);function w(ee,ue){if(1&ee&&t._UZ(0,"span",11),2&ee){const _e=t.oxw(2).$implicit;t.Q6J("innerHTML",_e.summary,t.oJD)}}function I(ee,ue){if(1&ee&&t._UZ(0,"span",12),2&ee){const _e=t.oxw(2).$implicit;t.Q6J("innerHTML",_e.detail,t.oJD)}}function P(ee,ue){if(1&ee&&(t.ynx(0),t.YNc(1,w,1,1,"span",9),t.YNc(2,I,1,1,"span",10),t.BQk()),2&ee){const _e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",_e.summary),t.xp6(1),t.Q6J("ngIf",_e.detail)}}function S(ee,ue){if(1&ee&&(t.TgZ(0,"span",15),t._uU(1),t.qZA()),2&ee){const _e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(_e.summary)}}function k(ee,ue){if(1&ee&&(t.TgZ(0,"span",16),t._uU(1),t.qZA()),2&ee){const _e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(_e.detail)}}function z(ee,ue){if(1&ee&&(t.YNc(0,S,2,1,"span",13),t.YNc(1,k,2,1,"span",14)),2&ee){const _e=t.oxw().$implicit;t.Q6J("ngIf",_e.summary),t.xp6(1),t.Q6J("ngIf",_e.detail)}}function F(ee,ue){if(1&ee){const _e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(_e);const Qe=t.oxw().index,ze=t.oxw(2);return t.KtG(ze.removeMessage(Qe))}),t._UZ(1,"i",18),t.qZA()}}const ne=function(ee,ue){return{showTransitionParams:ee,hideTransitionParams:ue}},B=function(ee){return{value:"visible",params:ee}},G=function(ee,ue,_e,be){return{"pi-info-circle":ee,"pi-check":ue,"pi-exclamation-triangle":_e,"pi-times-circle":be}};function W(ee,ue){if(1&ee&&(t.TgZ(0,"div",4)(1,"div",5),t._UZ(2,"span",6),t.YNc(3,P,3,2,"ng-container",1),t.YNc(4,z,2,2,"ng-template",null,7,t.W1O),t.YNc(6,F,2,0,"button",8),t.qZA()()),2&ee){const _e=ue.$implicit,be=t.MAs(5),Qe=t.oxw(2);t.Tol("p-message p-message-"+_e.severity),t.Q6J("@messageAnimation",t.VKq(12,B,t.WLB(9,ne,Qe.showTransitionOptions,Qe.hideTransitionOptions))),t.xp6(2),t.Tol("p-message-icon pi"+(_e.icon?" "+_e.icon:"")),t.Q6J("ngClass",t.l5B(14,G,"info"===_e.severity,"success"===_e.severity,"warn"===_e.severity,"error"===_e.severity)
1),t.xp6(1),t.Q6J("ngIf",!Qe.escape)("ngIfElse",be),t.xp6(3),t.Q6J("ngIf",Qe.closable)}}function Y(ee,ue){if(1&ee&&(t.ynx(0),t.YNc(1,W,7,19,"div",3),t.BQk()),2&ee){const _e=t.oxw();t.xp6(1),t.Q6J("ngForOf",_e.messages)}}function fe(ee,ue){1&ee&&t.GkF(0)}function N(ee,ue){if(1&ee&&(t.TgZ(0,"div",19)(1,"div",5),t.YNc(2,fe,1,0,"ng-container",20),t.qZA()()),2&ee){const _e=t.oxw();t.Q6J("ngClass","p-message p-message-"+_e.severity),t.xp6(2),t.Q6J("ngTemplateOutlet",_e.contentTemplate)}}let Q=(()=>{class ee{constructor(_e,be,Qe){this.messageService=_e,this.el=be,this.cd=Qe,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new t.vpe,this.timerSubscriptions=[]}set value(_e){this.messages=_e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(_e=>{_e.getType(),this.contentTemplate=_e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(_e=>{if(_e){_e instanceof Array||(_e=[_e]);const be=_e.filter(Qe=>this.key===Qe.key);this.messages=this.messages?[...this.messages,...be]:[...be],this.startMessageLifes(be),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(_e=>{_e?this.key===_e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let _e=this.el.nativeElement.parentElement;return!(!_e||!_e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(_e){this.messages=this.messages.filter((be,Qe)=>Qe!==_e),this.valueChange.emit(this.messages)}get icon(){const _e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(_e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(_e=>_e.unsubscribe())}startMessageLifes(_e){_e?.forEach(be=>be.life&&this.startMessageLife(be))}startMessageLife(_e){const be=(0,x.H)(_e.life).subscribe(()=>{this.messages=this.messages?.filter(Qe=>Qe!==_e),this.timerSubscriptions=this.timerSubscriptions?.filter(Qe=>Qe!==be),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(be)}}return ee.\u0275fac=function(_e){return new(_e||ee)(t.Y36(D.ez,8),t.Y36(t.SBq),t.Y36(t.sBO))},ee.\u0275cmp=t.Xpm({type:ee,selectors:[["p-messages"]],contentQueries:function(_e,be,Qe){if(1&_e&&t.Suo(Qe,D.jx,4),2&_e){let ze;t.iGM(ze=t.CRH())&&(be.templates=ze)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(_e,be){if(1&_e&&(t.TgZ(0,"div",0),t.YNc(1,Y,2,1,"ng-container",1),t.YNc(2,N,3,2,"ng-template",null,2,t.W1O),t.qZA()),2&_e){const Qe=t.MAs(3);
1t.Tol(be.styleClass),t.Q6J("ngStyle",be.style),t.xp6(1),t.Q6J("ngIf",!be.contentTemplate)("ngIfElse",Qe)}},dependencies:[e.mk,e.sg,e.O5,e.tP,e.PC,M.H],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[(0,s.X$)("messageAnimation",[(0,s.eR)(":enter",[(0,s.oB)({opacity:0,transform:"translateY(-25%)"}),(0,s.jt)("{{showTransitionParams}}")]),(0,s.eR)(":leave",[(0,s.jt)("{{hideTransitionParams}}",(0,s.oB)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),ee})(),O=(()=>{class ee{}return ee.\u0275fac=function(_e){return new(_e||ee)},ee.\u0275mod=t.oAB({type:ee}),ee.\u0275inj=t.cJS({imports:[e.ez,M.T]}),ee})()},5722:(o,u,a)=>{"use strict";a.d(u,{NU:()=>pt,q4:()=>wt});var t=a(6895),e=a(4650),s=a(4006),D=a(805),x=a(9592),M=a(2526),w=a(1795),I=a(3718),P=a(3608),S=a(982);function k(lt,xt){if(1<&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2<){const $e=e.oxw();e.xp6(1),e.Oqu($e.label)}}function z(lt,xt){1<&&e.GkF(0)}const F=function(lt){return{height:lt}},ne=function(lt,xt){return{"p-highlight":lt,"p-disabled":xt}},B=function(lt){return{"p-highlight":lt}},G=function(lt){return{"pi pi-check":lt}},W=function(lt){return{$implicit:lt}},Y=["container"],fe=["overlay"],N=["filterInput"],Q=["in"],O=["items"],ee=["scroller"];function ue(lt,xt){if(1<&&(e.ynx(0),e._uU(1),e.BQk()),2<){const $e=e.oxw(2);e.xp6(1),e.Oqu($e.valuesAsString||"empty")}}function _e(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"span",20),e.NdJ("click",function(Ht){e.CHM($e);const Jt=e.oxw().$implicit,Dn=e.oxw(3);return e.KtG(Dn.removeChip(Jt,Ht))}),e.qZA()}}function be(lt,xt){if(1<&&(e.TgZ(0,"div",16,17)(2,"span",18),e._uU(3),e.qZA(),e.YNc(4,_e,1,0,"span",19),e.qZA()),2<){const $e=xt.$implicit,ht=e.oxw(3);e.xp6(3),e.Oqu(ht.findLabelByValue($e)),e.xp6(1),e.Q6J("ngIf",!ht.disabled)}}function Qe(lt,xt){if(1<&&(e.ynx(0),e._uU(1),e.BQk()),2<){const $e=e.oxw(3);e.xp6(1),e.Oqu($e.placeholder||$e.defaultLabel||"empty")}}function ze(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,be,5,2,"div",15),e.YNc(2,Qe,2,1,"ng-container",7),e.BQk()),2<){const $e=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",$e.value),e.xp6(1),e.Q6J("ngIf",!$e.value||0===$e.value.length)}}function Oe(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,ue,2,1,"ng-container",7),e.YNc(2,ze,3,2,"ng-container",7),e.BQk()),2<){const $e=e.oxw();e.xp6(1),e.Q6J("ngIf","comma"===$e.display),e.xp6(1),e.Q6J("ngIf","chip"===$e.display)}}function K(lt,xt){1<&&e.GkF(0)}function X(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"i",21),e.NdJ("click",function(Ht){e.CHM($e);const Jt=e.oxw();return e.KtG(Jt.clear(Ht))}),e.qZA()}}function V(lt,xt){1<&&e.GkF(0)}function q(lt,xt){1<&&e.GkF(0)}const Ee=function(lt){return{options:lt}};function ye(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,q,1,0,"ng-container",8),e.BQk()),2<){const $e=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",$e.filterTemplate)("ngTemplateOutletContext",e.VKq(2,Ee,$e.filterOptions))}}const nt=function(lt){return{"p-checkbox-disabled":lt}},at=function(lt,xt,$e){return{"p-highlight":lt,"p-focus":xt,"p-disabled":$e}};function me(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"div",36)(1,"div",2)(2,"input",37),e.NdJ("focus",function(){e.CHM($e);const Ht=e.oxw(4);return e.KtG(Ht.onHeaderCheckboxFocus())})("blur",function(){e.CHM($e);const Ht=e.oxw(4);return e.KtG(Ht.onHeaderCheckboxBlur())})("keydown.space",function(Ht){e.CHM($e);const Jt=e.oxw(4);return e.KtG(Jt.toggleAll(Ht))}),e.qZA()(),e.TgZ(3,"div",38),e.NdJ("click",function(Ht){e.CHM($e);const Jt=e.oxw(4);return e.KtG(Jt.toggleAll(Ht))}),e._UZ(4,"span",39),e.qZA()()}if(2<){const $e=e.oxw(4);e.Q6J("ngClass",e.VKq(6,nt,$e.disabled||$e.toggleAllDisabled)),e.xp6(2),e.Q6J("checked",$e.allChecked)("disabled",$e.disabled||$e.toggleAllDisabled),e.xp6(1),e.Q6J("ngClass",e.kEZ(8,at,$e.allChecked,$e.headerCheckboxFocus,$e.disabled||$e.toggleAllDisabled)),e.uIk("aria-checked",$e.allChecked),e.xp6(1),e.Q6J("ngClass",e.VKq(12,G,$e.allChecked))}}function ve(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"div",40)(1,"input",41,42),e.NdJ("input",function(Ht){e.CHM($e);const Jt=e.oxw(4);return e.KtG(Jt.onFilterInputChange(Ht))}),e.qZA(),e._UZ(3,"span",43),e.qZA()}if(2<){const $e=e.oxw(4);e.xp6(1),e.Q6J("value",$e.filterValue||"")("disabled",$e.disabled),e.uIk("autocomplete",$e.autocomplete)("placeholder",$e.filterPlaceHolder)("aria-label",$e.ariaFilterLabel)}}function je(lt,xt){if(1<){const $e=e.EpF();e.YNc(0,me,5,14,"div",32),e.YNc(1,ve,4,5,"div",33),e.TgZ(2,"button",34),e.NdJ("click",function(Ht){e.CHM($e);const Jt=e.oxw(3);return e.KtG(Jt.close(Ht))}),e._UZ(3,"span",35),e.qZA()}if(2<){const $e=e.oxw(3);e.Q6J("ngIf",$e.showToggleAll&&!$e.selectionLimit),e.xp6(1),e.Q6J("ngIf",$e.filter)}}function Xe(lt,xt){if(1<&&(e.TgZ(0,"div",28),e.Hsn(1),e.YNc(2,V,1,0,"ng-container",29),e.YNc(3,ye,2,4,"ng-container",30),e.YNc(4,je,4,2,"ng-template",null,31,e.W1O),e.qZA()),2<){const $e=e.MAs(5),ht=e.oxw(2);e.xp6(2),e.Q6J("ngTemplateOutlet",ht.headerTemplate),e.xp6(1),e.Q6J("ngIf",ht.filterTemplate)("ngIfElse",$e)}}function rt(lt,xt){1<&&e.GkF(0)}const mt=function(lt,xt){return{$implicit:lt,options:xt}};function $t(lt,xt){if(1<&&e.YNc(0,rt,1,0,"ng-container",8),2<){const $e=xt.$implicit,ht=xt.options;e.oxw(2);const Ht=e.MAs(6);e.Q6J("ngTemplateOutlet",Ht)("ngTemplateOutletContext",e.WLB(2,mt,$e,ht))}}function tn(lt,xt){1<&&e.GkF(0)}function yt(lt,xt){if(1<&&e.YNc(0,tn,1,0,"ng-container",8),2<){const $e=xt.options,ht=e.oxw(4);e.Q6J("ngTemplateOutlet",ht.loaderTemplate)("ngTemplateOutletContext",e.VKq(2,Ee,$e))}}function bt(lt,xt){1<&&(e.ynx(0),e.YNc(1,yt,1,4,"ng-template",46),e.BQk())}function Ye(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"p-scroller",44,45),e.NdJ("onLazyLoad",function(Ht){e.CHM($e);const Jt=e.oxw(2);return e.KtG(Jt.onLazyLoad.emit(Ht))}),e.YNc(2,$t,1,5,"ng-template",14),e.YNc(3,bt,2,0,"ng-container",7),e.qZA()}if(2<){const $e=e.oxw(2);e.Akn(e.VKq(9,F,$e.scrollHeight)),e.Q6J("items",$e.optionsToRender)("itemSize",$e.virtualScrollItemSize||$e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",$e.lazy)("options",$e.virtualScrollOptions),e.xp6(3),e.Q6J("ngIf",$e.loaderTemplate)}}function Nt(lt,xt){1<&&e.GkF(0)}const xn=function(){return{}};function pn(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,Nt,1,0,"ng-container",8),e.BQk()),2<){e.oxw();const $e=e.MAs(6),ht=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",$e)("ngTemplateOutletContext",e.WLB(3,mt,ht.optionsToRender,e.DdM(2,xn)))}}function _n(lt,xt){if(1<&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2<){const $e=e.oxw().$implicit,ht=e.oxw(4);e.xp6(1),e.Oqu(ht.getOptionGroupLabel($e)||"empty")}}function zt(lt,xt){1<&&e.GkF(0)}function Yt(lt,xt){1<&&e.GkF(0)}function It(lt,xt){if(1<&&(e.TgZ(0,"li",52),e.YNc(1,_n,2,1,"span",7),e.YNc(2,zt,1,0,"ng-container",8),e.qZA(),e.YNc(3,Yt,1,0,"ng-container",8)),2<){const $e=xt.$implicit,ht=e.oxw(2).options,Ht=e.MAs(5),Jt=e.oxw(2);e.Q6J("ngStyle",e.VKq(6,F,ht.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!Jt.groupTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",Jt.groupTemplate)("ngTemplateOutletContext",e.VKq(8,W,$e)),e.xp6(1),e.Q6J("ngTemplateOutlet",Ht)("ngTemplateOutletContext",e.VKq(10,W,Jt.getOptionGroupChildren($e)))}}function bn(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,It,4,12,"ng-template",51),e.BQk()),2<){const $e=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",$e)}}function Rn(lt,xt){1<&&e.GkF(0)}function Sn(lt,xt){if(1<&&(e.ynx(0),e.YNc(1,Rn,1,0,"ng-container",8),e.BQk()),2<){const $e=e.oxw().$implicit,ht=e.MAs(5);e.xp6(1),e.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",e.VKq(2,W,$e))}}function vn(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"p-multiSelectItem",53),e.NdJ("onClick",function(Ht){e.CHM($e);const Jt=e.oxw(4);return e.KtG(Jt.onOptionClick(Ht))})("onKeydown",function(Ht){e.CHM($e);const Jt=e.oxw(4);return e.KtG(Jt.onOptionKeydown(Ht))}),e.qZA()}if(2<){const $e=xt.$implicit,ht=e.oxw(2).options,Ht=e.oxw(2);e.Q6J("option",$e)("selected",Ht.isSelected($e))("label",Ht.getOptionLabel($e))("disabled",Ht.isOptionDisabled($e))("template",Ht.itemTemplate)("itemSize",ht.itemSize)}}function mi(lt,xt){1<&&e.YNc(0,vn,1,6,"ng-template",51),2<&&e.Q6J("ngForOf",xt.$implicit)}function Un(lt,xt){if(1<&&(e.ynx(0),e._uU(1),e.BQk()),2<){const $e=e.oxw(4);e.xp6(1),e.hij(" ",$e.emptyFilterMessageLabel," ")}}function Jn(lt,xt){1<&&e.GkF(0,null,55)}function Mt(lt,xt){if(1<&&(e.TgZ(0,"li",54),e.YNc(1,Un,2,1,"ng-container",30),e.YNc(2,Jn,2,0,"ng-container",29),e.qZA()),2<){const $e=e.oxw().options,ht=e.oxw(2);e.Q6J("ngStyle",e.VKq(4,F,$e.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!ht.emptyFilterTemplate&&!ht.emptyTemplate)("ngIfElse",ht.emptyFilter),e.xp6(1),e.Q6J("ngTemplateOutlet",ht.emptyFilterTemplate||ht.emptyTemplate)}}function Vt(lt,xt){if(1<&&(e.ynx(0),e._uU(1),e.BQk()),2<){const $e=e.oxw(4);e.xp6(1),e.hij(" ",$e.emptyMessageLabel," ")}}function Z(lt,xt){1<&&e.GkF(0,null,56)}function re(lt,xt){if(1<&&(e.TgZ(0,"li",54),e.YNc(1,Vt,2,1,"ng-container",30),e.YNc(2,Z,2,0,"ng-container",29),e.qZA()),2<){const $e=e.oxw().options,ht=e.oxw(2);e.Q6J("ngStyle",e.VKq(4,F,$e.itemSize+"px")),e.xp6(1),e.Q6J("ngIf",!ht.emptyTemplate)("ngIfElse",ht.empty),e.xp6(1),e.Q6J("ngTemplateOutlet",ht.emptyTemplate)}}function pe(lt,xt){if(1<&&(e.TgZ(0,"ul",47,48),e.YNc(2,bn,2,1,"ng-container",7),e.YNc(3,Sn,2,4,"ng-container",7),e.YNc(4,mi,1,1,"ng-template",null,49,e.W1O),e.YNc(6,Mt,3,6,"li",50),e.YNc(7,re,3,6,"li",50),e.qZA()),2<){const $e=xt.options,ht=e.oxw(2);e.Akn($e.contentStyle),e.Q6J("ngClass",$e.contentStyleClass),e.xp6(2),e.Q6J("ngIf",ht.group),e.xp6(1),e.Q6J("ngIf",!ht.group),e.xp6(3),e.Q6J("ngIf",ht.hasFilter()&&ht.isEmpty()),e.xp6(1),e.Q6J("ngIf",!ht.hasFilter()&&ht.isEmpty())}}function Re(lt,xt){1<&&e.GkF(0)}function Bt(lt,xt){if(1<&&(e.TgZ(0,"div",57),e.Hsn(1,1),e.YNc(2,Re,1,0,"ng-container",29),e.qZA()),2<){const $e=e.oxw(2);e.xp6(2),e.Q6J("ngTemplateOutlet",$e.footerTemplate)}}const jt=function(){return["p-multiselect-panel p-component"]};function _t(lt,xt){if(1<){const $e=e.EpF();e.TgZ(0,"div",22),e.NdJ("keydown",function(Ht){e.CHM($e);const Jt=e.oxw();return e.KtG(Jt.onKeydown(Ht))}),e.YNc(1,Xe,6,3,"div",23),e.TgZ(2,"div",24),e.YNc(3,Ye,4,11,"p-scroller",25),e.YNc(4,pn,2,6,"ng-container",7),e.YNc(5,pe,8,7,"ng-template",null,26,e.W1O),e.qZA(),e.YNc(7,Bt,3,1,"div",27),e.qZA()}if(2<){const $e=e.oxw();e.Tol($e.panelStyleClass),e.Q6J("ngClass",e.DdM(10,jt))("ngStyle",$e.panelStyle),e.xp6(1),e.Q6J("ngIf",$e.showHeader),e.xp6(1),e.Udp("max-height",$e.virtualScroll?"auto":$e.scrollHeight||"auto"),e.xp6(1),e.Q6J("ngIf",$e.virtualScroll),e.xp6(1),e.Q6J("ngIf",!$e.virtualScroll),e.xp6(3),e.Q6J("ngIf",$e.footerFacet||$e.footerTemplate)}}const dt=[[["p-header"]],[["p-footer"]]],Be=function(lt,xt,$e,ht){return{"p-multiselect p-component":!0,"p-multiselect-open":lt,"p-multiselect-chip":xt,"p-focus":$e,"p-disabled":ht}},Te=function(lt,xt){return{"p-placeholder":lt,"p-multiselect-label-empty":xt}},We=function(){return{"p-multiselect-trigger":!0}},ft=["p-header","p-footer"],Ft={provide:s.JU,useExisting:(0,e.Gpc)(()=>pt),multi:!0};let Pt=(()=>{class lt{constructor(){this.onClick=new e.vpe,this.onKeydown=new e.vpe}onOptionClick($e){this.onClick.emit({originalEvent:$e,option:this.option,selected:this.selected})}onOptionKeydown($e){this.onKeydown.emit({originalEvent:$e,option:this.option})}}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275cmp=e.Xpm({type:lt,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick",onKeydown:"onKeydown"},decls:6,vars:20,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","click","keydown"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function($e,ht){1&$e&&(e.TgZ(0,"li",0),e.NdJ("click",function(Jt){return ht.onOptionClick(Jt)})("keydown",function(Jt){return ht.onOptionKeydown(Jt)}),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"span",3),e.qZA()(),e.YNc(4,k,2,1,"span",4),e.YNc(5,z,1,0,"ng-container",5),e.qZA()),2&$e&&(e.Q6J("ngStyle",e.VKq(9,F,ht.itemSize+"px"))("ngClass",e.WLB(11,ne,ht.selected,ht.disabled)),e.uIk("aria-label",ht.label)("tabindex",ht.disabled?null:"0"),e.xp6(2),e.Q6J("ngClass",e.VKq(14,B,ht.selected)),e.xp6(1),e.Q6J("ngClass",e.VKq(16,G,ht.selected)),e.xp6(1),e.Q6J("ngIf",!ht.template),e.xp6(1),e.Q6J("ngTemplateOutlet",ht.template)("ngTemplateOutletContext",e.VKq(18,W,ht.option)))},dependencies:[t.mk,t.O5,t.tP,t.PC,w.H],encapsulation:2}),lt})(),pt=(()=>{class lt{constructor($e,ht,Ht,Jt,Dn,En,At){this.el=$e,this.renderer=ht,this.cd=Ht,this.zone=Jt,this.filterService=Dn,this.config=En,this.overlayService=At,this.filter=!0,this.displaySelectedLabel=!0,this.maxSelectedLabels=3,this.selectedItemsLabel="ellipsis",this.showToggleAll=!0,this.emptyFilterMessage="",this.emptyMessage="",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.showHeader=!0,this.scrollHeight="200px",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.display="comma",this.autocomplete="on",this.showClear=!1,this.onChange=new e.vpe,this.onFilter=new e.vpe,this.onFocus=new e.vpe,this.onBlur=new e.vpe,this.onClick=new e.vpe,this.onClear=new e.vpe,this.onPanelShow=new e.vpe,this.onPanelHide=new e.vpe,this.onLazyLoad=new e.vpe,this.onRemove=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}
1get autoZIndex(){return this._autoZIndex}set autoZIndex($e){this._autoZIndex=$e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex($e){this._baseZIndex=$e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions($e){this._showTransitionOptions=$e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions($e){this._hideTransitionOptions=$e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel($e){this._defaultLabel=$e,this.updateLabel()}get defaultLabel(){return this._defaultLabel}set placeholder($e){this._placeholder=$e,this.updateLabel()}get placeholder(){return this._placeholder}get options(){return this._options}set options($e){this._options=$e,this.updateLabel()}get filterValue(){return this._filterValue}set filterValue($e){this._filterValue=$e,this.activateFilter()}get itemSize(){return this._itemSize}set itemSize($e){this._itemSize=$e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}ngOnInit(){this.updateLabel(),this.filterBy&&(this.filterOptions={filter:$e=>this.onFilterInputChange($e),reset:()=>this.resetFilter()})}
1ngAfterContentInit(){this.templates.forEach($e=>{switch($e.getType()){case"item":default:this.itemTemplate=$e.template;break;case"group":this.groupTemplate=$e.template;break;case"selectedItems":this.selectedItemsTemplate=$e.template;break;case"header":this.headerTemplate=$e.template;break;case"filter":this.filterTemplate=$e.template;break;case"emptyfilter":this.emptyFilterTemplate=$e.template;break;case"empty":this.emptyTemplate=$e.template;break;case"footer":this.footerTemplate=$e.template;break;case"loader":this.loaderTemplate=$e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}getOptionLabel($e){return this.optionLabel?S.gb.resolveFieldData($e,this.optionLabel):$e&&null!=$e.label?$e.label:$e}getOptionValue($e){return this.optionValue?S.gb.resolveFieldData($e,this.optionValue):!this.optionLabel&&$e&&void 0!==$e.value?$e.value:$e}getOptionGroupLabel($e){return this.optionGroupLabel?S.gb.resolveFieldData($e,this.optionGroupLabel):$e&&null!=$e.label?$e.label:$e}getOptionGroupChildren($e){return this.optionGroupChildren?S.gb.resolveFieldData($e,this.optionGroupChildren):$e.items}isOptionDisabled($e){return(this.optionDisabled?S.gb.resolveFieldData($e,this.optionDisabled):!(!$e||void 0===$e.disabled)&&$e.disabled)||this.maxSelectionLimitReached&&!this.isSelected($e)}writeValue($e){this.value=$e,this.updateLabel(),this.updateFilledState(),this.checkSelectionLimit(),this.cd.markForCheck()}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}updateFilledState(){this.filled=this.value&&this.value.length>0}registerOnChange($e){this.onModelChange=$e}registerOnTouched($e){this.onModelTouched=$e}setDisabledState($e){this.disabled=$e,this.cd.markForCheck()}onOptionClick($e){let ht=$e.option;if(this.isOptionDisabled(ht))return;let Ht=this.getOptionValue(ht),Jt=this.findSelectionIndex(Ht);-1!=Jt?(this.value=this.value.filter((Dn,En)=>En!=Jt),this.onRemove.emit({newValue:this.value,removed:Ht}),this.selectionLimit&&(this.maxSelectionLimitReached=!1)):((!this.selectionLimit||!this.value||this.value.length<this.selectionLimit)&&(this.value=[...this.value||[],Ht]),this.checkSelectionLimit()),this.onModelChange(this.value),this.onChange.emit({originalEvent:$e.originalEvent,value:this.value,itemValue:Ht}),this.updateLabel(),this.updateFilledState()}isSelected($e){return-1!=this.findSelectionIndex(this.getOptionValue($e))}findSelectionIndex($e){let ht=-1;if(this.value)for(let Ht=0;Ht<this.value.length;Ht++)if(S.gb.equals(this.value[Ht],$e,this.dataKey)){ht=Ht;break}return ht}get toggleAllDisabled(){let $e=this.optionsToRender;if(!$e||0===$e.length)return!0;for(let ht of $e)if(!this.isOptionDisabled(ht))return!1;return!0}toggleAll($e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:$e,value:this.value}),this.updateFilledState(),this.updateLabel(),$e.preventDefault())}checkAll(){let ht=[];this.optionsToRender.forEach(Ht=>{if(this.group){let Jt=this.getOptionGroupChildren(Ht);Jt&&Jt.forEach(Dn=>{let En=this.isOptionDisabled(Dn);(!En||En&&this.isSelected(Dn))&&ht.push(this.getOptionValue(Dn))})}else{let Jt=this.isOptionDisabled(Ht);(!Jt||Jt&&this.isSelected(Ht))&&ht.push(this.getOptionValue(Ht))}}),this.value=ht}uncheckAll(){let ht=[];this.optionsToRender.forEach(Ht=>{this.group?Ht.items&&Ht.items.forEach(Jt=>{this.isOptionDisabled(Jt)&&this.isSelected(Jt)&&ht.push(this.getOptionValue(Jt))}):this.isOptionDisabled(Ht)&&this.isSelected(Ht)&&ht.push(this.getOptionValue(Ht))}),this.value=ht}show(){this.overlayVisible||(this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck())}onOverlayAnimationStart($e){switch($e.toState){case"visible":this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild.nativeElement),this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();break;case"void":this.onModelTouched()}}hide(){this.overlayVisible=!1,this.resetFilterOnHide&&this.resetFilter(),this.onPanelHide.emit(),this.cd.markForCheck()}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}close($e){this.hide(),$e.preventDefault(),$e.stopPropagation()}clear($e){this.value=null,this.updateLabel(),this.updateFilledState(),this.onClear.emit(),this.onModelChange(this.value),$e.stopPropagation()}onMouseclick($e,ht){this.disabled||this.readonly||$e.target.isSameNode(this.accessibleViewChild.nativeElement)||(this.onClick.emit($e),!this.overlayViewChild?.el?.nativeElement?.contains($e.target)&&!x.p.hasClass($e.target,"p-multiselect-token-icon")&&(this.overlayVisible?this.hide():this.show(),ht.focus()))}removeChip($e,ht){this.value=this.value.filter(Ht=>!S.gb.equals(Ht,$e,this.dataKey)),this.onModelChange(this.value),this.checkSelectionLimit(),this.onChange.emit({originalEvent:ht,value:this.value,itemValue:$e}),this.updateLabel(),this.updateFilledState()}onInputFocus($e){this.focus=!0,this.onFocus.emit({originalEvent:$e})}onInputBlur($e){this.focus=!1,this.onBlur.emit({originalEvent:$e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onOptionKeydown($e){if(!this.readonly)switch($e.originalEvent.which){case 40:var ht=this.findNextItem($e.originalEvent.target.parentElement);ht&&ht.focus(),$e.originalEvent.preventDefault();break;case 38:var Ht=this.findPrevItem($e.originalEvent.target.parentElement);Ht&&Ht.focus(),$e.originalEvent.preventDefault();break;case 13:this.onOptionClick($e),$e.originalEvent.preventDefault();break;case 27:case 9:this.hide()}}findNextItem($e){let ht=$e.nextElementSibling;return ht?x.p.hasClass(ht.children[0],"p-disabled")||x.p.isHidden(ht.children[0])||x.p.hasClass(ht,"p-multiselect-item-group")?this.findNextItem(ht):ht.children[0]:null}findPrevItem($e){let ht=$e.previousElementSibling;return ht?x.p.hasClass(ht.children[0],"p-disabled")||x.p.isHidden(ht.children[0])||x.p.hasClass(ht,"p-multiselect-item-group")?this.findPrevItem(ht):ht.children[0]:null}onKeydown($e){switch($e.which){case 40:!this.overlayVisible&&$e.altKey&&
1(this.show(),$e.preventDefault());break;case 32:this.overlayVisible||(this.show(),$e.preventDefault());break;case 27:this.hide()}}updateLabel(){if(this.value&&this.options&&this.value.length&&this.displaySelectedLabel){let $e="";for(let ht=0;ht<this.value.length;ht++){let Ht=this.findLabelByValue(this.value[ht]);Ht&&($e.length>0&&($e+=", "),$e+=Ht)}if(this.value.length<=this.maxSelectedLabels||"ellipsis"===this.selectedItemsLabel)this.valuesAsString=$e;else{let ht=/{(.*?)}/;this.valuesAsString=ht.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(ht)[0],this.value.length+""):this.selectedItemsLabel}}else this.valuesAsString=this.placeholder||this.defaultLabel}findLabelByValue($e){if(this.group){let ht=null;for(let Ht=0;Ht<this.options.length;Ht++){let Jt=this.getOptionGroupChildren(this.options[Ht]);if(Jt&&(ht=this.searchLabelByValue($e,Jt),ht))break}return ht}return this.searchLabelByValue($e,this.options)}searchLabelByValue($e,ht){let Ht=null;for(let Jt=0;Jt<ht.length;Jt++){let Dn=ht[Jt],En=this.getOptionValue(Dn);if(null==$e&&null==En||S.gb.equals($e,En,this.dataKey)){Ht=this.getOptionLabel(Dn);break}}return Ht}get allChecked(){let $e=this.optionsToRender;if(!$e||0===$e.length)return!1;{let ht=0,Ht=0,Jt=0,Dn=this.group?0:this.optionsToRender.length;for(let En of $e)if(this.group)for(let At of this.getOptionGroupChildren(En)){let Ct=this.isOptionDisabled(At),qe=this.isSelected(At);if(Ct)qe?ht++:Ht++;else{if(!qe)return!1;Jt++}Dn++}else{let At=this.isOptionDisabled(En),Ct=this.isSelected(En);if(At)Ct?ht++:Ht++;else{if(!Ct)return!1;Jt++}}return Dn===ht||Dn===Jt||Jt&&Dn===Jt+Ht+ht}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(D.ws.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(D.ws.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilterInputChange($e){this._filterValue=$e.target.value,this.activateFilter(),this.onFilter.emit({originalEvent:$e,filter:this._filterValue}),this.cd.detectChanges()}activateFilter(){if(this.hasFilter()&&this._options){let $e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let ht=[];for(let Ht of this.options){let Jt=this.filterService.filter(this.getOptionGroupChildren(Ht),$e,this.filterValue,this.filterMatchMode,this.filterLocale);Jt&&Jt.length&&ht.push({...Ht,[this.optionGroupChildren]:Jt})}this._filteredOptions=ht}else this._filteredOptions=this.filterService.filter(this.options,$e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}}return lt.\u0275fac=function($e){return new($e||lt)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(D.iZ),e.Y36(D.b4),e.Y36(D.F0))},lt.\u0275cmp=e.Xpm({type:lt,selectors:[["p-multiSelect"]],contentQueries:function($e,ht,Ht){if(1&$e&&(e.Suo(Ht,D.$_,5),e.Suo(Ht,D.h4,5),e.Suo(Ht,D.jx,4)),2&$e){let Jt;e.iGM(Jt=e.CRH())&&(ht.footerFacet=Jt.first),e.iGM(Jt=e.CRH())&&(ht.headerFacet=Jt.first),e.iGM(Jt=e.CRH())&&(ht.templates=Jt)}},viewQuery:function($e,ht){if(1&$e&&(e.Gf(Y,5),e.Gf(fe,5),e.Gf(N,5),e.Gf(Q,5),e.Gf(O,5),e.Gf(ee,5)),2&$e){let Ht;e.iGM(Ht=e.CRH())&&(ht.containerViewChild=Ht.first),e.iGM(Ht=e.CRH())&&(ht.overlayViewChild=Ht.first),e.iGM(Ht=e.CRH())&&(ht.filterInputChild=Ht.first),e.iGM(Ht=e.CRH())&&(ht.accessibleViewChild=Ht.first),e.iGM(Ht=e.CRH())&&(ht.itemsViewChild=Ht.first),e.iGM(Ht=e.CRH())&&(ht.scroller=Ht.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function($e,ht){2&$e&&e.ekj("p-inputwrapper-filled",ht.filled)("p-inputwrapper-focus",ht.focus||ht.overlayVisible)("p-multiselect-clearable",ht.showClear&&!ht.disabled)},inputs:{style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",label:"label",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove"},features:[e._Bn([Ft])],ngContentSelectors:ft,decls:15,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","readonly","aria-haspopup","listbox","role","listbox",3,"disabled","focus","blur","keydown"],["in",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[1,"p-multiselect-label",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon pi pi-times",3,"click",4,"ngIf"],[3,"ngClass"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],["class","p-multiselect-token-icon pi pi-times-circle",3,"click",4,"ngIf"],[1,"p-multiselect-token-icon","pi","pi-times-circle",3,"click"],[1,"p-multiselect-clear-icon","pi","pi-times",3,"click"],[3,"ngClass","ngStyle","keydown"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link",3,"click"],[1,"p-multiselect-close-icon","pi","pi-times"],[1,"p-checkbox","p-component",3,"ngClass"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[1,"p-multiselect-filter-container"],["type","text","role","textbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input"],["filterInput",""],[1,"p-multiselect-filter-icon","pi","pi-search"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["
1items",""],["itemslist",""],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-multiselect-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","itemSize","onClick","onKeydown"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function($e,ht){if(1&$e){const Ht=e.EpF();e.F$t(dt),e.TgZ(0,"div",0,1),e.NdJ("click",function(Dn){e.CHM(Ht);const En=e.MAs(4);return e.KtG(ht.onMouseclick(Dn,En))}),e.TgZ(2,"div",2)(3,"input",3,4),e.NdJ("focus",function(Dn){return ht.onInputFocus(Dn)})("blur",function(Dn){return ht.onInputBlur(Dn)})("keydown",function(Dn){return ht.onKeydown(Dn)}),e.qZA()(),e.TgZ(5,"div",5)(6,"div",6),e.YNc(7,Oe,3,2,"ng-container",7),e.YNc(8,K,1,0,"ng-container",8),e.qZA(),e.YNc(9,X,1,0,"i",9),e.qZA(),e.TgZ(10,"div",10),e._UZ(11,"span",11),e.qZA(),e.TgZ(12,"p-overlay",12,13),e.NdJ("visibleChange",function(Dn){return ht.overlayVisible=Dn})("onAnimationStart",function(Dn){return ht.onOverlayAnimationStart(Dn)})("onHide",function(){return ht.hide()}),e.YNc(14,_t,8,11,"ng-template",14),e.qZA()()}2&$e&&(e.Tol(ht.styleClass),e.Q6J("ngClass",e.l5B(30,Be,ht.overlayVisible,"chip"===ht.display,ht.focus,ht.disabled))("ngStyle",ht.style),e.xp6(3),e.Q6J("disabled",ht.disabled),e.uIk("label",ht.label)("id",ht.inputId)("name",ht.name)("tabindex",ht.tabindex)("aria-expanded",ht.overlayVisible)("aria-labelledby",ht.ariaLabelledBy),e.xp6(2),e.Q6J("pTooltip",ht.tooltip)("tooltipPosition",ht.tooltipPosition)("positionStyle",ht.tooltipPositionStyle)("tooltipStyleClass",ht.tooltipStyleClass),e.xp6(1),e.Q6J("ngClass",e.WLB(35,Te,ht.valuesAsString===(ht.defaultLabel||ht.placeholder),!(null!=ht.valuesAsString&&0!==ht.valuesAsString.length||null!=ht.placeholder&&0!==ht.placeholder.length))),e.xp6(1),e.Q6J("ngIf",!ht.selectedItemsTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",ht.selectedItemsTemplate)("ngTemplateOutletContext",e.VKq(38,W,ht.value)),e.xp6(1),e.Q6J("ngIf",null!=ht.value&&ht.filled&&!ht.disabled&&ht.showClear),e.xp6(1),e.Q6J("ngClass",e.DdM(40,We)),e.xp6(1),e.Q6J("ngClass",ht.dropdownIcon),e.xp6(1),e.Q6J("visible",ht.overlayVisible)("options",ht.overlayOptions)("target","@parent")("appendTo",ht.appendTo)("autoZIndex",ht.autoZIndex)("baseZIndex",ht.baseZIndex)("showTransitionOptions",ht.showTransitionOptions)("hideTransitionOptions",ht.hideTransitionOptions))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,M.aV,D.jx,P.u,w.H,I.T,Pt],styles:[".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-chip .p-multiselect-label{display:flex}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),lt})(),wt=(()=>{class lt{}return lt.\u0275fac=function($e){return new($e||lt)},lt.\u0275mod=e.oAB({type:lt}),lt.\u0275inj=e.cJS({imports:[t.ez,M.U8,D.m8,P.z,w.T,I.v,M.U8,D.m8,I.v]}),lt})()},2526:(o,u,a)=>{"use strict";a.d(u,{U8:()=>ee,aV:()=>O});var t=a(7340),e=a(6895),s=a(4650),D=a(4006),x=a(805),M=a(9592),w=a(982);const I=["overlay"],P=["content"];function S(ue,_e){1&ue&&s.GkF(0)}const k=function(ue,_e,be){return{showTransitionParams:ue,hideTransitionParams:_e,transform:be}},z=function(ue){return{value:"visible",params:ue}},F=function(ue){return{mode:ue}},ne=function(ue){return{$implicit:ue}};function B(ue,_e){if(1&ue){const be=s.EpF();
1s.TgZ(0,"div",1,3),s.NdJ("click",function(ze){s.CHM(be);const Oe=s.oxw(2);return s.KtG(Oe.onOverlayContentClick(ze))})("@overlayContentAnimation.start",function(ze){s.CHM(be);const Oe=s.oxw(2);return s.KtG(Oe.onOverlayContentAnimationStart(ze))})("@overlayContentAnimation.done",function(ze){s.CHM(be);const Oe=s.oxw(2);return s.KtG(Oe.onOverlayContentAnimationDone(ze))}),s.Hsn(2),s.YNc(3,S,1,0,"ng-container",4),s.qZA()}if(2&ue){const be=s.oxw(2);s.Tol(be.contentStyleClass),s.Q6J("ngStyle",be.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",s.VKq(11,z,s.kEZ(7,k,be.showTransitionOptions,be.hideTransitionOptions,be.transformOptions[be.modal?be.overlayResponsiveDirection:"default"]))),s.xp6(3),s.Q6J("ngTemplateOutlet",be.contentTemplate)("ngTemplateOutletContext",s.VKq(15,ne,s.VKq(13,F,be.overlayMode)))}}const G=function(ue,_e,be,Qe,ze,Oe,K,X,V,q,Ee,ye,nt,at){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":ue,"p-overlay-center":_e,"p-overlay-top":be,"p-overlay-top-start":Qe,"p-overlay-top-end":ze,"p-overlay-bottom":Oe,"p-overlay-bottom-start":K,"p-overlay-bottom-end":X,"p-overlay-left":V,"p-overlay-left-start":q,"p-overlay-left-end":Ee,"p-overlay-right":ye,"p-overlay-right-start":nt,"p-overlay-right-end":at}};function W(ue,_e){if(1&ue){const be=s.EpF();s.TgZ(0,"div",1,2),s.NdJ("click",function(ze){s.CHM(be);const Oe=s.oxw();return s.KtG(Oe.onOverlayClick(ze))}),s.YNc(2,B,4,17,"div",0),s.qZA()}if(2&ue){const be=s.oxw();s.Tol(be.styleClass),s.Q6J("ngStyle",be.style)("ngClass",s.rFY(5,G,[be.modal,be.modal&&"center"===be.overlayResponsiveDirection,be.modal&&"top"===be.overlayResponsiveDirection,be.modal&&"top-start"===be.overlayResponsiveDirection,be.modal&&"top-end"===be.overlayResponsiveDirection,be.modal&&"bottom"===be.overlayResponsiveDirection,be.modal&&"bottom-start"===be.overlayResponsiveDirection,be.modal&&"bottom-end"===be.overlayResponsiveDirection,be.modal&&"left"===be.overlayResponsiveDirection,be.modal&&"left-start"===be.overlayResponsiveDirection,be.modal&&"left-end"===be.overlayResponsiveDirection,be.modal&&"right"===be.overlayResponsiveDirection,be.modal&&"right-start"===be.overlayResponsiveDirection,be.modal&&"right-end"===be.overlayResponsiveDirection])),s.xp6(2),s.Q6J("ngIf",be.visible)}}const Y=["*"],fe={provide:D.JU,useExisting:(0,s.Gpc)(()=>O),multi:!0},N=(0,t.oQ)([(0,t.oB)({transform:"{{transform}}",opacity:0}),(0,t.jt)("{{showTransitionParams}}")]),Q=(0,t.oQ)([(0,t.jt)("{{hideTransitionParams}}",(0,t.oB)({transform:"{{transform}}",opacity:0}))]);let O=(()=>{class ue{constructor(be,Qe,ze,Oe,K,X){this.document=be,this.el=Qe,this.renderer=ze,this.config=Oe,this.overlayService=K,this.zone=X,this.visibleChange=new s.vpe,this.onBeforeShow=new s.vpe,this.onShow=new s.vpe,this.onBeforeHide=new s.vpe,this.onHide=new s.vpe,this.onAnimationStart=new s.vpe,this.onAnimationDone=new s.vpe,this._visible=!1,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this.window=this.document.defaultView}get visible(){return this._visible}set visible(be){this._visible=be,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(be){this._mode=be}get style(){return w.gb.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(be){this._style=be}get styleClass(){return w.gb.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(be){this._styleClass=be}get contentStyle(){return w.gb.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(be){this._contentStyle=be}get contentStyleClass(){return w.gb.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(be){this._contentStyleClass=be}get target(){const be=this._target||this.overlayOptions?.target;return void 0===be?"@prev":be}set target(be){this._target=be}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(be){this._appendTo=be}
1get autoZIndex(){const be=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===be||be}set autoZIndex(be){this._autoZIndex=be}get baseZIndex(){const be=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===be?0:be}set baseZIndex(be){this._baseZIndex=be}get showTransitionOptions(){const be=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===be?".12s cubic-bezier(0, 0, 0.2, 1)":be}set showTransitionOptions(be){this._showTransitionOptions=be}get hideTransitionOptions(){const be=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===be?".1s linear":be}set hideTransitionOptions(be){this._hideTransitionOptions=be}get listener(){return this._listener||this.overlayOptions?.listener}set listener(be){this._listener=be}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(be){this._responsive=be}get options(){return this._options}set options(be){this._options=be}get modal(){return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return M.p.getTargetElement(this.target,this.el?.nativeElement)}ngAfterContentInit(){this.templates?.forEach(be=>{be.getType(),this.contentTemplate=be.template})}show(be,Qe=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:be||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Qe&&M.p.focus(this.targetEl),this.modal&&M.p.addClass(this.document?.body,"p-overflow-hidden")}hide(be,Qe=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:be||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),Qe&&M.p.focus(this.targetEl),this.modal&&M.p.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&M.p.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(be){this._visible=be,this.visibleChange.emit(be)}onOverlayClick(be){this.isOverlayClicked=!0}onOverlayContentClick(be){this.overlayService.add({originalEvent:be,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(be){switch(be.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&w.P9.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),M.p.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&M.p.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",be)}onOverlayContentAnimationDone(be){const Qe=this.overlayEl||be.element.parentElement;switch(be.toState){case"visible":this.show(Qe,!0),this.bindListeners();break;case"void":this.hide(Qe,!0),this.unbindListeners(),M.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),w.P9.clear(Qe),this.modalVisible=!1}this.handleEvents("onAnimationDone",be)}handleEvents(be,Qe){this[be].emit(Qe),this.options&&this.options[be]&&this.options[be](Qe),this.config?.overlayOptions&&this.config?.overlayOptions[be]&&this.config?.overlayOptions[be](Qe)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new M.V(this.targetEl,be=>{(!this.listener||this.listener(be,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(be,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",be=>{const ze=!(this.targetEl&&(this.targetEl.isSameNode(be.target)||!this.isOverlayClicked&&this.targetEl.contains(be.target))||this.isOverlayContentClicked);(this.listener?this.listener(be,{type:"outside",mode:this.overlayMode,valid:3!==be.which&&ze}):ze)&&this.hide(be),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",be=>{(this.listener?this.listener(be,{type:"resize",mode:this.overlayMode,valid:!M.p.isTouchDevice()}):!M.p.isTouchDevice())&&this.hide(be,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",be=>{this.overlayOptions.hideOnEscape&&27===be.keyCode&&(this.listener?this.listener(be,{type:"keydown",mode:this.overlayMode,valid:!M.p.isTouchDevice()}):!M.p.isTouchDevice())&&this.zone.run(()=>{this.hide(be,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(M.p.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),w.P9.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return ue.\u0275fac=function(be){return new(be||ue)(s.Y36(e.K0),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(x.b4),s.Y36(x.F0),s.Y36(s.R0b))},ue.\u0275cmp=s.Xpm({type:ue,selectors:[["p-overlay"]],contentQueries:function(be,Qe,ze){if(1&be&&s.Suo(ze,x.jx,4),2&be){let Oe;s.iGM(Oe=s.CRH())&&(Qe.templates=Oe)}},viewQuery:function(be,Qe){if(1&be&&(s.Gf(I,5),s.Gf(P,5)),2&be){let ze;s.iGM(ze=s.CRH())&&(Qe.overlayViewChild=ze.first),s.iGM(ze=s.CRH())&&(Qe.contentViewChild=ze.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[s._Bn([fe])],ngContentSelectors:Y,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(be,Qe){1&be&&(s.F$t(),s.YNc(0,W,3,20,"div",0)),2&be&&s.Q6J("ngIf",Qe.modalVisible)},dependencies:[e.mk,e.O5,e.tP,e.PC],styles:[".p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}\n"],encapsulation:2,data:{animation:[(0,t.X$)("overlayContentAnimation",[(0,t.eR)(":enter",[(0,t._7)(N)]),(0,t.eR)(":leave",[(0,t._7)(Q)])])]},changeDetection:0}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(be){return new(be||ue)},ue.\u0275mod=s.oAB({type:ue}),ue.\u0275inj=s.cJS({imports:[e.ez,x.m8,x.m8]}),ue})()},1997:(o,u,a)=>{"use strict";a.d(u,{D:()=>ze,U:()=>Oe});var t=a(4650),e=a(6895),s=a(4006),D=a(2210),x=a(1795),M=a(805),w=a(5047);function I(K,X){1&K&&t.GkF(0)}const P=function(K){return{$implicit:K}};function S(K,X){if(1&K&&(t.TgZ(0,"div",15),t.YNc(1,I,1,0,"ng-container",16),t.qZA()),2&K){const V=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",V.templateLeft)("ngTemplateOutletContext",t.VKq(2,P,V.paginatorState))}}function k(K,X){if(1&K&&(t.TgZ(0,"span",17),t._uU(1),t.qZA()),2&K){const V=t.oxw(2);t.xp6(1),t.Oqu(V.currentPageReport)}}const z=function(K){return{"p-disabled":K}};function F(K,X){if(1&K){const V=t.EpF();
1t.TgZ(0,"button",18),t.NdJ("click",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.changePageToFirst(Ee))}),t._UZ(1,"span",19),t.qZA()}if(2&K){const V=t.oxw(2);t.Q6J("disabled",V.isFirstPage()||V.empty())("ngClass",t.VKq(2,z,V.isFirstPage()||V.empty()))}}const ne=function(K){return{"p-highlight":K}};function B(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(Ee){const nt=t.CHM(V).$implicit,at=t.oxw(3);return t.KtG(at.onPageLinkClick(Ee,nt-1))}),t._uU(1),t.qZA()}if(2&K){const V=X.$implicit,q=t.oxw(3);t.Q6J("ngClass",t.VKq(2,ne,V-1==q.getPage())),t.xp6(1),t.hij(" ",V," ")}}function G(K,X){if(1&K&&(t.TgZ(0,"span",20),t.YNc(1,B,2,4,"button",21),t.qZA()),2&K){const V=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",V.pageLinks)}}function W(K,X){if(1&K&&t._uU(0),2&K){const V=t.oxw(3);t.Oqu(V.currentPageReport)}}function Y(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"p-dropdown",23),t.NdJ("onChange",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.onPageDropdownChange(Ee))}),t.YNc(1,W,1,1,"ng-template",24),t.qZA()}if(2&K){const V=t.oxw(2);t.Q6J("options",V.pageItems)("ngModel",V.getPage())("disabled",V.empty())("appendTo",V.dropdownAppendTo)("scrollHeight",V.dropdownScrollHeight)}}function fe(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.changePageToLast(Ee))}),t._UZ(1,"span",26),t.qZA()}if(2&K){const V=t.oxw(2);t.Q6J("disabled",V.isLastPage()||V.empty())("ngClass",t.VKq(2,z,V.isLastPage()||V.empty()))}}function N(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"p-inputNumber",27),t.NdJ("ngModelChange",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.changePage(Ee-1))}),t.qZA()}if(2&K){const V=t.oxw(2);t.Q6J("ngModel",V.currentPage())("disabled",V.empty())}}function Q(K,X){1&K&&t.GkF(0)}function O(K,X){if(1&K&&t.YNc(0,Q,1,0,"ng-container",16),2&K){const V=X.$implicit,q=t.oxw(4);t.Q6J("ngTemplateOutlet",q.dropdownItemTemplate)("ngTemplateOutletContext",t.VKq(2,P,V))}}function ee(K,X){1&K&&(t.ynx(0),t.YNc(1,O,1,4,"ng-template",30),t.BQk())}function ue(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"p-dropdown",28),t.NdJ("ngModelChange",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.rows=Ee)})("onChange",function(Ee){t.CHM(V);const ye=t.oxw(2);return t.KtG(ye.onRppChange(Ee))}),t.YNc(1,ee,2,0,"ng-container",29),t.qZA()}if(2&K){const V=t.oxw(2);t.Q6J("options",V.rowsPerPageItems)("ngModel",V.rows)("disabled",V.empty())("appendTo",V.dropdownAppendTo)("scrollHeight",V.dropdownScrollHeight),t.xp6(1),t.Q6J("ngIf",V.dropdownItemTemplate)}}function _e(K,X){1&K&&t.GkF(0)}function be(K,X){if(1&K&&(t.TgZ(0,"div",31),t.YNc(1,_e,1,0,"ng-container",16),t.qZA()),2&K){const V=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",V.templateRight)("ngTemplateOutletContext",t.VKq(2,P,V.paginatorState))}}function Qe(K,X){if(1&K){const V=t.EpF();t.TgZ(0,"div",1),t.YNc(1,S,2,4,"div",2),t.YNc(2,k,2,1,"span",3),t.YNc(3,F,2,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(Ee){t.CHM(V);const ye=t.oxw();return t.KtG(ye.changePageToPrev(Ee))}),t._UZ(5,"span",6),t.qZA(),t.YNc(6,G,2,1,"span",7),t.YNc(7,Y,2,5,"p-dropdown",8),t.TgZ(8,"button",9),t.NdJ("click",function(Ee){t.CHM(V);const ye=t.oxw();return t.KtG(ye.changePageToNext(Ee))}),t._UZ(9,"span",10),t.qZA(),t.YNc(10,fe,2,4,"button",11),t.YNc(11,N,1,2,"p-inputNumber",12),t.YNc(12,ue,2,6,"p-dropdown",13),t.YNc(13,be,2,4,"div",14),t.qZA()}if(2&K){const V=t.oxw();t.Tol(V.styleClass),t.Q6J("ngStyle",V.style)("ngClass","p-paginator p-component"),t.xp6(1),t.Q6J("ngIf",V.templateLeft),t.xp6(1),t.Q6J("ngIf",V.showCurrentPageReport),t.xp6(1),t.Q6J("ngIf",V.showFirstLastIcon),t.xp6(1),t.Q6J("disabled",V.isFirstPage()||V.empty())("ngClass",t.VKq(17,z,V.isFirstPage()||V.empty())),t.xp6(2),t.Q6J("ngIf",V.showPageLinks),t.xp6(1),t.Q6J("ngIf",V.showJumpToPageDropdown),t.xp6(1),t.Q6J("disabled",V.isLastPage()||V.empty())("ngClass",t.VKq(19,z,V.isLastPage()||V.empty())),t.xp6(2),t.Q6J("ngIf",V.showFirstLastIcon),t.xp6(1),t.Q6J("ngIf",V.showJumpToPageInput),t.xp6(1),t.Q6J("ngIf",V.rowsPerPageOptions),t.xp6(1),t.Q6J("ngIf",V.templateRight)}}let ze=(()=>{class K{constructor(V){this.cd=V,this.pageLinkSize=5,this.onPageChange=new t.vpe,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}
1",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(V){V.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),V.first&&(this._first=V.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),V.rows&&(this.updatePageLinks(),this.updatePaginatorState()),V.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(V){this._first=V}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let V of this.rowsPerPageOptions)"object"==typeof V&&V.showAll?this.rowsPerPageItems.unshift({label:V.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(V),value:V})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let V=this.getPageCount(),q=Math.min(this.pageLinkSize,V),Ee=Math.max(0,Math.ceil(this.getPage()-q/2)),ye=Math.min(V-1,Ee+q-1);return Ee=Math.max(0,Ee-(this.pageLinkSize-(ye-Ee+1))),[Ee,ye]}updatePageLinks(){this.pageLinks=[];let V=this.calculatePageLinkBoundaries(),Ee=V[1];for(let ye=V[0];ye<=Ee;ye++)this.pageLinks.push(ye+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let ye=0;ye<this.getPageCount();ye++)this.pageItems.push({label:String(ye+1),value:ye})}}changePage(V){var q=this.getPageCount();if(V>=0&&V<q){this._first=this.rows*V;var Ee={page:V,first:this.first,rows:this.rows,pageCount:q};this.updatePageLinks(),this.onPageChange.emit(Ee),this.updatePaginatorState()}}updateFirst(){const V=this.getPage();V>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(V-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(V){this.isFirstPage()||this.changePage(0),V.preventDefault()}changePageToPrev(V){this.changePage(this.getPage()-1),V.preventDefault()}changePageToNext(V){this.changePage(this.getPage()+1),V.preventDefault()}changePageToLast(V){this.isLastPage()||this.changePage(this.getPageCount()-1),V.preventDefault()}onPageLinkClick(V,q){this.changePage(q),V.preventDefault()}onRppChange(V){this.changePage(this.getPage())}onPageDropdownChange(V){this.changePage(V.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return K.\u0275fac=function(V){return new(V||K)(t.Y36(t.sBO))},K.\u0275cmp=t.Xpm({type:K,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[t.TTD],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-
1paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(V,q){1&V&&t.YNc(0,Qe,14,21,"div",0),2&V&&t.Q6J("ngIf",!!q.alwaysShow||q.pageLinks&&q.pageLinks.length>1)},dependencies:[e.mk,e.sg,e.O5,e.tP,e.PC,D.Lt,M.jx,w.Rn,s.JJ,s.On,x.H],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),K})(),Oe=(()=>{class K{}return K.\u0275fac=function(V){return new(V||K)},K.\u0275mod=t.oAB({type:K}),K.\u0275inj=t.cJS({imports:[e.ez,D.kW,w.L$,s.u5,M.m8,x.T,D.kW,w.L$,s.u5,M.m8]}),K})()},8235:(o,u,a)=>{"use strict";a.d(u,{k:()=>w,q:()=>I});var t=a(6895),e=a(4650);function s(P,S){if(1&P&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&P){const k=e.oxw(2);e.Udp("display",null!=k.value&&0!==k.value?"flex":"none"),e.xp6(1),e.AsE("",k.value,"",k.unit,"")}}function D(P,S){if(1&P&&(e.TgZ(0,"div",3),e.YNc(1,s,2,4,"div",4),e.qZA()),2&P){const k=e.oxw();e.Udp("width",k.value+"%")("background",k.color),e.xp6(1),e.Q6J("ngIf",k.showValue)}}function x(P,S){if(1&P&&(e.TgZ(0,"div",6),e._UZ(1,"div",7),e.qZA()),2&P){const k=e.oxw();e.xp6(1),e.Udp("background",k.color)}}const M=function(P,S){return{"p-progressbar p-component":!0,"p-progressbar-determinate":P,"p-progressbar-indeterminate":S}};let w=(()=>{class P{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return P.\u0275fac=function(k){return new(k||P)},P.\u0275cmp=e.Xpm({type:P,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode",color:"color"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(k,z){1&k&&(e.TgZ(0,"div",0),e.YNc(1,D,2,5,"div",1),e.YNc(2,x,2,2,"div",2),e.qZA()),2&k&&(e.Tol(z.styleClass),e.Q6J("ngStyle",z.style)("ngClass",e.WLB(7,M,"determinate"===z.mode,"indeterminate"===z.mode)),e.uIk("aria-valuenow",z.value),e.xp6(1),e.Q6J("ngIf","determinate"===z.mode),e.xp6(1),e.Q6J("ngIf","indeterminate"===z.mode))},dependencies:[t.mk,t.O5,t.PC],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}
1.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),P})(),I=(()=>{class P{}return P.\u0275fac=function(k){return new(k||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[t.ez]}),P})()},7932:(o,u,a)=>{"use strict";a.d(u,{G:()=>s,L:()=>D});var t=a(4650),e=a(6895);let s=(()=>{class x{constructor(){this.strokeWidth="2",this.fill="none",this.animationDuration="2s"}}return x.\u0275fac=function(w){return new(w||x)},x.\u0275cmp=t.Xpm({type:x,selectors:[["p-progressSpinner"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration"},decls:3,vars:6,consts:[["role","alert","aria-busy","true",1,"p-progress-spinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progress-spinner-svg"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progress-spinner-circle"]],template:function(w,I){1&w&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t._UZ(2,"circle",2),t.qZA()()),2&w&&(t.Q6J("ngStyle",I.style)("ngClass",I.styleClass),t.xp6(1),t.Udp("animation-duration",I.animationDuration),t.xp6(1),t.uIk("fill",I.fill)("stroke-width",I.strokeWidth))},dependencies:[e.mk,e.PC],styles:['.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],encapsulation:2,changeDetection:0}),x})(),D=(()=>{class x{}return x.\u0275fac=function(w){return new(w||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[e.ez]}),x})()},613:(o,u,a)=>{"use strict";a.d(u,{EU:()=>k,cc:()=>z});var t=a(4650),e=a(6895),s=a(4006);const D=["rb"],x=function(F,ne,B){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":F,"p-disabled":ne,"p-radiobutton-label-focus":B}};function M(F,ne){if(1&F){const B=t.EpF();t.TgZ(0,"label",4),t.NdJ("click",function(W){t.CHM(B);const Y=t.oxw();return t.KtG(Y.select(W))}),t._uU(1),t.qZA()}if(2&F){const B=t.oxw(),G=t.MAs(3);t.Tol(B.labelStyleClass),t.Q6J("ngClass",t.kEZ(5,x,G.checked,B.disabled,B.focused)),t.uIk("for",B.inputId),t.xp6(1),t.Oqu(B.label)}}const w=function(F,ne,B){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":F,"p-radiobutton-disabled":ne,"p-radiobutton-focused":B}},I=function(F,ne,B){return{"p-radiobutton-box":!0,"p-highlight":F,"p-disabled":ne,"p-focus":B}},P={provide:s.JU,useExisting:(0,t.Gpc)(()=>k),multi:!0};let S=(()=>{class F{constructor(){this.accessors=[]}add(B,G){this.accessors.push([B,G])}remove(B){this.accessors=this.accessors.filter(G=>G[1]!==B)}
1select(B){this.accessors.forEach(G=>{this.isSameGroup(G,B)&&G[1]!==B&&G[1].writeValue(B.value)})}isSameGroup(B,G){return!!B[0].control&&B[0].control.root===G.control.control.root&&B[1].name===G.name}}return F.\u0275fac=function(B){return new(B||F)},F.\u0275prov=t.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})(),k=(()=>{class F{constructor(B,G,W){this.cd=B,this.injector=G,this.registry=W,this.onClick=new t.vpe,this.onFocus=new t.vpe,this.onBlur=new t.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.control=this.injector.get(s.a5),this.checkName(),this.registry.add(this.control,this)}handleClick(B,G,W){B.preventDefault(),!this.disabled&&(this.select(B),W&&G.focus())}select(B){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:B,value:this.value}))}writeValue(B){this.checked=B==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(B){this.onModelChange=B}registerOnTouched(B){this.onModelTouched=B}setDisabledState(B){this.disabled=B,this.cd.markForCheck()}onInputFocus(B){this.focused=!0,this.onFocus.emit(B)}onInputBlur(B){this.focused=!1,this.onModelTouched(),this.onBlur.emit(B)}onChange(B){this.select(B)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>\n ')}}return F.\u0275fac=function(B){return new(B||F)(t.Y36(t.sBO),t.Y36(t.zs3),t.Y36(S))},F.\u0275cmp=t.Xpm({type:F,selectors:[["p-radioButton"]],viewQuery:function(B,G){if(1&B&&t.Gf(D,5),2&B){let W;t.iGM(W=t.CRH())&&(G.inputViewChild=W.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[t._Bn([P])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(B,G){if(1&B){const W=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),t.NdJ("change",function(fe){return G.onChange(fe)})("focus",function(fe){return G.onInputFocus(fe)})("blur",function(fe){return G.onInputBlur(fe)}),t.qZA()(),t.TgZ(4,"div",4),t.NdJ("click",function(fe){t.CHM(W);const N=t.MAs(3);return t.KtG(G.handleClick(fe,N,!0))}),t._UZ(5,"span",5),t.qZA()(),t.YNc(6,M,2,9,"label",6)}2&B&&(t.Tol(G.styleClass),t.Q6J("ngStyle",G.style)("ngClass",t.kEZ(15,w,G.checked,G.disabled,G.focused)),t.xp6(2),t.Q6J("checked",G.checked)("disabled",G.disabled),t.uIk("id",G.inputId)("name",G.name)("value",G.value)("tabindex",G.tabindex)("aria-checked",G.checked)("aria-label",G.ariaLabel)("aria-labelledby",G.ariaLabelledBy),t.xp6(2),t.Q6J("ngClass",t.kEZ(19,I,G.checked,G.disabled,G.focused)),t.xp6(2),t.Q6J("ngIf",G.label))},dependencies:[e.mk,e.O5,e.PC],encapsulation:2,changeDetection:0}),F})(),z=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[e.ez]}),F})()},1795:(o,u,a)=>{"use strict";a.d(u,{H:()=>x,T:()=>M});var t=a(4650),e=a(6895),s=a(9592),D=a(805);let x=(()=>{class w{constructor(P,S,k){this.el=P,this.zone=S,this.config=k}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(P){let S=this.getInk();if(!S||"none"===getComputedStyle(S,null).display)return;if(s.p.removeClass(S,"p-ink-active"),!s.p.getHeight(S)&&!s.p.getWidth(S)){let ne=Math.max(s.p.getOuterWidth(this.el.nativeElement),s.p.getOuterHeight(this.el.nativeElement));S.style.height=ne+"px",S.style.width=ne+"px"}let k=s.p.getOffset(this.el.nativeElement),z=P.pageX-k.left+document.body.scrollTop-s.p.getWidth(S)/2,F=P.pageY-k.top+document.body.scrollLeft-s.p.getHeight(S)/2;S.style.top=F+"px",S.style.left=z+"px",s.p.addClass(S,"p-ink-active"),this.timeout=setTimeout(()=>{let ne=this.getInk();ne&&s.p.removeClass(ne,"p-ink-active")},401)}getInk(){const P=this.el.nativeElement.children;for(let S=0;S<P.length;S++)if("string"==typeof P[S].className&&-1!==P[S].className.indexOf("p-ink"))return P[S];return null}resetInk(){let P=this.getInk();P&&s.p.removeClass(P,"p-ink-active")}onAnimationEnd(P){this.timeout&&clearTimeout(this.timeout),s.p.removeClass(P.currentTarget,"p-ink-active")}create(){let P=document.createElement("span");P.className="p-ink",this.el.nativeElement.appendChild(P),this.animationListener=this.onAnimationEnd.bind(this),P.addEventListener("animationend",this.animationListener)}remove(){let P=this.getInk();P&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),P.removeEventListener("animationend",this.animationListener),s.p.removeElement(P))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return w.\u0275fac=function(P){return new(P||w)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(D.b4,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),w})(),M=(()=>{class w{}return w.\u0275fac=function(P){return new(P||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[e.ez]}),w})()},3718:(o,u,a)=>{"use strict";a.d(u,{T:()=>Ee,v:()=>ye});var t=a(6895),e=a(4650),s=a(805),D=a(9592);const x=["element"],M=["content"];function w(nt,at){1&nt&&e.GkF(0)}const I=function(nt,at){return{$implicit:nt,options:at}};function P(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,w,1,0,"ng-container",7),e.BQk()),2&nt){const me=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",me.contentTemplate)("ngTemplateOutletContext",e.WLB(2,I,me.loadedItems,me.getContentOptions()))}}function S(nt,at){1&nt&&e.GkF(0)}function k(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,S,1,0,"ng-container",7),e.BQk()),2&nt){const me=at.$implicit,ve=at.index,je=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",je.itemTemplate)("ngTemplateOutletContext",e.WLB(2,I,me,je.getOptions(ve)))}}const z=function(nt){return{"p-scroller-loading":nt}};function F(nt,at){if(1&nt&&(e.TgZ(0,"div",8,9),e.YNc(2,k,2,5,"ng-container",10),e.qZA()),2&nt){const me=e.oxw(2);e.Q6J("ngClass",e.VKq(4,z,me.d_loading))("ngStyle",me.contentStyle),e.xp6(2),e.Q6J("ngForOf",me.loadedItems)("ngForTrackBy",me._trackBy||me.index)}}function ne(nt,at){if(1&nt&&e._UZ(0,"div",11),2&nt){const me=e.oxw(2);e.Q6J("ngStyle",me.spacerStyle)}}function B(nt,at){1&nt&&e.GkF(0)}const G=function(nt){return{numCols:nt}},W=function(nt){return{options:nt}};function Y(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,B,1,0,"ng-container",7),e.BQk()),2&nt){const me=at.index,ve=e.oxw(4);e.xp6(1),e.Q6J("ngTemplateOutlet",ve.loaderTemplate)("ngTemplateOutletContext",e.VKq(4,W,ve.getLoaderOptions(me,ve.both&&e.VKq(2,G,ve._numItemsInViewport.cols))))}}function fe(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,Y,2,6,"ng-container",14),e.BQk()),2&nt){const me=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",me.loaderArr)}}function N(nt,at){1&nt&&e.GkF(0)}const Q=function(){return{styleClass:"p-scroller-loading-icon"}};function O(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,N,1,0,"ng-container",7),e.BQk()),2&nt){const me=e.oxw(4);e.xp6(1),e.Q6J("ngTemplateOutlet",me.loaderIconTemplate)("ngTemplateOutletContext",e.VKq(3,W,e.DdM(2,Q)))}}function ee(nt,at){1&nt&&e._UZ(0,"i",16)}function ue(nt,at){if(1&nt&&(e.YNc(0,O,2,5,"ng-container",0),e.YNc(1,ee,1,0,"ng-template",null,15,e.W1O)),2&nt){const me=e.MAs(2),ve=e.oxw(3);e.Q6J("ngIf",ve.loaderIconTemplate)("ngIfElse",me)}}const _e=function(nt){return{"p-component-overlay":nt}};function be(nt,at){if(1&nt&&(e.TgZ(0,"div",12),e.YNc(1,fe,2,1,"ng-container",0),e.YNc(2,ue,3,2,"ng-template",null,13,e.W1O),e.qZA()),2&nt){const me=e.MAs(3),ve=e.oxw(2);e.Q6J("ngClass",e.VKq(3,_e,!ve.loaderTemplate)),e.xp6(1),e.Q6J("ngIf",ve.loaderTemplate)("ngIfElse",me)}}const Qe=function(nt,at,me){return{"p-scroller":!0,"p-scroller-inline":nt,"p-both-scroll":at,"p-horizontal-scroll":me}};function ze(nt,at){if(1&nt){const me=e.EpF();e.ynx(0),e.TgZ(1,"div",2,3),e.NdJ("scroll",function(je){e.CHM(me);const Xe=e.oxw();return e.KtG(Xe.onContainerScroll(je))}),e.YNc(3,P,2,5,"ng-container",0),e.YNc(4,F,3,6,"ng-template",null,4,e.W1O),e.YNc(6,ne,1,1,"div",5),e.YNc(7,be,4,5,"div",6),e.qZA(),e.BQk()}if(2&nt){const me=e.MAs(5),ve=e.oxw();e.xp6(1),e.Tol(ve._styleClass),e.Q6J("ngStyle",ve._style)("ngClass",e.kEZ(10,Qe,ve.inline,ve.both,ve.horizontal)),e.uIk("id",ve._id)("tabindex",ve.tabindex),e.xp6(2),e.Q6J("ngIf",ve.contentTemplate)("ngIfElse",me),e.xp6(3),e.Q6J("ngIf",ve._showSpacer),e.xp6(1),e.Q6J("ngIf",!ve.loaderDisabled&&ve._showLoader&&ve.d_loading)}}function Oe(nt,at){1&nt&&e.GkF(0)}const K=function(nt,at){return{rows:nt,columns:at}};function X(nt,at){if(1&nt&&(e.ynx(0),e.YNc(1,Oe,1,0,"ng-container",7),e.BQk()),2&nt){const me=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",me.contentTemplate)("ngTemplateOutletContext",e.WLB(5,I,me.items,e.WLB(2,K,me._items,me.loadedColumns)))}}function V(nt,at){if(1&nt&&(e.Hsn(0),e.YNc(1,X,2,8,"ng-container",17)),2&nt){const me=e.oxw();e.xp6(1),e.Q6J("ngIf",me.contentTemplate)}}const q=["*"];let Ee=(()=>{class nt{constructor(me,ve){this.cd=me,this.zone=ve,this.onLazyLoad=new e.vpe,this.onScroll=ne
vendor: 16,316 bytes, line 1
1w e.vpe,this.onScrollIndexChange=new e.vpe,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.isRangeChanged=!1,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(me){this._id=me}get style(){return this._style}set style(me){this._style=me}get styleClass(){return this._styleClass}set styleClass(me){this._styleClass=me}get tabindex(){return this._tabindex}set tabindex(me){this._tabindex=me}get items(){return this._items}set items(me){this._items=me}get itemSize(){return this._itemSize}set itemSize(me){this._itemSize=me}get scrollHeight(){return this._scrollHeight}set scrollHeight(me){this._scrollHeight=me}get scrollWidth(){return this._scrollWidth}set scrollWidth(me){this._scrollWidth=me}get orientation(){return this._orientation}set orientation(me){this._orientation=me}get step(){return this._step}set step(me){this._step=me}get delay(){return this._delay}set delay(me){this._delay=me}get resizeDelay(){return this._resizeDelay}set resizeDelay(me){this._resizeDelay=me}get appendOnly(){return this._appendOnly}set appendOnly(me){this._appendOnly=me}get inline(){return this._inline}set inline(me){this._inline=me}get lazy(){return this._lazy}set lazy(me){this._lazy=me}get disabled(){return this._disabled}set disabled(me){this._disabled=me}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(me){this._loaderDisabled=me}get columns(){return this._columns}set columns(me){this._columns=me}get showSpacer(){return this._showSpacer}set showSpacer(me){this._showSpacer=me}get showLoader(){return this._showLoader}set showLoader(me){this._showLoader=me}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(me){this._numToleratedItems=me}get loading(){return this._loading}set loading(me){this._loading=me}get autoSize(){return this._autoSize}set autoSize(me){this._autoSize=me}get trackBy(){return this._trackBy}set trackBy(me){this._trackBy=me}get options(){return this._options}set options(me){this._options=me,me&&"object"==typeof me&&Object.entries(me).forEach(([ve,je])=>this[`_${ve}`]!==je&&(this[`_${ve}`]=je))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(me=>this._columns?me:me.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(me){let ve=!1;if(me.loading){const{previousValue:je,currentValue:Xe}=me.loading;this.lazy&&je!==Xe&&Xe!==this.d_loading&&(this.d_loading=Xe,ve=!0)}if(me.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),me.numToleratedItems){const{previousValue:je,currentValue:Xe}=me.numToleratedItems;je!==Xe&&Xe!==this.d_numToleratedItems&&(this.d_numToleratedItems=Xe)}if(me.options){const{previousValue:je,currentValue:Xe}=me.options;this.lazy&&je?.loading!==Xe?.loading&&Xe?.loading!==this.d_loading&&(this.d_loading=Xe.loading,ve=!0),je?.numToleratedItems!==Xe?.numToleratedItems&&Xe?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=Xe.numToleratedItems)}this.initialized&&!ve&&(me.items?.previousValue?.length!==me.items?.currentValue?.length||me.itemSize||me.scrollHeight||me.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(me=>{switch(me.getType()){case"content":this.contentTemplate=me.template;break;case"item":default:this.itemTemplate=me.template;break;case"loader":this.loaderTemplate=me.template;break;case"loadericon":this.loaderIconTemplate=me.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){D.p.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=D.p.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=D.p.getHeight(this.elementViewChild.nativeElement),this.defaultContentWidth=D.p.getWidth(this.contentEl),this.defaultContentHeight=D.p.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(me){this.contentEl=me||this.contentViewChild?.nativeElement||D.p.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(me){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(me)}scrollToIndex(me,ve="auto"){const{numToleratedItems:je}=this.calculateNumItems(),Xe=this.getContentPosition(),rt=(yt=0,bt)=>yt<=bt?0:yt,mt=(yt,bt,Ye)=>yt*bt+Ye,$t=(yt=0,bt=0)=>this.scrollTo({left:yt,top:bt,behavior:ve});let tn=0;this.both?(tn={rows:rt(me[0],je[0]),cols:rt(me[1],je[1])},$t(mt(tn.cols,this._itemSize[1],Xe.left),mt(tn.rows,this._itemSize[0],Xe.top))):(tn=rt(me,je),this.horizontal?$t(mt(tn,this._itemSize,Xe.left),0):$t(0,mt(tn,this._itemSize,Xe.top))),this.isRangeChanged=this.first!==tn,this.first=tn}scrollInView(me,ve,je="auto"){if(ve){const{first:Xe,viewport:rt}=this.getRenderedRange(),mt=(yt=0,bt=0)=>this.scrollTo({left:yt,top:bt,behavior:je}),tn="to-end"===ve;if("to-start"===ve){if(this.both)rt.first.rows-Xe.rows>me[0]?mt(rt.first.cols*this._itemSize[1],(rt.first.rows-1)*this._itemSize[0]):rt.first.cols-Xe.cols>me[1]&&mt((rt.first.cols-1)*this._itemSize[1],rt.first.rows*this._itemSize[0]);else if(rt.first-Xe>me){const yt=(rt.first-1)*this._itemSize;this.horizontal?mt(yt,0):mt(0,yt)}}else if(tn)if(this.both)rt.last.rows-Xe.rows<=me[0]+1?mt(rt.first.cols*this._itemSize[1],(rt.first.rows+1)*this._itemSize[0]):rt.last.cols-Xe.cols<=me[1]+1&&mt((rt.first.cols+1)*this._itemSize[1],rt.first.rows*this._itemSize[0]);else if(rt.last-Xe<=me+1){const yt=(rt.first+1)*this._itemSize;this.horizontal?mt(yt,0):mt(0,yt)}}else this.scrollToIndex(me,je)}getRenderedRange(){const me=(Xe,rt)=>Math.floor(Xe/(rt||Xe));let ve=this.first,je=0;if(this.elementViewChild?.nativeElement){const{scrollTop:Xe,scrollLeft:rt}=this.elementViewChild.nativeElement;this.both?(ve={rows:me(Xe,this._itemSize[0]),cols:me(rt,this._itemSize[1])},je={rows:ve.rows+this.numItemsInViewport.rows,cols:ve.cols+this.numItemsInViewport.cols}):(ve=me(this.horizontal?rt:Xe,this._itemSize),je=ve+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:ve,last:je}}}calculateNumItems(){const me=this.getContentPosition(),ve=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-me.left:0,je=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-me.top:0,Xe=(tn,yt)=>Math.ceil(tn/(yt||tn)),rt=tn=>Math.ceil(tn/2),mt=this.both?{rows:Xe(je,this._itemSize[0]),cols:Xe(ve,this._itemSize[1])}:Xe(this.horizontal?ve:je,this._itemSize);return{numItemsInViewport:mt,numToleratedItems:this.d_numToleratedItems||(this.both?[rt(mt.rows),rt(mt.cols)]:rt(mt))}}calculateOptions(){const{numItemsInViewport:me,numToleratedItems:ve}=this.calculateNumItems(),je=(mt,$t,tn,yt=!1)=>this.getLast(mt+$t+(mt<tn?2:3)*tn,yt),Xe=this.first,rt=this.both?{rows:je(this.first.rows,me.rows,ve[0]),cols:je(this.first.cols,me.cols,ve[1],!0)}:je(this.first,me,ve);this.last=rt,this.numItemsInViewport=me,this.d_numToleratedItems=ve,this.showLoader&&(this.loaderArr=this.both?Array.from({length:me.rows}).map(()=>Array.from({length:me.cols})):Array.from({length:me})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:Xe.cols}:0:Xe,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[me,ve]=[D.p.getWidth(this.contentEl),D.p.getHeight(this.contentEl)];me!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),ve!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[je,Xe]=[D.p.getWidth(this.elementViewChild.nativeElement),D.p.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=je<this.defaultWidth?je+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=Xe<this.defaultHeight?Xe+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(me=0,ve=!1){return this._items?Math.min(ve?(this._columns||this._items[0]).length:this._items.length,me):0}getContentPosition(){if(this.contentEl){const me=getComputedStyle(this.contentEl),ve=parseFloat(me.paddingLeft)+Math.max(parseFloat(me.left)||0,0),je=parseFloat(me.paddingRight)+Math.max(parseFloat(me.right)||0,0),Xe=parseFloat(me.paddingTop)+Math.max(parseFloat(me.top)||0,0),rt=parseFloat(me.paddingBottom)+Math.max(parseFloat(me.bottom)||0,0);return{left:ve,right:je,top:Xe,bottom:rt,x:ve+je,y:Xe+rt}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const me=this.elementViewChild.nativeElement.parentElement.parentElement,ve=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||me.offsetWidth}px`,je=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||me.offsetHeight}px`,Xe=(rt,mt)=>this.elementViewChild.nativeElement.style[rt]=mt;this.both||this.horizontal?(Xe("height",je),Xe("width",ve)):Xe("height",je)}}setSpacerSize(){if(this._items){const me=this.getContentPosition(),ve=(je,Xe,rt,mt=0)=>this.spacerStyle={...this.spacerStyle,[`${je}`]:(Xe||[]).length*rt+mt+"px"};this.both?(ve("height",this._items,this._itemSize[0],me.y),ve("width",this._columns||this._items[1],this._itemSize[1],me.x)):this.horizontal?ve("width",this._columns||this._items,this._itemSize,me.x):ve("height",this._items,this._itemSize,me.y)}}setContentPosition(me){if(this.contentEl&&!this._appendOnly){const ve=me?me.first:this.first,je=(rt,mt)=>rt*mt,Xe=(rt=0,mt=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${rt}px, ${mt}px, 0)`};if(this.both)Xe(je(ve.cols,this._itemSize[1]),je(ve.rows,this._itemSize[0]));else{const rt=je(ve,this._itemSize);this.horizontal?Xe(rt,0):Xe(0,rt)}}}onScrollPositionChange(me){const ve=me.target,je=this.getContentPosition(),Xe=(_n,zt)=>_n?_n>zt?_n-zt:_n:0,rt=(_n,zt)=>Math.floor(_n/(zt||_n)),mt=(_n,zt,Yt,It,bn,Rn)=>_n<=bn?bn:Rn?Yt-It-bn:zt+bn-1,$t=(_n,zt,Yt,It,bn,Rn,Sn)=>_n<=Rn?0:Math.max(0,Sn?_n<zt?Yt:_n-Rn:_n>zt?Yt:_n-2*Rn),tn=(_n,zt,Yt,It,bn,Rn=!1)=>{let Sn=zt+It+2*bn;return _n>=bn&&(Sn+=bn+1),this.getLast(Sn,Rn)},yt=Xe(ve.scrollTop,je.top),bt=Xe(ve.scrollLeft,je.left);let Ye=this.both?{rows:0,cols:0}:0,Nt=this.last,xn=!1,pn=this.lastScrollPos;if(this.both){const _n=this.lastScrollPos.top<=yt,zt=this.lastScrollPos.left<=bt;if(!this._appendOnly||this._appendOnly&&(_n||zt)){const Yt={rows:rt(yt,this._itemSize[0]),cols:rt(bt,this._itemSize[1])},It={rows:mt(Yt.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],_n),cols:mt(Yt.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],zt)};Ye={rows:$t(Yt.rows,It.rows,this.first.rows,0,0,this.d_numToleratedItems[0],_n),cols:$t(Yt.cols,It.cols,this.first.cols,0,0,this.d_numToleratedItems[1],zt)},Nt={rows:tn(Yt.rows,Ye.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:tn(Yt.cols,Ye.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},xn=Ye.rows!==this.first.rows||Nt.rows!==this.last.rows||Ye.cols!==this.first.cols||Nt.cols!==this.last.cols||this.isRangeChanged,pn={top:yt,left:bt}}}else{const _n=this.horizontal?bt:yt,zt=this.lastScrollPos<=_n;if(!this._appendOnly||this._appendOnly&&zt){const Yt=rt(_n,this._itemSize);Ye=$t(Yt,mt(Yt,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,zt),this.first,0,0,this.d_numToleratedItems,zt),Nt=tn(Yt,Ye,0,this.numItemsInViewport,this.d_numToleratedItems),xn=Ye!==this.first||Nt!==this.last||this.isRangeChanged,pn=_n}}return{first:Ye,last:Nt,isRangeChanged:xn,scrollPos:pn}}onScrollChange(me){const{first:ve,last:je,isRangeChanged:Xe,scrollPos:rt}=this.onScrollPositionChange(me);if(Xe){const mt={first:ve,last:je};if(this.setContentPosition(mt),this.first=ve,this.last=je,this.lastScrollPos=rt,this.handleEvents("onScrollIndexChange",mt),this._lazy&&this.isPageChanged){const $t={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):ve,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:je,this.items.length)};(this.lazyLoadState.first!==$t.first||this.lazyLoadState.last!==$t.last)&&this.handleEvents("onLazyLoad",$t),this.lazyLoadState=$t}}}onContainerScroll(me){if(this.handleEvents("onScroll",{originalEvent:me}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:ve}=this.onScrollPositionChange(me);(ve||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(me),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(me)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(D.p.isVisible(this.elementViewChild?.nativeElement)){const[me,ve]=[D.p.getWidth(this.elementViewChild.nativeElement),D.p.getHeight(this.elementViewChild.nativeElement)],[je,Xe]=[me!==this.defaultWidth,ve!==this.defaultHeight];(this.both?je||Xe:this.horizontal?je:this.vertical&&Xe)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=me,this.defaultHeight=ve,this.defaultContentWidth=D.p.getWidth(this.contentEl),this.defaultContentHeight=D.p.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(me,ve){return this.options&&this.options[me]?this.options[me](ve):this[me].emit
1(ve)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:me=>this.getOptions(me),loading:this.d_loading,getLoaderOptions:(me,ve)=>this.getLoaderOptions(me,ve),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(me){const ve=(this._items||[]).length,je=this.both?this.first.rows+me:this.first+me;return{index:je,count:ve,first:0===je,last:je===ve-1,even:je%2==0,odd:je%2!=0}}getLoaderOptions(me,ve){const je=this.loaderArr.length;return{index:me,count:je,first:0===me,last:me===je-1,even:me%2==0,odd:me%2!=0,...ve}}}return nt.\u0275fac=function(me){return new(me||nt)(e.Y36(e.sBO),e.Y36(e.R0b))},nt.\u0275cmp=e.Xpm({type:nt,selectors:[["p-scroller"]],contentQueries:function(me,ve,je){if(1&me&&e.Suo(je,s.jx,4),2&me){let Xe;e.iGM(Xe=e.CRH())&&(ve.templates=Xe)}},viewQuery:function(me,ve){if(1&me&&(e.Gf(x,5),e.Gf(M,5)),2&me){let je;e.iGM(je=e.CRH())&&(ve.elementViewChild=je.first),e.iGM(je=e.CRH())&&(ve.contentViewChild=je.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[e.TTD],ngContentSelectors:q,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(me,ve){if(1&me&&(e.F$t(),e.YNc(0,ze,8,14,"ng-container",0),e.YNc(1,V,2,1,"ng-template",null,1,e.W1O)),2&me){const je=e.MAs(2);e.Q6J("ngIf",!ve._disabled)("ngIfElse",je)}},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),nt})(),ye=(()=>{class nt{}return nt.\u0275fac=function(me){return new(me||nt)},nt.\u0275mod=e.oAB({type:nt}),nt.\u0275inj=e.cJS({imports:[t.ez]}),nt})()},3214:(o,u,a)=>{"use strict";a.d(u,{Y:()=>fe,l:()=>N});var t=a(4650),e=a(7340),s=a(6895),D=a(1795),x=a(9592),M=a(805),w=a(982);function I(Q,O){1&Q&&t.GkF(0)}function P(Q,O){if(1&Q){const ee=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(_e){t.CHM(ee);const be=t.oxw(2);return t.KtG(be.close(_e))})("keydown.enter",function(_e){t.CHM(ee);const be=t.oxw(2);return t.KtG(be.close(_e))}),t._UZ(1,"span",9),t.qZA()}if(2&Q){const ee=t.oxw(2);t.uIk("aria-label",ee.ariaCloseLabel)}}function S(Q,O){1&Q&&t.GkF(0)}function k(Q,O){1&Q&&t.GkF(0)}const z=function(Q,O,ee,ue,_e,be){return{"p-sidebar":!0,"p-sidebar-active":Q,"p-sidebar-left":O,"p-sidebar-right":ee,"p-sidebar-top":ue,"p-sidebar-bottom":_e,"p-sidebar-full":be}},F=function(Q,O){return{transform:Q,transition:O}},ne=function(Q){return{value:"visible",params:Q}};function B(Q,O){if(1&Q){const ee=t.EpF();t.TgZ(0,"div",1,2),t.NdJ("@panelState.start",function(_e){t.CHM(ee);const be=t.oxw();return t.KtG(be.onAnimationStart(_e))})("@panelState.done",function(_e){t.CHM(ee);const be=t.oxw();return t.KtG(be.onAnimationEnd(_e))}),t.TgZ(2,"div",3),t.YNc(3,I,1,0,"ng-container",4),t.YNc(4,P,2,1,"button",5),t.qZA(),t.TgZ(5,"div",6),t.Hsn(6),t.YNc(7,S,1,0,"ng-container",4),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,k,1,0,"ng-container",4),t.qZA()()}if(2&Q){const ee=t.oxw();t.Tol(ee.styleClass),t.Q6J("ngClass",t.HTZ(10,z,ee.visible,"left"===ee.position&&!ee.fullScreen,"right"===ee.position&&!ee.fullScreen,"top"===ee.position&&!ee.fullScreen,"bottom"===ee.position&&!ee.fullScreen,ee.fullScreen))("@panelState",t.VKq(20,ne,t.WLB(17,F,ee.transformOptions,ee.transitionOptions)))("ngStyle",ee.style),t.uIk("aria-modal",ee.modal),t.xp6(3),t.Q6J("ngTemplateOutlet",ee.headerTemplate),t.xp6(1),t.Q6J("ngIf",ee.showCloseIcon),t.xp6(3),t.Q6J("ngTemplateOutlet",ee.contentTemplate),t.xp6(2),t.Q6J("ngTemplateOutlet",ee.footerTemplate)}}const G=["*"],W=(0,e.oQ)([(0,e.oB)({transform:"{{transform}}",opacity:0}
1),(0,e.jt)("{{transition}}")]),Y=(0,e.oQ)([(0,e.jt)("{{transition}}",(0,e.oB)({transform:"{{transform}}",opacity:0}))]);let fe=(()=>{class Q{constructor(ee,ue,_e,be){this.el=ee,this.renderer=ue,this.cd=_e,this.config=be,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.modal=!0,this.dismissible=!0,this.showCloseIcon=!0,this.closeOnEscape=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.onShow=new t.vpe,this.onHide=new t.vpe,this.visibleChange=new t.vpe,this._position="left",this._fullScreen=!1,this.transformOptions="translate3d(-100%, 0px, 0px)"}ngAfterViewInit(){this.initialized=!0}ngAfterContentInit(){this.templates.forEach(ee=>{switch(ee.getType()){case"content":default:this.contentTemplate=ee.template;break;case"header":this.headerTemplate=ee.template;break;case"footer":this.footerTemplate=ee.template}})}get visible(){return this._visible}set visible(ee){this._visible=ee}get position(){return this._position}set position(ee){switch(this._position=ee,ee){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)"}}get fullScreen(){return this._fullScreen}set fullScreen(ee){this._fullScreen=ee,ee&&(this.transformOptions="none")}show(){this.autoZIndex&&w.P9.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(){this.onHide.emit({}),this.modal&&this.disableModality()}close(ee){this.hide(),this.visibleChange.emit(!1),ee.preventDefault()}enableModality(){this.mask||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(this.container.style.zIndex)-1),x.p.addMultipleClasses(this.mask,"p-component-overlay p-sidebar-mask p-component-overlay p-component-overlay-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",ee=>{this.dismissible&&this.close(ee)})),document.body.appendChild(this.mask),this.blockScroll&&x.p.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(x.p.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyModal.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyModal(){this.unbindMaskClickListener(),this.mask&&document.body.removeChild(this.mask),this.blockScroll&&x.p.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(ee){"visible"===ee.toState&&(this.container=ee.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener())}onAnimationEnd(ee){"void"===ee.toState&&(this.hide(),w.P9.clear(this.container),this.unbindGlobalListeners())}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):x.p.appendChild(this.container,this.appendTo))}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",ue=>{27==ue.which&&parseInt(this.container.style.zIndex)===w.P9.get(this.container)&&this.close(ue)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.el.nativeElement.appendChild(this.container),this.container&&this.autoZIndex&&w.P9.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}}return Q.\u0275fac=function(ee){return new(ee||Q)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(M.b4))},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["p-sidebar"]],contentQueries:function(ee,ue,_e){if(1&ee&&t.Suo(_e,M.jx,4),2&ee){let be;t.iGM(be=t.CRH())&&(ue.templates=be)}},hostAttrs:[1,"p-element"],inputs:{appendTo:"appendTo",blockScroll:"blockScroll",style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",modal:"modal",dismissible:"dismissible",showCloseIcon:"showCloseIcon",closeOnEscape:"closeOnEscape",transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},ngContentSelectors:G,decls:1,vars:1,consts:[["role","complementary",3,"ngClass","ngStyle","class",4,"ngIf"],["role","complementary",3,"ngClass","ngStyle"],["container",""],[1,"p-sidebar-header"],[4,"ngTemplateOutlet"],["type","button","class","p-sidebar-close p-sidebar-icon p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[1,"p-sidebar-content"],[1,"p-sidebar-footer"],["type","button","pRipple","",1,"p-sidebar-close","p-sidebar-icon","p-link",3,"click","keydown.enter"],[1,"p-sidebar-close-icon","pi","pi-times"]],template:function(ee,ue){1&ee&&(t.F$t(),t.YNc(0,B,10,22,"div",0)),2&ee&&t.Q6J("ngIf",ue.visible)},dependencies:[s.mk,s.O5,s.tP,s.PC,D.H],styles:[".p-sidebar{position:fixed;transition:transform .3s;display:flex;flex-direction:column}.p-sidebar-content{position:relative;overflow-y:auto}.p-sidebar-header{display:flex;align-items:center}.p-sidebar-footer{margin-top:auto}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;margin-left:auto}.p-sidebar-left{top:0;left:0;width:20rem;height:100%}.p-sidebar-right{top:0;right:0;width:20rem;height:100%}.p-sidebar-top{top:0;left:0;width:100%;height:10rem}.p-sidebar-bottom{bottom:0;left:0;width:100%;height:10rem}.p-sidebar-full{width:100%;height:100%;top:0;left:0;transition:none}.p-sidebar-left.p-sidebar-sm,.p-sidebar-right.p-sidebar-sm{width:20rem}.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-md{width:40rem}.p-sidebar-left.p-sidebar-lg,.p-sidebar-right.p-sidebar-lg{width:60rem}.p-sidebar-top.p-sidebar-sm,.p-sidebar-bottom.p-sidebar-sm{height:10rem}.p-sidebar-top.p-sidebar-md,.p-sidebar-bottom.p-sidebar-md{height:20rem}.p-sidebar-top.p-sidebar-lg,.p-sidebar-bottom.p-sidebar-lg{height:30rem}@media screen and (max-width: 64em){.p-sidebar-left.p-sidebar-lg,.p-sidebar-left.p-sidebar-md,.p-sidebar-right.p-sidebar-lg,.p-sidebar-right.p-sidebar-md{width:20rem}}\n"],encapsulation:2,data:{animation:[(0,e.X$)("panelState",[(0,e.eR)("void => visible",[(0,e._7)(W)]),(0,e.eR)("visible => void",[(0,e._7)(Y)])])]},changeDetection:0}),Q})(),N=(()=>{class Q{}return Q.\u0275fac=function(ee){return new(ee||Q)},Q.\u0275mod=t.oAB({type:Q}),Q.\u0275inj=t.cJS({imports:[s.ez,D.T]}),Q})()},8396:(o,u,a)=>{"use strict";a.d(u,{iA:()=>ts,U$:()=>kr});var t=a(6895),e=a(4650),s=a(4006),D=a(805),x=a(5593),M=a(585),w=a(9592),I=a(2210),P=a(5047),S=a(1740),k=a(1997),z=a(3718),F=a(982),ne=a(1795);function B(He,gt){if(1&He&&e._UZ(0,"span",8),2&He){const H=e.oxw(2).$implicit;e.Tol(H.icon),e.Q6J("ngClass","p-button-icon p-button-icon-left")}}function G(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,B,1,3,"span",6),e.TgZ(2,"span",7),e._uU(3),e.qZA(),e.BQk()),2&He){const H=e.oxw().$implicit,xe=e.oxw();e.xp6(1),e.Q6J("ngIf",H.icon),e.xp6(2),e.Oqu(xe.getOptionLabel(H))}}function W(He,gt){1&He&&e.GkF(0)}const Y=function(He,gt){return{$implicit:He,index:gt}};function fe(He,gt){if(1&He&&e.YNc(0,W,1,0,"ng-container",9),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw();e.Q6J("ngTemplateOutlet",et.itemTemplate)("ngTemplateOutletContext",e.WLB(2,Y,xe,Fe))}}const N=function(He,gt,H){return{"p-highlight":He,"p-disabled":gt,"p-button-icon-only":H}};function Q(He,gt){if(1&He){const H=e.EpF();e.TgZ(0,"div",2,3),e.NdJ("click",function(Fe){const et=e.CHM(H),en=et.$implicit,mn=et.index,kn=e.oxw();return e.KtG(kn.onItemClick(Fe,en,mn))})("keydown.enter",function(Fe){const et=e.CHM(H),en=et.$implicit,mn=et.index,kn=e.oxw();return e.KtG(kn.onItemClick(Fe,en,mn))})("blur",function(){e.CHM(H);const Fe=e.oxw();return e.KtG(Fe.onBlur())}),e.YNc(2,G,4,2,"ng-container",4),e.YNc(3,fe,1,5,"ng-template",null,5,e.W1O),e.qZA()}if(2&He){const H=gt.$implicit,xe=e.MAs(4),Fe=e.oxw();e.Tol(H.styleClass),e.Q6J("ngClass",e.kEZ(10,N,Fe.isSelected(H),Fe.disabled||Fe.isOptionDisabled(H),H.icon&&!Fe.getOptionLabel(H))),e.uIk("aria-pressed",Fe.isSelected(H))("title",H.title)("aria-label",H.label)("tabindex",Fe.disabled?null:Fe.tabindex)("aria-labelledby",Fe.getOptionLabel(H)),e.xp6(2),e.Q6J("ngIf",!Fe.itemTemplate)("ngIfElse",xe)}}const O={provide:s.JU,useExisting:(0,e.Gpc)(()=>ee),multi:!0};let ee=(()=>{class He{constructor(H){this.cd=H,this.tabindex=0,this.onOptionClick=new e.vpe,this.onChange=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(H){return this.optionLabel?F.gb.resolveFieldData(H,this.optionLabel):null!=H.label?H.label:H}getOptionValue(H){return this.optionValue?F.gb.resolveFieldData(H,this.optionValue):this.optionLabel||void 0===H.value?H:H.value}isOptionDisabled(H){return this.optionDisabled?F.gb.resolveFieldData(H,this.optionDisabled):void 0!==H.disabled&&H.disabled}writeValue(H){this.value=H,this.cd.markForCheck()}registerOnChange(H){this.onModelChange=H}registerOnTouched(H){this.onModelTouched=H}setDisabledState(H){this.disabled=H,this.cd.markForCheck()}onItemClick(H,xe,Fe){if(!this.disabled&&!this.isOptionDisabled(xe)){if(this.multiple)this.isSelected(xe)?this.removeOption(xe):this.value=[...this.value||[],this.getOptionValue(xe)],this.onModelChange(this.value),this.onChange.emit({originalEvent:H,value:this.value});else{let et=this.getOptionValue(xe);this.value!==et&&(this.value=this.getOptionValue(xe),this.onModelChange(this.value),this.onChange.emit({originalEvent:H,value:this.value}))}this.onOptionClick.emit({originalEvent:H,option:xe,index:Fe})}}onBlur(){this.onModelTouched()}removeOption(H){this.value=this.value.filter(xe=>!F.gb.equals(xe,this.getOptionValue(H),this.dataKey))}isSelected(H){let xe=!1,Fe=this.getOptionValue(H);if(this.multiple){if(this.value&&this.value instanceof Array)for(let et of this.value)if(F.gb.equals(et,Fe,this.dataKey)){xe=!0;break}}else xe=F.gb.equals(this.getOptionValue(H),this.value,this.dataKey);return xe}}return He.\u0275fac=function(H){return new(H||He)(e.Y36(e.sBO))},He.\u0275cmp=e.Xpm({type:He,selectors:[["p-selectButton"]],contentQueries:function(H,xe,Fe){if(1&H&&e.Suo(Fe,e.Rgc,5),2&H){let et;e.iGM(et=e.CRH())&&(xe.itemTemplate=et.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[e._Bn([O])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(H,xe){1&H&&(e.TgZ(0,"div",0),e.YNc(1,Q,5,14,"div",1),e.qZA()),2&H&&(e.Tol(xe.styleClass),e.Q6J("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",xe.style),e.xp6(1),e.Q6J("ngForOf",xe.options))},dependencies:[t.mk,t.sg,t.O5,t.tP,t.PC,ne.H],styles:['.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}\n'],encapsulation:2,changeDetection:0}),He})(),ue=(()=>{class He{}return He.\u0275fac=function(H){return new(H||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[t.ez,ne.T]}),He})();const _e=function(He,gt,H){return{"p-checkbox-label-active":He,"p-disabled":gt,"p-checkbox-label-focus":H}};function be(He,gt){if(1&He){const H=e.EpF();e.TgZ(0,"label",7),e.NdJ("click",function(Fe){e.CHM(H);const et=e.oxw(),en=e.MAs(3);return e.KtG(et.onClick(Fe,en))}),e._uU(1),e.qZA()}if(2&He){const H=e.oxw();e.Q6J("ngClass",e.kEZ(3,_e,null!=H.value,H.disabled,H.focused)),e.uIk("for",H.inputId),e.xp6(1),e.Oqu(H.label)}}const Qe=function(He,gt){return{"p-checkbox p-component":!0,"p-checkbox-disabled":He,"p-checkbox-focused":gt}},ze=function(He,gt,H){return{"p-highlight":He,"p-disabled":gt,"p-focus":H}},Oe={provide:s.JU,useExisting:(0,e.Gpc)(()=>K),multi:!0};let K=(()=>{class He{constructor(H){this.cd=H,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new e.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(H,xe){!this.disabled&&!this.readonly&&(this.toggle(H),this.focused=!0,xe.focus())}
1onKeydown(H){32==H.keyCode&&H.preventDefault()}onKeyup(H){32==H.keyCode&&!this.readonly&&(this.toggle(H),H.preventDefault())}toggle(H){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:H,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(H){this.onModelChange=H}registerOnTouched(H){this.onModelTouched=H}writeValue(H){this.value=H,this.cd.markForCheck()}setDisabledState(H){this.disabled=H,this.cd.markForCheck()}}return He.\u0275fac=function(H){return new(H||He)(e.Y36(e.sBO))},He.\u0275cmp=e.Xpm({type:He,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[e._Bn([Oe])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(H,xe){if(1&H){const Fe=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),e.NdJ("keyup",function(en){return xe.onKeyup(en)})("keydown",function(en){return xe.onKeydown(en)})("focus",function(){return xe.onFocus()})("blur",function(){return xe.onBlur()}),e.qZA()(),e.TgZ(4,"div",4),e.NdJ("click",function(en){e.CHM(Fe);const mn=e.MAs(3);return e.KtG(xe.onClick(en,mn))}),e._UZ(5,"span",5),e.qZA()(),e.YNc(6,be,2,7,"label",6)}2&H&&(e.Tol(xe.styleClass),e.Q6J("ngStyle",xe.style)("ngClass",e.WLB(14,Qe,xe.disabled,xe.focused)),e.xp6(2),e.Q6J("name",xe.name)("readonly",xe.readonly)("disabled",xe.disabled),e.uIk("id",xe.inputId)("tabindex",xe.tabindex)("aria-labelledby",xe.ariaLabelledBy),e.xp6(2),e.Q6J("ngClass",e.kEZ(17,ze,null!=xe.value,xe.disabled,xe.focused)),e.uIk("aria-checked",!0===xe.value),e.xp6(1),e.Q6J("ngClass",!0===xe.value?xe.checkboxTrueIcon:!1===xe.value?xe.checkboxFalseIcon:""),e.xp6(1),e.Q6J("ngIf",xe.label))},dependencies:[t.mk,t.O5,t.PC],encapsulation:2,changeDetection:0}),He})(),X=(()=>{class He{}return He.\u0275fac=function(H){return new(H||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[t.ez]}),He})();var V=a(7579);const q=["container"],Ee=["resizeHelper"],ye=["reorderIndicatorUp"],nt=["reorderIndicatorDown"],at=["wrapper"],me=["table"],ve=["thead"],je=["tfoot"],Xe=["scroller"];function rt(He,gt){if(1&He&&(e.TgZ(0,"div",15),e._UZ(1,"i"),e.qZA()),2&He){const H=e.oxw();e.xp6(1),e.Tol("p-datatable-loading-icon pi-spin "+H.loadingIcon)}}function mt(He,gt){1&He&&e.GkF(0)}function $t(He,gt){if(1&He&&(e.TgZ(0,"div",16),e.YNc(1,mt,1,0,"ng-container",17),e.qZA()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",H.captionTemplate)}}function tn(He,gt){if(1&He){const H=e.EpF();e.TgZ(0,"p-paginator",18),e.NdJ("onPageChange",function(Fe){e.CHM(H);const et=e.oxw();return e.KtG(et.onPageChange(Fe))}),e.qZA()}if(2&He){const H=e.oxw();e.Q6J("rows",H.rows)("first",H.first)("totalRecords",H.totalRecords)("pageLinkSize",H.pageLinks)("alwaysShow",H.alwaysShowPaginator)("rowsPerPageOptions",H.rowsPerPageOptions)("templateLeft",H.paginatorLeftTemplate)("templateRight",H.paginatorRightTemplate)("dropdownAppendTo",H.paginatorDropdownAppendTo)("dropdownScrollHeight",H.paginatorDropdownScrollHeight)("currentPageReportTemplate",H.currentPageReportTemplate)("showFirstLastIcon",H.showFirstLastIcon)("dropdownItemTemplate",H.paginatorDropdownItemTemplate)("showCurrentPageReport",H.showCurrentPageReport)("showJumpToPageDropdown",H.showJumpToPageDropdown)("showJumpToPageInput",H.showJumpToPageInput)("showPageLinks",H.showPageLinks)}}function yt(He,gt){1&He&&e.GkF(0)}const bt=function(He,gt){return{$implicit:He,options:gt}};function Ye(He,gt){if(1&He&&e.YNc(0,yt,1,0,"ng-container",22),2&He){const H=gt.$implicit,xe=gt.options;e.oxw(2);const Fe=e.MAs(10);e.Q6J("ngTemplateOutlet",Fe)("ngTemplateOutletContext",e.WLB(2,bt,H,xe))}}const Nt=function(He){return{height:He}};function xn(He,gt){if(1&He){const H=e.EpF();e.TgZ(0,"p-scroller",19,20),e.NdJ("onLazyLoad",function(Fe){e.CHM(H);const et=e.oxw();return e.KtG(et.onLazyItemLoad(Fe))}),e.YNc(2,Ye,1,5,"ng-template",21),e.qZA()}if(2&He){const H=e.oxw();e.Akn(e.VKq(15,Nt,"flex"!==H.scrollHeight?H.scrollHeight:void 0)),e.Q6J("items",H.processedData)("columns",H.columns)("scrollHeight","flex"!==H.scrollHeight?void 0:"100%")("itemSize",H.virtualScrollItemSize||H._virtualRowHeight)("step",H.rows)("delay",H.lazy?H.virtualScrollDelay:0)("inline",!0)("lazy",H.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",H.loadingBodyTemplate)("options",H.virtualScrollOptions)("autoSize",!0)}}function pn(He,gt){1&He&&e.GkF(0)}const _n=function(He){return{columns:He}};function zt(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,pn,1,0,"ng-container",22),e.BQk()),2&He){const H=e.oxw(),xe=e.MAs(10);e.xp6(1),e.Q6J("ngTemplateOutlet",xe)("ngTemplateOutletContext",e.WLB(4,bt,H.processedData,e.VKq(2,_n,H.columns)))}}function Yt(He,gt){1&He&&e.GkF(0)}function It(He,gt){1&He&&e.GkF(0)}function bn(He,gt){if(1&He&&e._UZ(0,"tbody",31),2&He){const H=e.oxw().options,xe=e.oxw();e.Q6J("value",xe.frozenValue)("frozenRows",!0)("pTableBody",H.columns)("pTableBodyTemplate",xe.frozenBodyTemplate)("frozen",!0)}}function Rn(He,gt){if(1&He&&e._UZ(0,"tbody",32),2&He){const H=e.oxw().options;e.Akn("height: calc("+H.spacerStyle.height+" - "+H.rows.length*H.itemSize+"px);")}}function Sn(He,gt){1&He&&e.GkF(0)}const vn=function(He){return{$implicit:He}};function mi(He,gt){if(1&He&&(e.TgZ(0,"tfoot",33,34),e.YNc(2,Sn,1,0,"ng-container",22),e.qZA()),2&He){const H=e.oxw().options,xe=e.oxw();e.xp6(2),e.Q6J("ngTemplateOutlet",xe.footerGroupedTemplate||xe.footerTemplate)("ngTemplateOutletContext",e.VKq(2,vn,H.columns))}}const Un=function(He,gt,H){return{"p-datatable-table":!0,"p-datatable-scrollable-table":He,"p-datatable-resizable-table":gt,"p-datatable-resizable-table-fit":H}};function Jn(He,gt){if(1&He&&(e.TgZ(0,"table",23,24),e.YNc(2,Yt,1,0,"ng-container",22),e.TgZ(3,"thead",25,26),e.YNc(5,It,1,0,"ng-container",22),e.qZA(),e.YNc(6,bn,1,5,"tbody",27),e._UZ(7,"tbody",28),e.YNc(8,Rn,1,2,"tbody",29),e.YNc(9,mi,3,4,"tfoot",30),e.qZA()),2&He){const H=gt.options,xe=e.oxw();e.Akn(xe.tableStyle),e.Tol(xe.tableStyleClass),e.Q6J("ngClass",e.kEZ(20,Un,xe.scrollable,xe.resizableColumns,xe.resizableColumns&&"fit"===xe.columnResizeMode)),e.uIk("id",xe.id+"-table"),e.xp6(2),e.Q6J("ngTemplateOutlet",xe.colGroupTemplate)("ngTemplateOutletContext",e.VKq(24,vn,H.columns)),e.xp6(3),e.Q6J("ngTemplateOutlet",xe.headerGroupedTemplate||xe.headerTemplate)("ngTemplateOutletContext",e.VKq(26,vn,H.columns)),e.xp6(1),e.Q6J("ngIf",xe.frozenValue||xe.frozenBodyTemplate),e.xp6(1),e.Akn(H.contentStyle),e.Q6J("ngClass",H.contentStyleClass)("value",xe.dataToRender(H.rows))("pTableBody",H.columns)("pTableBodyTemplate",xe.bodyTemplate)("scrollerOptions",H),e.xp6(1),e.Q6J("ngIf",H.spacerStyle),e.xp6(1),e.Q6J("ngIf",xe.footerGroupedTemplate||xe.footerTemplate)}}function Mt(He,gt){if(1&He){const H=e.EpF();e.TgZ(0,"p-paginator",35),e.NdJ("onPageChange",function(Fe){e.CHM(H);const et=e.oxw();return e.KtG(et.onPageChange(Fe))}),e.qZA()}if(2&He){const H=e.oxw();e.Q6J("rows",H.rows)("first",H.first)("totalRecords",H.totalRecords)("pageLinkSize",H.pageLinks)("alwaysShow",H.alwaysShowPaginator)("rowsPerPageOptions",H.rowsPerPageOptions)("templateLeft",H.paginatorLeftTemplate)("templateRight",H.paginatorRightTemplate)("dropdownAppendTo",H.paginatorDropdownAppendTo)("dropdownScrollHeight",H.paginatorDropdownScrollHeight)("currentPageReportTemplate",H.currentPageReportTemplate)("showFirstLastIcon",H.showFirstLastIcon)("dropdownItemTemplate",H.paginatorDropdownItemTemplate)("showCurrentPageReport",H.showCurrentPageReport)("showJumpToPageDropdown",H.showJumpToPageDropdown)("showJumpToPageInput",H.showJumpToPageInput)("showPageLinks",H.showPageLinks)}}function Vt(He,gt){1&He&&e.GkF(0)}function Z(He,gt){if(1&He&&(e.TgZ(0,"div",36),e.YNc(1,Vt,1,0,"ng-container",17),e.qZA()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",H.summaryTemplate)}}function re(He,gt){1&He&&e._UZ(0,"div",37,38)}function pe(He,gt){1&He&&e._UZ(0,"span",39,40)}function Re(He,gt){1&He&&e._UZ(0,"span",41,42)}const Bt=function(He,gt,H){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":He,"p-datatable-scrollable":gt,"p-datatable-flex-scrollable":H}},jt=function(He){return{maxHeight:He}},_t=["pTableBody",""];function dt(He,gt){1&He&&e.GkF(0)}const Be=function(He,gt,H,xe,Fe){return{$implicit:He,rowIndex:gt,columns:H,editing:xe,frozen:Fe}};function Te(He,gt){if(1&He&&(e.ynx(0,3),e.YNc(1,dt,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.groupHeaderTemplate)("ngTemplateOutletContext",e.qbA(2,Be,xe,et.getRowIndex(Fe),et.columns,"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}function We(He,gt){1&He&&e.GkF(0)}function ft(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,We,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",xe?et.template:et.dt.loadingBodyTemplate)("ngTemplateOutletContext",e.qbA(2,Be,xe,et.getRowIndex(Fe),et.columns,"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}function Ft(He,gt){1&He&&e.GkF(0)}const Pt=function(He,gt,H,xe,Fe,et,en){return{$implicit:He,rowIndex:gt,columns:H,editing:xe,frozen:Fe,rowgroup:et,rowspan:en}};function pt(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,Ft,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",xe?et.template:et.dt.loadingBodyTemplate)("ngTemplateOutletContext",e.Hh0(2,Pt,xe,et.getRowIndex(Fe),et.columns,"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen,et.shouldRenderRowspan(et.value,xe,Fe),et.calculateRowGroupSize(et.value,xe,Fe)))}}function wt(He,gt){1&He&&e.GkF(0)}function lt(He,gt){if(1&He&&(e.ynx(0,3),e.YNc(1,wt,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.groupFooterTemplate)("ngTemplateOutletContext",e.qbA(2,Be,xe,et.getRowIndex(Fe),et.columns,"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}function xt(He,gt){if(1&He&&(e.YNc(0,Te,2,8,"ng-container",2),e.YNc(1,ft,2,8,"ng-container",0),e.YNc(2,pt,2,10,"ng-container",0),e.YNc(3,lt,2,8,"ng-container",2)),2&He){const H=gt.$implicit,xe=gt.index,Fe=e.oxw(2);e.Q6J("ngIf",Fe.dt.groupHeaderTemplate&&!Fe.dt.virtualScroll&&"subheader"===Fe.dt.rowGroupMode&&Fe.shouldRenderRowGroupHeader(Fe.value,H,xe)),e.xp6(1),e.Q6J("ngIf","rowspan"!==Fe.dt.rowGroupMode),e.xp6(1),e.Q6J("ngIf","rowspan"===Fe.dt.rowGroupMode),e.xp6(1),e.Q6J("ngIf",Fe.dt.groupFooterTemplate&&!Fe.dt.virtualScroll&&"subheader"===Fe.dt.rowGroupMode&&Fe.shouldRenderRowGroupFooter(Fe.value,H,xe))}}function $e(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,xt,4,4,"ng-template",1),e.BQk()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngForOf",H.value)("ngForTrackBy",H.dt.rowTrackBy)}}function ht(He,gt){1&He&&e.GkF(0)}const Ht=function(He,gt,H,xe,Fe,et){return{$implicit:He,rowIndex:gt,columns:H,expanded:xe,editing:Fe,frozen:et}};function Jt(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,ht,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.template)("ngTemplateOutletContext",e.HTZ(2,Ht,xe,et.getRowIndex(Fe),et.columns,et.dt.isRowExpanded(xe),"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}function Dn(He,gt){1&He&&e.GkF(0)}function En(He,gt){if(1&He&&(e.ynx(0,3),e.YNc(1,Dn,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.groupHeaderTemplate)("ngTemplateOutletContext",e.HTZ(2,Ht,xe,et.getRowIndex(Fe),et.columns,et.dt.isRowExpanded(xe),"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}function At(He,gt){1&He&&e.GkF(0)}function Ct(He,gt){1&He&&e.GkF(0)}function qe(He,gt){if(1&He&&(e.ynx(0,3),e.YNc(1,Ct,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(2),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.groupFooterTemplate)("ngTemplateOutletContext",e.HTZ(2,Ht,xe,et.getRowIndex(Fe),et.columns,et.dt.isRowExpanded(xe),"row"===et.dt.editMode&&et.dt.isRowEditing(xe),et.frozen))}}const Tt=function(He,gt,H,xe){return{$implicit:He,rowIndex:gt,columns:H,frozen:xe}};function Qt(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,At,1,0,"ng-container",4),e.YNc(2,qe,2,9,"ng-container",2),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.expandedRowTemplate)("ngTemplateOutletContext",e.l5B(3,Tt,xe,et.getRowIndex(Fe),et.columns,et.frozen)),e.xp6(1),e.Q6J("ngIf",et.dt.groupFooterTemplate&&"subheader"===et.dt.rowGroupMode&&et.shouldRenderRowGroupFooter(et.value,xe,et.getRowIndex(Fe)))}}function nn(He,gt){if(1&He&&(e.YNc(0,Jt,2,9,"ng-container",0),e.YNc(1,En,2,9,"ng-container",2),e.YNc(2,Qt,3,8,"ng-container",0)),2&He){const H=gt.$implicit,xe=gt.index,Fe=e.oxw(2);e.Q6J("ngIf",!Fe.dt.groupHeaderTemplate),e.xp6(1),e.Q6J("ngIf",Fe.dt.groupHeaderTemplate&&"subheader"===Fe.dt.rowGroupMode&&Fe.shouldRenderRowGroupHeader(Fe.value,H,Fe.getRowIndex(xe))),e.xp6(1),e.Q6J("ngIf",Fe.dt.isRowExpanded(H))}}function dn(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,nn,3,3,"ng-template",1),e.BQk()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngForOf",H.value)("ngForTrackBy",H.dt.rowTrackBy)}}function ai(He,gt){1&He&&e.GkF(0)}function ni(He,gt){1&He&&e.GkF(0)}function ei(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,ni,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw(),xe=H.$implicit,Fe=H.index,et=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",et.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",e.l5B(2,Tt,xe,et.getRowIndex(Fe),et.columns,et.frozen))}}function rs(He,gt){if(1&He&&(e.YNc(0,ai,1,0,"ng-container",4),e.YNc(1,ei,2,7,"ng-container",0)),2&He){const H=gt.$implicit,xe=gt.index,Fe=e.oxw(2);e.Q6J("ngTemplateOutlet",Fe.template)("ngTemplateOutletContext",e.HTZ(3,Ht,H,Fe.getRowIndex(xe),Fe.columns,Fe.dt.isRowExpanded(H),"row"===Fe.dt.editMode&&Fe.dt.isRowEditing(H),Fe.frozen)),e.xp6(1),e.Q6J("ngIf",Fe.dt.isRowExpanded(H))}}function Js(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,rs,2,10,"ng-template",1),e.BQk()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngForOf",H.value)("ngForTrackBy",H.dt.rowTrackBy)}}function Ss(He,gt){1&He&&e.GkF(0)}const Mi=function(He,gt){return{$implicit:He,frozen:gt}};function bs(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,Ss,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",H.dt.loadingBodyTemplate)("ngTemplateOutletContext",e.WLB(2,Mi,H.columns,H.frozen))}}function Is(He,gt){1&He&&e.GkF(0)}function Yn(He,gt){if(1&He&&(e.ynx(0),e.YNc(1,Is,1,0,"ng-container",4),e.BQk()),2&He){const H=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",H.dt.emptyMessageTemplate)("ngTemplateOutletContext",e.WLB(2,Mi,H.columns,H.frozen))}}let ks=(()=>{class He{constructor(){this.sortSource=new V.x,this.selectionSource=new V.x,this.contextMenuSource=new V.x,this.valueSource=new V.x,this.totalRecordsSource=new V.x,this.columnsSource=new V.x,this.resetSource=new V.x,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(H){this.sortSource.next(H)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(H){this.contextMenuSource.next(H)}onValueChange(H){this.valueSource.next(H)}onTotalRecordsChange(H){this.totalRecordsSource.next(H)}onColumnsChange(H){this.columnsSource.next(H)}}return He.\u0275fac=function(H){return new(H||He)},He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac}),He})(),ts=(()=>{class He
1{constructor(H,xe,Fe,et,en,mn){this.el=H,this.zone=xe,this.tableService=Fe,this.cd=et,this.filterService=en,this.overlayService=mn,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new e.vpe,this.selectionChange=new e.vpe,this.contextMenuSelectionChange=new e.vpe,this.contextMenuSelectionMode="separate",this.rowTrackBy=(kn,ui)=>ui,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveLayout="scroll",this.breakpoint="960px",this.onRowSelect=new e.vpe,this.onRowUnselect=new e.vpe,this.onPage=new e.vpe,this.onSort=new e.vpe,this.onFilter=new e.vpe,this.onLazyLoad=new e.vpe,this.onRowExpand=new e.vpe,this.onRowCollapse=new e.vpe,this.onContextMenuSelect=new e.vpe,this.onColResize=new e.vpe,this.onColReorder=new e.vpe,this.onRowReorder=new e.vpe,this.onEditInit=new e.vpe,this.onEditComplete=new e.vpe,this.onEditCancel=new e.vpe,this.onHeaderCheckboxToggle=new e.vpe,this.sortFunction=new e.vpe,this.firstChange=new e.vpe,this.rowsChange=new e.vpe,this.onStateSave=new e.vpe,this.onStateRestore=new e.vpe,this._virtualRowHeight=28,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=(0,F.Th)()}get responsive(){return this._responsive}set responsive(H){this._responsive=H,console.warn("responsive propery is deprecated as table is always responsive with scrollable behavior.")}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(H){this._virtualRowHeight=H,console.warn("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}
1ngAfterContentInit(){this.templates.forEach(H=>{switch(H.getType()){case"caption":this.captionTemplate=H.template;break;case"header":this.headerTemplate=H.template;break;case"headergrouped":this.headerGroupedTemplate=H.template;break;case"body":this.bodyTemplate=H.template;break;case"loadingbody":this.loadingBodyTemplate=H.template;break;case"footer":this.footerTemplate=H.template;break;case"footergrouped":this.footerGroupedTemplate=H.template;break;case"summary":this.summaryTemplate=H.template;break;case"colgroup":this.colGroupTemplate=H.template;break;case"rowexpansion":this.expandedRowTemplate=H.template;break;case"groupheader":this.groupHeaderTemplate=H.template;break;case"rowspan":this.rowspanTemplate=H.template;break;case"groupfooter":this.groupFooterTemplate=H.template;break;case"frozenrows":this.frozenRowsTemplate=H.template;break;case"frozenheader":this.frozenHeaderTemplate=H.template;break;case"frozenbody":this.frozenBodyTemplate=H.template;break;case"frozenfooter":this.frozenFooterTemplate=H.template;break;case"frozencolgroup":this.frozenColGroupTemplate=H.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=H.template;break;case"emptymessage":this.emptyMessageTemplate=H.template;break;case"paginatorleft":this.paginatorLeftTemplate=H.template;break;case"paginatorright":this.paginatorRightTemplate=H.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=H.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(H){H.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=H.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(H.value.currentValue)),H.columns&&(this._columns=H.columns.currentValue,this.tableService.onColumnsChange(H.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),H.sortField&&(this._sortField=H.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),H.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),H.sortOrder&&(this._sortOrder=H.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),H.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),H.multiSortMeta&&(this._multiSortMeta=H.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),H.selection&&(this._selection=H.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),H.selectAll&&(this._selectAll=H.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(H){this._value=H}get columns(){return this._columns}set columns(H){this._columns=H}get first(){return this._first}set first(H){this._first=H}get rows(){return this._rows}set rows(H){this._rows=H}get totalRecords(){return this._totalRecords}set totalRecords(H){this._totalRecords=H,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(H){this._sortField=H}get sortOrder(){return this._sortOrder}set sortOrder(H){this._sortOrder=H}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(H){this._multiSortMeta=H}get selection(){return this._selection}set selection(H){this._selection=H}get selectAll(){return this._selection}set selectAll(H){this._selection=H}get processedData(){return this.filteredValue||this.value||[]}dataToRender(H){const xe=H||this.processedData;if(xe&&this.paginator){const Fe=this.lazy?0:this.first;return xe.slice(Fe,Fe+this.rows)}return xe}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let H of this._selection)this.selectionKeys[String(F.gb.resolveFieldData(H,this.dataKey))]=1;else this.selectionKeys[String(F.gb.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(H){this.first=H.first,this.rows=H.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(H){let xe=H.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===H.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=H.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let Fe=xe.metaKey||xe.ctrlKey,et=this.getSortMeta(H.field);et?Fe?et.order=-1*et.order:(this._multiSortMeta=[{field:H.field,order:-1*et.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!Fe||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({f
1ield:H.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let H=this.sortField||this.groupRowsBy,xe=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(H&&xe){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:H,order:xe}):(this.value.sort((et,en)=>{let mn=F.gb.resolveFieldData(et,H),kn=F.gb.resolveFieldData(en,H),ui=null;return ui=null==mn&&null!=kn?-1:null!=mn&&null==kn?1:null==mn&&null==kn?0:"string"==typeof mn&&"string"==typeof kn?mn.localeCompare(kn):mn<kn?-1:mn>kn?1:0,xe*ui}),this._value=[...this.value]),this.hasFilter()&&this._filter());let Fe={field:H,order:xe};this.onSort.emit(Fe),this.tableService.onSort(Fe)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((H,xe)=>this.multisortField(H,xe,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(H,xe,Fe,et){const en=F.gb.resolveFieldData(H,Fe[et].field),mn=F.gb.resolveFieldData(xe,Fe[et].field);return 0===F.gb.compare(en,mn,this.filterLocale)?Fe.length-1>et?this.multisortField(H,xe,Fe,et+1):0:this.compareValuesOnSort(en,mn,Fe[et].order)}compareValuesOnSort(H,xe,Fe){return F.gb.sort(H,xe,Fe,this.filterLocale,this.sortOrder)}getSortMeta(H){if(this.multiSortMeta&&this.multiSortMeta.length)for(let xe=0;xe<this.multiSortMeta.length;xe++)if(this.multiSortMeta[xe].field===H)return this.multiSortMeta[xe];return null}isSorted(H){if("single"===this.sortMode)return this.sortField&&this.sortField===H;if("multiple"===this.sortMode){let xe=!1;if(this.multiSortMeta)for(let Fe=0;Fe<this.multiSortMeta.length;Fe++)if(this.multiSortMeta[Fe].field==H){xe=!0;break}return xe}}handleRowClick(H){let xe=H.originalEvent.target,Fe=xe.nodeName,et=xe.parentElement&&xe.parentElement.nodeName;if("INPUT"!=Fe&&"BUTTON"!=Fe&&"A"!=Fe&&"INPUT"!=et&&"BUTTON"!=et&&"A"!=et&&!w.p.hasClass(H.originalEvent.target,"p-clickable")){if(this.selectionMode){let en=H.rowData,mn=H.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&H.originalEvent.shiftKey&&null!=this.anchorRowIndex)w.p.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(H.originalEvent),this.rangeRowIndex=mn,this.selectRange(H.originalEvent,mn);else{let kn=this.isSelected(en);if(!kn&&!this.isRowSelectable(en,mn))return;let ui=!this.rowTouched&&this.metaKeySelection,$n=this.dataKey?String(F.gb.resolveFieldData(en,this.dataKey)):null;if(this.anchorRowIndex=mn,this.rangeRowIndex=mn,ui){let pi=H.originalEvent.metaKey||H.originalEvent.ctrlKey;
1if(kn&&pi){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let ns=this.findIndexInSelection(en);this._selection=this.selection.filter((Oi,Ur)=>Ur!=ns),this.selectionChange.emit(this.selection),$n&&delete this.selectionKeys[$n]}this.onRowUnselect.emit({originalEvent:H.originalEvent,data:en,type:"row"})}else this.isSingleSelectionMode()?(this._selection=en,this.selectionChange.emit(en),$n&&(this.selectionKeys={},this.selectionKeys[$n]=1)):this.isMultipleSelectionMode()&&(pi?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,en],this.selectionChange.emit(this.selection),$n&&(this.selectionKeys[$n]=1)),this.onRowSelect.emit({originalEvent:H.originalEvent,data:en,type:"row",index:mn})}else if("single"===this.selectionMode)kn?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:H.originalEvent,data:en,type:"row",index:mn})):(this._selection=en,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:H.originalEvent,data:en,type:"row",index:mn}),$n&&(this.selectionKeys={},this.selectionKeys[$n]=1));else if("multiple"===this.selectionMode)if(kn){let pi=this.findIndexInSelection(en);this._selection=this.selection.filter((ns,Oi)=>Oi!=pi),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:H.originalEvent,data:en,type:"row",index:mn}),$n&&delete this.selectionKeys[$n]}else this._selection=this.selection?[...this.selection,en]:[en],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:H.originalEvent,data:en,type:"row",index:mn}),$n&&(this.selectionKeys[$n]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(H){this.rowTouched=!0}handleRowRightClick(H){if(this.contextMenu){const xe=H.rowData,Fe=H.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=xe,this.contextMenuSelectionChange.emit(xe),this.onContextMenuSelect.emit({originalEvent:H.originalEvent,data:xe,index:H.rowIndex}),this.contextMenu.show(H.originalEvent),this.tableService.onContextMenu(xe);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let et=this.isSelected(xe),en=this.dataKey?String(F.gb.resolveFieldData(xe,this.dataKey)):null;if(!et){if(!this.isRowSelectable(xe,Fe))return;this.isSingleSelectionMode()?(this.selection=xe,this.selectionChange.emit(xe),en&&(this.selectionKeys={},this.selectionKeys[en]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,xe]:[xe],this.selectionChange.emit(this.selection),en&&(this.selectionKeys[en]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(H.originalEvent),this.onContextMenuSelect.emit({originalEvent:H,data:xe,index:H.rowIndex})}}}selectRange(H,xe){let Fe,et;this.anchorRowIndex>xe?(Fe=xe,et=this.anchorRowIndex):this.anchorRowIndex<xe?(Fe=this.anchorRowIndex,et=xe):(Fe=xe,et=xe),this.lazy&&this.paginator&&(Fe-=this.first,et-=this.first);let en=[];for(let mn=Fe;mn<=et;mn++){let kn=this.filteredValue?this.filteredValue[mn]:this.value[mn];if(!this.isSelected(kn)){if(!this.isRowSelectable(kn,xe))continue;en.push(kn),this._selection=[...this.selection,kn];let ui=this.dataKey?String(F.gb.resolveFieldData(kn,this.dataKey)):null;ui&&(this.selectionKeys[ui]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:H,data:en,type:"row"})}clearSelectionRange(H){let xe,Fe;this.rangeRowIndex>this.anchorRowIndex?(xe=this.anchorRowIndex,Fe=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(xe=this.rangeRowIndex,Fe=this.anchorRowIndex):(xe=this.rangeRowIndex,Fe=this.rangeRowIndex);for(let et=xe;et<=Fe;et++){let en=this.value[et],mn=this.findIndexInSelection(en);this._selection=this.selection.filter((ui,$n)=>$n!=mn);let kn=this.dataKey?String(F.gb.resolveFieldData(en,this.dataKey)):null;kn&&delete this.selectionKeys[kn],this.onRowUnselect.emit({originalEvent:H,data:en,type:"row"})}}isSelected(H){return!(!H||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[F.gb.resolveFieldData(H,this.dataKey)]:this.selection instanceof Array?this.findIndexInSelection(H)>-1:this.equals(H,this.selection))}findIndexInSelection(H){let xe=-1;if(this.selection&&this.selection.length)for(let Fe=0;Fe<this.selection.length;Fe++)if(this.equals(H,this.selection[Fe])){xe=Fe;break}return xe}isRowSelectable(H,xe){return!(this.rowSelectable&&!this.rowSelectable({data:H,index:xe}))}toggleRowWithRadio(H,xe){if(this.preventSelectionSetterPropagation=!0,this.selection!=xe){if(!this.isRowSelectable(xe,H.rowIndex))return;this._selection=xe,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:H.originalEvent,index:H.rowIndex,data:xe,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(F.gb.resolveFieldData(xe,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:H.originalEvent,index:H.rowIndex,data:xe,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(H,xe){this.selection=this.selection||[];let Fe=this.isSelected(xe),et=this.dataKey?String(F.gb.resolveFieldData(xe,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,Fe){let en=this.findIndexInSelection(xe);this._selection=this.selection.filter((mn,kn)=>kn!=en),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:H.originalEvent,index:H.rowIndex,data:xe,type:"checkbox"}),et&&delete this.selectionKeys[et]}else{if(!this.isRowSelectable(xe,H.rowIndex))return;this._selection=this.selection?[...this.selection,xe]:[xe],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:H.originalEvent,index:H.rowIndex,data:xe,type:"checkbox"}),et&&(this.selectionKeys[et]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(H,xe){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:H,checked:xe});else{const Fe=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let et=this.selectionPageOnly&&this._selection?this._selection.filter(en=>!Fe.some(mn=>this.equals(en,mn))):[];xe&&(et=this.frozenValue?[...et,...this.frozenValue,...Fe]:[...et,...Fe],et=this.rowSelectable?et.filter((en,mn)=>this.rowSelectable({data:en,index:mn})):et),this._selection=et,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:H,checked:xe}),this.isStateful()&&this.saveState()}}equals(H,xe){return"equals"===this.compareSelectionBy?H===xe:F.gb.equals(H,xe,this.dataKey)}filter(H,xe,Fe){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(H)?this.filters[xe]&&delete this.filters[xe]:this.filters[xe]={value:H,matchMode:Fe},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(H,xe){this.filter(H,"global",xe)}isFilterBlank(H){return null==H||"string"==typeof H&&0==H.trim().length||H instanceof Array&&0==H.length}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let H;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");H=this.globalFilterFields||this.columns}this.filteredValue=[];for(let xe=0;xe<this.value.length;xe++){let mn,Fe=!0,et=!1,en=!1;for(let kn in this.filters)if(this.filters.hasOwnProperty(kn)&&"global"!==kn){en=!0;let ui=kn,$n=this.filters[ui];if(Array.isArray($n)){for(let pi of $n)if(Fe=this.executeLocalFilter(ui,this.value[xe],pi),pi.operator===D.pg.OR&&Fe||pi.operator===D.pg.AND&&!Fe)break}else Fe=this.executeLocalFilter(ui,this.value[xe],$n);if(!Fe)break}if(this.filters.global&&!et&&H)for(let kn=0;kn<H.length&&(et=this.filterService.filters[this.filters.global.matchMode](F.gb.resolveFieldData(this.value[xe],H[kn].field||H[kn]),this.filters.global.value,this.filterLocale),!et);kn++);mn=this.filters.global?en?en&&Fe&&et:et:en&&Fe,mn&&this.filteredValue.push(this.value[xe])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(H,xe,Fe){let et=Fe.value,en=Fe.matchMode||D.a6.STARTS_WITH,mn=F.gb.resolveFieldData(xe,H);return(0,this.filterService.filters[en])(mn,et,this.filterLocale)}hasFilter(){let H=!0;for(let xe in this.filters)if(this.filters.hasOwnProperty(xe)){H=!1;break}return!H}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.filters.global&&(this.filters.global.value=null),this.filteredValue=null,this.tableService.onResetChange(),this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}reset(){this.clear()}getExportHeader(H){return H[this.exportHeader]||H.header||H.field}exportCSV(H){let xe,Fe="",et=this.columns;H&&H.selectionOnly?xe=this.selection||[]:H&&H.allValues?xe=this.value||[]:(xe=this.filteredValue||this.value,this.frozenValue&&(xe=xe?[...this.frozenValue,...xe]:this.frozenValue));for(let kn=0;kn<et.length;kn++){let ui=et[kn];!1!==ui.exportable&&ui.field&&(Fe+='"'+this.getExportHeader(ui)+'"',kn<et.length-1&&(Fe+=this.csvSeparator))}xe.forEach((kn,ui)=>{Fe+="\n";for(let $n=0;$n<et.length;$n++){let pi=et[$n];if(!1!==pi.exportable&&pi.field){let ns=F.gb.resolveFieldData(kn,pi.field);ns=null!=ns?this.exportFunction?this.exportFunction({data:ns,field:pi.field}):String(ns).replace(/"/g,'""'):"",Fe+='"'+ns+'"',$n<et.length-1&&(Fe+=this.csvSeparator)}}});let en=new Blob([Fe],{type:"text/csv;charset=utf-8;"}),mn=document.createElement("a");mn.style.display="none",document.body.appendChild(mn),void 0!==mn.download?(mn.setAttribute("href",URL.createObjectURL(en)),mn.setAttribute("download",this.exportFilename+".csv"),mn.click()):(Fe="data:text/csv;charset=utf-8,"+Fe,window.open(encodeURI(Fe))),document.body.removeChild(mn)}onLazyItemLoad(H){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...H,rows:H.last-H.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(H){this.virtualScroll&&this.scroller.scrollToIndex(H)}scrollTo(H){this.virtualScroll?this.scroller.scrollTo(H):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(H):(this.wrapperViewChild.nativeElement.scrollLeft=H.left,this.wrapperViewChild.nativeElement.scrollTop=H.top))}updateEditingCell(H,xe,Fe,et){this.editingCell=H,this.editingCellData=xe,this.editingCellField=Fe,this.editingCellRowIndex=et,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===w.p.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=H=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(w.p.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:H,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1},document.addEventListener("click",this.documentEditListener))}unbindDocumentEditListener(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null)}initRowEdit(H){let xe=String(F.gb.resolveFieldData(H,this.dataKey));this.editingRowKeys[xe]=!0}saveRowEdit(H,xe){if(0===w.p.find(xe,".ng-invalid.ng-dirty").length){let Fe=String(F.gb.resolveFieldData(H,this.dataKey));delete this.editingRowKeys[Fe]}}cancelRowEdit(H){let xe=String(F.gb.resolveFieldData(H,this.dataKey));delete this.editingRowKeys[xe]}toggleRow(H,xe){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let Fe=String(F.gb.resolveFieldData(H,this.dataKey));null!=this.expandedRowKeys[Fe]?(delete this.expandedRowKeys[Fe],this.onRowCollapse.emit({originalEvent:xe,data:H})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[Fe]=!0,this.onRowExpand.emit({originalEvent:xe,data:H})),xe&&xe.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(H){return!0===this.expandedRowKeys[String(F.gb.resolveFieldData(H,this.dataKey))]}isRowEditing(H){return!0===this.editingRowKeys[String(F.gb.resolveFieldData(H,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(H){let xe=w.p.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=H.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=H.pageX-xe+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(H),H.preventDefault()}onColumnResize(H){let xe=w.p.getOffset(this.containerViewChild.nativeElement).left;w.p.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=H.pageX-xe+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let H=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,Fe=this.resizeColumnElement.offsetWidth+H;if(Fe>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let mn=this.resizeColumnElement.nextElementSibling.offsetWidth-H;Fe>15&&mn>15&&this.resizeTableCells(Fe,mn)}else"expand"===this.columnResizeMode&&(this.setResizeTableWidth(this.tableViewChild.nativeElement.offsetWidth+H+"px"),this.resizeTableCells(Fe,null));this.onColResize.emit({element:this.resizeColumnElement,delta:H}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",w.p.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(H,xe){let Fe=w.p.index(this.resizeColumnElement),et=[];const en=w.p.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");w.p.find(en,"tr > th").forEach(ui=>et.push(w.p.getOuterWidth(ui))),this.destroyStyleElement(),this.createStyleElement();let kn="";et.forEach((ui,$n)=>{let pi=$n===Fe?H:xe&&$n===Fe+1?xe:ui;kn+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${$n+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${$n+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${$n+1}) {\n width: ${pi}px !important; max-width: ${pi}px !important;\n }\n `}),this.styleElement.innerHTML=kn}onColumnDragStart(H,xe){this.reorderIconWidth=w.p.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement)
1,this.reorderIconHeight=w.p.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=xe,H.dataTransfer.setData("text","b")}onColumnDragEnter(H,xe){if(this.reorderableColumns&&this.draggedColumn&&xe){H.preventDefault();let Fe=w.p.getOffset(this.containerViewChild.nativeElement),et=w.p.getOffset(xe);if(this.draggedColumn!=xe){w.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),w.p.indexWithinGroup(xe,"preorderablecolumn");let kn=et.left-Fe.left,$n=et.left+xe.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=et.top-Fe.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=et.top-Fe.top+xe.offsetHeight+"px",H.pageX>$n?(this.reorderIndicatorUpViewChild.nativeElement.style.left=kn+xe.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=kn+xe.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=kn-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=kn-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else H.dataTransfer.dropEffect="none"}}onColumnDragLeave(H){this.reorderableColumns&&this.draggedColumn&&H.preventDefault()}onColumnDrop(H,xe){if(H.preventDefault(),this.draggedColumn){let Fe=w.p.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),et=w.p.indexWithinGroup(xe,"preorderablecolumn"),en=Fe!=et;en&&(et-Fe==1&&-1===this.dropPosition||Fe-et==1&&1===this.dropPosition)&&(en=!1),en&&et<Fe&&1===this.dropPosition&&(et+=1),en&&et>Fe&&-1===this.dropPosition&&(et-=1),en&&(F.gb.reorderArray(this.columns,Fe,et),this.onColReorder.emit({dragIndex:Fe,dropIndex:et,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(H,xe){this.rowDragging=!0,this.draggedRowIndex=xe,H.dataTransfer.setData("text","b")}onRowDragOver(H,xe,Fe){if(this.rowDragging&&this.draggedRowIndex!==xe){let et=w.p.getOffset(Fe).top+w.p.getWindowScrollTop(),en=H.pageY,mn=et+w.p.getOuterHeight(Fe)/2,kn=Fe.previousElementSibling;en<mn?(w.p.removeClass(Fe,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=xe,kn?w.p.addClass(kn,"p-datatable-dragpoint-bottom"):w.p.addClass(Fe,"p-datatable-dragpoint-top")):(kn?w.p.removeClass(kn,"p-datatable-dragpoint-bottom"):w.p.addClass(Fe,"p-datatable-dragpoint-top"),this.droppedRowIndex=xe+1,w.p.addClass(Fe,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(H,xe){let Fe=xe.previousElementSibling;Fe&&w.p.removeClass(Fe,"p-datatable-dragpoint-bottom"),w.p.removeClass(xe,"p-datatable-dragpoint-bottom"),w.p.removeClass(xe,"p-datatable-dragpoint-top")}onRowDragEnd(H){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(H,xe){if(null!=this.droppedRowIndex){let Fe=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;F.gb.reorderArray(this.value,this.draggedRowIndex,Fe),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:Fe})}this.onRowDragLeave(H,xe),this.onRowDragEnd(H)}isEmpty(){let H=this.filteredValue||this.value;return null==H||0==H.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const H=this.getStorage();let xe={};this.paginator&&(xe.first=this.first,xe.rows=this.rows),this.sortField&&(xe.sortField=this.sortField,xe.sortOrder=this.sortOrder),this.multiSortMeta&&(xe.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(xe.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(xe),this.reorderableColumns&&this.saveColumnOrder(xe),this.selection&&(xe.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(xe.expandedRowKeys=this.expandedRowKeys),H.setItem(this.stateKey,JSON.stringify(xe)),this.onStateSave.emit(xe)}clearState(){const H=this.getStorage();this.stateKey&&H.removeItem(this.stateKey)}restoreState(){const xe=this.getStorage().getItem(this.stateKey),Fe=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(xe){let en=JSON.parse(xe,function(en,mn){return"string"==typeof mn&&Fe.test(mn)?new Date(mn):mn});this.paginator&&(void 0!==this.first&&(this.first=en.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=en.rows,this.rowsChange.emit(this.rows))),en.sortField&&(this.restoringSort=!0,this._sortField=en.sortField,this._sortOrder=en.sortOrder),en.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=en.multiSortMeta),en.filters&&(this.restoringFilter=!0,this.filters=en.filters),this.resizableColumns&&(this.columnWidthsState=en.columnWidths,this.tableWidthState=en.tableWidth),en.expandedRowKeys&&(this.expandedRowKeys=en.expandedRowKeys),en.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(en.selection)),this.stateRestored=!0,this.onStateRestore.emit(en)}}
1saveColumnWidths(H){let xe=[];w.p.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(et=>xe.push(w.p.getOuterWidth(et))),H.columnWidths=xe.join(","),"expand"===this.columnResizeMode&&(H.tableWidth=w.p.getOuterWidth(this.tableViewChild.nativeElement))}setResizeTableWidth(H){this.tableViewChild.nativeElement.style.width=H,this.tableViewChild.nativeElement.style.minWidth=H}restoreColumnWidths(){if(this.columnWidthsState){let H=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),F.gb.isNotEmpty(H)){this.createStyleElement();let xe="";H.forEach((Fe,et)=>{xe+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${et+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${et+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${et+1}) {\n width: ${Fe}px !important; max-width: ${Fe}px !important\n }\n `}),this.styleElement.innerHTML=xe}}}saveColumnOrder(H){if(this.columns){let xe=[];this.columns.map(Fe=>{xe.push(Fe.field||Fe.key)}),H.columnOrder=xe}}restoreColumnOrder(){const xe=this.getStorage().getItem(this.stateKey);if(xe){let et=JSON.parse(xe).columnOrder;if(et){let en=[];et.map(mn=>{let kn=this.findColumnByKey(mn);kn&&en.push(kn)}),this.columnOrderStateRestored=!0,this.columns=en}}}findColumnByKey(H){if(!this.columns)return null;for(let xe of this.columns)if(xe.key===H||xe.field===H)return xe}createStyleElement(){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.head.appendChild(this.responsiveStyleElement),this.responsiveStyleElement.innerHTML=`\n@media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n`)}destroyResponsiveStyle(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}}return He.\u0275fac=function(H){return new(H||He)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ks),e.Y36(e.sBO),e.Y36(D.iZ),e.Y36(D.F0))},He.\u0275cmp=e.Xpm({type:He,selectors:[["p-table"]],contentQueries:function(H,xe,Fe){if(1&H&&e.Suo(Fe,D.jx,4),2&H){let et;e.iGM(et=e.CRH())&&(xe.templates=et)}},viewQuery:function(H,xe){if(1&H&&(e.Gf(q,5),e.Gf(Ee,5),e.Gf(ye,5),e.Gf(nt,5),e.Gf(at,5),e.Gf(me,5),e.Gf(ve,5),e.Gf(je,5),e.Gf(Xe,5)),2&H){let Fe;e.iGM(Fe=e.CRH())&&(xe.containerViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.resizeHelperViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.reorderIndicatorUpViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.reorderIndicatorDownViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.wrapperViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.tableViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.tableHeaderViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.tableFooterViewChild=Fe.first),e.iGM(Fe=e.CRH())&&(xe.scroller=Fe.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",virtualRowHeight:"virtualRowHeight",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[e._Bn([ks]),e.TTD],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],[1,"p-datatable-thead"],["thead",""],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-scroller-spacer"],[1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(H,xe){1&H&&(e.TgZ(0,"div",0,1),e.YNc(2,rt,2,2,"div",2),e.YNc(3,$t,2,1,"div",3),e.YNc(4,tn,1,17,"p-paginator",4),e.TgZ(5,"div",5,6),e.YNc(7,xn,3,17,"p-scroller",7),e.YNc(8,zt,2,7,"ng-container",8),e.YNc(9,Jn,10,28,"ng-template",null,9,e.W1O),e.qZA(),e.YNc(11,Mt,1,17,"p-paginator",10),e.YNc(12,Z,2,1,"div",11),e.YNc(13,re,2,0,"div",12),e.YNc(14,pe,2,0,"span",13),e.YNc(15,Re,2,0,"span",14),e.qZA()),2&H&&(e.Tol(xe.styleClass),e.Q6J("ngStyle",xe.style)("ngClass",e.kEZ(16,Bt,xe.rowHover||xe.selectionMode,xe.scrollable,xe.scrollable&&"flex"===xe.scrollHeight)),e.uIk("id",xe.id),e.xp6(2),e.Q6J("ngIf",xe.loading&&xe.showLoader),e.xp6(1),e.Q6J("ngIf",xe.captionTemplate),e.xp6(1),e.Q6J("ngIf",xe.paginator&&("top"===xe.paginatorPosition||"both"==xe.paginatorPosition)),e.xp6(1),e.Q6J("ngStyle",e.VKq(20,jt,xe.virtualScroll?"":xe.scrollHeight)),e.xp6(2),e.Q6J("ngIf",xe.virtualScroll),e.xp6(1),e.Q6J("ngIf",!xe.virtualScroll),e.xp6(3),e.Q6J("ngIf",xe.paginator&&("bottom"===xe.paginatorPosition||"both"==xe.paginatorPosition)),e.xp6(1),e.Q6J("ngIf",xe.summaryTemplate),e.xp6(1),e.Q6J("ngIf",xe.resizableColumns),e.xp6(1),e.Q6J("ngIf",xe.reorderableColumns),e.xp6(1),e.Q6J("ngIf",xe.reorderableColumns))},dependencies:function(){return[t.mk,t.O5,t.tP,t.PC,k.D,D.jx,z.T,Jr]},styles:[".p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}
1.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}\n"],encapsulation:2}),He})(),Jr=(()=>{class He{constructor(H,xe,Fe,et){this.dt=H,this.tableService=xe,this.cd=Fe,this.el=et,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(H){this._value=H,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(H,xe,Fe){let et=F.gb.resolveFieldData(xe,this.dt.groupRowsBy),en=H[Fe-1];return!en||et!==F.gb.resolveFieldData(en,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(H,xe,Fe){let et=F.gb.resolveFieldData(xe,this.dt.groupRowsBy),en=H[Fe+1];return!en||et!==F.gb.resolveFieldData(en,this.dt.groupRowsBy)}shouldRenderRowspan(H,xe,Fe){let et=F.gb.resolveFieldData(xe,this.dt.groupRowsBy),en=H[Fe-1];return!en||et!==F.gb.resolveFieldData(en,this.dt.groupRowsBy)}calculateRowGroupSize(H,xe,Fe){let et=F.gb.resolveFieldData(xe,this.dt.groupRowsBy),en=et,mn=0;for(;et===en;){mn++;let kn=H[++Fe];if(!kn)break;en=F.gb.resolveFieldData(kn,this.dt.groupRowsBy)}return 1===mn?null:mn}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=w.p.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let H=w.p.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=H+"px"}}getScrollerOption(H,xe){return this.dt.virtualScroll&&(xe=xe||this.scrollerOptions)?xe[H]:null}getRowIndex(H){const xe=this.dt.paginator?this.dt.first+H:H,Fe=this.getScrollerOption("getItemOptions");return Fe?Fe(xe).index:xe}}return He.\u0275fac=function(H){return new(H||He)(e.Y36(ts),e.Y36(ks),e.Y36(e.sBO),e.Y36(e.SBq))},He.\u0275cmp=e.Xpm({type:He,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:_t,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(H,xe){1&H&&(e.YNc(0,$e,2,2,"ng-container",0),e.YNc(1,dn,2,2,"ng-container",0),e.YNc(2,Js,2,2,"ng-container",0),e.YNc(3,bs,2,5,"ng-container",0),e.YNc(4,Yn,2,5,"ng-container",0)),2&H&&(e.Q6J("ngIf",!xe.dt.expandedRowTemplate),e.xp6(1),e.Q6J("ngIf",xe.dt.expandedRowTemplate&&!(xe.frozen&&xe.dt.frozenExpandedRowTemplate)),e.xp6(1),e.Q6J("ngIf",xe.dt.frozenExpandedRowTemplate&&xe.frozen),e.xp6(1),e.Q6J("ngIf",xe.dt.loading),e.xp6(1),e.Q6J("ngIf",xe.dt.isEmpty()&&!xe.dt.loading))},dependencies:[t.sg,t.O5,t.tP],encapsulation:2}),He})(),kr=(()=>{class He{}return He.\u0275fac=function(H){return new(H||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[t.ez,k.U,S.j,I.kW,s.u5,x.hJ,ue,M._8,P.L$,X,z.v,D.m8,z.v]}),He})()},6679:(o,u,a)=>{"use strict";a.d(u,{V:()=>x,W:()=>M});var t=a(4650),e=a(6895);function s(w,I){if(1&w&&t._UZ(0,"span",3),2&w){const P=t.oxw();t.Q6J("ngClass",P.icon)}}const D=["*"];let x=(()=>{class w{containerClass(){return{"p-tag p-component":!0,"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}}}return w.\u0275fac=function(P){return new(P||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["p-tag"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",severity:"severity",value:"value",icon:"icon",rounded:"rounded"},ngContentSelectors:D,decls:5,vars:6,consts:[[3,"ngClass","ngStyle"],["class","p-tag-icon",3,"ngClass",4,"ngIf"],[1,"p-tag-value"],[1,"p-tag-icon",3,"ngClass"]],template:function(P,S){1&P&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.YNc(2,s,1,1,"span",1),t.TgZ(3,"span",2),t._uU(4),t.qZA()()),2&P&&(t.Tol(S.styleClass),t.Q6J("ngClass",S.containerClass())("ngStyle",S.style),t.xp6(2),t.Q6J("ngIf",S.icon),t.xp6(2),t.Oqu(S.value))},dependencies:[e.mk,e.O5,e.PC],styles:[".p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}\n"],encapsulation:2,changeDetection:0}),w})(),M=(()=>{class w{}return w.\u0275fac=function(P){return new(P||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[e.ez]}),w})()},2453:(o,u,a)=>{"use strict";a.d(u,{EV:()=>fe,FN:()=>Y});var t=a(4650),e=a(6895),s=a(805),D=a(982),x=a(1795),M=a(7340);const w=["container"],I=function(N,Q,O,ee){return{"pi-info-circle":N,"pi-exclamation-triangle":Q,"pi-times-circle":O,"pi-check":ee}};function P(N,Q){if(1&N&&(t.ynx(0),t._UZ(1,"span",6),t.TgZ(2,"div",7)(3,"div",8),t._uU(4),t.qZA(),t.TgZ(5,"div",9),t._uU(6),t.qZA()(),t.BQk()),2&N){const O=t.oxw();
1t.xp6(1),t.Tol("p-toast-message-icon pi"+(O.message.icon?" "+O.message.icon:"")),t.Q6J("ngClass",t.l5B(5,I,"info"==O.message.severity,"warn"==O.message.severity,"error"==O.message.severity,"success"==O.message.severity)),t.xp6(3),t.Oqu(O.message.summary),t.xp6(2),t.Oqu(O.message.detail)}}function S(N,Q){1&N&&t.GkF(0)}function k(N,Q){if(1&N){const O=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(ue){t.CHM(O);const _e=t.oxw();return t.KtG(_e.onCloseIconClick(ue))})("keydown.enter",function(ue){t.CHM(O);const _e=t.oxw();return t.KtG(_e.onCloseIconClick(ue))}),t._UZ(1,"span",11),t.qZA()}}const z=function(N){return[N,"p-toast-message"]},F=function(N,Q,O,ee){return{showTransformParams:N,hideTransformParams:Q,showTransitionParams:O,hideTransitionParams:ee}},ne=function(N){return{value:"visible",params:N}},B=function(N){return{$implicit:N}};function G(N,Q){if(1&N){const O=t.EpF();t.TgZ(0,"p-toastItem",3),t.NdJ("onClose",function(ue){t.CHM(O);const _e=t.oxw();return t.KtG(_e.onMessageClose(ue))})("@toastAnimation.start",function(ue){t.CHM(O);const _e=t.oxw();return t.KtG(_e.onAnimationStart(ue))})("@toastAnimation.done",function(ue){t.CHM(O);const _e=t.oxw();return t.KtG(_e.onAnimationEnd(ue))}),t.qZA()}if(2&N){const O=Q.$implicit,ee=Q.index,ue=t.oxw();t.Q6J("message",O)("index",ee)("template",ue.template)("@toastAnimation",void 0)("showTransformOptions",ue.showTransformOptions)("hideTransformOptions",ue.hideTransformOptions)("showTransitionOptions",ue.showTransitionOptions)("hideTransitionOptions",ue.hideTransitionOptions)}}let W=(()=>{class N{constructor(O){this.zone=O,this.onClose=new t.vpe}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(O){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),O.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return N.\u0275fac=function(O){return new(O||N)(t.Y36(t.R0b))},N.\u0275cmp=t.Xpm({type:N,selectors:[["p-toastItem"]],viewQuery:function(O,ee){if(1&O&&t.Gf(w,5),2&O){let ue;t.iGM(ue=t.CRH())&&(ee.containerViewChild=ue.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(O,ee){1&O&&(t.TgZ(0,"div",0,1),t.NdJ("mouseenter",function(){return ee.onMouseEnter()})("mouseleave",function(){return ee.onMouseLeave()}),t.TgZ(2,"div",2),t.YNc(3,P,7,10,"ng-container",3),t.YNc(4,S,1,0,"ng-container",4),t.YNc(5,k,2,0,"button",5),t.qZA()()),2&O&&(t.Tol(ee.message.styleClass),t.Q6J("ngClass",t.VKq(10,z,"p-toast-message-"+ee.message.severity))("@messageState",t.VKq(17,ne,t.l5B(12,F,ee.showTransformOptions,ee.hideTransformOptions,ee.showTransitionOptions,ee.hideTransitionOptions))),t.uIk("id",ee.message.id),t.xp6(2),t.Q6J("ngClass",ee.message.contentStyleClass),t.xp6(1),t.Q6J("ngIf",!ee.template),t.xp6(1),t.Q6J("ngTemplateOutlet",ee.template)("ngTemplateOutletContext",t.VKq(19,B,ee.message)),t.xp6(1),t.Q6J("ngIf",!1!==ee.message.closable))},dependencies:[e.mk,e.O5,e.tP,x.H],encapsulation:2,data:{animation:[(0,M.X$)("messageState",[(0,M.SB)("visible",(0,M.oB)({transform:"translateY(0)",opacity:1})),(0,M.eR)("void => *",[(0,M.oB)({transform:"{{showTransformParams}}",opacity:0}
1),(0,M.jt)("{{showTransitionParams}}")]),(0,M.eR)("* => void",[(0,M.jt)("{{hideTransitionParams}}",(0,M.oB)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),N})(),Y=(()=>{class N{constructor(O,ee,ue){this.messageService=O,this.cd=ee,this.config=ue,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new t.vpe,this.id=(0,D.Th)()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(O=>{if(O)if(O instanceof Array){const ee=O.filter(ue=>this.canAdd(ue));this.add(ee)}else this.canAdd(O)&&this.add([O])}),this.clearSubscription=this.messageService.clearObserver.subscribe(O=>{O?this.key===O&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(O){this.messages=this.messages?[...this.messages,...O]:[...O],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...O]:[...O]),this.cd.markForCheck()}canAdd(O){let ee=this.key===O.key;return ee&&this.preventOpenDuplicates&&(ee=!this.containsMessage(this.messages,O)),ee&&this.preventDuplicates&&(ee=!this.containsMessage(this.messagesArchieve,O)),ee}containsMessage(O,ee){return!!O&&null!=O.find(ue=>ue.summary===ee.summary&&ue.detail==ee.detail&&ue.severity===ee.severity)}
1ngAfterContentInit(){this.templates.forEach(O=>{O.getType(),this.template=O.template})}onMessageClose(O){this.messages.splice(O.index,1),this.onClose.emit({message:O.message}),this.cd.detectChanges()}onAnimationStart(O){"void"===O.fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&""===this.containerViewChild.nativeElement.style.zIndex&&D.P9.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(O){"void"===O.toState&&this.autoZIndex&&D.gb.isEmpty(this.messages)&&D.P9.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let O="";for(let ee in this.breakpoints){let ue="";for(let _e in this.breakpoints[ee])ue+=_e+":"+this.breakpoints[ee][_e]+" !important;";O+=`\n @media screen and (max-width: ${ee}) {\n .p-toast[${this.id}] {\n ${ue}\n }\n }\n `}this.styleElement.innerHTML=O}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&D.P9.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return N.\u0275fac=function(O){return new(O||N)(t.Y36(s.ez),t.Y36(t.sBO),t.Y36(s.b4))},N.\u0275cmp=t.Xpm({type:N,selectors:[["p-toast"]],contentQueries:function(O,ee,ue){if(1&O&&t.Suo(ue,s.jx,4),2&O){let _e;t.iGM(_e=t.CRH())&&(ee.templates=_e)}},viewQuery:function(O,ee){if(1&O&&t.Gf(w,5),2&O){let ue;t.iGM(ue=t.CRH())&&(ee.containerViewChild=ue.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(O,ee){1&O&&(t.TgZ(0,"div",0,1),t.YNc(2,G,1,8,"p-toastItem",2),t.qZA()),2&O&&(t.Tol(ee.styleClass),t.Q6J("ngClass","p-toast p-component p-toast-"+ee.position)("ngStyle",ee.style),t.xp6(2),t.Q6J("ngForOf",ee.messages))},dependencies:[e.mk,e.sg,e.PC,W],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[(0,M.X$)("toastAnimation",[(0,M.eR)(":enter, :leave",[(0,M.IO)("@*",(0,M.pV)())])])]},changeDetection:0}),N})(),fe=(()=>{class N{}return N.\u0275fac=function(O){return new(O||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[e.ez,x.T,s.m8]}),N})()},3608:(o,u,a)=>{"use strict";a.d(u,{u:()=>M,z:()=>w});var t=a(6895),e=a(4650),s=a(9592),D=a(982),x=a(805);let M=(()=>{class I{constructor(S,k,z,F,ne){this.el=S,this.zone=k,this.config=z,this.renderer=F,this.changeDetector=ne,this.escape=!0,this.autoHide=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0,autoHide:!0}}get disabled(){return this._disabled}set disabled(S){this._disabled=S,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let S=this.getTarget(this.el.nativeElement);S.addEventListener("focus",this.focusListener),S.addEventListener("blur",this.blurListener)}})}ngOnChanges(S){S.tooltipPosition&&this.setOption({tooltipPosition:S.tooltipPosition.currentValue}),S.tooltipEvent&&this.setOption({tooltipEvent:S.tooltipEvent.currentValue}),S.appendTo&&this.setOption({appendTo:S.appendTo.currentValue}),S.positionStyle&&this.setOption({positionStyle:S.positionStyle.currentValue}),S.tooltipStyleClass&&this.setOption({tooltipStyleClass:S.tooltipStyleClass.currentValue}),S.tooltipZIndex&&this.setOption({tooltipZIndex:S.tooltipZIndex.currentValue}),S.escape&&this.setOption({escape:S.escape.currentValue}),S.showDelay&&this.setOption({showDelay:S.showDelay.currentValue}),S.hideDelay&&this.setOption({hideDelay:S.hideDelay.currentValue}),S.life&&this.setOption({life:S.life.currentValue}),S.positionTop&&this.setOption({positionTop:S.positionTop.currentValue}),S.positionLeft&&this.setOption({positionLeft:S.positionLeft.currentValue}),S.disabled&&this.setOption({disabled:S.disabled.currentValue}),S.text&&(this.setOption({tooltipLabel:S.text.currentValue}),this.active&&(S.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),S.autoHide&&this.setOption({autoHide:S.autoHide.currentValue}),S.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...S.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(S){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(S){(this.isAutoHide()||!(s.p.hasClass(S.toElement,"p-tooltip")||s.p.hasClass(S.toElement,"p-tooltip-arrow")||s.p.hasClass(S.toElement,"p-tooltip-text")||s.p.hasClass(S.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(S){this.activate()}onBlur(S){this.deactivate()}onInputClick(S){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let S=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},S)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let S=document.createElement("div");S.className="p-tooltip-arrow",this.container.appendChild(S),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?s.p.appendChild(this.container,this.el.nativeElement):s.p.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",k=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),s.p.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?D.P9.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&D.P9.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let S=this.el.nativeElement.getBoundingClientRect();return{left:S.left+s.p.getWindowScrollLeft(),top:S.top+s.p.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let S=this.getHostOffset(),k=S.left+s.p.getOuterWidth(this.el.nativeElement),z=S.top+(s.p.getOuterHeight(this.el.nativeElement)-s.p.getOuterHeight(this.container))/2;this.container.style.left=k+this.getOption("positionLeft")+"px",this.container.style.top=z+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let S=this.getHostOffset(),k=S.left-s.p.getOuterWidth(this.container),z=S.top+(s.p.getOuterHeight(this.el.nativeElement)-s.p.getOuterHeight(this.container))/2;this.container.style.left=k+this.getOption("positionLeft")+"px",this.container.style.top=z+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let S=this.getHostOffset(),k=S.left+(s.p.getOuterWidth(this.el.nativeElement)-s.p.getOuterWidth(this.container))/2,z=S.top-s.p.getOuterHeight(this.container);this.container.style.left=k+this.getOption("positionLeft")+"px",this.container.style.top=z+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let S=this.getHostOffset(),k=S.left+(s.p.getOuterWidth(this.el.nativeElement)-s.p.getOuterWidth(this.container))/2,z=S.top+s.p.getOuterHeight(this.el.nativeElement);this.container.style.left=k+this.getOption("positionLeft")+"px",this.container.style.top=z+this.getOption("positionTop")+"px"}setOption(S){this._tooltipOptions={...this._tooltipOptions,...S}}getOption(S){return this._tooltipOptions[S]}getTarget(S){return s.p.hasClass(S,"p-inputwrapper")?s.p.findSingle(S,"input"):S}preAlign(S){this.container.style.left="-999px",this.container.style.top="-999px";let k="p-tooltip p-component p-tooltip-"+S;this.container.className=this.getOption("tooltipStyleClass")?k+" "+this.getOption("tooltipStyleClass"):k}isOutOfBounds(){let S=this.container.getBoundingClientRect(),k=S.top,z=S.left,F=s.p.getOuterWidth(this.container),ne=s.p.getOuterHeight(this.container),B=s.p.getViewport();return z+F>B.width||z<0||k<0||k+ne>B.height}onWindowResize(S){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new s.V(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let S=this.getTarget(this.el.nativeElement);S.removeEventListener("focus",this.focusListener),S.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):s.p.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&D.P9.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return I.\u0275fac=function(S){return new(S||I)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(x.b4),e.Y36(e.Qsj),e.Y36(e.sBO))},I.\u0275dir=e.lG2({type:I,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[e.TTD]}),I})(),w=(()=>{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({imports:[t.ez]}),I})()},982:(o,u,a)=>{"use strict";a.d(u,{P9:()=>x,Th:()=>s,gb:()=>t});class t{static equals(w,I,P){return P?this.resolveFieldData(w,P)===this.resolveFieldData(I,P):this.equalsByValue(w,I)}static equalsByValue(w,I){if(w===I)return!0;
vendor: 4,423 bytes, line 1
1if(w&&I&&"object"==typeof w&&"object"==typeof I){var k,z,F,P=Array.isArray(w),S=Array.isArray(I);if(P&&S){if((z=w.length)!=I.length)return!1;for(k=z;0!=k--;)if(!this.equalsByValue(w[k],I[k]))return!1;return!0}if(P!=S)return!1;var ne=w instanceof Date,B=I instanceof Date;if(ne!=B)return!1;if(ne&&B)return w.getTime()==I.getTime();var G=w instanceof RegExp,W=I instanceof RegExp;if(G!=W)return!1;if(G&&W)return w.toString()==I.toString();var Y=Object.keys(w);if((z=Y.length)!==Object.keys(I).length)return!1;for(k=z;0!=k--;)if(!Object.prototype.hasOwnProperty.call(I,Y[k]))return!1;for(k=z;0!=k--;)if(!this.equalsByValue(w[F=Y[k]],I[F]))return!1;return!0}return w!=w&&I!=I}static resolveFieldData(w,I){if(w&&I){if(this.isFunction(I))return I(w);if(-1==I.indexOf("."))return w[I];{let P=I.split("."),S=w;for(let k=0,z=P.length;k<z;++k){if(null==S)return null;S=S[P[k]]}return S}}return null}static isFunction(w){return!!(w&&w.constructor&&w.call&&w.apply)}static reorderArray(w,I,P){w&&I!==P&&(P>=w.length&&(P%=w.length,I%=w.length),w.splice(P,0,w.splice(I,1)[0]))}static insertIntoOrderedArray(w,I,P,S){if(P.length>0){let k=!1;for(let z=0;z<P.length;z++)if(this.findIndexInList(P[z],S)>I){P.splice(z,0,w),k=!0;break}k||P.push(w)}else P.push(w)}static findIndexInList(w,I){let P=-1;if(I)for(let S=0;S<I.length;S++)if(I[S]==w){P=S;break}return P}static contains(w,I){if(null!=w&&I&&I.length)for(let P of I)if(this.equals(w,P))return!0;return!1}static removeAccents(w){return w&&w.search(/[\xC0-\xFF]/g)>-1&&(w=w.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),w}static isEmpty(w){return null==w||""===w||Array.isArray(w)&&0===w.length||!(w instanceof Date)&&"object"==typeof w&&0===Object.keys(w).length}static isNotEmpty(w){return!this.isEmpty(w)}static compare(w,I,P,S=1){let k=-1;const z=this.isEmpty(w),F=this.isEmpty(I);return k=z&&F?0:z?S:F?-S:"string"==typeof w&&"string"==typeof I?w.localeCompare(I,P,{numeric:!0}):w<I?-1:w>I?1:0,k}static sort(w,I,P=1,S,k=1){return(1===k?P:k)*t.compare(w,I,S,P)}static merge(w,I){if(null!=w||null!=I)return null!=w&&"object"!=typeof w||null!=I&&"object"!=typeof I?null!=w&&"string"!=typeof w||null!=I&&"string"!=typeof I?I||w:[w||"",I||""].join(" "):{...w||{},...I||{}}}}var e=0;function s(){return"pr_id_"+ ++e}var x=function D(){let M=[];const S=k=>k&&parseInt(k.style.zIndex,10)||0;return{get:S,set:(k,z,F)=>{z&&(z.style.zIndex=String(((k,z)=>{let F=M.length>0?M[M.length-1]:{key:k,value:z},ne=F.value+(F.key===k?0:z)+1;return M.push({key:k,value:ne}),ne})(k,F)))},clear:k=>{k&&((k=>{M=M.filter(z=>z.value!==k)})(S(k)),k.style.zIndex="")},getCurrent:()=>M.length>0?M[M.length-1].value:0}}()},5861:(o,u,a)=>{"use strict";function t(s,D,x,M,w,I,P){try{var S=s[I](P),k=S.value}catch(z){return void x(z)}S.done?D(k):Promise.resolve(k).then(M,w)}function e(s){return function(){var D=this,x=arguments;return new Promise(function(M,w){var I=s.apply(D,x);function P(k){t(I,M,w,P,S,"next",k)}function S(k){t(I,M,w,P,S,"throw",k)}P(void 0)})}}a.d(u,{Z:()=>e})},7582:(o,u,a)=>{"use strict";function z(me,ve,je,Xe){return new(je||(je=Promise))(function(mt,$t){function tn(Ye){try{bt(Xe.next(Ye))}catch(Nt){$t(Nt)}}function yt(Ye){try{bt(Xe.throw(Ye))}catch(Nt){$t(Nt)}}function bt(Ye){Ye.done?mt(Ye.value):function rt(mt){return mt instanceof je?mt:new je(function($t){$t(mt)})}(Ye.value).then(tn,yt)}bt((Xe=Xe.apply(me,ve||[])).next())})}function Q(me){return this instanceof Q?(this.v=me,this):new Q(me)}function O(me,ve,je){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var rt,Xe=je.apply(me,ve||[]),mt=[];return rt=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),tn("next"),tn("throw"),tn("return",function $t(pn){return function(_n){return Promise.resolve(_n).then(pn,Nt)}}),rt[Symbol.asyncIterator]=function(){return this},rt;function tn(pn,_n){Xe[pn]&&(rt[pn]=function(zt){return new Promise(function(Yt,It){mt.pu
vendor: 1,263 bytes, line 1
1sh([pn,zt,Yt,It])>1||yt(pn,zt)})},_n&&(rt[pn]=_n(rt[pn])))}function yt(pn,_n){try{!function bt(pn){pn.value instanceof Q?Promise.resolve(pn.value.v).then(Ye,Nt):xn(mt[0][2],pn)}(Xe[pn](_n))}catch(zt){xn(mt[0][3],zt)}}function Ye(pn){yt("next",pn)}function Nt(pn){yt("throw",pn)}function xn(pn,_n){pn(_n),mt.shift(),mt.length&&yt(mt[0][0],mt[0][1])}}function ue(me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var je,ve=me[Symbol.asyncIterator];return ve?ve.call(me):(me=function G(me){var ve="function"==typeof Symbol&&Symbol.iterator,je=ve&&me[ve],Xe=0;if(je)return je.call(me);if(me&&"number"==typeof me.length)return{next:function(){return me&&Xe>=me.length&&(me=void 0),{value:me&&me[Xe++],done:!me}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")}(me),je={},Xe("next"),Xe("throw"),Xe("return"),je[Symbol.asyncIterator]=function(){return this},je);function Xe(mt){je[mt]=me[mt]&&function($t){return new Promise(function(tn,yt){!function rt(mt,$t,tn,yt){Promise.resolve(yt).then(function(bt){mt({value:bt,done:tn})},$t)}(tn,yt,($t=me[mt]($t)).done,$t.value)})}}}a.d(u,{FC:()=>O,KL:()=>ue,mG:()=>z,qq:()=>Q}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=3405)}]);
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.